Function gpujpeg_decoder_set_output_format

Source
pub unsafe extern "C" fn gpujpeg_decoder_set_output_format(
    decoder: *mut gpujpeg_decoder,
    color_space: gpujpeg_color_space,
    pixel_format: gpujpeg_pixel_format,
)
Expand description

Sets output format

If not called, @ref GPUJPEG_CS_DEFAULT and @ref GPUJPEG_PIXFMT_AUTODETECT are used.

@param decoder Decoder structure @param color_space Requested output color space, use @ref GPUJPEG_NONE to keep JPEG internal color space; special value @ref GPUJPEG_CS_DEFAULT to decode RGB (or luma for grayscale) @param sampling_factor Requestd color sampling factor; special values @ref decoder_pixfmt_placeholders can be used