FFmpeg
Functions
nvdec_h264.c File Reference
#include "config_components.h"
#include <stdint.h>
#include <string.h>
#include "libavutil/mem.h"
#include "avcodec.h"
#include "nvdec.h"
#include "decode.h"
#include "internal.h"
#include "h264dec.h"
#include "hwaccel_internal.h"

Go to the source code of this file.

Functions

static void dpb_add (const H264Context *h, CUVIDH264DPBENTRY *dst, const H264Picture *src, int frame_idx)
 
static int nvdec_h264_start_frame (AVCodecContext *avctx, const AVBufferRef *buffer_ref, const uint8_t *buffer, uint32_t size)
 
static int nvdec_h264_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int nvdec_h264_frame_params (AVCodecContext *avctx, AVBufferRef *hw_frames_ctx, enum AVPixelFormat hw_format)
 

Function Documentation

◆ dpb_add()

static void dpb_add ( const H264Context h,
CUVIDH264DPBENTRY *  dst,
const H264Picture src,
int  frame_idx 
)
static

Definition at line 36 of file nvdec_h264.c.

Referenced by nvdec_h264_start_frame().

◆ nvdec_h264_start_frame()

static int nvdec_h264_start_frame ( AVCodecContext avctx,
const AVBufferRef buffer_ref,
const uint8_t *  buffer,
uint32_t  size 
)
static

Definition at line 51 of file nvdec_h264.c.

◆ nvdec_h264_decode_slice()

static int nvdec_h264_decode_slice ( AVCodecContext avctx,
const uint8_t *  buffer,
uint32_t  size 
)
static

Definition at line 136 of file nvdec_h264.c.

◆ nvdec_h264_frame_params()

static int nvdec_h264_frame_params ( AVCodecContext avctx,
AVBufferRef hw_frames_ctx,
enum AVPixelFormat  hw_format 
)
static

Definition at line 169 of file nvdec_h264.c.