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 | MediaCodecAsyncOutput |
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 992 of file mediacodecenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 993 of file mediacodecenc.c.
#define COMMON_OPTION |
Definition at line 994 of file mediacodecenc.c.
#define MEDIACODEC_ENCODER_CLASS | ( | name | ) |
Definition at line 1017 of file mediacodecenc.c.
#define DECLARE_MEDIACODEC_ENCODER | ( | short_name, | |
long_name, | |||
codec_id | |||
) |
Definition at line 1025 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 100 of file mediacodecenc.c.
|
static |
Definition at line 122 of file mediacodecenc.c.
Referenced by mediacodec_output_format(), and on_format_changed().
|
static |
Definition at line 134 of file mediacodecenc.c.
Referenced by mediacodec_init(), and mediacodec_receive().
|
static |
Definition at line 145 of file mediacodecenc.c.
Referenced by mediacodec_init_bsf().
|
static |
Definition at line 162 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 214 of file mediacodecenc.c.
Referenced by mediacodec_send().
|
static |
Definition at line 243 of file mediacodecenc.c.
Referenced by mediacodec_init(), on_input_available(), and on_output_available().
|
static |
Definition at line 264 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 281 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 303 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 309 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 333 of file mediacodecenc.c.
Referenced by mediacodec_close(), and mediacodec_init().
|
static |
Definition at line 896 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 354 of file mediacodecenc.c.
|
static |
Definition at line 585 of file mediacodecenc.c.
Referenced by mediacodec_receive().
|
static |
Definition at line 625 of file mediacodecenc.c.
Referenced by mediacodec_encode(), and mediacodec_receive_dummy_pkt().
|
static |
Definition at line 713 of file mediacodecenc.c.
Referenced by mediacodec_send().
|
static |
Definition at line 746 of file mediacodecenc.c.
Referenced by mediacodec_encode(), and mediacodec_send_dummy_frame().
|
static |
Definition at line 797 of file mediacodecenc.c.
|
static |
Definition at line 843 of file mediacodecenc.c.
Referenced by mediacodec_generate_extradata().
|
static |
Definition at line 874 of file mediacodecenc.c.
Referenced by mediacodec_generate_extradata().
|
static |
Definition at line 948 of file mediacodecenc.c.
|
static |
Definition at line 970 of file mediacodecenc.c.
int color_format |
Definition at line 107 of file mediacodecenc.c.
Referenced by mediacodec_init().
enum AVPixelFormat pix_fmt |
Definition at line 108 of file mediacodecenc.c.
const { ... } color_formats[] |
Referenced by mediacodec_init().
|
static |
Definition at line 115 of file mediacodecenc.c.
|
static |
Definition at line 979 of file mediacodecenc.c.