Image JPEG Decode (nvmimg_jpgdec)

The NvMedia Image JPEG Decode application, nvmimg_jpgdec, demonstrates how to decode a set of JPEG bitstreams into image surfaces using NvMedia JPEG decode APIs. It parses the command line with required parameter sets for the JPEG decoder, including:

  • Input bitstream file name
  • Output file name
  • Output resolution
  • Output format, etc.

It then reads the input bitstream file into the local buffer frame by frame and sends the information to the NvMedia JPEG decoder. It saves the resulting image surfaces into the output YUV file.

The application also supports CRC generation and CRC checking modes. CRC generation is mainly for developers to provide an original CRC. It can be a different CRC for different Tegra chip versions. CRC checking mode is for QA to verify the application for new releases.

This diagram describes the basic function flow.

media/image4.png