38.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 38-6. CLUT Mode and Window Size/Discard Attributes
CLUT Mode X-Y Size/Discard Attributes Requirement
1 bpp Multiple of 8 pixels
2 bpp Multiple of 4 pixels
4 bpp Multiple of 2 pixels
8 bpp Free 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 38-7. Window Size
Mode X-Y Requirement, Scaling Turned Off X-Y Requirement, Scaling Turned On XMEM_SIZE-YMEM_SIZE Requirement, Scaling Turned On
ARGB/CLUT Free size

XSIZE ≥ 3 pixels

YSIZE ≥ 3 pixels

XMEM_SIZE ≥ 3 pixels

YMEM_SIZE ≥ 3 pixels

AYCbCr 4:4:4 Free 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