Samsung S5PC100 User Manual page 1208

Table of Contents

Advertisement

S5PC100 USER'S MANUAL (REV1.0)
Related Registers
COLORKEY_CNTL
COLORKEY_DR_MIN
COLORKEY_DR_MAX
 
5.5 RASTER OPERATION
Raster Operation performs Boolean operations on three operands: source, destination and the 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
0
0
0
0
1
1
1
1
The third operand can be pattern or foreground color, configurable by the OS bit in the ROP_REG.
Pattern is a user-specified 8x8x16-bpp image; the pattern data must be in RGB565 format. The following equation
is used to calculate the pattern index of pixel (x, y):
index = ( ((patternOffsetY + y) & 0x7 )<<3 ) + ((patternOffsetX + x)&0x7),
where patternOffsetY and patternOffsetX are the offset value specified in register PATOFF_REG.
Here are some examples on how to use the ROP value to perform the operations:
1) Final Data = Source. Only the Source data matter, so ROP Value = "11110000".
2) Final Data = Destination. Only the Destination data matter, so ROP Value = "11001100".
3) Final Data = Pattern. Only the Pattern data matter, so ROP Value = "10101010".
4) Final Data = Source AND Destination. ROP Value = "11110000" & "11001100" = "11000000"
5) Final Data = Source OR Pattern. ROP Value = "11110000" | "10101010" = "11111010".
NOTE: The Raster Operation only applies on R, G, B fields of the color data; the A field will not be affected.
Related Registers
PATTERN_REG[0:31]
PATOFF_REG
ROP_REG
Stencil Test configurations, such as enable/ disable the test etc.
Set the DR(Minimum) value for each field
Set the DR(Maximum) value for each field
Destination
0
0
1
1
0
0
1
1
Pattern data
Pattern offset X, Y
ROP configurations and ROP Value
Third Operand
0
1
0
1
0
1
0
1
2D-ACCELERATOR
ROP Value
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
Bit7
9.5-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents