hi_jpegd_precision_mode
Description
Defines the alignment mode of the width and height of the JPEGD output image.
Prototype
typedef enum {
YUVOUT_ALIGN_DOWN = 0,
YUVOUT_ALIGN_UP = 1,
YUVOUT_ALIGN_DOWN_COMPAT = 2,
} hi_jpegd_precision_mode;
The alignment mode values are described as follows:
- YUVOUT_ALIGN_DOWN (default):
- If the format of the decoded output image is YUV420SP and the width and height of the source image are odd numbers, the width and height of the output image are rounded down to the nearest multiple of 2.
- If the format of the decoded output image is YUV422SP and the width of the source image is an odd number, the width of the output image is rounded down to the nearest multiple of 2.
- If the format of the decoded output image is YUV440SP and the height of the source image is an odd number, the height of the output image is rounded down to the nearest multiple of 2.
- YUVOUT_ALIGN_UP
- If the format of the decoded output image is YUV420SP and the width and height of the source image are odd numbers, the width and height of the output image are rounded up to the nearest multiple of 2.
- If the format of the decoded output image is YUV422SP and the width of the source image is an odd number, the width of the output image is rounded up to the nearest multiple of 2.
- If the format of the decoded output image is YUV440SP and the height of the source image is an odd number, the height of the output image is rounded up to the nearest multiple of 2.
- YUVOUT_ALIGN_DOWN_COMPAT
Compatible with earlier versions. If the format of the decoded output image is YUV420SP, YUV422SP, or YUV440SP and the width and height of the source image are odd numbers, the width and height of the output image are rounded down to the nearest multiple of 2.
Parent topic: VDEC/JPEGD