Skip to content

API changes

Martin Pulec edited this page Apr 5, 2024 · 7 revisions

0.23.0 - 0.25.0 (2024-04-05)

  • removed deprecated gpujpeg_parameters_chroma_subsampling_42{0,2}
  • removed comp_count from gpujpeg_image_parameters and moved to gpujpeg_parameters. The value should not be set manually, anyways as it is currently bound to subsampling and should be set by gpujpeg_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_output now contains param_image representing 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_file can use .XXX placeholder 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

Clone this wiki locally