Functions and Restrictions
Function Description
JPEG Encoder (JPEGE) encodes YUV images into JPEG image files, for example, .jpg files.
Resolution Restrictions
- Input resolution range:
Model
Resolution Range
Atlas A3 training products /Atlas A3 inference products Atlas A2 training products /Atlas A2 inference products Atlas inference products Atlas training products 32 × 32 to 8192 × 8192
Atlas 200I/500 A2 inference products 32 × 32 to 16384 × 16384
- Output resolution range:
JPEGE only encodes images and does not change the image resolution. Therefore, the resolution of the output image is the same as that of the input image.
Restrictions on Image Formats, Width and Height Alignment, and Buffers
During JPEGE image encoding, acldvppMalloc and acldvppFree are called to allocate and free the input and output buffers on the device. The buffer lifetime is managed by the user.
- For details about the input buffer size, see the formula in the following table.
- The output buffer size is the actual size of space occupied by the encoded image, and can be predicted by calling acldvppJpegPredictEncSize.
For details about the definition of the input image format, see acldvppPixelFormat. For details about the concepts such as width stride and height stride, see Terminology.