Page 1 of 1

10 bit RGB pixel formats

Posted: 16 Dec 2014 14:04
by Ignus
Hi!

Does the VLC library have support for 10 bit RGB pixel formats?
I saw it supports various 10 bit YUV formats, like VLC_CODEC_I420_10L/B, VLC_CODEC_I422_10L/B and VLC_CODEC_I444_10L/B.
My question is, does anything like that exist for RGB?

Thanks.

Greets,
I.

Re: 10 bit RGB pixel formats

Posted: 16 Dec 2014 14:35
by Rémi Denis-Courmont
No 30-bits RGB pxiel formats was defined in VLC at this point because nobody has had a use for it as yet.

Re: 10 bit RGB pixel formats

Posted: 16 Dec 2014 15:09
by Ignus
What do you think would be needed to define one or add support?
I am thinking along the lines of an either interleaved or planar 16 bit based format with 10 bits of precision.
Or something like QuickTime's k64ARGBPixelFormat (b64a) or k48RGBPixelFormat (b48r) or the ffmpeg PIX_FMT_RGB48LE/BE format.

Re: 10 bit RGB pixel formats

Posted: 16 Dec 2014 15:45
by Rémi Denis-Courmont
Defining a new pixel format is easy. But then it depends on the use case, there is no use for just defining a new format without using it.

Re: 10 bit RGB pixel formats

Posted: 16 Dec 2014 16:20
by Ignus
The use case would be to allow high bit depth RGB data to enter the VLC framework. As VLC aims to be a multimedia framework, rather than just a player, I believe the addition of high bit depth RGB formats would be useful to support that.
To be more specific, it would allow VLC to process the BlackMagic r210 or AJA R10k formats for example.
I cannot really outline full end-to-end use cases, as I'm a codec developer. I also develop my own codec, which supports 10 bit RGB compression, coming from video editing software, and it would be useful to have a format to decode these kind of data into.

Re: 10 bit RGB pixel formats

Posted: 02 Jan 2015 17:04
by Jean-Baptiste Kempf
You could share samples of this.

Re: 10 bit RGB pixel formats

Posted: 14 Jan 2015 11:22
by Ignus
You could share samples of this.
What would you like exactly? r210/R10k samples?

Re: 10 bit RGB pixel formats

Posted: 18 Jan 2015 08:08
by Jean-Baptiste Kempf
Yes, and code.

Re: 10 bit RGB pixel formats

Posted: 20 Jan 2015 22:43
by Ignus
Yes, and code.
OK. As time permits, I can do some sort of proof-of-concept, I'll get back to you then.