FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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)
 
int hw_device_init_from_string (const char *arg, HWDevice **dev_out)
 
void hw_device_free_all (void)
 
static enum AVHWDeviceType hw_device_match_type_by_hwaccel (enum HWAccelID hwaccel_id)
 
static enum AVHWDeviceType hw_device_match_type_in_name (const char *codec_name)
 
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

static HWDevice* hw_device_get_by_type ( enum AVHWDeviceType  type)
static

Definition at line 28 of file ffmpeg_hw.c.

Referenced by hw_device_setup_for_decode(), and hw_device_setup_for_encode().

HWDevice* hw_device_get_by_name ( const char *  name)
static HWDevice* hw_device_add ( void  )
static

Definition at line 52 of file ffmpeg_hw.c.

Referenced by hw_device_init_from_string().

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

Definition at line 67 of file ffmpeg_hw.c.

Referenced by hw_device_setup_for_decode(), and opt_init_hw_device().

void hw_device_free_all ( void  )

Definition at line 217 of file ffmpeg_hw.c.

Referenced by transcode().

static enum AVHWDeviceType hw_device_match_type_by_hwaccel ( enum HWAccelID  hwaccel_id)
static

Definition at line 229 of file ffmpeg_hw.c.

Referenced by hw_device_setup_for_decode().

static enum AVHWDeviceType hw_device_match_type_in_name ( const char *  codec_name)
static

Definition at line 241 of file ffmpeg_hw.c.

Referenced by hw_device_setup_for_decode(), and hw_device_setup_for_encode().

int hw_device_setup_for_decode ( InputStream ist)

Definition at line 255 of file ffmpeg_hw.c.

Referenced by init_input_stream().

int hw_device_setup_for_encode ( OutputStream ost)

Definition at line 312 of file ffmpeg_hw.c.

Referenced by init_output_stream().

static int hwaccel_retrieve_data ( AVCodecContext avctx,
AVFrame input 
)
static

Definition at line 336 of file ffmpeg_hw.c.

Referenced by hwaccel_decode_init().

int hwaccel_decode_init ( AVCodecContext avctx)

Definition at line 378 of file ffmpeg_hw.c.

Variable Documentation

int nb_hw_devices
static
HWDevice** hw_devices
static

Definition at line 26 of file ffmpeg_hw.c.