static const AVClass x##_cuvid_class = { \
 
    }; \
    AVHWAccel ff_##x##_cuvid_hwaccel = { \
        .name           = #x "_cuvid", \
        .id             = AV_CODEC_ID_##X, \
    }; \
    AVCodec ff_##x##_cuvid_decoder = { \
        .name           = #x "_cuvid", \
        .id             = AV_CODEC_ID_##X, \
        .priv_class     = &x##_cuvid_class, \
    };
static void flush(AVCodecContext *avctx)
 
#define LIBAVUTIL_VERSION_INT
 
static av_cold int init(AVCodecContext *avctx)
 
static CopyRet receive_frame(AVCodecContext *avctx, void *data, int *got_frame)
 
static void cuvid_flush(AVCodecContext *avctx)
 
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 cuvid_decode_packet(AVCodecContext *avctx, const AVPacket *avpkt)
 
static av_cold int cuvid_decode_init(AVCodecContext *avctx)
 
static av_cold int cuvid_decode_end(AVCodecContext *avctx)
 
#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 int cuvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static void send_packet(AVFormatContext *ctx, uint8_t parse_code, int info_hdr_size, const uint8_t *buf, int size, int i, int f, int rtp_m)
 
HW acceleration through CUDA. 
 
Describe the class of an AVClass context structure. 
 
static const AVOption options[]
 
static enum AVPixelFormat pix_fmts[]
 
static int cuvid_output_frame(AVCodecContext *avctx, AVFrame *frame)
 
#define AV_CODEC_CAP_AVOID_PROBING
Decoder is not a preferred choice for probing. 
 
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
 
AVPixelFormat
Pixel format.