FFmpeg
Data Structures | Macros | Functions | Variables
opt.c File Reference
#include <limits.h>
#include <stdio.h>
#include "libavutil/common.h"
#include "libavutil/channel_layout.h"
#include "libavutil/error.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/rational.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"

Go to the source code of this file.

Data Structures

struct  TestContext
 

Macros

#define OFFSET(x)   offsetof(TestContext, x)
 
#define TEST_FLAG_COOL   01
 
#define TEST_FLAG_LAME   02
 
#define TEST_FLAG_MU   04
 

Functions

static const char * test_get_name (void *ctx)
 
static void log_callback_help (void *ptr, int level, const char *fmt, va_list vl)
 
int main (void)
 

Variables

static const AVOptionArrayDef array_str
 
static const AVOptionArrayDef array_dict
 
static const AVOption test_options []
 
static const AVClass test_class
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(TestContext, x)

Definition at line 71 of file opt.c.

◆ TEST_FLAG_COOL

#define TEST_FLAG_COOL   01

Definition at line 73 of file opt.c.

◆ TEST_FLAG_LAME

#define TEST_FLAG_LAME   02

Definition at line 74 of file opt.c.

◆ TEST_FLAG_MU

#define TEST_FLAG_MU   04

Definition at line 75 of file opt.c.

Function Documentation

◆ test_get_name()

static const char* test_get_name ( void *  ctx)
static

Definition at line 121 of file opt.c.

◆ log_callback_help()

static void log_callback_help ( void *  ptr,
int  level,
const char *  fmt,
va_list  vl 
)
static

Definition at line 133 of file opt.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 138 of file opt.c.

Variable Documentation

◆ array_str

const AVOptionArrayDef array_str
static
Initial value:
= {
.sep = '|',
.def = "str0|str\\|1|str\\\\2",
}

Definition at line 77 of file opt.c.

◆ array_dict

const AVOptionArrayDef array_dict
static
Initial value:
= {
.def = "k00=v\\\\\\\\00:k01=v\\,01,k10=v\\\\=1\\\\:0",
}

Definition at line 82 of file opt.c.

◆ test_options

const AVOption test_options[]
static

Definition at line 87 of file opt.c.

◆ test_class

const AVClass test_class
static
Initial value:
= {
.class_name = "TestContext",
.item_name = test_get_name,
.option = test_options,
}

Definition at line 126 of file opt.c.

Referenced by main().

test_get_name
static const char * test_get_name(void *ctx)
Definition: opt.c:121
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
test_options
static const AVOption test_options[]
Definition: opt.c:87