#include "config_components.h"
#include <stdint.h>
#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/pixfmt.h"
#include "libavutil/internal.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "h264_parse.h"
#include "h264_ps.h"
#include "hevc_parse.h"
#include "hwconfig.h"
#include "internal.h"
#include "mediacodec_wrapper.h"
#include "mediacodecdec_common.h"
Go to the source code of this file.
◆ OFFSET
◆ VD
◆ DECLARE_MEDIACODEC_VCLASS
#define DECLARE_MEDIACODEC_VCLASS |
( |
|
short_name | ) |
|
◆ DECLARE_MEDIACODEC_VDEC
#define DECLARE_MEDIACODEC_VDEC |
( |
|
short_name, |
|
|
|
full_name, |
|
|
|
codec_id, |
|
|
|
bsf |
|
) |
| |
Value:
const
FFCodec ff_ ## short_name ## _mediacodec_decoder = { \
.
p.
name = #short_name
"_mediacodec", \
.p.priv_class = &ff_##short_name##_mediacodec_dec_class, \
.bsfs = bsf, \
.p.wrapper_name = "mediacodec", \
}; \
Definition at line 533 of file mediacodecdec.c.
◆ mediacodec_decode_close()
◆ mediacodec_decode_init()
◆ mediacodec_receive_frame()
◆ mediacodec_decode_flush()
◆ mediacodec_hw_configs
◆ ff_mediacodec_vdec_options
const AVOption ff_mediacodec_vdec_options[] |
|
static |
Initial value:= {
{ "delay_flush", "Delay flush until hw output buffers are returned to the decoder",
}
Definition at line 519 of file mediacodecdec.c.
@ AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX
The codec supports this format via the hw_device_ctx interface.
#define AV_CODEC_CAP_HARDWARE
Codec is backed by a hardware implementation.
@ AV_CODEC_HW_CONFIG_METHOD_AD_HOC
The codec supports this format by some ad-hoc method.
@ AV_HWDEVICE_TYPE_MEDIACODEC
AVCodec p
The public AVCodec.
@ AV_PIX_FMT_MEDIACODEC
hardware decoding through MediaCodec
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
const char * av_default_item_name(void *ptr)
Return the context name.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
const char * name
Name of the codec implementation.
#define FF_CODEC_CAP_SETS_PKT_DTS
Decoders marked with FF_CODEC_CAP_SETS_PKT_DTS want to set AVFrame.pkt_dts manually.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
#define FF_CODEC_RECEIVE_FRAME_CB(func)
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
#define AV_CODEC_CAP_AVOID_PROBING
Decoder is not a preferred choice for probing.