| 1 | /**************************************************************************** |
|---|
| 2 | * Copyright (c) 2004 Digital Stream Technologies Inc. All Rights Reserved. |
|---|
| 3 | * |
|---|
| 4 | * Module: dstddgfx.h |
|---|
| 5 | * Author: Jun-ku Park, hwatk@dstreamtech.com |
|---|
| 6 | * Description: GFX |
|---|
| 7 | * |
|---|
| 8 | * notes: hwatk20040602 |
|---|
| 9 | * |
|---|
| 10 | ***************************************************************************/ |
|---|
| 11 | |
|---|
| 12 | #ifndef __DST_DD_GFX__H__ |
|---|
| 13 | #define __DST_DD_GFX__H__ |
|---|
| 14 | |
|---|
| 15 | #ifdef __cplusplus |
|---|
| 16 | extern "C" { |
|---|
| 17 | #endif |
|---|
| 18 | |
|---|
| 19 | DS_U32 DD_GFX_GetPhysicalFrameBuffer(void); |
|---|
| 20 | DS_U32 DD_GFX_GetVideoFrameBuffer(void); |
|---|
| 21 | |
|---|
| 22 | DS_U32 DD_GFX_AllocFrameBuffer( int width, int height, int fmt ); |
|---|
| 23 | DHL_RESULT DD_GFX_FreeFrameBuffer( DS_U32 pBufferId ); |
|---|
| 24 | DS_U32 DD_GFX_GetFrameBuffer( DS_U32 pBufferId ); |
|---|
| 25 | void DD_GFX_UpdateScreen(void); |
|---|
| 26 | |
|---|
| 27 | void DD_GFX_ReadPixels( DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t *pPixels ); |
|---|
| 28 | int DD_GFX_EnablePlane(int Plane, int Enable); |
|---|
| 29 | DS_U32 DD_GFX_SetPlane(int Plane, DS_U16 HStart, DS_U16 VStart, DS_U16 InHWidth, DS_U16 InVLength, DS_U16 OutHWidth, DS_U16 OutVLength, int BPP); |
|---|
| 30 | DS_U32 DD_GFX_SetPlaneEx(int Plane, DS_U16 HStart, DS_U16 VStart, DS_U16 InHWidth, DS_U16 InVLength, DS_U16 OutHWidth, DS_U16 OutVLength, DS_U32 BaseFBAddr, DS_U32 BaseVAddr, int BPP, int bInterlaced); |
|---|
| 31 | void DD_GFX_SetBlendPixMap(int Plane, int Fore, int Bgnd); |
|---|
| 32 | //int DD_GFX_SetPallete(int Plane, DS_U32 *pal); |
|---|
| 33 | int DD_GFX_SetPallete(int Plane, int StartIdx, int Length, DS_U32 *pal); |
|---|
| 34 | |
|---|
| 35 | void DD_GFX_DrawBox(DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t color); |
|---|
| 36 | void DD_GFX_CopyBlock(DS_U32 p_src_buffer_id, DS_U32 p_dst_buffer_id, |
|---|
| 37 | int src_x, int src_y, int src_w, int src_h, |
|---|
| 38 | int dst_x, int dst_y, int dst_w, int dst_h, int bUpdateScreen); |
|---|
| 39 | void DD_GFX_DrawImage( DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t *pPixels); |
|---|
| 40 | |
|---|
| 41 | #ifdef __cplusplus |
|---|
| 42 | } |
|---|
| 43 | #endif |
|---|
| 44 | |
|---|
| 45 | #endif /* __DST_DD_FE__H__ */ |
|---|