FreeRDP
tsmf_codec.c File Reference
#include <winpr/crt.h>
#include <winpr/stream.h>
#include <winpr/print.h>
#include "tsmf_decoder.h"
#include "tsmf_constants.h"
#include "tsmf_types.h"
#include "tsmf_codec.h"
#include <freerdp/log.h>

Macros

#define TAG   CHANNELS_TAG("tsmf.client")
 

Functions

static void tsmf_print_guid (const BYTE *guid)
 
static UINT32 tsmf_codec_parse_BITMAPINFOHEADER (TS_AM_MEDIA_TYPE *mediatype, wStream *s, BOOL bypass)
 
static UINT32 tsmf_codec_parse_VIDEOINFOHEADER2 (TS_AM_MEDIA_TYPE *mediatype, wStream *s)
 
static UINT32 tsmf_codec_parse_VIDEOINFOHEADER (TS_AM_MEDIA_TYPE *mediatype, wStream *s)
 
static BOOL tsmf_read_format_type (TS_AM_MEDIA_TYPE *mediatype, wStream *s, UINT32 cbFormat)
 
BOOL tsmf_codec_parse_media_type (TS_AM_MEDIA_TYPE *mediatype, wStream *s)
 
BOOL tsmf_codec_check_media_type (const char *decoder_name, wStream *s)
 

Variables

static const TSMFMediaTypeMap tsmf_major_type_map []
 
static const TSMFMediaTypeMap tsmf_sub_type_map []
 
static const TSMFMediaTypeMap tsmf_format_type_map []
 

Macro Definition Documentation

#define TAG   CHANNELS_TAG("tsmf.client")

FreeRDP: A Remote Desktop Protocol Implementation Video Redirection Virtual Channel - Codec

Copyright 2010-2011 Vic Lee Copyright 2012 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

BOOL tsmf_codec_check_media_type ( const char *  decoder_name,
wStream *  s 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT32 tsmf_codec_parse_BITMAPINFOHEADER ( TS_AM_MEDIA_TYPE mediatype,
wStream *  s,
BOOL  bypass 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL tsmf_codec_parse_media_type ( TS_AM_MEDIA_TYPE mediatype,
wStream *  s 
)

FreeRDP: A Remote Desktop Protocol Implementation Video Redirection Virtual Channel - Codec

Copyright 2010-2011 Vic Lee

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT32 tsmf_codec_parse_VIDEOINFOHEADER ( TS_AM_MEDIA_TYPE mediatype,
wStream *  s 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT32 tsmf_codec_parse_VIDEOINFOHEADER2 ( TS_AM_MEDIA_TYPE mediatype,
wStream *  s 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void tsmf_print_guid ( const BYTE guid)
static

Here is the caller graph for this function:

static BOOL tsmf_read_format_type ( TS_AM_MEDIA_TYPE mediatype,
wStream *  s,
UINT32  cbFormat 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const TSMFMediaTypeMap tsmf_format_type_map[]
static
const TSMFMediaTypeMap tsmf_major_type_map[]
static
Initial value:
=
{
{
{ 0x76, 0x69, 0x64, 0x73, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 },
"MEDIATYPE_Video",
},
{
{ 0x61, 0x75, 0x64, 0x73, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71 },
"MEDIATYPE_Audio",
},
{
{ 0 },
"Unknown",
}
}
#define TSMF_MAJOR_TYPE_AUDIO
Definition: tsmf_constants.h:98
#define TSMF_MAJOR_TYPE_VIDEO
Definition: tsmf_constants.h:97
#define TSMF_MAJOR_TYPE_UNKNOWN
Definition: tsmf_constants.h:96
const TSMFMediaTypeMap tsmf_sub_type_map[]
static