FFmpeg
Data Structures | Macros | Functions
d3d12va_h264.c File Reference
#include "config_components.h"
#include "libavutil/avassert.h"
#include "h264dec.h"
#include "h264data.h"
#include "h264_ps.h"
#include "mpegutils.h"
#include "dxva2_internal.h"
#include "d3d12va_decode.h"
#include "libavutil/hwcontext_d3d12va_internal.h"
#include <dxva.h>

Go to the source code of this file.

Data Structures

struct  H264DecodePictureContext
 

Macros

#define START_CODE   65536
 
#define START_CODE_SIZE   3
 

Functions

static void fill_slice_short (DXVA_Slice_H264_Short *slice, unsigned position, unsigned size)
 
static int d3d12va_h264_start_frame (AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
 
static int d3d12va_h264_decode_slice (AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
 
static int update_input_arguments (AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *input_args, ID3D12Resource *buffer)
 
static int d3d12va_h264_end_frame (AVCodecContext *avctx)
 
static int d3d12va_h264_decode_init (AVCodecContext *avctx)
 

Macro Definition Documentation

◆ START_CODE

#define START_CODE   65536

Definition at line 103 of file d3d12va_h264.c.

◆ START_CODE_SIZE

#define START_CODE_SIZE   3

Definition at line 104 of file d3d12va_h264.c.

Function Documentation

◆ fill_slice_short()

static void fill_slice_short ( DXVA_Slice_H264_Short *  slice,
unsigned  position,
unsigned  size 
)
static

Definition at line 43 of file d3d12va_h264.c.

Referenced by d3d12va_h264_decode_slice().

◆ d3d12va_h264_start_frame()

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

Definition at line 52 of file d3d12va_h264.c.

◆ d3d12va_h264_decode_slice()

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

Definition at line 78 of file d3d12va_h264.c.

◆ update_input_arguments()

static int update_input_arguments ( AVCodecContext avctx,
D3D12_VIDEO_DECODE_INPUT_STREAM_ARGUMENTS *  input_args,
ID3D12Resource *  buffer 
)
static

Definition at line 105 of file d3d12va_h264.c.

Referenced by d3d12va_h264_end_frame().

◆ d3d12va_h264_end_frame()

static int d3d12va_h264_end_frame ( AVCodecContext avctx)
static

Definition at line 155 of file d3d12va_h264.c.

◆ d3d12va_h264_decode_init()

static int d3d12va_h264_decode_init ( AVCodecContext avctx)
static

Definition at line 176 of file d3d12va_h264.c.