layer.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- /*****************************************************************************
- File Name : layer.h
- Description: 5100 LAYER header
- COPYRIGHT (C) STMicroelectronics 2004.
- *****************************************************************************/
- /* Define to prevent recursive inclusion */
- #ifndef __LAYER_H
- #define __LAYER_H
- /* Includes --------------------------------------------------------------- */
- #include "stddefs.h" /* STAPI includes */
- #include "stlayer.h"
- #include "gendef.h"
- /* Exported Types ------------------------------------------------------ */
- enum
- {
- LAYER_VIDEO,
- LAYER_OSD,
- LAYER_STILL,
- NUM_LAYERS
- };
- typedef enum
- {
- VPORT_VID,
- VPORT_OSD,
- VPORT_OSD_CURSOR,
- VPORT_STILL,
- NUM_VPORTS
- }KB_LayerViewPort;
- /* Exported Constants -------------------------------------------------- */
- /* Exported Variables -------------------------------------------------- */
- extern ST_DeviceName_t g_KB_LayerDeviceName[NUM_LAYERS];
- extern STLAYER_Handle_t g_KB_LayerHandle[NUM_LAYERS];
- /* Exported Macros ----------------------------------------------------- */
- #define KB_LAYER_BASE_ADDRESS 0
- #define KB_LAYER_BASE_ADDRESS2 0
- #define KB_LAYER_TYPE STLAYER_COMPOSITOR
- #define KB_LAYER_DEVICE_BASE_ADDRESS 0
- #define KB_LAYER_MAX_HANDLES NUM_LAYERS
- #define KB_LAYER_MAX_VIEWPORTS NUM_VPORTS
- /* Exported Functions -------------------------------------------------- */
- ST_ErrorCode_t KB_LayerSetup( void );
- ST_ErrorCode_t KB_LayerSetLayerParams(void);
- INT32 KB_LayerOpenViewPort(UINT8 Layer,UINT8 Vport,STGXOBJ_Bitmap_t *Bitmap_p,STGXOBJ_Rectangle_t *OutputRectangle_p);
- INT32 KB_LayerEnableViewPort(UINT8 cLayer, UINT8 cVport);
- INT32 KB_LayerDisableViewPort(UINT8 cVport);
- INT32 KB_LayerSetOutParam(UINT8 Layer, UINT8 Vport,STGXOBJ_Rectangle_t *OutputRectangle_p);
- INT32 KB_LayerSetViewPortAlpha(STLAYER_ViewPortHandle_t nVPHandle, INT32 nLevel);
- #endif /* __LAYER_H */
- /* EOF --------------------------------------------------------------------- */