libavfilter/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 "formats.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  AlphaExtractContext


enum  { Y, U, V, A }


static int query_formats (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static int draw_slice (AVFilterLink *inlink, int y0, int h, int slice_dir)


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


Definition at line 34 of file vf_alphaextract.c.

Function Documentation

static int config_input ( AVFilterLink inlink  )  [static]

Definition at line 54 of file vf_alphaextract.c.

static int draw_slice ( AVFilterLink inlink,
int  y0,
int  h,
int  slice_dir 
) [static]

Definition at line 62 of file vf_alphaextract.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 41 of file vf_alphaextract.c.

Variable Documentation

Initial value:

    .name           = "alphaextract",
    .description    = NULL_IF_CONFIG_SMALL("Extract an alpha channel as a "
                      "grayscale image component."),
    .priv_size      = sizeof(AlphaExtractContext),
    .query_formats  = query_formats,

    .inputs    = (const AVFilterPad[]) {
        { .name             = "default",
          .type             = AVMEDIA_TYPE_VIDEO,
          .config_props     = config_input,
          .draw_slice       = draw_slice,
          .min_perms        = AV_PERM_READ },
        { .name = NULL }
    .outputs   = (const AVFilterPad[]) {
      { .name               = "default",
        .type               = AVMEDIA_TYPE_VIDEO, },
      { .name = NULL }

Definition at line 97 of file vf_alphaextract.c.

Generated on Fri Oct 26 02:50:10 2012 for FFmpeg by  doxygen 1.5.8