Command Line Switches

To run the sample application, enter this command:

./nvm_ijpd_sci [switches]

The following table describes the command line switches for the application:

Switch Description Default Settings
-h Prints the help menu. N/A
-f <file> Specifies the input bitstream file. If the filename is inputd.jpg, the application tries to decode a set of input JPG files named input1.jpg, input2.jpg, etc. Otherwise, the single specified file’s bitstream is decoded. N/A
-of <file> Specifies the YUV file. N/A
-fr <w>x<h> Specifies the output file resolution as width and height separated by an ‘x’, e.g. 640x480 or 1080x960. N/A
-fn <value> Specifies the decode frame number. 1
-format <value>

Specifies the output format. Values are:

  • 0: yuv420
  • 1: rgba
  • 2: yuv422
  • 3: yuv444
  • 4: yuv400
0
-ds <value> Specifies the decode output downscale factor. The value can be [0,3]. 0 (no downscale)
-crcgen <file> Generates a CRC and saves it to the specified file. N/A
-crcchk <file> Generates a CRC and checks it against the specified CRC file. N/A
-v <level>

Logging level. The value can be:

  • 0 (Errors)
  • 1 (Warnings)
  • 2 (Information)
  • 3 (Debug)

If the switch is omitted, 0.

If the switch is specified but <level> is omitted, 0.