mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +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))
|
&alpha->width, &alpha->height))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (alpha->format == GST_VIDEO_FORMAT_AYUV)
|
|
||||||
alpha->ayuv = TRUE;
|
|
||||||
else
|
|
||||||
alpha->ayuv = FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -803,7 +798,7 @@ gst_alpha_transform (GstBaseTransform * btrans, GstBuffer * in, GstBuffer * out)
|
||||||
GST_OBJECT_LOCK (alpha);
|
GST_OBJECT_LOCK (alpha);
|
||||||
switch (alpha->method) {
|
switch (alpha->method) {
|
||||||
case ALPHA_METHOD_SET:
|
case ALPHA_METHOD_SET:
|
||||||
if (alpha->ayuv) {
|
if (alpha->format == GST_VIDEO_FORMAT_AYUV) {
|
||||||
gst_alpha_set_ayuv (GST_BUFFER_DATA (in),
|
gst_alpha_set_ayuv (GST_BUFFER_DATA (in),
|
||||||
GST_BUFFER_DATA (out), width, height, alpha->alpha);
|
GST_BUFFER_DATA (out), width, height, alpha->alpha);
|
||||||
} else {
|
} else {
|
||||||
|
@ -814,7 +809,7 @@ gst_alpha_transform (GstBaseTransform * btrans, GstBuffer * in, GstBuffer * out)
|
||||||
case ALPHA_METHOD_GREEN:
|
case ALPHA_METHOD_GREEN:
|
||||||
case ALPHA_METHOD_BLUE:
|
case ALPHA_METHOD_BLUE:
|
||||||
case ALPHA_METHOD_CUSTOM:
|
case ALPHA_METHOD_CUSTOM:
|
||||||
if (alpha->ayuv) {
|
if (alpha->format == GST_VIDEO_FORMAT_AYUV) {
|
||||||
gst_alpha_chroma_key_ayuv (GST_BUFFER_DATA (in),
|
gst_alpha_chroma_key_ayuv (GST_BUFFER_DATA (in),
|
||||||
GST_BUFFER_DATA (out), width, height, alpha);
|
GST_BUFFER_DATA (out), width, height, alpha);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -63,7 +63,6 @@ struct _GstAlpha
|
||||||
/* caps */
|
/* caps */
|
||||||
GstVideoFormat format;
|
GstVideoFormat format;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
gboolean ayuv;
|
|
||||||
|
|
||||||
gdouble alpha;
|
gdouble alpha;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue