Disabling processing in filter elelements
Sebastian Dröge
sebastian at centricular.com
Wed Sep 14 08:59:52 UTC 2016
On Mi, 2016-09-14 at 00:56 -0700, Baby Octopus wrote:
> I need to dynamically enable or disable resize, say keep 1920x1080 as it is
> or change it to 1280x720.
>
> 1. Either remove this videoscale element from the pipeline
> 2. Just make the element passthrough from the application
>
> Is not the second option easier?
How do you force it to 1280x720? With a capsfilter I assume? In that
case you can control passthrough or not also with the capsfilter.
videoscale will adapt according to what downstream can do.
> I also see a usecase when use need to dynamically change color filter
> elements such as gamma, change gamma from 1 to 1.2, and then bring it back
> to 1
> i. Why to have processing when gamma is set to 1? Ideally it should be a
> passthrough
> ii. To avoid this processing, you can simply make the element passthrough
> than changing the pipeline
The element that has this gamma property is supposed to run in
passthrough mode based on that property already. If no processing has
to be done, the element should do nothing.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 967 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160914/1dc04804/attachment.sig>
More information about the gstreamer-devel
mailing list