Available chroma formats in libvlc_video_set_format

This forum is about all development around libVLC.
jortola
New Cone
New Cone
Posts: 4
Joined: 29 Jul 2010 13:30

Available chroma formats in libvlc_video_set_format

Postby jortola » 29 Jul 2010 13:44

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

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

Re: Available chroma formats in libvlc_video_set_format

Postby Rémi Denis-Courmont » 29 Jul 2010 21:42

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

ZeBobo5
Blank Cone
Blank Cone
Posts: 17
Joined: 17 Nov 2006 11:38

Re: Available chroma formats in libvlc_video_set_format

Postby ZeBobo5 » 22 Aug 2011 10:49

Also, what is the best chroma, in performance and quality ?

Thanks

ZeBobo5

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

Re: Available chroma formats in libvlc_video_set_format

Postby Rémi Denis-Courmont » 22 Aug 2011 13:48

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 20 guests