FFmpeg
4.0
|
#include "compat/cuda/dynlink_loader.h"
#include "libavutil/buffer.h"
#include "libavutil/mathematics.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_cuda_internal.h"
#include "libavutil/fifo.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "decode.h"
#include "hwaccel.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | CuvidContext |
struct | CuvidParsedFrame |
Macros | |
#define | CHECK_CU(x) check_cu(avctx, (x), #x) |
#define | OFFSET(x) offsetof(CuvidContext, x) |
#define | VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
#define | DEFINE_CUVID_CODEC(x, X) |
Functions | |
static int | check_cu (AVCodecContext *avctx, CUresult err, const char *func) |
static int CUDAAPI | cuvid_handle_video_sequence (void *opaque, CUVIDEOFORMAT *format) |
static int CUDAAPI | cuvid_handle_picture_decode (void *opaque, CUVIDPICPARAMS *picparams) |
static int CUDAAPI | cuvid_handle_picture_display (void *opaque, CUVIDPARSERDISPINFO *dispinfo) |
static int | cuvid_is_buffer_full (AVCodecContext *avctx) |
static int | cuvid_decode_packet (AVCodecContext *avctx, const AVPacket *avpkt) |
static int | cuvid_output_frame (AVCodecContext *avctx, AVFrame *frame) |
static int | cuvid_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | cuvid_decode_end (AVCodecContext *avctx) |
static int | cuvid_test_capabilities (AVCodecContext *avctx, const CUVIDPARSERPARAMS *cuparseinfo, int probed_width, int probed_height, int bit_depth) |
static av_cold int | cuvid_decode_init (AVCodecContext *avctx) |
static void | cuvid_flush (AVCodecContext *avctx) |
Variables | |
static const AVOption | options [] |
static const AVCodecHWConfigInternal * | cuvid_hw_configs [] |
#define CHECK_CU | ( | x | ) | check_cu(avctx, (x), #x) |
Definition at line 120 of file cuviddec.c.
Referenced by cuvid_decode_init(), cuvid_handle_picture_decode(), cuvid_output_frame(), and cuvid_test_capabilities().
#define OFFSET | ( | x | ) | offsetof(CuvidContext, x) |
Definition at line 1096 of file cuviddec.c.
#define VD AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 1097 of file cuviddec.c.
Referenced by decode_flush().
#define DEFINE_CUVID_CODEC | ( | x, | |
X | |||
) |
Definition at line 1124 of file cuviddec.c.
|
static |
Definition at line 98 of file cuviddec.c.
Definition at line 122 of file cuviddec.c.
Referenced by cuvid_decode_init().
Definition at line 338 of file cuviddec.c.
Referenced by cuvid_decode_init().
|
static |
Definition at line 354 of file cuviddec.c.
Referenced by cuvid_decode_init().
|
static |
Definition at line 377 of file cuviddec.c.
Referenced by cuvid_output_frame().
|
static |
Definition at line 384 of file cuviddec.c.
Referenced by cuvid_decode_frame(), and cuvid_output_frame().
|
static |
Definition at line 474 of file cuviddec.c.
Referenced by cuvid_decode_frame().
|
static |
Definition at line 650 of file cuviddec.c.
|
static |
Definition at line 681 of file cuviddec.c.
Referenced by cuvid_decode_init().
|
static |
Definition at line 708 of file cuviddec.c.
Referenced by cuvid_decode_init().
|
static |
Definition at line 796 of file cuviddec.c.
|
static |
Definition at line 1040 of file cuviddec.c.
|
static |
Definition at line 1098 of file cuviddec.c.
|
static |
Definition at line 1111 of file cuviddec.c.