User's Manual

Table Of Contents
S3C2450X RISC MICROPROCESSOR 2D
19-11
4.3 CLIPPING
Clipping discards the pixels (after rotation) outside the clipping window. The discarded pixels will not go through
the rest of rendering pipelines.
Note that the clipping windows must reside totally inside the screen. Setting the clipping window the same size
with the screen will disable the clipping effect, and a clipping window bigger than the screen size is not allowed.
4.3.1 Related Registers
CW_LT_REG Coordinate of the leftmost topmost point of the clipping window
CW_RB_REG Coordinate of the rightmost bottommost point of the clipping window
4.4 STENCIL TEST
The Stencil T
est conditionally discards a pixel based on the outcome of a comparison between the color value of
this pixel of the source image and the DR(min)/DR(max) values. If each field (R, G, B, A) of the color value falls in
the range of [ DR(min), DR(max)], this pixel is passed to the next stage; otherwise, discarded. User can disable
the stencil test on a specific field by clearing the corresponding bits in COLORKEY_CNTL. Note that each field of
DR_MIN and DR_MAX is 8-bit wide, regardless of the source color mode setting.
4.4.1 Related Registers
COLORKEY_CNTL Stencil Test configurations, such as enable/disable the test and so on.
COLORKEY_DR_MIN Set the DR(min) value for each field
COLORKEY_DR_MAX Set the DR(max) value for each field
4.5 RASTER OPERATION
Ra
ster Operation performs Boolean operations on three operands: source, destination and third operand
according to the 8-bit ROP value specified by the user. The truth table of ROP is given in the following table.
Source Destination Third Operand ROP Value
0 0 0 Bit0
0 0 1 Bit1
0 1 0 Bit2
0 1 1 Bit3
1 0 0 Bit4
1 0 1 Bit5
1 1 0 Bit6
1 1 1 Bit7