FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

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

Definition at line 23 of file hwdevice.c.

Referenced by 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().

static int test_device_type ( enum AVHWDeviceType  type)
static

Definition at line 146 of file hwdevice.c.

Referenced by main().

int main ( void  )

Definition at line 201 of file hwdevice.c.

Variable Documentation

Definition at line 128 of file hwdevice.c.

const char* possible_devices[5]

Definition at line 129 of file hwdevice.c.

Referenced by test_device_type().

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.0", "0.1", "1.0", "1.1" } },
{ "/dev/dri/renderD128", "/dev/dri/renderD129", ":0" } },
}

Referenced by test_device_type().