static const AVClass x##_cuvid_class = { \
}; \
AVCodec ff_##x##_cuvid_decoder = { \
.name = #x "_cuvid", \
.id = AV_CODEC_ID_##X, \
.priv_class = &x##_cuvid_class, \
.wrapper_name = "cuvid", \
};
static void flush(AVCodecContext *avctx)
static av_cold int cuvid_decode_init(AVCodecContext *avctx)
#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 av_cold int cuvid_decode_end(AVCodecContext *avctx)
static CopyRet receive_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame)
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
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...
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
static void cuvid_flush(AVCodecContext *avctx)
static int cuvid_output_frame(AVCodecContext *avctx, AVFrame *frame)
HW acceleration through CUDA.
static int cuvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static const AVOption options[]
static const AVCodecHWConfigInternal * cuvid_hw_configs[]
Describe the class of an AVClass context structure.
static enum AVPixelFormat pix_fmts[]
#define AV_CODEC_CAP_AVOID_PROBING
Decoder is not a preferred choice for probing.
AVPixelFormat
Pixel format.