简体   繁体   中英

V4l2 MJPEG Chroma Subsumpling

My cam gives me jpeg with chroma sub-sampling 4:2:2 , but I need 4:2:0 .

  • Can I change MJPEG default chroma sub-sampling with v4l2 ?

v4l2 itself provides a very thin layer around the actual video data that is transferred: it will simply give you the formats that the camera (the hardware !!) delivers.

so if your hardware offers two distinct formats, then there is no way that v4l2 will offer you anything else.

you might want to checkout out libv4l2 library that does some basic colorspace conversion: in general it will have conversion from most exotic hardware formats to a handful of "standard" formats, so your application does not need to support all formats any hardware manufacturer can come up with. however, it is not very likely that these standard formats include a very specific (compressed) format, like the one you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM