vf_alphaextract.c File Reference

simple channel-swapping filter to get at the alpha component More...

#include <string.h>
#include "libavutil/pixfmt.h"
#include "avfilter.h"
#include "drawutils.h"
#include "internal.h"
#include "formats.h"
#include "video.h"
Include dependency graph for vf_alphaextract.c:

Go to the source code of this file.

Data Structures

struct  AlphaExtractContext
 

Enumerations

enum  { Y, U, V, A }
 

Functions

static int query_formats (AVFilterContext *ctx)
 
static int config_input (AVFilterLink *inlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *cur_buf)
 

Variables

static const AVFilterPad alphaextract_inputs []
 
static const AVFilterPad alphaextract_outputs []
 
AVFilter avfilter_vf_alphaextract
 

Detailed Description

simple channel-swapping filter to get at the alpha component

Definition in file vf_alphaextract.c.

Enumeration Type Documentation

anonymous enum
Enumerator

Definition at line 35 of file vf_alphaextract.c.

Function Documentation

static int config_input ( AVFilterLink inlink)
static

Definition at line 55 of file vf_alphaextract.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame cur_buf 
)
static

Definition at line 63 of file vf_alphaextract.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 42 of file vf_alphaextract.c.

Variable Documentation

const AVFilterPad alphaextract_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
},
{ NULL }
}
static int config_input(AVFilterLink *inlink)
NULL
Definition: eval.c:55
static int filter_frame(AVFilterLink *inlink, AVFrame *cur_buf)

Definition at line 105 of file vf_alphaextract.c.

const AVFilterPad alphaextract_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
NULL
Definition: eval.c:55

Definition at line 115 of file vf_alphaextract.c.

AVFilter avfilter_vf_alphaextract
Initial value:
= {
.name = "alphaextract",
.description = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a "
"grayscale image component."),
.priv_size = sizeof(AlphaExtractContext),
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad alphaextract_outputs[]
static const AVFilterPad alphaextract_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 at line 123 of file vf_alphaextract.c.