FFmpeg
Data Structures | Macros | Functions
hwaccel_internal.h File Reference
#include <stdint.h>
#include "avcodec.h"
#include "refstruct.h"

Go to the source code of this file.

Data Structures

struct  FFHWAccel
 

Macros

#define HWACCEL_CAP_ASYNC_SAFE   (1 << 0)
 Header providing the internals of AVHWAccel. More...
 
#define HWACCEL_CAP_THREAD_SAFE   (1 << 1)
 
#define FF_HW_CALL(avctx, function, ...)   (ffhwaccel((avctx)->hwaccel)->function((avctx), __VA_ARGS__))
 
#define FF_HW_SIMPLE_CALL(avctx, function)   (ffhwaccel((avctx)->hwaccel)->function(avctx))
 
#define FF_HW_HAS_CB(avctx, function)   ((avctx)->hwaccel && ffhwaccel((avctx)->hwaccel)->function)
 

Functions

static const FFHWAccelffhwaccel (const AVHWAccel *codec)
 

Macro Definition Documentation

◆ HWACCEL_CAP_ASYNC_SAFE

#define HWACCEL_CAP_ASYNC_SAFE   (1 << 0)

Header providing the internals of AVHWAccel.

Definition at line 31 of file hwaccel_internal.h.

◆ HWACCEL_CAP_THREAD_SAFE

#define HWACCEL_CAP_THREAD_SAFE   (1 << 1)

Definition at line 32 of file hwaccel_internal.h.

◆ FF_HW_CALL

#define FF_HW_CALL (   avctx,
  function,
  ... 
)    (ffhwaccel((avctx)->hwaccel)->function((avctx), __VA_ARGS__))

Definition at line 171 of file hwaccel_internal.h.

◆ FF_HW_SIMPLE_CALL

#define FF_HW_SIMPLE_CALL (   avctx,
  function 
)    (ffhwaccel((avctx)->hwaccel)->function(avctx))

Definition at line 174 of file hwaccel_internal.h.

◆ FF_HW_HAS_CB

#define FF_HW_HAS_CB (   avctx,
  function 
)    ((avctx)->hwaccel && ffhwaccel((avctx)->hwaccel)->function)

Definition at line 177 of file hwaccel_internal.h.

Function Documentation

◆ ffhwaccel()

static const FFHWAccel* ffhwaccel ( const AVHWAccel codec)
inlinestatic