mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
don't poke into basetransform internals
But use the methods
This commit is contained in:
parent
513d480fbf
commit
8f36d4c7a4
3 changed files with 5 additions and 5 deletions
|
@ -103,7 +103,7 @@ gst_alpha_color_init (GstAlphaColor * alpha)
|
||||||
{
|
{
|
||||||
GstBaseTransform *btrans = GST_BASE_TRANSFORM (alpha);
|
GstBaseTransform *btrans = GST_BASE_TRANSFORM (alpha);
|
||||||
|
|
||||||
btrans->always_in_place = TRUE;
|
gst_base_transform_set_in_place (btrans, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
|
|
|
@ -196,10 +196,10 @@ gst_gamma_calculate_tables (GstGamma * gamma)
|
||||||
gdouble exp;
|
gdouble exp;
|
||||||
|
|
||||||
if (gamma->gamma == 1.0) {
|
if (gamma->gamma == 1.0) {
|
||||||
GST_BASE_TRANSFORM (gamma)->passthrough = TRUE;
|
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (gamma), TRUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GST_BASE_TRANSFORM (gamma)->passthrough = FALSE;
|
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (gamma), FALSE);
|
||||||
|
|
||||||
exp = 1.0 / gamma->gamma;
|
exp = 1.0 / gamma->gamma;
|
||||||
for (n = 0; n < 256; n++) {
|
for (n = 0; n < 256; n++) {
|
||||||
|
@ -397,7 +397,7 @@ gst_gamma_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
|
||||||
if (!gamma->process)
|
if (!gamma->process)
|
||||||
goto not_negotiated;
|
goto not_negotiated;
|
||||||
|
|
||||||
if (GST_BASE_TRANSFORM (vfilter)->passthrough)
|
if (gst_base_transform_is_passthrough (GST_BASE_TRANSFORM (vfilter)))
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (gamma);
|
GST_OBJECT_LOCK (gamma);
|
||||||
|
|
|
@ -159,7 +159,7 @@ gst_video_balance_update_properties (GstVideoBalance * videobalance)
|
||||||
gboolean passthrough = gst_video_balance_is_passthrough (videobalance);
|
gboolean passthrough = gst_video_balance_is_passthrough (videobalance);
|
||||||
GstBaseTransform *base = GST_BASE_TRANSFORM (videobalance);
|
GstBaseTransform *base = GST_BASE_TRANSFORM (videobalance);
|
||||||
|
|
||||||
base->passthrough = passthrough;
|
gst_base_transform_set_passthrough (base, passthrough);
|
||||||
|
|
||||||
if (!passthrough)
|
if (!passthrough)
|
||||||
gst_video_balance_update_tables (videobalance);
|
gst_video_balance_update_tables (videobalance);
|
||||||
|
|
Loading…
Reference in a new issue