Image JPEG Encode (nvm_ijpe_sci)

The NvMedia Image JPEG Encode application, nvm_ijpe_sci, demonstrates how to encode image surfaces into JPEG bitstreams using NvMedia JPEG encode APIs. It parses the command line with required parameter sets for JPEG encoder including:

  • Input file name
  • Resolution
  • Output bitstream file name
  • Quality, etc.

It then reads the input file into the image surface and sends the information to the NvMedia JPEG encoder. It saves the resulting bitstreams into a set of output files.

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.

The following diagram describes the basic function flow:

media/image4.png