G
G
raphic
raphic
D
D
evice
evice
I
I
nterface
nterface
What is GDI
• GDI is a graphic interface to perform drawings
MMI WAP
JAVA
GDI
Pixtel_UI Pixtel_UI
Pixtel_UI
2D HW
accelerator
HW
decoder
LCD IF
LCM
GDI Features
• Primitive drawing
• Image decoding\drawing
• Multi-Layer management
(6218B\6219...)
• Multi-LCD management
• Access LCD interface(BLT and etc.)
• Access HW decoder\accelerator.
GDI vs. Pixtel_UI
• Pixtel_UI is old interface
– Do not support multi-layer
– Do not have new features such as JPEG,etc
• GDI is new interface
– Complete features (except drawing string)
GDI Overview (1/3)
• GDI use handle
– gdi_handle, GDI_HANDLE
– Use handles to manipulate GDI object
– Ex: a layer, an animation gif, a decoding jpeg, etc
• GDI function will return GDI_RESULT
– Use this result to determine if the request action is
succeeded or not
– Success : result >= 0
– Failed : result < 0
• GDI is thread safe
– GDI function is protected by MUTEX