5.2.6.4.4 Window Position, Size, Scaling and Striding Attributes

  • XPOS and YPOS fields—Defines the position of the layer window.
  • XSIZE and YSIZE fields—Defines the size of the displayed window.
  • XMEMSIZE and YMEMSIZE fields—Defines the size of the image frame buffer.
  • XSTRIDE —Defines the line striding.
  • PSTRIDE —Defines the pixel striding.
  • VXSYFACTOR and VXSCFACTOR fields—Defines the scaling ratio for the vertical scaler.
  • HXSYFACTOR and HXSCFACTOR fields—Defines the scaling ratio for the horizontal scaler.

The position and size attributes are programmed to keep the window within the display area.

When CLUT mode is enabled, the restrictions detailed in the following table apply on the horizontal, vertical window sizes and discard attributes (Discard Area Horizontal Position, Discard Area Vertical Position, Discard Area Horizontal Size, Discard Area Vertical Size).

Table 5-6. CLUT Mode and Window Size/Discard Attributes
CLUT ModeX-Y Size/Discard Attributes Requirement
1 bppMultiple of 8 pixels
2 bppMultiple of 4 pixels
4 bppMultiple of 2 pixels
8 bppFree size

Pixel striding is disabled when CLUT mode is enabled.

Depending on the input mode, the restrictions detailed in the following table apply on the window size.

Table 5-7. Window Size
ModeX-Y Requirement, Scaling Turned OffX-Y Requirement, Scaling Turned OnXMEM_SIZE-YMEM_SIZE Requirement, Scaling Turned On
ARGB/CLUTFree size

XSIZE ≥ 3 pixels

YSIZE ≥ 3 pixels

XMEM_SIZE ≥ 3 pixels

YMEM_SIZE ≥ 3 pixels

AYCbCr 4:4:4Free size

XSIZE ≥ 3 pixels

YSIZE ≥ 3 pixels

XMEM_SIZE ≥ 3 pixels

YMEM_SIZE ≥ 3 pixels

YCbCr 4:2:2 packed

XSIZE ≥ 6 pixels

Free YSIZE

XSIZE ≥ 6 pixels

YSIZE ≥ 3 pixels

XMEM_SIZE ≥ 6 pixels, even

YMEM_SIZE ≥ 3 pixels

YCbCr 4:2:2 semiplanar

XSIZE ≥ 6 pixels

Free YSIZE

XSIZE ≥ 6 pixels

YSIZE ≥ 3 pixels

XMEM_SIZE ≥ 6 pixels

YMEM_SIZE ≥ 3 pixels

YCbCr 4:2:2 planar

XSIZE ≥ 6 pixels

Free YSIZE

XSIZE ≥ 6 pixels

YSIZE ≥ 3 pixels

XMEM_SIZE ≥ 6 pixels

YMEM_SIZE ≥ 3 pixels

YCbCr 4:2:0

semiplanar

XSIZE ≥ 6 pixels

YSIZE ≥ 6 pixels

XSIZE ≥ 6 pixels

YSIZE ≥ 6 pixels

XMEM_SIZE ≥ 6 pixels

YMEM_SIZE ≥ 6 pixels

YCbCr 4:2:0

planar

XSIZE ≥ 6 pixels

YSIZE ≥ 6 pixels

XSIZE ≥ 6 pixels

YSIZE ≥ 6 pixels

XMEM_SIZE ≥ 6 pixels

YMEM_SIZE ≥ 6 pixels