source: svn/trunk/zas_dstar/hal/platform/dstddgfx.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
File size: 1.9 KB
Line 
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
16extern "C" {
17#endif
18
19DS_U32 DD_GFX_GetPhysicalFrameBuffer(void);
20DS_U32 DD_GFX_GetVideoFrameBuffer(void);
21
22DS_U32 DD_GFX_AllocFrameBuffer( int width, int height, int fmt );
23DHL_RESULT DD_GFX_FreeFrameBuffer( DS_U32 pBufferId );
24DS_U32 DD_GFX_GetFrameBuffer( DS_U32 pBufferId );
25void DD_GFX_UpdateScreen(void);
26
27void DD_GFX_ReadPixels( DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t *pPixels );
28int DD_GFX_EnablePlane(int Plane, int Enable);
29DS_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);
30DS_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);
31void DD_GFX_SetBlendPixMap(int Plane, int Fore, int Bgnd);
32//int DD_GFX_SetPallete(int Plane, DS_U32 *pal);
33int DD_GFX_SetPallete(int Plane, int StartIdx, int Length, DS_U32 *pal);
34
35void DD_GFX_DrawBox(DS_U32 pBufferId, int offsetX, int offsetY, int w, int h, DS_PIXEL_t color);
36void 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);
39void 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__ */
Note: See TracBrowser for help on using the repository browser.