jpeg_read_scanlines() with out_color_space==JCS_YCbCr will upsample the YCbCr planes into packed YCbCr pixels, so essentially it does upsampling without color conversion. You can get the raw YCbCr planar data by using jpeg_read_raw_data() instead (look at the source code for the tjDecompressToYUVPlanes() function in turbojpeg.c for an example.)
On 10/8/18 9:11 AM, Madeleine wrote: > When going directly through the libjpeg-turbo API (not TurboJPEG), what > is the format of the output returned by jpeg_read_scanlines when I set > the jpeg_decompress_struct to have an out_color_space of YCbCr/YUV? > > Thanks! -- You received this message because you are subscribed to the Google Groups "libjpeg-turbo User Discussion/Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to libjpeg-turbo-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/libjpeg-turbo-users/44f39760-dbc7-abe5-53e5-35281a4e29e4%40virtualgl.org. For more options, visit https://groups.google.com/d/optout.