FFmpeg
|
vf_alphamerge.c File Reference
copy an alpha component from another video's luma More...
#include <string.h>
#include "libavutil/pixfmt.h"
#include "avfilter.h"
#include "bufferqueue.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Include dependency graph for vf_alphamerge.c:
Go to the source code of this file.
Data Structures | |
struct | AlphaMergeContext |
Enumerations | |
enum | { Y, U, V, A } |
Functions | |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input_main (AVFilterLink *inlink) |
static int | config_output (AVFilterLink *outlink) |
static void | draw_frame (AVFilterContext *ctx, AVFrame *main_buf, AVFrame *alpha_buf) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *buf) |
static int | request_frame (AVFilterLink *outlink) |
Variables | |
static const AVFilterPad | alphamerge_inputs [] |
static const AVFilterPad | alphamerge_outputs [] |
AVFilter | avfilter_vf_alphamerge |
Detailed Description
copy an alpha component from another video's luma
Definition in file vf_alphamerge.c.
Enumeration Type Documentation
anonymous enum |
Enumerator | |
---|---|
Y | |
U | |
V | |
A |
Definition at line 36 of file vf_alphamerge.c.
Function Documentation
|
static |
Definition at line 69 of file vf_alphamerge.c.
|
static |
Definition at line 77 of file vf_alphamerge.c.
|
static |
Definition at line 98 of file vf_alphamerge.c.
Referenced by filter_frame().
|
static |
Definition at line 129 of file vf_alphamerge.c.
|
static |
Definition at line 53 of file vf_alphamerge.c.
|
static |
Definition at line 157 of file vf_alphamerge.c.
|
static |
Definition at line 46 of file vf_alphamerge.c.
Variable Documentation
|
static |
Initial value:
= {
{
.name = "main",
.type = AVMEDIA_TYPE_VIDEO,
.config_props = config_input_main,
.get_video_buffer = ff_null_get_video_buffer,
.filter_frame = filter_frame,
.needs_writable = 1,
},{
.name = "alpha",
.type = AVMEDIA_TYPE_VIDEO,
.filter_frame = filter_frame,
},
{ NULL }
}
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
Definition: video.c:35
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
Definition: vf_alphamerge.c:129
Definition: avutil.h:143
Definition at line 173 of file vf_alphamerge.c.
|
static |
Initial value:
= {
{
.name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.config_props = config_output,
.request_frame = request_frame,
},
{ NULL }
}
Definition: avutil.h:143
Definition at line 189 of file vf_alphamerge.c.
AVFilter avfilter_vf_alphamerge |
Initial value:
= {
.name = "alphamerge",
.description = NULL_IF_CONFIG_SMALL("Copy the luma value of the second "
"input into the alpha channel of the first input."),
.uninit = uninit,
.priv_size = sizeof(AlphaMergeContext),
}
#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_alphamerge.c:38
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 199 of file vf_alphamerge.c.
Generated on Mon Nov 18 2024 06:52:09 for FFmpeg by 1.8.11