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

Go to the source code of this file.

Functions

static 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)
 
static int hw_device_init_from_type (enum AVHWDeviceType type, const char *device, HWDevice **dev_out)
 
void hw_device_free_all (void)
 
static HWDevicehw_device_match_by_codec (const AVCodec *codec)
 
int hw_device_setup_for_decode (InputStream *ist)
 
int hw_device_setup_for_encode (OutputStream *ost)
 
static int hwaccel_retrieve_data (AVCodecContext *avctx, AVFrame *input)
 
int hwaccel_decode_init (AVCodecContext *avctx)
 

Variables

static int nb_hw_devices
 
static HWDevice ** hw_devices
 

Function Documentation

◆ hw_device_get_by_type()

static HWDevice* hw_device_get_by_type ( enum AVHWDeviceType  type)
static

Definition at line 28 of file ffmpeg_hw.c.

Referenced by hw_device_match_by_codec(), and hw_device_setup_for_decode().

◆ 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 52 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 67 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 92 of file ffmpeg_hw.c.

Referenced by opt_init_hw_device().

◆ hw_device_init_from_type()

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

Definition at line 229 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 272 of file ffmpeg_hw.c.

Referenced by transcode().

◆ hw_device_match_by_codec()

static HWDevice* hw_device_match_by_codec ( const AVCodec codec)
static

Definition at line 284 of file ffmpeg_hw.c.

Referenced by hw_device_setup_for_decode(), and hw_device_setup_for_encode().

◆ hw_device_setup_for_decode()

int hw_device_setup_for_decode ( InputStream ist)

Definition at line 301 of file ffmpeg_hw.c.

Referenced by init_input_stream().

◆ hw_device_setup_for_encode()

int hw_device_setup_for_encode ( OutputStream ost)

Definition at line 417 of file ffmpeg_hw.c.

Referenced by init_output_stream().

◆ hwaccel_retrieve_data()

static int hwaccel_retrieve_data ( AVCodecContext avctx,
AVFrame input 
)
static

Definition at line 433 of file ffmpeg_hw.c.

Referenced by hwaccel_decode_init().

◆ hwaccel_decode_init()

int hwaccel_decode_init ( AVCodecContext avctx)

Definition at line 475 of file ffmpeg_hw.c.

Referenced by get_format().

Variable Documentation

◆ nb_hw_devices

int nb_hw_devices
static

◆ hw_devices

HWDevice** hw_devices
static