sRGB Encoded Content Still limited to 16-235 Through Pipeline

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sRGB Encoded Content Still limited to 16-235 Through Pipeline

Thomas Bond

Hi All,


  Just want to confirm sRGB encoded videos will be in the their limited range of 16-235 through the gstreamer pipeline.

Thanks in advance.


    Tom

-- 
TOM BOND
Vice President, Technology
14 Old French Road
Honeoye Falls, NY 14472
Phone: 585-869-9243
Mobile: 585-662-8956
Email: [hidden email]

Corporate Headquarters
Entertainment Experience LLC
9475 Double R Blvd. Suite 9
Reno, Nevada 89521
Websites: www.eecolor.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: sRGB Encoded Content Still limited to 16-235 Through Pipeline

Nicolas Dufresne-5
Le mercredi 05 février 2020 à 09:43 -0500, Thomas Bond a écrit :
> Hi All,
>
>   Just want to confirm sRGB encoded videos will be in the their limited range
> of 16-235 through the gstreamer pipeline.

This is defined by the colorimetry= field in your caps. You can use
gst_video_colorimetry_from_string() to turn the colorimetry= field string into
GstVideoColorimetry and then read the range (a GstVideoColorRange).

What is supported will entirely depends on the encoder you have picked. In
GStreamer, if you have the colorimetry=sRGB, the range will be 0-255. This is
mostly used on buffers that are in the RGB color space. But most encoders will
only accept data in the YCbCr color space, and in that case, most colorimetry
will use 16-235 range, but most webcams are 0-255 by default.

regards,
Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel