FFmpeg
|
#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/fifo.h"
#include "libavutil/avstring.h"
#include "libavutil/hwcontext_mediacodec.h"
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/thread.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 } |
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 45 of file mediacodecenc.c.
#define OUTPUT_DEQUEUE_TIMEOUT_US 8000 |
Definition at line 46 of file mediacodecenc.c.
#define OFFSET | ( | x | ) | offsetof(MediaCodecEncContext, x) |
Definition at line 981 of file mediacodecenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 982 of file mediacodecenc.c.
#define COMMON_OPTION |
Definition at line 983 of file mediacodecenc.c.
#define MEDIACODEC_ENCODER_CLASS | ( | name | ) |
Definition at line 1006 of file mediacodecenc.c.
#define DECLARE_MEDIACODEC_ENCODER | ( | short_name, | |
long_name, | |||
codec_id | |||
) |
Definition at line 1014 of file mediacodecenc.c.
enum BitrateMode |
Enumerator | |
---|---|
BITRATE_MODE_CQ | |
BITRATE_MODE_VBR | |
BITRATE_MODE_CBR | |
BITRATE_MODE_CBR_FD |
Definition at line 48 of file mediacodecenc.c.
anonymous enum |
Enumerator | |
---|---|
COLOR_FormatYUV420Planar | |
COLOR_FormatYUV420SemiPlanar | |
COLOR_FormatSurface |
Definition at line 96 of file mediacodecenc.c.
|
static |
Definition at line 118 of file mediacodecenc.c.
Referenced by mediacodec_output_format(), and on_format_changed().
|
static |
Definition at line 130 of file mediacodecenc.c.
Referenced by mediacodec_init(), and mediacodec_receive().
|
static |
Definition at line 141 of file mediacodecenc.c.
Referenced by mediacodec_init_bsf().
|
static |
Definition at line 158 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 210 of file mediacodecenc.c.
Referenced by mediacodec_send().
|
static |
Definition at line 238 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 252 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 268 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 274 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 295 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 319 of file mediacodecenc.c.
Referenced by mediacodec_close(), and mediacodec_init().
|
static |
Definition at line 885 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 341 of file mediacodecenc.c.
|
static |
Definition at line 572 of file mediacodecenc.c.
Referenced by mediacodec_receive().
|
static |
Definition at line 614 of file mediacodecenc.c.
Referenced by mediacodec_encode(), and mediacodec_receive_dummy_pkt().
|
static |
Definition at line 702 of file mediacodecenc.c.
Referenced by mediacodec_send().
|
static |
Definition at line 735 of file mediacodecenc.c.
Referenced by mediacodec_encode(), and mediacodec_send_dummy_frame().
|
static |
Definition at line 786 of file mediacodecenc.c.
|
static |
Definition at line 832 of file mediacodecenc.c.
Referenced by mediacodec_generate_extradata().
|
static |
Definition at line 863 of file mediacodecenc.c.
Referenced by mediacodec_generate_extradata().
|
static |
Definition at line 937 of file mediacodecenc.c.
|
static |
Definition at line 959 of file mediacodecenc.c.
int color_format |
Definition at line 103 of file mediacodecenc.c.
Referenced by mediacodec_init().
enum AVPixelFormat pix_fmt |
Definition at line 104 of file mediacodecenc.c.
const { ... } color_formats[] |
Referenced by mediacodec_init().
|
static |
Definition at line 111 of file mediacodecenc.c.
|
static |
Definition at line 968 of file mediacodecenc.c.