FFmpeg  4.0
Data Structures | Macros | Functions | Variables
vf_format.c File Reference

format and noformat video filters More...

#include <string.h>
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  FormatContext
 

Macros

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

Functions

static av_cold void uninit (AVFilterContext *ctx)
 
static av_cold int init (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 

Variables

static const AVOption options []
 

Detailed Description

format and noformat video filters

Definition in file vf_format.c.

Macro Definition Documentation

◆ OFFSET

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

Definition at line 141 of file vf_format.c.

Function Documentation

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 49 of file vf_format.c.

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 55 of file vf_format.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 129 of file vf_format.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "pix_fmts", "A '|'-separated list of pixel formats", OFFSET(pix_fmts), AV_OPT_TYPE_STRING, .flags = AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: vf_format.c:141
#define AV_OPT_FLAG_FILTERING_PARAM
a generic parameter which can be set by the user for filtering
Definition: opt.h:291
#define AV_OPT_FLAG_VIDEO_PARAM
Definition: opt.h:279
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:266

Definition at line 142 of file vf_format.c.