]> git.sesse.net Git - nageru/commit - nageru/mjpeg_encoder.h
Support MJPEG encoding of planar Y'CbCr sources.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 19 May 2020 21:49:57 +0000 (23:49 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 19 May 2020 21:54:25 +0000 (23:54 +0200)
commit2f8f882defb23abe8b2c54e195b72c57fba55cd6
tree4ce56099bf4b1427f2faae7a6fcb905d77d6ed66
parent76a40fb903cb2d9b47473d48c5eaad97d957d6e7
Support MJPEG encoding of planar Y'CbCr sources.

This enables MJPEG encoding for video sources, but in practice,
only SRT cameras are enabled. There's VA-API support for 4:2:0 only,
by means of converting to NV12; if you had 4:2:2 or 4:4:4, you will
get fallback to libjpeg, which should handle that gracefully.
(If I actually had an SRT source doing 4:2:2, I might have added
more support, but it seems pretty narrow.)

Futatabi seemingly has some problems handling these files, but that
should be fixable.
nageru/mjpeg_encoder.cpp
nageru/mjpeg_encoder.h
nageru/pbo_frame_allocator.cpp