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 (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_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 ( AVFilterContext ctx)
static

Definition at line 64 of file vf_untile.c.

◆ config_output()

static int config_output ( AVFilterLink outlink)
static

Definition at line 73 of file vf_untile.c.

◆ activate()

static int activate ( AVFilterContext ctx)
static

Definition at line 104 of file vf_untile.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 159 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 166 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 174 of file vf_untile.c.

w
uint8_t w
Definition: llviddspenc.c:38
FILTER_QUERY_FUNC
#define FILTER_QUERY_FUNC(func)
Definition: internal.h:159
FLAGS
#define FLAGS
Definition: vf_untile.c:41
untile_outputs
static const AVFilterPad untile_outputs[]
Definition: vf_untile.c:166
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
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
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:245
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: vf_untile.c:159
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:106
activate
static int activate(AVFilterContext *ctx)
Definition: vf_untile.c:104
config_output
static int config_output(AVFilterLink *outlink)
Definition: vf_untile.c:73
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: vf_untile.c:64
OFFSET
#define OFFSET(x)
Definition: vf_untile.c:40
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183