📄 pg_api.h
字号:
/*****************************************************************************
******************************************************************************
** **
** Copyright (c) 2005-2006 Videon Central, Inc. **
** All rights reserved. **
** **
** The computer program contained herein contains proprietary information **
** which is the property of Videon Central, Inc. The program may be used **
** and/or copied only with the written permission of Videon Central, Inc. **
** or in accordance with the terms and conditions stipulated in the **
** agreement/contract under which the programs have been supplied. **
** **
******************************************************************************
*****************************************************************************/
/**
* @file pg_api.h
*
* $Revision: 1.3 $
*
* extern function calls into the PG module
*
*/
#ifndef PG_API
#define PG_API
#ifdef __cplusplus
extern "C" {
#endif
#include <directfb.h>
#include "vcitypes.h"
#define PG_HANDLE PVOID
#define PG_STATUS ULONG
#define PG_STATUS_SUCCESS 0x00070000
#define PG_STATUS_ERROR 0x00070001
#define PG_STATUS_NOT_INITIALIZED 0x00070002
#define PG_STATUS_ALREADY_INITIALIZED 0x00070003
#define PG_STATUS_ALREADY_RUNNING 0x00070004
#define PG_STATUS_ALREADY_STOPPED 0x00070005
#define PG_STATUS_NOT_RUNNING 0x00070006
#define PG_STATUS_NOT_STOPPED 0x00070007
#define PG_STATUS_INVALID_HANDLE 0x00070008
/* enable ability to turn on profiling, disable this
for releases */
#define ALLOW_PG_PROFILING
typedef enum tag_PG_STATE
{
PG_STATE_UNINITIALIZED = 0,
PG_STATE_INITIALIZED,
PG_STATE_RUNNING,
PG_STATE_STOPPED
} PG_STATE;
typedef enum tag_PE_SHOW_HIDE
{
PG_SHOW_GRAPHICS,
PG_HIDE_GRAPHICS,
PG_MAX
} PG_SHOW_HIDE;
/* External module calls */
PG_STATUS PGCreate(PG_HANDLE *handle, int screen_width, int screen_height,
IDirectFB *dfb, IDirectFBDisplayLayer *disp_layer);
PG_STATUS PGDelete(PG_HANDLE handle);
PG_STATE PGGetState(PG_HANDLE handle);
PG_STATUS PGRun(PG_HANDLE handle);
PG_STATUS PGStop(PG_HANDLE handle);
PG_STATUS PGAddData(PG_HANDLE handle, BYTE *Buffer, ULONG Size);
PG_STATUS PGUpdateTimeStamp(PG_HANDLE handle, ULONG PTS, ULONG SCR);
PG_STATUS PGShowHide(PG_HANDLE handle, PG_SHOW_HIDE value);
PG_STATUS PGSetColorSpace(PG_HANDLE handle, int ColorSpace);
#ifdef __cplusplus
}
#endif
#endif /* PG_API */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -