[PATCH]Add some v4l raw codecs
Hi! I tested attached on Intel hardware, and it makes me wonder if the existing RGB15 and RGB16 mappings are correct... The order of fmt_conversion_table[] also seems strange to me, less bpp is preferred over more bpp. Should this be changed? Finally, passing fourccs instead of pix_fmts would allow to support YV12. Is it a bug that libswscale does not remove transparency for RGB0 -> RGBA? Or should the user (application) realize that this is not a useful conversion? Please comment, Carl Eugen (My v4l hardware does not support Y41P.)
On Mon, Jan 02, 2012 at 05:02:10PM +0100, Carl Eugen Hoyos wrote:
Hi!
I tested attached on Intel hardware, and it makes me wonder if the existing RGB15 and RGB16 mappings are correct...
The order of fmt_conversion_table[] also seems strange to me, less bpp is preferred over more bpp. Should this be changed?
maybe
Finally, passing fourccs instead of pix_fmts would allow to support YV12.
Is it a bug that libswscale does not remove transparency for RGB0 -> RGBA?
bug, please open a ticket
Or should the user (application) realize that this is not a useful conversion?
Please comment, Carl Eugen
LGTM, luca ? [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Rewriting code that is poorly written but fully understood is good. Rewriting code that one doesnt understand is a sign that one is less smart then the original author, trying to rewrite it will not make it better.
On Mon, Jan 02, 2012 at 05:02:10PM +0100, Carl Eugen Hoyos wrote:
Hi!
I tested attached on Intel hardware, and it makes me wonder if the existing RGB15 and RGB16 mappings are correct...
The order of fmt_conversion_table[] also seems strange to me, less bpp is preferred over more bpp. Should this be changed?
maybe
Finally, passing fourccs instead of pix_fmts would allow to support YV12.
Is it a bug that libswscale does not remove transparency for RGB0 -> RGBA?
bug, please open a ticket
Or should the user (application) realize that this is not a useful conversion?
Please comment, Carl Eugen
LGTM, luca ? When I wrote the original mapping between libav pixelformats and v4l2
Hi all, first of all, sorry for the late reply. On Mon, 2012-01-02 at 17:16 +0100, Michael Niedermayer wrote: formats, I could not test all of the entries, and some of them were based on information I asked on the mailing list. So, some entries might be wrong (even because the pixelformats somehow changed in the meantime). I also agree about the ordering issue, so I think the patch is ok. Luca
Luca Abeni <lucabe72 <at> email.it> writes:
When I wrote the original mapping between libav pixelformats and v4l2 formats, I could not test all of the entries, and some of them were based on information I asked on the mailing list. So, some entries might be wrong (even because the pixelformats somehow changed in the meantime).
Than you for the information, I tested the formats I changed and committed the following: Fixed the wrong entries (RGB5x5), added the missing BE entries for RGB5x5, fixed the existing RGB32 mapping to ignore transparency information and added a missing RGB32 variant.
I also agree about the ordering issue, so I think the patch is ok.
I am a bit unsure about the ordering, maybe users expect YUV420 which is also supported by the typical encoders. Opinions? Thank you, Carl Eugen
participants (3)
-
Carl Eugen Hoyos -
Luca Abeni -
Michael Niedermayer