vaapipostproc + colorbalance not working properly
Timtchenko, Michael
Michael.Timtchenko at agcocorp.com
Tue Jul 16 08:14:28 UTC 2019
Hi all,
i'm facing an issue related to gstreamers module "vaapipostproc" in version 1.14.4. I'm trying to adjust the colorbalance of a video stream by setting the following properties
- saturation
- contrast
- brightness
while active streaming.
I'm doing this by setting the following properties:
g_object_set( G_OBJECT( vaapipostproc ), "saturation", saturation, NULL );
g_object_set( G_OBJECT( vaapipostproc ), "contrast", contrast, NULL );
g_object_set( G_OBJECT( vaapipostproc ), "brightness", brightness, NULL );
whereas saturation, contrast and brightness are properly initialized gfloat variables.
It seems that there is a domination order contrast > brightness > saturation.
I'll explain this shortly:
Case I:
1. Setting saturation to maximum -> Image is properly adjusted
2. Minimal reduction of brightness -> Saturation of image is reset
3. Resetting brightness to default value -> Image has again the saturation of (1)
Case II:
1. Setting brightness to maximum -> Image is properly adjusted
2. Minimal reduction of contrast -> Brightness of image is reset
3. Resetting contrast to default value -> Image has again the brightness of (1)
Case III:
1. Setting saturation to maximum -> Image is properly adjusted
2. Minimal reduction of contrast -> Saturation of the image is reset
3. Resetting the contrast to default value -> Image has again the saturation of (1)
I've checked this behavior by setting the property values programmatically in code and also by setting up the pipeline with the corresponding values up front.
Am I doing wrong, or is there a bug in the module "vaapipostproc"?
Thanks in advance!
Best regards
Michael
Bitte beachten / Please note!
*******************************************************************************
AGCO GmbH
Sitz der AGCO GmbH: Johann-Georg-Fendt-Str.4, 87616 Marktoberdorf, Germany
Registergericht Amtsgericht Kempten HRB 10327
Gesch?ftsf?hrer: Michael Gschwender, Peter-Josef Paffen, Dr. Heribert Reiter, Ekkehart Glaeser
Vorsitzender des Aufsichtsrates: Dr. Rob Smith
*******************************************************************************
Diese E-Mail ist nur f?r den Empf?nger bestimmt, an den es gerichtet ist und kann vertrauliches
bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin enthaltene Ansicht
oder Meinungs?u?erung ist die des Autors und stellt nicht notwendigerweise die Ansicht oder
Meinung von AGCO dar. Sind Sie nicht der Empf?nger, so haben Sie diese E-Mail irrt?mlich
erhalten und jegliche Verwendung, Ver?ffentlichung, Weiterleitung, Abschrift oder jeglicher
Druck dieser E-Mail ist strengstens untersagt. Weder AGCO noch der Absender ?bernehmen die
Haftung f?r Viren; es obliegt Ihrer Verantwortung, die E-Mail und deren angeh?ngte
Dateien (sofern vorhanden) auf Viren zu ?berpr?fen.
*******************************************************************************
This email is intended solely for the use of the individual to whom it is addressed and may contain
confidential and/or privileged material. Any views or opinions presented are solely those of the
author and do not necessarily represent those of AGCO. If you are not the intended recipient, be
advised that you have received this email in error and that any use, dissemination, forwarding,
printing or copying of this email is strictly prohibited. Neither AGCO nor the sender accepts any
responsibility for viruses and it is your responsibility to scan and virus check the email and its
attachment(s) (if any).
*******************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190716/76a6027b/attachment-0001.html>
More information about the gstreamer-devel
mailing list