FFmpeg
Functions | Variables
ffmpeg_hw.c File Reference
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/pixdesc.h"
#include "libavfilter/buffersink.h"
#include "ffmpeg.h"

Go to the source code of this file.

Functions

HWDevicehw_device_get_by_type (enum AVHWDeviceType type)
 
HWDevicehw_device_get_by_name (const char *name)
 
static HWDevicehw_device_add (void)
 
static char * hw_device_default_name (enum AVHWDeviceType type)
 
int hw_device_init_from_string (const char *arg, HWDevice **dev_out)
 
int hw_device_init_from_type (enum AVHWDeviceType type, const char *device, HWDevice **dev_out)
 
void hw_device_free_all (void)
 
int hwaccel_retrieve_data (AVCodecContext *avctx, AVFrame *input)
 
AVBufferRefhw_device_for_filter (void)
 Get a hardware device to be used with this filtergraph. More...
 

Variables

static int nb_hw_devices
 
static HWDevice ** hw_devices
 

Function Documentation

◆ hw_device_get_by_type()

HWDevice* hw_device_get_by_type ( enum AVHWDeviceType  type)

◆ hw_device_get_by_name()

HWDevice* hw_device_get_by_name ( const char *  name)

◆ hw_device_add()

static HWDevice* hw_device_add ( void  )
static

Definition at line 54 of file ffmpeg_hw.c.

Referenced by hw_device_init_from_string(), and hw_device_init_from_type().

◆ hw_device_default_name()

static char* hw_device_default_name ( enum AVHWDeviceType  type)
static

Definition at line 69 of file ffmpeg_hw.c.

Referenced by hw_device_init_from_string(), and hw_device_init_from_type().

◆ hw_device_init_from_string()

int hw_device_init_from_string ( const char *  arg,
HWDevice **  dev_out 
)

Definition at line 94 of file ffmpeg_hw.c.

Referenced by opt_init_hw_device().

◆ hw_device_init_from_type()

int hw_device_init_from_type ( enum AVHWDeviceType  type,
const char *  device,
HWDevice **  dev_out 
)

Definition at line 245 of file ffmpeg_hw.c.

Referenced by hw_device_setup_for_decode().

◆ hw_device_free_all()

void hw_device_free_all ( void  )

Definition at line 288 of file ffmpeg_hw.c.

Referenced by ffmpeg_cleanup().

◆ hwaccel_retrieve_data()

int hwaccel_retrieve_data ( AVCodecContext avctx,
AVFrame input 
)

Definition at line 300 of file ffmpeg_hw.c.

Referenced by video_frame_process().

◆ hw_device_for_filter()

AVBufferRef* hw_device_for_filter ( void  )

Get a hardware device to be used with this filtergraph.

The returned reference is owned by the callee, the caller must ref it explicitly for long-term use.

Definition at line 342 of file ffmpeg_hw.c.

Referenced by configure_filtergraph().

Variable Documentation

◆ nb_hw_devices

int nb_hw_devices
static

◆ hw_devices

HWDevice** hw_devices
static