Samsung S5PC110 Manual page 1777

Risc microprocessor
Table of Contents

Advertisement

S5PC110_UM
13.4.5 RASTER OPERATION
Raster operation performs Boolean operations on four operands: Mask, third operand, source, and destination
according to two 8-bit-ROP3 values specified by the user. User can choose unmasked ROP3 value and masked
ROP3 value with binary mask image. Mask should be the same size as source image.
The following table is the truth table of ROP3.
Third Operand
0
0
0
0
1
1
1
1
The third operand can be pattern, foreground color, or background color; configurable by
THIRD_OPERAND_REG.
The pattern supports all the format of source image or destination image. The following equation is used to
calculate the pattern pixel coordinate (x, y):
X = (PatternOffsetX + x) % PatternWidth
Y = (PatternOffsetY + y) % PatternHeight,
where PatternOffsetY and PatternOffsetX are the offset value specified in register PAT_OFFSET_REG, and
PatternWidth and PatternHeight are size of the pattern specified in register PAT_SIZE_REG
Here are some examples on how to use the ROP3 value to perform the operations:
Final Data = Source. Only the Source data matter, so ROP Value = "0xCC".
Final Data = Destination. Only the Destination data matter, so ROP Value = "0xAA".
Final Data = Pattern. Only the Pattern data matter, so ROP Value = "0xF0".
Final Data = Source AND Destination. ROP Value = "0xCC" & "0xAA" = "0x88"
Final Data = Source OR Pattern. ROP Value = "0xCC" | "0xF0" = "0xFC".
Note that the Raster Operation only applies on Red, Green and, Blue fields of the color data; the Alpha field will
not be affected.
Source
0
0
1
1
0
0
1
1
Destination
0
1
0
1
0
1
0
1
13 12BG2D
ROP Value
Bit0
Bit1
Bit2
Bit3
Bit4
Bit5
Bit6
Bit7
13-8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents