FFmpeg
|
#include "config_components.h"
#include "libavutil/avassert.h"
#include "libavutil/hwcontext_mediacodec.h"
#include "libavutil/imgutils.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"
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 | mediacodec_init_bsf (AVCodecContext *avctx) |
static av_cold int | mediacodec_init (AVCodecContext *avctx) |
static int | mediacodec_receive (AVCodecContext *avctx, AVPacket *pkt, int *got_packet) |
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 av_cold int | mediacodec_close (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 40 of file mediacodecenc.c.
#define OUTPUT_DEQUEUE_TIMEOUT_US 8000 |
Definition at line 41 of file mediacodecenc.c.
#define OFFSET | ( | x | ) | offsetof(MediaCodecEncContext, x) |
Definition at line 558 of file mediacodecenc.c.
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 559 of file mediacodecenc.c.
#define COMMON_OPTION |
Definition at line 560 of file mediacodecenc.c.
#define MEDIACODEC_ENCODER_CLASS | ( | name | ) |
Definition at line 580 of file mediacodecenc.c.
#define DECLARE_MEDIACODEC_ENCODER | ( | short_name, | |
long_name, | |||
codec_id | |||
) |
Definition at line 588 of file mediacodecenc.c.
enum BitrateMode |
Enumerator | |
---|---|
BITRATE_MODE_CQ | |
BITRATE_MODE_VBR | |
BITRATE_MODE_CBR | |
BITRATE_MODE_CBR_FD |
Definition at line 43 of file mediacodecenc.c.
anonymous enum |
Enumerator | |
---|---|
COLOR_FormatYUV420Planar | |
COLOR_FormatYUV420SemiPlanar | |
COLOR_FormatSurface |
Definition at line 77 of file mediacodecenc.c.
|
static |
Definition at line 99 of file mediacodecenc.c.
Referenced by mediacodec_init(), and mediacodec_receive().
|
static |
Definition at line 113 of file mediacodecenc.c.
Referenced by mediacodec_init().
|
static |
Definition at line 149 of file mediacodecenc.c.
|
static |
Definition at line 321 of file mediacodecenc.c.
Referenced by mediacodec_encode().
|
static |
Definition at line 399 of file mediacodecenc.c.
Referenced by mediacodec_send().
|
static |
Definition at line 429 of file mediacodecenc.c.
Referenced by mediacodec_encode().
|
static |
Definition at line 478 of file mediacodecenc.c.
|
static |
Definition at line 525 of file mediacodecenc.c.
int color_format |
Definition at line 84 of file mediacodecenc.c.
Referenced by mediacodec_init().
enum AVPixelFormat pix_fmt |
Definition at line 85 of file mediacodecenc.c.
const { ... } color_formats[] |
Referenced by mediacodec_init().
|
static |
Definition at line 92 of file mediacodecenc.c.
|
static |
Definition at line 545 of file mediacodecenc.c.