FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
vf_showpalette.c File Reference

Display frame palette (AV_PIX_FMT_PAL8) More...

#include "libavutil/avassert.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  ShowPaletteContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (showpalette)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int disp_palette (AVFrame *out, const AVFrame *in, int size)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static const AVOption showpalette_options []
 
static const AVFilterPad showpalette_inputs []
 
static const AVFilterPad showpalette_outputs []
 
AVFilter ff_vf_showpalette
 

Detailed Description

Display frame palette (AV_PIX_FMT_PAL8)

Definition in file vf_showpalette.c.

Macro Definition Documentation

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

Definition at line 36 of file vf_showpalette.c.

Definition at line 37 of file vf_showpalette.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( showpalette  )
static int query_formats ( AVFilterContext ctx)
static

Definition at line 45 of file vf_showpalette.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 71 of file vf_showpalette.c.

static int disp_palette ( AVFrame out,
const AVFrame in,
int  size 
)
static

Definition at line 79 of file vf_showpalette.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 94 of file vf_showpalette.c.

Variable Documentation

const AVOption showpalette_options[]
static
Initial value:
= {
{ "s", "set pixel box size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=30}, 1, 100, FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
#define FLAGS
ptrdiff_t size
Definition: opengl_enc.c:101

Definition at line 38 of file vf_showpalette.c.

const AVFilterPad showpalette_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *in)

Definition at line 113 of file vf_showpalette.c.

const AVFilterPad showpalette_outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int config_output(AVFilterLink *outlink)

Definition at line 122 of file vf_showpalette.c.

AVFilter ff_vf_showpalette
Initial value:
= {
.name = "showpalette",
.description = NULL_IF_CONFIG_SMALL("Display frame palette."),
.priv_size = sizeof(ShowPaletteContext),
.priv_class = &showpalette_class,
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad showpalette_outputs[]
static const AVFilterPad inputs[]
Definition: af_acontrast.c:193
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
#define flags(name, subs,...)
Definition: cbs_av1.c:596
static const AVFilterPad showpalette_inputs[]

Definition at line 131 of file vf_showpalette.c.