hi_jpegd_precision_mode

Description

Defines the alignment mode of the width and height of the JPEGD output image.

Prototype

YUVOUT_ALIGN_DOWN = 0
YUVOUT_ALIGN_UP = 1
YUVOUT_ALIGN_DOWN_COMPAT = 2

Member

Description

YUVOUT_ALIGN_DOWN

This is the default value.

  • 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.