I would like to compress frames from a video stream that are in format YUY2 using Jpeg UIC. Currently, I am converting it to RGB before compressing and getting the expected result.
Is it possible to, directly, compress a YUY2 source with JPEG UIC? (without having to convert to RGB before)
I don't care about the output format of compressed stream... It can also be YUY2. I really would not like to convert it to RGB to avoid overhead, during the conversion, and also the reduce the compressed size (RGB requires 3 bytes and YUY2 only 2).
yes, UIC JPEG encoder support input image in YUY2 format and will require 4:2:2 sampling in that case (we do not support resampling from 4:2:2 to other samplings). We may not demonstrate this capability with sample UIC applications, I'll ask Sergey (our engineer responsible for JPEG) to provide explanation or simple code snippet here to show how to set UIC JPEG encoder parameters for such usage model.