FFmpeg
|
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 | |
---|---|
Y | |
U | |
V | |
A |
Definition at line 35 of file vf_alphaextract.c.
Function Documentation
|
static |
Definition at line 55 of file vf_alphaextract.c.
|
static |
Definition at line 63 of file vf_alphaextract.c.
|
static |
Definition at line 42 of file vf_alphaextract.c.
Variable Documentation
|
static |
Initial value:
= {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.config_props = config_input,
.filter_frame = filter_frame,
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *cur_buf)
Definition: vf_alphaextract.c:63
Definition: avutil.h:143
Definition at line 105 of file vf_alphaextract.c.
|
static |
Initial value:
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),
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
Definition: vf_alphaextract.c:37
static const AVFilterPad alphaextract_outputs[]
Definition: vf_alphaextract.c:115
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: filter_design.txt:216
Definition at line 123 of file vf_alphaextract.c.
Generated on Fri Dec 20 2024 06:56:16 for FFmpeg by 1.8.11