FFmpeg
Functions | Variables
hwdevice.c File Reference
#include <stdio.h>
#include "libavutil/hwcontext.h"

Go to the source code of this file.

Functions

static int test_derivation (AVBufferRef *src_ref, const char *src_name)
 
static int test_device (enum AVHWDeviceType type, const char *name, const char *device, AVDictionary *opts, int flags)
 
static int test_device_type (enum AVHWDeviceType type)
 
int main (void)
 

Variables

struct {
   enum AVHWDeviceType   type
 
   const char *   possible_devices [5]
 
test_devices []
 

Function Documentation

◆ test_derivation()

static int test_derivation ( AVBufferRef src_ref,
const char *  src_name 
)
static

Definition at line 23 of file hwdevice.c.

Referenced by test_device().

◆ test_device()

static int test_device ( enum AVHWDeviceType  type,
const char *  name,
const char *  device,
AVDictionary opts,
int  flags 
)
static

Definition at line 97 of file hwdevice.c.

Referenced by test_device_type().

◆ test_device_type()

static int test_device_type ( enum AVHWDeviceType  type)
static

Definition at line 148 of file hwdevice.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 203 of file hwdevice.c.

Variable Documentation

◆ type

enum AVHWDeviceType type

Definition at line 128 of file hwdevice.c.

Referenced by main(), test_device(), and test_device_type().

◆ possible_devices

const char* possible_devices[5]

Definition at line 129 of file hwdevice.c.

Referenced by test_device_type().

◆ test_devices

const { ... } test_devices[]
Initial value:
= {
{ "0", "1", "2" } },
{ "/dev/dri/card0", "/dev/dri/card1",
"/dev/dri/renderD128", "/dev/dri/renderD129" } },
{ "0", "1", "2" } },
{ "0", "1", "2" } },
{ "0", "1", "2" } },
{ "0.0", "0.1", "1.0", "1.1" } },
{ "/dev/dri/renderD128", "/dev/dri/renderD129", ":0", "0", "1" } },
}

Referenced by test_device_type().

AV_HWDEVICE_TYPE_CUDA
@ AV_HWDEVICE_TYPE_CUDA
Definition: hwcontext.h:30
AV_HWDEVICE_TYPE_D3D11VA
@ AV_HWDEVICE_TYPE_D3D11VA
Definition: hwcontext.h:35
AV_HWDEVICE_TYPE_DXVA2
@ AV_HWDEVICE_TYPE_DXVA2
Definition: hwcontext.h:32
AV_HWDEVICE_TYPE_D3D12VA
@ AV_HWDEVICE_TYPE_D3D12VA
Definition: hwcontext.h:40
AV_HWDEVICE_TYPE_OPENCL
@ AV_HWDEVICE_TYPE_OPENCL
Definition: hwcontext.h:37
AV_HWDEVICE_TYPE_VAAPI
@ AV_HWDEVICE_TYPE_VAAPI
Definition: hwcontext.h:31
AV_HWDEVICE_TYPE_DRM
@ AV_HWDEVICE_TYPE_DRM
Definition: hwcontext.h:36