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