NVDEC and 10-bit HEVC decode
Samuel Hurst
samuelh at rd.bbc.co.uk
Mon Jun 25 10:47:43 UTC 2018
On 23/06/18 01:16, Matthew Waters wrote:
> Almost :)
>
> You want to add 16-bit formats to GstGL rather than 10/12-bit formats.
> Either that or you need to convert in the decoder to 10/12-bit.
So should I instead create a new GST_VIDEO_FORMAT_P016, which is then
converted to GST_GL_RGB16? How do I tie the new format to be 16-bit per
component instead of 8-bit, or is this just automagically decided in the
GL core?
What else would I need to do to add this to the GST video format code?
Presumably I'd need to add a pack/unpack routine into
gst-libs/gst/video/video-format.c? Hopefully, this should just be a case
of copying the NV12 routines and making them work for 16-bit variables?
I'm guessing something like this:
https://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=388b48511e90e008138e1842640b76934bd891dc
> Here's a similar commit for adding ARGB64 support with RGBA16 textures:
> https://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/gst-libs/gst/gl?id=3cfff727b19d450898dbe7931c53ea05bc2a9ac3.
> Of which I just noticed a bug of it possibly adding the YUY2/UYVY
> formats twice!
Thanks, I was messing around in the right bits then :)
More information about the gstreamer-devel
mailing list