Example Commands
To decode 100 JPEG files into 720 x 480 images in RGB format
Enter the command:
./nvm_ijpd_sci -f input%d.jpg -of outputfile -fn 100
To decode 100 JPEG files with CRC generation
Enter the command:
./nvm_ijpd_sci -f input%d.jpg -of outputfile -fn 100 -crcgen crc.txt
To decode 100 JPEG files with CRC checking
Enter the command:
./nvm_ijpd_sci -f input%d.jpg -of outputfile -fn 100 -crcchk crc.txt
To decode a monochrome (YUV400) file
Enter the command:
./nvm_ijpd_sci -f input.jpg -of outputfile -format 4
The default format value is 0 (yuv420). Format conversion from YUV400 to YUV420 is not supported. You must set the -format switch to 4 for monochrome decode.
Configuration Format
The ‑format parameter configures the color format of the decoded YUV. Supported formats are:
- 0: yuv420 (the default)
- 1: rgba
- 2: yuv422
- 3: yuv444
- 4: yuv400
The output format that can be configured for a JPEG input depends on the format of the JPEG:
JPEG Format | Supported Output Formats |
---|---|
YUV444 JPEG | All the output formats are supported. |
YUV422 JEPG |
The following output formats are supported:
|
YUV420 JPEG |
The following output formats are supported:
|
Unknown JPEG format | The application sets the output format to the default value of 0 (yuv420). |
YUV400 JPEG (Monochrome) |
The following output formats are supported:
|
Output YUV Resolution
The resolution of generated YUV is always aligned to the next multiple of 16. For example, if the input JPEG resolution is 800x600, the resolution of output YUV file is 800x608. Note that the image is not scaled from 800x600 to 800x608; the last eight lines must be ignored.