Blame include/freerdp/client/tsmf.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Multimedia Redirection Virtual Channel Types
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2011 Vic Lee
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 Service 5a9772
/* DEPRECATION WARNING:
Packit Service 5a9772
 *
Packit Service 5a9772
 * This channel is unmaintained and not used since windows 7.
Packit Service 5a9772
 * Only compile and use it if absolutely necessary, otherwise
Packit Service 5a9772
 * deactivate it or use the newer [MS-RDPEVOR] video redirection.
Packit Service 5a9772
 */
Packit Service 5a9772
Packit 1fb8d4
#ifndef FREERDP_CHANNEL_TSMF_CLIENT_TSMF_H
Packit 1fb8d4
#define FREERDP_CHANNEL_TSMF_CLIENT_TSMF_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/codec/region.h>
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/channels/tsmf.h>
Packit 1fb8d4
Packit 1fb8d4
/* RDP_VIDEO_FRAME_EVENT.frame_pixfmt */
Packit 1fb8d4
/* http://www.fourcc.org/yuv.php */
Packit Service 5a9772
#define RDP_PIXFMT_I420 0x30323449
Packit Service 5a9772
#define RDP_PIXFMT_YV12 0x32315659
Packit 1fb8d4
Packit 1fb8d4
struct _TSMF_VIDEO_FRAME_EVENT
Packit 1fb8d4
{
Packit 1fb8d4
	BYTE* frameData;
Packit 1fb8d4
	UINT32 frameSize;
Packit 1fb8d4
	UINT32 framePixFmt;
Packit 1fb8d4
	INT16 frameWidth;
Packit 1fb8d4
	INT16 frameHeight;
Packit 1fb8d4
	INT16 x;
Packit 1fb8d4
	INT16 y;
Packit 1fb8d4
	INT16 width;
Packit 1fb8d4
	INT16 height;
Packit 1fb8d4
	UINT16 numVisibleRects;
Packit 1fb8d4
	RECTANGLE_16* visibleRects;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _TSMF_VIDEO_FRAME_EVENT TSMF_VIDEO_FRAME_EVENT;
Packit 1fb8d4
Packit 1fb8d4
/**
Packit 1fb8d4
 * Client Interface
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
typedef struct _tsmf_client_context TsmfClientContext;
Packit 1fb8d4
Packit 1fb8d4
typedef int (*pcTsmfFrameEvent)(TsmfClientContext* context, TSMF_VIDEO_FRAME_EVENT* event);
Packit 1fb8d4
Packit 1fb8d4
struct _tsmf_client_context
Packit 1fb8d4
{
Packit 1fb8d4
	void* handle;
Packit 1fb8d4
	void* custom;
Packit 1fb8d4
Packit 1fb8d4
	pcTsmfFrameEvent FrameEvent;
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CHANNEL_TSMF_CLIENT_TSMF_H */