JPEGE Functions and Restrictions
The Atlas 200/300/500 Inference Product does not support the JPEGE function described in this section.
The Atlas Training Series Product does not support the JPEGE function described in this section.
Function Description
JPEG Encoder (JPEGE) encodes YUV images into JPEG images, for example, .jpg images.
Restrictions on Image Formats, Width and Height Alignment, and Buffers
For details about the definition of the input image format, see hi_pixel_format. For details about the concepts such as width stride and height stride, see Terminology.
Input Format |
Input Width and Height |
Input Width Stride, Height Stride, and Buffer Size |
Output Format |
|---|---|---|---|
YUV420SP NV12 8bit |
Width: Must be a multiple of 2. Height: Must be a multiple of 2. |
Width stride: Round up the width to the nearest multiple of 16 or any multiple of 16, for example, 128 (which offers better performance). The height stride does not need to be configured. Buffer size (in bytes) = Width stride x Height x 3/2 |
Output format: JPEG, for example, *.jpg Only Huffman coding is supported. Arithmetic coding and progressive coding are not supported. |
YUV420SP NV21 8bit |
|||
YUV422Packed YUYV 8bit |
Width: Must be a multiple of 2. Height: No alignment requirement. |
Width stride: Double the width and then round up the result to the nearest multiple of 16. The height stride does not need to be configured. Buffer size (in bytes) = Width stride x Height |
|
YUV422Packed UYVY 8bit |
|||
YUV422Packed YVYU 8bit |
|||
YUV422Packed VYUY 8bit |