Page 1 of 1

Available chroma formats in libvlc_video_set_format

Posted: 29 Jul 2010 13:44
by jortola
Hi,

First of all, I'd like to congratulate vlc developers for so clean and easy-to-use api.
Well, I'm trying to render manually, so I need to know the available pixelformats that I can pass as chroma parameter in libvlc_video_set_format function.
Just a question, why have you designed this function with a string instead of pixelformat like enum?

Sincerely,

Jordi

Re: Available chroma formats in libvlc_video_set_format

Posted: 29 Jul 2010 21:42
by Rémi Denis-Courmont
It was more straightforward to implement. Don't over-interpret it.

I guess it supports at least RV15, RV16, RV24, RV32, RGBA and YUYV. I am not sure if I420 will work due to pitch difference in the multiple planes.

Re: Available chroma formats in libvlc_video_set_format

Posted: 22 Aug 2011 10:49
by ZeBobo5
Also, what is the best chroma, in performance and quality ?

Thanks

ZeBobo5

Re: Available chroma formats in libvlc_video_set_format

Posted: 22 Aug 2011 13:48
by Rémi Denis-Courmont
The best chroma is the one that the decoder outputs, which depends on the input codec. You should use libvlc_video_set_format_callbacks() rather than libvlc_video_set_format() if your software is chroma-agile.
http://www.videolan.org/developers/vlc/ ... layer.html