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 []
 
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 77 of file vf_untile.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 108 of file vf_untile.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 163 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",
},
{ NULL }
}

Definition at line 170 of file vf_untile.c.

◆ untile_outputs

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

Definition at line 178 of file vf_untile.c.

◆ ff_vf_untile

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,
.query_formats = query_formats,
.activate = activate,
.priv_size = sizeof(UntileContext),
.priv_class = &untile_class,
}

Definition at line 187 of file vf_untile.c.

w
uint8_t w
Definition: llviddspenc.c:39
FLAGS
#define FLAGS
Definition: vf_untile.c:40
untile_outputs
static const AVFilterPad untile_outputs[]
Definition: vf_untile.c:178
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_untile.c:50
untile_inputs
static const AVFilterPad untile_inputs[]
Definition: vf_untile.c:170
UntileContext
Definition: vf_untile.c:28
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
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:235
inputs
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:243
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_untile.c:163
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:108
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_untile.c:77
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