FreeRDP
|
#include <winpr/wlog.h>
#include <winpr/assert.h>
#include <winpr/library.h>
#include <freerdp/log.h>
#include <freerdp/codec/h264.h>
#include <media/NdkMediaCodec.h>
#include <media/NdkMediaFormat.h>
#include "h264.h"
Functions | |
static AMediaFormat * | mediacodec_format_new (wLog *log, int width, int height) |
static void | set_mediacodec_format (H264_CONTEXT *h264, AMediaFormat **formatVariable, AMediaFormat *newFormat) |
static int | update_mediacodec_inputformat (H264_CONTEXT *h264) |
static int | update_mediacodec_outputformat (H264_CONTEXT *h264) |
static void | release_current_outputbuffer (H264_CONTEXT *h264) |
static int | mediacodec_compress (H264_CONTEXT *h264, const BYTE **pSrcYuv, const UINT32 *pStride, BYTE **ppDstData, UINT32 *pDstSize) |
static int | mediacodec_decompress (H264_CONTEXT *h264, const BYTE *pSrcData, UINT32 SrcSize) |
static void | mediacodec_uninit (H264_CONTEXT *h264) |
static BOOL | mediacodec_init (H264_CONTEXT *h264) |
Variables | |
static const char * | CODEC_NAME = "video/avc" |
static const int | COLOR_FormatYUV420Planar = 19 |
static const int | COLOR_FormatYUV420Flexible = 0x7f420888 |
static const int | MEDIACODEC_MINIMUM_WIDTH = 320 |
static const int | MEDIACODEC_MINIMUM_HEIGHT = 240 |
const H264_CONTEXT_SUBSYSTEM | g_Subsystem_mediacodec |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
FreeRDP: A Remote Desktop Protocol Implementation H.264 Bitmap Compression
Copyright 2022 Ely Ronnen elyro nnen @gmai l.co m
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.
|
static |
|
static |
const H264_CONTEXT_SUBSYSTEM g_Subsystem_mediacodec |
|
static |
|
static |