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"
#include "video.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 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
 
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_outputs []
 
const AVFilter ff_vf_untile
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 40 of file vf_untile.c.

◆ FLAGS

Definition at line 41 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 51 of file vf_untile.c.

◆ query_formats()

static int query_formats ( const AVFilterContext ctx,
AVFilterFormatsConfig **  cfg_in,
AVFilterFormatsConfig **  cfg_out 
)
static

Definition at line 64 of file vf_untile.c.

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 76 of file vf_untile.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 109 of file vf_untile.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 164 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 43 of file vf_untile.c.

◆ untile_outputs

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

Definition at line 171 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 179 of file vf_untile.c.

FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
w
uint8_t w
Definition: llviddspenc.c:38
FLAGS
#define FLAGS
Definition: vf_untile.c:41
untile_outputs
static const AVFilterPad untile_outputs[]
Definition: vf_untile.c:171
init
static av_cold int init(AVFilterContext *ctx)
Definition: vf_untile.c:51
UntileContext
Definition: vf_untile.c:29
ff_video_default_filterpad
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition: video.c:37
query_formats
static int query_formats(const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out)
Definition: vf_untile.c:64
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
NULL
#define NULL
Definition: coverity.c:32
AV_OPT_TYPE_IMAGE_SIZE
@ AV_OPT_TYPE_IMAGE_SIZE
Underlying C type is two consecutive integers.
Definition: opt.h:303
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_untile.c:164
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:94
activate
static int activate(AVFilterContext *ctx)
Definition: vf_untile.c:109
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_untile.c:76
FILTER_QUERY_FUNC2
#define FILTER_QUERY_FUNC2(func)
Definition: filters.h:239
OFFSET
#define OFFSET(x)
Definition: vf_untile.c:40
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201