FFmpeg
|
#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/hwcontext_mediacodec.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bsf.h"
#include "codec_internal.h"
#include "encode.h"
#include "hwconfig.h"
#include "jni.h"
#include "mediacodec.h"
#include "mediacodec_wrapper.h"
#include "mediacodecdec_common.h"
#include "profiles.h"
Go to the source code of this file.
Data Structures | |
struct | MediaCodecEncContext |
Macros | |
#define | INPUT_DEQUEUE_TIMEOUT_US 8000 |
#define | OUTPUT_DEQUEUE_TIMEOUT_US 8000 |
#define | OFFSET(x) offsetof(MediaCodecEncContext, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
#define | COMMON_OPTION |
#define | MEDIACODEC_ENCODER_CLASS(name) |
#define | DECLARE_MEDIACODEC_ENCODER(short_name, long_name, codec_id) |
Enumerations | |
enum | BitrateMode { BITRATE_MODE_CQ = 0, BITRATE_MODE_VBR = 1, BITRATE_MODE_CBR = 2, BITRATE_MODE_CBR_FD = 3 } |
enum | { COLOR_FormatYUV420Planar = 0x13, COLOR_FormatYUV420SemiPlanar = 0x15, COLOR_FormatSurface = 0x7F000789 } |
Functions | |
static void | mediacodec_output_format (AVCodecContext *avctx) |
static int | extract_extradata_support (AVCodecContext *avctx) |
static int | mediacodec_init_bsf (AVCodecContext *avctx) |
static int | mediacodec_generate_extradata (AVCodecContext *avctx) |
static av_cold int | mediacodec_init (AVCodecContext *avctx) |
static int | mediacodec_receive (AVCodecContext *avctx, AVPacket *pkt) |
static void | copy_frame_to_buffer (AVCodecContext *avctx, const AVFrame *frame, uint8_t *dst, size_t size) |
static int | mediacodec_send (AVCodecContext *avctx, const AVFrame *frame) |
static int | mediacodec_encode (AVCodecContext *avctx, AVPacket *pkt) |
static int | mediacodec_send_dummy_frame (AVCodecContext *avctx) |
static int | mediacodec_receive_dummy_pkt (AVCodecContext *avctx, AVPacket *pkt) |
static av_cold int | mediacodec_close (AVCodecContext *avctx) |
static av_cold void | mediacodec_flush (AVCodecContext *avctx) |
Variables | |
struct { | |
int color_format | |
enum AVPixelFormat pix_fmt | |
} | color_formats [] |
static enum AVPixelFormat | avc_pix_fmts [] |
static const AVCodecHWConfigInternal *const | mediacodec_hw_configs [] |
#define INPUT_DEQUEUE_TIMEOUT_US 8000 |
Definition at line 43 of file mediacodecenc.c.
#define OUTPUT_DEQUEUE_TIMEOUT_US 8000 |
Definition at line 44 of file mediacodecenc.c.
#define OFFSET | ( | x | ) | offsetof(MediaCodecEncContext, x) |
Definition at line 737 of file mediacodecenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 738 of file mediacodecenc.c.
#define COMMON_OPTION |
Definition at line 739 of file mediacodecenc.c.
#define MEDIACODEC_ENCODER_CLASS | ( | name | ) |
Definition at line 759 of file mediacodecenc.c.
#define DECLARE_MEDIACODEC_ENCODER | ( | short_name, | |
long_name, | |||
codec_id | |||
) |
Definition at line 767 of file mediacodecenc.c.
enum BitrateMode |
Enumerator | |
---|---|
BITRATE_MODE_CQ | |
BITRATE_MODE_VBR | |
BITRATE_MODE_CBR | |
BITRATE_MODE_CBR_FD |
Definition at line 46 of file mediacodecenc.c.
anonymous enum |
Enumerator | |
---|---|
COLOR_FormatYUV420Planar | |
COLOR_FormatYUV420SemiPlanar | |
COLOR_FormatSurface |
Definition at line 81 of file mediacodecenc.c.
|
static |
Definition at line 103 of file mediacodecenc.c.
Referenced by mediacodec_init(), and mediacodec_receive().
|
static |
Definition at line 117 of file mediacodecenc.c.
Referenced by mediacodec_init_bsf().
|
static |
Definition at line 134 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 644 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 188 of file mediacodecenc.c.
|
static |
Definition at line 394 of file mediacodecenc.c.
Referenced by mediacodec_encode(), and mediacodec_receive_dummy_pkt().
|
static |
Definition at line 469 of file mediacodecenc.c.
Referenced by mediacodec_send().
|
static |
Definition at line 496 of file mediacodecenc.c.
Referenced by mediacodec_encode(), and mediacodec_send_dummy_frame().
|
static |
Definition at line 545 of file mediacodecenc.c.
|
static |
Definition at line 591 of file mediacodecenc.c.
Referenced by mediacodec_generate_extradata().
|
static |
Definition at line 622 of file mediacodecenc.c.
Referenced by mediacodec_generate_extradata().
|
static |
Definition at line 695 of file mediacodecenc.c.
|
static |
Definition at line 715 of file mediacodecenc.c.
int color_format |
Definition at line 88 of file mediacodecenc.c.
Referenced by mediacodec_init().
enum AVPixelFormat pix_fmt |
Definition at line 89 of file mediacodecenc.c.
const { ... } color_formats[] |
Referenced by mediacodec_init().
|
static |
Definition at line 96 of file mediacodecenc.c.
|
static |
Definition at line 724 of file mediacodecenc.c.