Blame include/freerdp/client/video.h

Packit Service fa4841
/**
Packit Service fa4841
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit Service fa4841
 * Video Optimized Remoting Virtual Channel Extension
Packit Service fa4841
 *
Packit Service fa4841
 * Copyright 2017 David Fort <contact@hardening-consulting.com>
Packit Service fa4841
 *
Packit Service fa4841
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
 * you may not use this file except in compliance with the License.
Packit Service fa4841
 * You may obtain a copy of the License at
Packit Service fa4841
 *
Packit Service fa4841
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
 *
Packit Service fa4841
 * Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
 * See the License for the specific language governing permissions and
Packit Service fa4841
 * limitations under the License.
Packit Service fa4841
 */
Packit Service fa4841
Packit Service fa4841
#ifndef FREERDP_CHANNELS_CLIENT_VIDEO_H
Packit Service fa4841
#define FREERDP_CHANNELS_CLIENT_VIDEO_H
Packit Service fa4841
Packit Service fa4841
#include <freerdp/client/geometry.h>
Packit Service fa4841
#include <freerdp/channels/video.h>
Packit Service fa4841
Packit Service fa4841
typedef struct _VideoClientContext VideoClientContext;
Packit Service fa4841
typedef struct _VideoClientContextPriv VideoClientContextPriv;
Packit Service fa4841
typedef struct _VideoSurface VideoSurface;
Packit Service fa4841
Packit Service fa4841
/** @brief an implementation of surface used by the video channel */
Packit Service fa4841
struct _VideoSurface
Packit Service fa4841
{
Packit Service fa4841
	UINT32 x, y, w, h;
Packit Service fa4841
	BYTE* data;
Packit Service fa4841
};
Packit Service fa4841
Packit Service fa4841
typedef void (*pcVideoTimer)(VideoClientContext* video, UINT64 now);
Packit Service fa4841
typedef void (*pcVideoSetGeometry)(VideoClientContext* video, GeometryClientContext* geometry);
Packit Service fa4841
typedef VideoSurface* (*pcVideoCreateSurface)(VideoClientContext* video, BYTE* data, UINT32 x,
Packit Service fa4841
                                              UINT32 y, UINT32 width, UINT32 height);
Packit Service fa4841
typedef BOOL (*pcVideoShowSurface)(VideoClientContext* video, VideoSurface* surface);
Packit Service fa4841
typedef BOOL (*pcVideoDeleteSurface)(VideoClientContext* video, VideoSurface* surface);
Packit Service fa4841
Packit Service fa4841
/** @brief context for the video (MS-RDPEVOR) channel */
Packit Service fa4841
struct _VideoClientContext
Packit Service fa4841
{
Packit Service fa4841
	void* handle;
Packit Service fa4841
	void* custom;
Packit Service fa4841
	VideoClientContextPriv* priv;
Packit Service fa4841
Packit Service fa4841
	pcVideoSetGeometry setGeometry;
Packit Service fa4841
	pcVideoTimer timer;
Packit Service fa4841
	pcVideoCreateSurface createSurface;
Packit Service fa4841
	pcVideoShowSurface showSurface;
Packit Service fa4841
	pcVideoDeleteSurface deleteSurface;
Packit Service fa4841
};
Packit Service fa4841
Packit Service fa4841
#endif /* FREERDP_CHANNELS_CLIENT_VIDEO_H */