FFmpeg
Data Structures | Macros | Functions | Variables
vf_untile.c File Reference
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "filters.h"

Go to the source code of this file.

Data Structures

struct  UntileContext
 

Macros

#define OFFSET(x)   offsetof(UntileContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (untile)
 
static av_cold int init (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int activate (AVFilterContext *ctx)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVOption untile_options []
 
static const AVFilterPad untile_inputs []
 
static const AVFilterPad untile_outputs []
 
const AVFilter ff_vf_untile
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 39 of file vf_untile.c.

◆ FLAGS

Definition at line 40 of file vf_untile.c.

Function Documentation

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( untile  )

◆ init()

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 50 of file vf_untile.c.

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 63 of file vf_untile.c.

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 72 of file vf_untile.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 103 of file vf_untile.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 158 of file vf_untile.c.

Variable Documentation

◆ untile_options

const AVOption untile_options[]
static
Initial value:
= {
{ "layout", "set grid size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE,
{.str = "6x5"}, 0, 0, FLAGS },
{ NULL }
}

Definition at line 42 of file vf_untile.c.

◆ untile_inputs

const AVFilterPad untile_inputs[]
static
Initial value:
= {
{
.name = "default",
},
}

Definition at line 165 of file vf_untile.c.

◆ untile_outputs

const AVFilterPad untile_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
}

Definition at line 172 of file vf_untile.c.

◆ ff_vf_untile

const AVFilter ff_vf_untile
Initial value:
= {
.name = "untile",
.description = NULL_IF_CONFIG_SMALL("Untile a frame into a sequence of frames."),
.init = init,
.uninit = uninit,
.activate = activate,
.priv_size = sizeof(UntileContext),
.priv_class = &untile_class,
}

Definition at line 180 of file vf_untile.c.

w
uint8_t w
Definition: llviddspenc.c:38
FILTER_QUERY_FUNC
#define FILTER_QUERY_FUNC(func)
Definition: internal.h:168
FLAGS
#define FLAGS
Definition: vf_untile.c:40
untile_outputs
static const AVFilterPad untile_outputs[]
Definition: vf_untile.c:172
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_untile.c:50
untile_inputs
static const AVFilterPad untile_inputs[]
Definition: vf_untile.c:165
UntileContext
Definition: vf_untile.c:28
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:191
NULL
#define NULL
Definition: coverity.c:32
AV_OPT_TYPE_IMAGE_SIZE
@ AV_OPT_TYPE_IMAGE_SIZE
offset must point to two consecutive integers
Definition: opt.h:234
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_untile.c:158
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
activate
static int activate(AVFilterContext *ctx)
Definition: vf_untile.c:103
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_untile.c:72
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_untile.c:63
OFFSET
#define OFFSET(x)
Definition: vf_untile.c:39
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:192