pg_graphics.h

来自「这是DVD中伺服部分的核心代码」· C头文件 代码 · 共 48 行

H
48
字号
/*****************************************************************************
******************************************************************************
**                                                                          **
**  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_graphics.h
 *
 * $Revision: 1.3 $ 
 *
 * PG graphics drawing routines
 *
 */

#ifndef PG_GRAPHICS_H
#define PG_GRAPHICS_H

#include "pg_api.h"
#include <directfb.h>

#define PG_LEVEL_NOT_SHOWING    (-1)
#define PG_DISPLAY_LEVEL        1

PG_STATUS PGGraphicsSetPalette(PALETTE *Pal);
PG_STATUS PGGraphicsDrawCompObj(COMPOSITION_OBJECT *CompObj);
PG_STATUS PGGraphicsFlip();
PG_STATUS PGGraphicsClearBuffer(BYTE *fUpdateScreen, OS_SEM_ID Sem);
PG_STATUS PGGraphicsFreeSurface(IDirectFBSurface *Surface);
PG_STATUS PGGraphicsCreateLUT8Surface(DFBSurfaceDescription *desc, OBJECT_DEFINITION_SEGMENT *Obj);
PG_STATUS PGGraphicsCreateAllPalettes();
PG_STATUS PGGraphicsDeleteAllPalettes();
PG_STATUS PGGraphicsSetPaletteColors(int PaletteNumber, BYTE *DataPtr, int NumEntries, BYTE fClearPalette, PG_COLOR_SPACE ColorSpace);
PG_STATUS PGGraphicsClearScreen();
void PGGraphicsBuildFlipRegion();


#endif /* PG_GRAPHICS_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?