mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
alpha: Remove redundant instance field
This commit is contained in:
parent
9e4ebba45e
commit
117e7401c5
2 changed files with 2 additions and 8 deletions
|
@ -380,11 +380,6 @@ gst_alpha_set_caps (GstBaseTransform * btrans,
|
|||
&alpha->width, &alpha->height))
|
||||
return FALSE;
|
||||
|
||||
if (alpha->format == GST_VIDEO_FORMAT_AYUV)
|
||||
alpha->ayuv = TRUE;
|
||||
else
|
||||
alpha->ayuv = FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -803,7 +798,7 @@ gst_alpha_transform (GstBaseTransform * btrans, GstBuffer * in, GstBuffer * out)
|
|||
GST_OBJECT_LOCK (alpha);
|
||||
switch (alpha->method) {
|
||||
case ALPHA_METHOD_SET:
|
||||
if (alpha->ayuv) {
|
||||
if (alpha->format == GST_VIDEO_FORMAT_AYUV) {
|
||||
gst_alpha_set_ayuv (GST_BUFFER_DATA (in),
|
||||
GST_BUFFER_DATA (out), width, height, alpha->alpha);
|
||||
} else {
|
||||
|
@ -814,7 +809,7 @@ gst_alpha_transform (GstBaseTransform * btrans, GstBuffer * in, GstBuffer * out)
|
|||
case ALPHA_METHOD_GREEN:
|
||||
case ALPHA_METHOD_BLUE:
|
||||
case ALPHA_METHOD_CUSTOM:
|
||||
if (alpha->ayuv) {
|
||||
if (alpha->format == GST_VIDEO_FORMAT_AYUV) {
|
||||
gst_alpha_chroma_key_ayuv (GST_BUFFER_DATA (in),
|
||||
GST_BUFFER_DATA (out), width, height, alpha);
|
||||
} else {
|
||||
|
|
|
@ -63,7 +63,6 @@ struct _GstAlpha
|
|||
/* caps */
|
||||
GstVideoFormat format;
|
||||
gint width, height;
|
||||
gboolean ayuv;
|
||||
|
||||
gdouble alpha;
|
||||
|
||||
|
|
Loading…
Reference in a new issue