SetImageAlignedSize

Function Usage

Sets the aligned width/height of the image.

  • Set the size based on the actual input image data of the Image. The image data cannot be empty.
  • The following image types are supported:
    1
    2
    3
    4
    5
    6
    7
    YUV_400 = 0,
    RGB_888 = 12,
    BGR_888 = 13,
    ARGB_8888 = 14,
    ABGR_8888 = 15,
    RGBA_8888 = 16,
    BGRA_8888 = 17,
    

Prototype

1
APP_ERROR Image::SetImageAlignedSize(const Size whSize);

Parameters

Parameter

Input/Output

Description

whSize

Input

Aligned width/height of the image, in pixels. The aligned width/height range is [16, 8192], which must be greater than or equal to the valid width/height.

The width is a multiple of 16, and the height is a multiple of 2.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.