[Bug 720345] videobalance: handle unsupported caps features in passthrough mode

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 6 03:41:47 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=720345
  GStreamer | gst-plugins-good | git

--- Comment #5 from Matthieu Bouron <matthieu.bouron at collabora.com> 2014-01-06 11:41:41 UTC ---
(In reply to comment #2)
> Review of attachment 264098 [details]:
> 
> ::: gst/videofilter/gstvideobalance.c
> @@ +77,3 @@
> +
> +#define VIDEOBALANCE_ALL_CAPS VIDEOBALANCE_CAPS ";" \
> +    GST_VIDEO_CAPS_MAKE_WITH_FEATURES ("ANY", VIDEOBALANCE_VIDEO_FORMATS)
> 
> For this to all make any sense it would be good to implement support for every
> video format, with the help of the pack/unpack functions from
> GstVideoFormatInfo. Because why allow NV12/VASurface, but disallow
> NV16/VASurface?

If you agree with it, i'll do that in separate.

> 
> And just doing passthrough on any unsupported video format will cause
> unexpected behaviour. Maybe we also need a property to select this
> auto-passthrough-if-unsupported mode?

The purpose is to make videobalance disable itself by default if it does not
support the caps (and in particular the caps feature) to make hardware decoders
work with playbin in the current situation, so I don't think a new property
would be useful in this case.

> 
> @@ +427,3 @@
> 
> +static gboolean
> +gst_video_balance_can_handle_caps (GstCaps * srccaps)
> 
> Also should happen on otherwise unsupported caps (video format!)
> 
> @@ +435,3 @@
> +  caps = gst_caps_new_empty_simple ("video/x-raw");
> +  features =
> +      gst_caps_features_new (GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY, NULL);
> 
> Not needed, sysmem is there by default

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list