FreeRDP
|
#include <winpr/winpr.h>
#include <freerdp/log.h>
#include <freerdp/codec/h264.h>
#include <ks.h>
#include <codecapi.h>
#include <mfapi.h>
#include <mferror.h>
#include <wmcodecdsp.h>
#include <mftransform.h>
#include "h264.h"
Macros | |
#define | TAG FREERDP_TAG("codec") |
Typedefs | |
typedef HRESULT(__stdcall * | pfnMFStartup) (ULONG Version, DWORD dwFlags) |
typedef HRESULT(__stdcall * | pfnMFShutdown) (void) |
typedef HRESULT(__stdcall * | pfnMFCreateSample) (IMFSample **ppIMFSample) |
typedef HRESULT(__stdcall * | pfnMFCreateMemoryBuffer) (DWORD cbMaxLength, IMFMediaBuffer **ppBuffer) |
typedef HRESULT(__stdcall * | pfnMFCreateMediaType) (IMFMediaType **ppMFType) |
Functions | |
static HRESULT | mf_find_output_type (H264_CONTEXT_MF *sys, const GUID *guid, IMFMediaType **ppMediaType) |
static HRESULT | mf_create_output_sample (H264_CONTEXT *h264, H264_CONTEXT_MF *sys) |
static int | mf_decompress (H264_CONTEXT *h264, const BYTE *pSrcData, UINT32 SrcSize) |
static int | mf_compress (H264_CONTEXT *h264, const BYTE **ppSrcYuv, const UINT32 *pStride, BYTE **ppDstData, UINT32 *pDstSize) |
static BOOL | mf_plat_loaded (H264_CONTEXT_MF *sys) |
static void | mf_uninit (H264_CONTEXT *h264) |
static BOOL | mf_init (H264_CONTEXT *h264) |
Variables | |
static const GUID | sCLSID_CMSH264DecoderMFT |
static const GUID | sIID_IMFTransform |
static const GUID | sMF_MT_MAJOR_TYPE |
static const GUID | sMF_MT_FRAME_SIZE |
static const GUID | sMF_MT_DEFAULT_STRIDE |
static const GUID | sMF_MT_SUBTYPE |
static const GUID | sMFMediaType_Video |
static const GUID | sMFVideoFormat_H264 |
static const GUID | sMFVideoFormat_IYUV |
static const GUID | sIID_ICodecAPI |
static const GUID | sCODECAPI_AVLowLatencyMode |
const H264_CONTEXT_SUBSYSTEM | g_Subsystem_MF |
#define TAG FREERDP_TAG("codec") |
FreeRDP: A Remote Desktop Protocol Implementation H.264 Bitmap Compression
Copyright 2014 Mike McDonald Mike. McDo nald@ soft ware. dell .com
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.
typedef HRESULT(__stdcall* pfnMFCreateMediaType) (IMFMediaType **ppMFType) |
typedef HRESULT(__stdcall* pfnMFCreateMemoryBuffer) (DWORD cbMaxLength, IMFMediaBuffer **ppBuffer) |
typedef HRESULT(__stdcall* pfnMFCreateSample) (IMFSample **ppIMFSample) |
typedef HRESULT(__stdcall* pfnMFShutdown) (void) |
typedef HRESULT(__stdcall* pfnMFStartup) (ULONG Version, DWORD dwFlags) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const H264_CONTEXT_SUBSYSTEM g_Subsystem_MF |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |