static const AVClass v4l2_m2m_ ## NAME ## _dec_class = {\
};\
\
AVCodec ff_ ## NAME ## _v4l2m2m_decoder = { \
.name = #NAME "_v4l2m2m" ,\
.id = CODEC ,\
.priv_class = &v4l2_m2m_ ## NAME ## _dec_class,\
.bsfs = bsf_name, \
.wrapper_name = "v4l2m2m", \
};
static const AVOption options[]
#define LIBAVUTIL_VERSION_INT
static av_cold int init(AVCodecContext *avctx)
#define AV_CODEC_CAP_HARDWARE
Codec is backed by a hardware implementation.
const char * av_default_item_name(void *ptr)
Return the context name.
static CopyRet receive_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame)
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 AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
static int v4l2_receive_frame(AVCodecContext *avctx, AVFrame *frame)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int ff_v4l2_m2m_codec_end(AVCodecContext *avctx)
Releases all the codec resources if all AVBufferRefs have been returned to the ctx.
Describe the class of an AVClass context structure.
static av_cold int v4l2_decode_init(AVCodecContext *avctx)