FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
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"

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, AVFilterBufferRef *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:
Y 
U 
V 
A 

Definition at line 35 of file vf_alphaextract.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)
static

Definition at line 42 of file vf_alphaextract.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 55 of file vf_alphaextract.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef cur_buf 
)
static

Definition at line 63 of file vf_alphaextract.c.

Variable Documentation

const AVFilterPad alphaextract_inputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
.min_perms = AV_PERM_READ,
},
{ NULL }
}

Definition at line 106 of file vf_alphaextract.c.

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

Definition at line 117 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),
}

Definition at line 125 of file vf_alphaextract.c.