-
Notifications
You must be signed in to change notification settings - Fork 78
API changes
Martin Pulec edited this page Apr 5, 2024
·
7 revisions
- removed deprecated
gpujpeg_parameters_chroma_subsampling_42{0,2} - removed
comp_countfromgpujpeg_image_parametersand moved togpujpeg_parameters. The value should not be set manually, anyways as it is currently bound to subsampling and should be set bygpujpeg_parameters_chroma_subsampling(if needed) - if the input pixel format is subsampled (eg.
UYVY), and subsampling not set explicitly, encoded JPEG is using the same sampling rate - struct
decoder_outputnow containsparam_imagerepresenting metadata of the image - decoding doesn't require the explicit output format setting, in which case RGB is output (or grayscale for monochromatic JPEG); there are couple of format placeholders meant for automatic format selection depending on the input JPEG properties.
-
gpujpeg_image_save_to_filecan use.XXXplaceholder for extension causing correct extension to be used depending if the color space is RGB or YCbCr. It can be used with command-line application as well (of course, useful mostly with "-N" parameter) - GPUJPEG_444_U8_P012A and GPUJPEG_444_U8_P012Z formats are replaced with single GPUJPEG_4444_U8_P0123