Command Line Switches

To run the Image Encode sample application, enter this command:

./nvm_ijpe_sci [switches]

This table describes the command line switches:

e

Description

Default

-h

Prints the help menu.

N/A

-f <file>

Specifies the pathname of an input YUV file. The input file should be in YUV420 with UV order.

N/A

-fr <W>x<H>

Specifies the input file resolution in width × height format, for example: 640x480.

N/A

-of <file>

Specifies the pathname of an output file. If outputd.jpg is specified, the application generates a set of JPG files as output1.jpgoutput2.jpg, etc. Otherwise, the last JPEG bitstream is saved to the specified file.

N/A

-q <value>

Specifies the encode quality. The value must be in the range [1,100].

50

-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. Value may be:

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

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

-HuffTable <file>

Specifies the pathname of a configuration file containing a Huffman table.

N/A

-QuantTable

Specifies the pathname of a configuration file containing a quant table.

N/A

-hwid Specifies the hardware instance ID to be used. 0