10 bit RGB pixel formats

This forum is about all development around libVLC.
Ignus
New Cone
New Cone
Posts: 9
Joined: 16 Dec 2014 13:47

10 bit RGB pixel formats

Postby Ignus » 16 Dec 2014 14:04

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: 10 bit RGB pixel formats

Postby Rémi Denis-Courmont » 16 Dec 2014 14:35

No 30-bits RGB pxiel formats was defined in VLC at this point because nobody has had a use for it as yet.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Ignus
New Cone
New Cone
Posts: 9
Joined: 16 Dec 2014 13:47

Re: 10 bit RGB pixel formats

Postby Ignus » 16 Dec 2014 15:09

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: 10 bit RGB pixel formats

Postby Rémi Denis-Courmont » 16 Dec 2014 15:45

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Ignus
New Cone
New Cone
Posts: 9
Joined: 16 Dec 2014 13:47

Re: 10 bit RGB pixel formats

Postby Ignus » 16 Dec 2014 16:20

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: 10 bit RGB pixel formats

Postby Jean-Baptiste Kempf » 02 Jan 2015 17:04

You could share samples of this.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Ignus
New Cone
New Cone
Posts: 9
Joined: 16 Dec 2014 13:47

Re: 10 bit RGB pixel formats

Postby Ignus » 14 Jan 2015 11:22

You could share samples of this.
What would you like exactly? r210/R10k samples?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: 10 bit RGB pixel formats

Postby Jean-Baptiste Kempf » 18 Jan 2015 08:08

Yes, and code.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Ignus
New Cone
New Cone
Posts: 9
Joined: 16 Dec 2014 13:47

Re: 10 bit RGB pixel formats

Postby Ignus » 20 Jan 2015 22:43

Yes, and code.
OK. As time permits, I can do some sort of proof-of-concept, I'll get back to you then.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests