gst-plugins-good  1.20.3
About: GStreamer (Good Plugins) is a library for constructing of graphs of media-handling components. A set of good-quality plug-ins (under LGPL license).
  Fossies Dox: gst-plugins-good-1.20.3.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gstalpha.c File Reference
#include "gstalpha.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
Include dependency graph for gstalpha.c:

Go to the source code of this file.

Macros

#define M_PI   3.14159265358979323846
 
#define DEFAULT_METHOD   ALPHA_METHOD_SET
 
#define DEFAULT_ALPHA   1.0
 
#define DEFAULT_TARGET_R   0
 
#define DEFAULT_TARGET_G   255
 
#define DEFAULT_TARGET_B   0
 
#define DEFAULT_ANGLE   20.0
 
#define DEFAULT_NOISE_LEVEL   2.0
 
#define DEFAULT_BLACK_SENSITIVITY   100
 
#define DEFAULT_WHITE_SENSITIVITY   100
 
#define DEFAULT_PREFER_PASSTHROUGH   FALSE
 
#define GST_ALPHA_LOCK(alpha)
 
#define GST_ALPHA_UNLOCK(alpha)
 
#define gst_alpha_parent_class   parent_class
 
#define GST_TYPE_ALPHA_METHOD   (gst_alpha_method_get_type())
 
#define APPLY_MATRIX(m, o, v1, v2, v3)   ((m[o*4] * v1 + m[o*4+1] * v2 + m[o*4+2] * v3 + m[o*4+3]) >> 8)
 

Enumerations

enum  { LAST_SIGNAL }
 
enum  {
  PROP_0 , PROP_METHOD , PROP_ALPHA , PROP_TARGET_R ,
  PROP_TARGET_G , PROP_TARGET_B , PROP_ANGLE , PROP_NOISE_LEVEL ,
  PROP_BLACK_SENSITIVITY , PROP_WHITE_SENSITIVITY , PROP_PREFER_PASSTHROUGH
}
 

Functions

static GstCaps * gst_alpha_transform_caps (GstBaseTransform *btrans, GstPadDirection direction, GstCaps *caps, GstCaps *filter)
 
static void gst_alpha_before_transform (GstBaseTransform *btrans, GstBuffer *buf)
 
static gboolean gst_alpha_set_info (GstVideoFilter *filter, GstCaps *incaps, GstVideoInfo *in_info, GstCaps *outcaps, GstVideoInfo *out_info)
 
static GstFlowReturn gst_alpha_transform_frame (GstVideoFilter *filter, GstVideoFrame *in_frame, GstVideoFrame *out_frame)
 
static void gst_alpha_init_params_full (GstAlpha *alpha, const GstVideoFormatInfo *in_info, const GstVideoFormatInfo *out_info)
 
static void gst_alpha_init_params (GstAlpha *alpha)
 
static void gst_alpha_set_process_function (GstAlpha *alpha)
 
static gboolean gst_alpha_set_process_function_full (GstAlpha *alpha, GstVideoInfo *in_info, GstVideoInfo *out_info)
 
static void gst_alpha_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 
static void gst_alpha_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 
static void gst_alpha_finalize (GObject *object)
 
 G_DEFINE_TYPE (GstAlpha, gst_alpha, GST_TYPE_VIDEO_FILTER)
 
 GST_ELEMENT_REGISTER_DEFINE (alpha, "alpha", GST_RANK_NONE,(gst_alpha_get_type()))
 
static GType gst_alpha_method_get_type (void)
 
static void gst_alpha_class_init (GstAlphaClass *klass)
 
static void gst_alpha_init (GstAlpha *alpha)
 
static gint chroma_keying_yuv (gint a, gint *y, gint *u, gint *v, gint cr, gint cb, gint smin, gint smax, guint8 accept_angle_tg, guint8 accept_angle_ctg, guint8 one_over_kc, guint8 kfgy_scale, gint8 kg, guint noise_level2)
 
static void gst_alpha_set_argb_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_argb_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_argb_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_argb_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_ayuv_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_ayuv_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_ayuv_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_ayuv_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_rgb_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_rgb_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_rgb_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_rgb_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_planar_yuv_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_planar_yuv_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_planar_yuv_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_planar_yuv_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_packed_422_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_packed_422_ayuv (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_set_packed_422_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static void gst_alpha_chroma_key_packed_422_argb (const GstVideoFrame *in_frame, GstVideoFrame *out_frame, GstAlpha *alpha)
 
static gboolean plugin_init (GstPlugin *plugin)
 

Variables

static const int cog_ycbcr_to_rgb_matrix_8bit_hdtv []
 
static const int cog_ycbcr_to_rgb_matrix_8bit_sdtv []
 
static const gint cog_rgb_to_ycbcr_matrix_8bit_hdtv []
 
static const gint cog_rgb_to_ycbcr_matrix_8bit_sdtv []
 
static const gint cog_ycbcr_sdtv_to_ycbcr_hdtv_matrix_8bit []
 
static const gint cog_ycbcr_hdtv_to_ycbcr_sdtv_matrix_8bit []
 
static GstStaticPadTemplate gst_alpha_src_template
 
static GstStaticPadTemplate gst_alpha_sink_template
 
static GstStaticCaps gst_alpha_alpha_caps
 

Macro Definition Documentation

◆ APPLY_MATRIX

#define APPLY_MATRIX (   m,
  o,
  v1,
  v2,
  v3 
)    ((m[o*4] * v1 + m[o*4+1] * v2 + m[o*4+2] * v3 + m[o*4+3]) >> 8)

Definition at line 623 of file gstalpha.c.

◆ DEFAULT_ALPHA

#define DEFAULT_ALPHA   1.0

Definition at line 103 of file gstalpha.c.

◆ DEFAULT_ANGLE

#define DEFAULT_ANGLE   20.0

Definition at line 107 of file gstalpha.c.

◆ DEFAULT_BLACK_SENSITIVITY

#define DEFAULT_BLACK_SENSITIVITY   100

Definition at line 109 of file gstalpha.c.

◆ DEFAULT_METHOD

#define DEFAULT_METHOD   ALPHA_METHOD_SET

Definition at line 102 of file gstalpha.c.

◆ DEFAULT_NOISE_LEVEL

#define DEFAULT_NOISE_LEVEL   2.0

Definition at line 108 of file gstalpha.c.

◆ DEFAULT_PREFER_PASSTHROUGH

#define DEFAULT_PREFER_PASSTHROUGH   FALSE

Definition at line 111 of file gstalpha.c.

◆ DEFAULT_TARGET_B

#define DEFAULT_TARGET_B   0

Definition at line 106 of file gstalpha.c.

◆ DEFAULT_TARGET_G

#define DEFAULT_TARGET_G   255

Definition at line 105 of file gstalpha.c.

◆ DEFAULT_TARGET_R

#define DEFAULT_TARGET_R   0

Definition at line 104 of file gstalpha.c.

◆ DEFAULT_WHITE_SENSITIVITY

#define DEFAULT_WHITE_SENSITIVITY   100

Definition at line 110 of file gstalpha.c.

◆ GST_ALPHA_LOCK

#define GST_ALPHA_LOCK (   alpha)
Value:
G_STMT_START { \
GST_LOG_OBJECT (alpha, "Locking alpha from thread %p", g_thread_self ()); \
g_mutex_lock (&alpha->lock); \
GST_LOG_OBJECT (alpha, "Locked alpha from thread %p", g_thread_self ()); \
} G_STMT_END

Definition at line 150 of file gstalpha.c.

◆ gst_alpha_parent_class

#define gst_alpha_parent_class   parent_class

Definition at line 185 of file gstalpha.c.

◆ GST_ALPHA_UNLOCK

#define GST_ALPHA_UNLOCK (   alpha)
Value:
G_STMT_START { \
GST_LOG_OBJECT (alpha, "Unlocking alpha from thread %p", g_thread_self ()); \
g_mutex_unlock (&alpha->lock); \
} G_STMT_END

Definition at line 156 of file gstalpha.c.

◆ GST_TYPE_ALPHA_METHOD

#define GST_TYPE_ALPHA_METHOD   (gst_alpha_method_get_type())

Definition at line 189 of file gstalpha.c.

◆ M_PI

#define M_PI   3.14159265358979323846

SECTION:element-alpha @title: alpha

The alpha element adds an alpha channel to a video stream. The values of the alpha channel can be either be set to a constant or can be dynamically calculated via chroma keying, e.g. blue can be set as the transparent color.

Sample pipeline: |[ gst-launch-1.0 videotestsrc pattern=snow ! mixer.sink_0 \ videotestsrc pattern=smpte75 ! alpha method=green ! mixer.sink_1 \ videomixer name=mixer sink_0::zorder=0 sink_1::zorder=1 ! \ videoconvert ! autovideosink ]| This pipeline adds a alpha channel to the SMPTE color bars with green as the transparent color and overlays the output on top of a snow video stream.

Definition at line 55 of file gstalpha.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LAST_SIGNAL 

Definition at line 96 of file gstalpha.c.

◆ anonymous enum

anonymous enum
Enumerator
PROP_0 
PROP_METHOD 
PROP_ALPHA 
PROP_TARGET_R 
PROP_TARGET_G 
PROP_TARGET_B 
PROP_ANGLE 
PROP_NOISE_LEVEL 
PROP_BLACK_SENSITIVITY 
PROP_WHITE_SENSITIVITY 
PROP_PREFER_PASSTHROUGH 

Definition at line 113 of file gstalpha.c.

Function Documentation

◆ chroma_keying_yuv()

static gint chroma_keying_yuv ( gint  a,
gint *  y,
gint *  u,
gint *  v,
gint  cr,
gint  cb,
gint  smin,
gint  smax,
guint8  accept_angle_tg,
guint8  accept_angle_ctg,
guint8  one_over_kc,
guint8  kfgy_scale,
gint8  kg,
guint  noise_level2 
)
inlinestatic

◆ G_DEFINE_TYPE()

G_DEFINE_TYPE ( GstAlpha  ,
gst_alpha  ,
GST_TYPE_VIDEO_FILTER   
)

◆ gst_alpha_before_transform()

static void gst_alpha_before_transform ( GstBaseTransform *  btrans,
GstBuffer *  buf 
)
static

Definition at line 2569 of file gstalpha.c.

Referenced by gst_alpha_class_init().

◆ gst_alpha_chroma_key_argb_argb()

static void gst_alpha_chroma_key_argb_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_argb_ayuv()

static void gst_alpha_chroma_key_argb_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_ayuv_argb()

static void gst_alpha_chroma_key_ayuv_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_ayuv_ayuv()

static void gst_alpha_chroma_key_ayuv_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_packed_422_argb()

static void gst_alpha_chroma_key_packed_422_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_packed_422_ayuv()

static void gst_alpha_chroma_key_packed_422_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_planar_yuv_argb()

static void gst_alpha_chroma_key_planar_yuv_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_planar_yuv_ayuv()

static void gst_alpha_chroma_key_planar_yuv_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_rgb_argb()

static void gst_alpha_chroma_key_rgb_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_chroma_key_rgb_ayuv()

static void gst_alpha_chroma_key_rgb_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_class_init()

◆ gst_alpha_finalize()

static void gst_alpha_finalize ( GObject *  object)
static

Definition at line 311 of file gstalpha.c.

References parent_class.

Referenced by gst_alpha_class_init().

◆ gst_alpha_get_property()

static void gst_alpha_get_property ( GObject *  object,
guint  prop_id,
GValue *  value,
GParamSpec *  pspec 
)
static

◆ gst_alpha_init()

static void gst_alpha_init ( GstAlpha *  alpha)
static

◆ gst_alpha_init_params()

static void gst_alpha_init_params ( GstAlpha *  alpha)
static

Definition at line 2365 of file gstalpha.c.

References gst_alpha_init_params_full().

Referenced by gst_alpha_set_property().

◆ gst_alpha_init_params_full()

static void gst_alpha_init_params_full ( GstAlpha *  alpha,
const GstVideoFormatInfo *  in_info,
const GstVideoFormatInfo *  out_info 
)
static

◆ gst_alpha_method_get_type()

static GType gst_alpha_method_get_type ( void  )
static

◆ gst_alpha_set_argb_argb()

static void gst_alpha_set_argb_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

Definition at line 741 of file gstalpha.c.

Referenced by gst_alpha_set_process_function_full().

◆ gst_alpha_set_argb_ayuv()

static void gst_alpha_set_argb_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_set_ayuv_argb()

static void gst_alpha_set_ayuv_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_set_ayuv_ayuv()

static void gst_alpha_set_ayuv_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_set_info()

static gboolean gst_alpha_set_info ( GstVideoFilter *  filter,
GstCaps *  incaps,
GstVideoInfo *  in_info,
GstCaps *  outcaps,
GstVideoInfo *  out_info 
)
static

◆ gst_alpha_set_packed_422_argb()

static void gst_alpha_set_packed_422_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_set_packed_422_ayuv()

static void gst_alpha_set_packed_422_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_set_planar_yuv_argb()

static void gst_alpha_set_planar_yuv_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_set_planar_yuv_ayuv()

static void gst_alpha_set_planar_yuv_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_set_process_function()

static void gst_alpha_set_process_function ( GstAlpha *  alpha)
static

Definition at line 2554 of file gstalpha.c.

References gst_alpha_set_process_function_full().

Referenced by gst_alpha_set_property().

◆ gst_alpha_set_process_function_full()

◆ gst_alpha_set_property()

static void gst_alpha_set_property ( GObject *  object,
guint  prop_id,
const GValue *  value,
GParamSpec *  pspec 
)
static

◆ gst_alpha_set_rgb_argb()

static void gst_alpha_set_rgb_argb ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

Definition at line 1226 of file gstalpha.c.

Referenced by gst_alpha_set_process_function_full().

◆ gst_alpha_set_rgb_ayuv()

static void gst_alpha_set_rgb_ayuv ( const GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame,
GstAlpha *  alpha 
)
static

◆ gst_alpha_transform_caps()

static GstCaps * gst_alpha_transform_caps ( GstBaseTransform *  btrans,
GstPadDirection  direction,
GstCaps *  caps,
GstCaps *  filter 
)
static

Definition at line 438 of file gstalpha.c.

References ALPHA_METHOD_SET, gst_alpha_alpha_caps, GST_ALPHA_LOCK, and GST_ALPHA_UNLOCK.

Referenced by gst_alpha_class_init().

◆ gst_alpha_transform_frame()

static GstFlowReturn gst_alpha_transform_frame ( GstVideoFilter *  filter,
GstVideoFrame *  in_frame,
GstVideoFrame *  out_frame 
)
static

Definition at line 2582 of file gstalpha.c.

References GST_ALPHA_LOCK, and GST_ALPHA_UNLOCK.

Referenced by gst_alpha_class_init().

◆ GST_ELEMENT_REGISTER_DEFINE()

GST_ELEMENT_REGISTER_DEFINE ( alpha  ,
"alpha"  ,
GST_RANK_NONE  ,
(gst_alpha_get_type())   
)

◆ plugin_init()

static gboolean plugin_init ( GstPlugin *  plugin)
static

Definition at line 2608 of file gstalpha.c.

Variable Documentation

◆ cog_rgb_to_ycbcr_matrix_8bit_hdtv

const gint cog_rgb_to_ycbcr_matrix_8bit_hdtv[]
static
Initial value:
= {
47, 157, 16, 4096,
-26, -87, 112, 32768,
112, -102, -10, 32768,
}

Definition at line 71 of file gstalpha.c.

Referenced by gst_alpha_chroma_key_argb_ayuv(), gst_alpha_chroma_key_rgb_ayuv(), gst_alpha_init_params_full(), gst_alpha_set_argb_ayuv(), and gst_alpha_set_rgb_ayuv().

◆ cog_rgb_to_ycbcr_matrix_8bit_sdtv

const gint cog_rgb_to_ycbcr_matrix_8bit_sdtv[]
static
Initial value:
= {
66, 129, 25, 4096,
-38, -74, 112, 32768,
112, -94, -18, 32768,
}

Definition at line 77 of file gstalpha.c.

Referenced by gst_alpha_chroma_key_argb_argb(), gst_alpha_chroma_key_argb_ayuv(), gst_alpha_chroma_key_rgb_argb(), gst_alpha_chroma_key_rgb_ayuv(), gst_alpha_init_params_full(), gst_alpha_set_argb_ayuv(), and gst_alpha_set_rgb_ayuv().

◆ cog_ycbcr_hdtv_to_ycbcr_sdtv_matrix_8bit

const gint cog_ycbcr_hdtv_to_ycbcr_sdtv_matrix_8bit[]
static
Initial value:
= {
256, 25, 49, -9536,
0, 253, -28, 3958,
0, -19, 252, 2918,
}

Definition at line 89 of file gstalpha.c.

Referenced by gst_alpha_chroma_key_ayuv_ayuv(), gst_alpha_chroma_key_packed_422_ayuv(), gst_alpha_chroma_key_planar_yuv_ayuv(), gst_alpha_set_ayuv_ayuv(), gst_alpha_set_packed_422_ayuv(), and gst_alpha_set_planar_yuv_ayuv().

◆ cog_ycbcr_sdtv_to_ycbcr_hdtv_matrix_8bit

const gint cog_ycbcr_sdtv_to_ycbcr_hdtv_matrix_8bit[]
static
Initial value:
= {
256, -30, -53, 10600,
0, 261, 29, -4367,
0, 19, 262, -3289,
}

Definition at line 83 of file gstalpha.c.

Referenced by gst_alpha_chroma_key_ayuv_ayuv(), gst_alpha_chroma_key_packed_422_ayuv(), gst_alpha_chroma_key_planar_yuv_ayuv(), gst_alpha_set_ayuv_ayuv(), gst_alpha_set_packed_422_ayuv(), and gst_alpha_set_planar_yuv_ayuv().

◆ cog_ycbcr_to_rgb_matrix_8bit_hdtv

const int cog_ycbcr_to_rgb_matrix_8bit_hdtv[]
static
Initial value:
= {
298, 0, 459, -63514,
298, -55, -136, 19681,
298, 541, 0, -73988,
}

Definition at line 59 of file gstalpha.c.

Referenced by gst_alpha_chroma_key_ayuv_argb(), gst_alpha_chroma_key_packed_422_argb(), gst_alpha_chroma_key_planar_yuv_argb(), gst_alpha_set_ayuv_argb(), gst_alpha_set_packed_422_argb(), and gst_alpha_set_planar_yuv_argb().

◆ cog_ycbcr_to_rgb_matrix_8bit_sdtv

const int cog_ycbcr_to_rgb_matrix_8bit_sdtv[]
static

◆ gst_alpha_alpha_caps

GstStaticCaps gst_alpha_alpha_caps
static
Initial value:
=
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ AYUV, ARGB, BGRA, ABGR, RGBA }"))

Definition at line 146 of file gstalpha.c.

Referenced by gst_alpha_transform_caps().

◆ gst_alpha_sink_template

GstStaticPadTemplate gst_alpha_sink_template
static
Initial value:
=
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ AYUV, "
"ARGB, BGRA, ABGR, RGBA, Y444, xRGB, BGRx, xBGR, "
"RGBx, RGB, BGR, Y42B, YUY2, YVYU, UYVY, I420, YV12, " "Y41B } "))
)

Definition at line 137 of file gstalpha.c.

Referenced by gst_alpha_class_init().

◆ gst_alpha_src_template

GstStaticPadTemplate gst_alpha_src_template
static
Initial value:
=
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ AYUV, "
"ARGB, BGRA, ABGR, RGBA, Y444, xRGB, BGRx, xBGR, "
"RGBx, RGB, BGR, Y42B, YUY2, YVYU, UYVY, I420, YV12, Y41B } "))
)

Definition at line 128 of file gstalpha.c.

Referenced by gst_alpha_class_init().