const FFCodec ff_ ## short_name ## _oh_encoder = { \
.p.name = #short_name "_ohcodec", \
CODEC_LONG_NAME(long_name " OpenHarmony Codec"), \
.p.priv_class = &short_name ## _oh_enc_class, \
.p.wrapper_name = "ohcodec", \
}; \
#define CODEC_PIXFMTS_ARRAY(array)
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
#define AV_CODEC_CAP_ENCODER_FLUSH
This encoder can be flushed using avcodec_flush_buffers().
#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_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AV_CODEC_CAP_HARDWARE
Codec is backed by a hardware implementation.
static const AVCodecHWConfigInternal *const oh_hw_configs[]
static enum AVPixelFormat ohcodec_pix_fmts[]
static int oh_encode_receive(AVCodecContext *avctx, AVPacket *pkt)
#define DECLARE_OHCODEC_CLASS(name)
static void oh_encode_flush(AVCodecContext *avctx)
static const FFCodecDefault ohcodec_defaults[]
static av_cold int oh_encode_close(AVCodecContext *avctx)
static av_cold int oh_encode_init(AVCodecContext *avctx)
@ AVCOL_RANGE_MPEG
Narrow or limited range content.
@ AVCOL_RANGE_JPEG
Full range content.