/**************************************************************************** * Copyright (c) 2004 Digital Stream Technologies Inc. All Rights Reserved. * * Module: dstddgfx.h * Author: Jun-ku Park, hwatk@dstreamtech.com * Description: GFX * * notes: hwatk20040602 * ***************************************************************************/ #ifndef __DST_DD_GFX__H__ #define __DST_DD_GFX__H__ #ifdef __cplusplus extern "C" { #endif DS_U32 DD_GFX_GetPhysicalFrameBuffer(void); DS_U32 DD_GFX_GetVideoFrameBuffer(void); DS_U32 DD_GFX_AllocFrameBuffer( int width, int height, int fmt ); DHL_RESULT DD_GFX_FreeFrameBuffer( DS_U32 pBufferId ); DS_U32 DD_GFX_GetFrameBuffer( DS_U32 pBufferId ); void DD_GFX_UpdateScreen(void); void DD_GFX_ReadPixels( DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t *pPixels ); int DD_GFX_EnablePlane(int Plane, int Enable); 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); 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); void DD_GFX_SetBlendPixMap(int Plane, int Fore, int Bgnd); //int DD_GFX_SetPallete(int Plane, DS_U32 *pal); int DD_GFX_SetPallete(int Plane, int StartIdx, int Length, DS_U32 *pal); void DD_GFX_DrawBox(DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t color); void DD_GFX_CopyBlock(DS_U32 p_src_buffer_id, DS_U32 p_dst_buffer_id, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int bUpdateScreen); void DD_GFX_DrawImage( DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t *pPixels); #ifdef __cplusplus } #endif #endif /* __DST_DD_FE__H__ */