#include "config.h"
#include "config_components.h"
#include <stdatomic.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/error.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_cuda_internal.h"
#include "libavutil/cuda_check.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.h"
#include "avcodec.h"
#include "decode.h"
#include "nvdec.h"
#include "internal.h"
#include "libavutil/refstruct.h"
Go to the source code of this file.
|
| static int | map_avcodec_id (enum AVCodecID id) |
| |
| static int | map_chroma_format (enum AVPixelFormat pix_fmt) |
| |
| static int | nvdec_test_capabilities (NVDECDecoder *decoder, CUVIDDECODECREATEINFO *params, void *logctx) |
| |
| static void | nvdec_decoder_free (AVRefStructOpaque unused, void *obj) |
| |
| static int | nvdec_decoder_create (NVDECDecoder **out, AVBufferRef *hw_device_ref, CUVIDDECODECREATEINFO *params, void *logctx) |
| |
| static int | nvdec_decoder_frame_init (AVRefStructOpaque opaque, void *obj) |
| |
| static void | nvdec_decoder_frame_pool_free (AVRefStructOpaque opaque) |
| |
| int | ff_nvdec_decode_uninit (AVCodecContext *avctx) |
| |
| static void | nvdec_free_dummy (struct AVHWFramesContext *ctx) |
| |
| static AVBufferRef * | nvdec_alloc_dummy (size_t size) |
| |
| static int | nvdec_init_hwframes (AVCodecContext *avctx, AVBufferRef **out_frames_ref, int dummy) |
| |
| int | ff_nvdec_decode_init (AVCodecContext *avctx) |
| |
| static void | nvdec_fdd_priv_free (void *priv) |
| |
| static void | nvdec_unmap_mapped_frame (void *opaque, uint8_t *data) |
| |
| static int | nvdec_retrieve_data (void *logctx, AVFrame *frame) |
| |
| int | ff_nvdec_start_frame (AVCodecContext *avctx, AVFrame *frame) |
| |
| int | ff_nvdec_start_frame_sep_ref (AVCodecContext *avctx, AVFrame *frame, int has_sep_ref) |
| |
| int | ff_nvdec_end_frame (AVCodecContext *avctx) |
| |
| int | ff_nvdec_simple_end_frame (AVCodecContext *avctx) |
| |
| int | ff_nvdec_simple_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) |
| |
| int | ff_nvdec_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, enum AVPixelFormat hw_format, int dpb_size, int supports_444) |
| |
| int | ff_nvdec_get_ref_idx (AVFrame *frame) |
| |
◆ cudaVideoSurfaceFormat_YUV444
| #define cudaVideoSurfaceFormat_YUV444 2 |
◆ cudaVideoSurfaceFormat_YUV444_16Bit
| #define cudaVideoSurfaceFormat_YUV444_16Bit 3 |
◆ CHECK_CU
◆ map_avcodec_id()
| static int map_avcodec_id |
( |
enum AVCodecID |
id | ) |
|
|
static |
◆ map_chroma_format()
◆ nvdec_test_capabilities()
| static int nvdec_test_capabilities |
( |
NVDECDecoder * |
decoder, |
|
|
CUVIDDECODECREATEINFO * |
params, |
|
|
void * |
logctx |
|
) |
| |
|
static |
◆ nvdec_decoder_free()
◆ nvdec_decoder_create()
| static int nvdec_decoder_create |
( |
NVDECDecoder ** |
out, |
|
|
AVBufferRef * |
hw_device_ref, |
|
|
CUVIDDECODECREATEINFO * |
params, |
|
|
void * |
logctx |
|
) |
| |
|
static |
◆ nvdec_decoder_frame_init()
◆ nvdec_decoder_frame_pool_free()
◆ ff_nvdec_decode_uninit()
◆ nvdec_free_dummy()
◆ nvdec_alloc_dummy()
◆ nvdec_init_hwframes()
◆ ff_nvdec_decode_init()
◆ nvdec_fdd_priv_free()
| static void nvdec_fdd_priv_free |
( |
void * |
priv | ) |
|
|
static |
◆ nvdec_unmap_mapped_frame()
| static void nvdec_unmap_mapped_frame |
( |
void * |
opaque, |
|
|
uint8_t * |
data |
|
) |
| |
|
static |
◆ nvdec_retrieve_data()
| static int nvdec_retrieve_data |
( |
void * |
logctx, |
|
|
AVFrame * |
frame |
|
) |
| |
|
static |
◆ ff_nvdec_start_frame()
◆ ff_nvdec_start_frame_sep_ref()
◆ ff_nvdec_end_frame()
◆ ff_nvdec_simple_end_frame()
◆ ff_nvdec_simple_decode_slice()
| int ff_nvdec_simple_decode_slice |
( |
AVCodecContext * |
avctx, |
|
|
const uint8_t * |
buffer, |
|
|
uint32_t |
size |
|
) |
| |
◆ ff_nvdec_frame_params()
◆ ff_nvdec_get_ref_idx()
| int ff_nvdec_get_ref_idx |
( |
AVFrame * |
frame | ) |
|