www.pudn.com > H265+_C64X_2008.8.rar > osdutil.h


/* 
 *  Copyright 2003 by Texas Instruments Incorporated. 
 *  All rights reserved. Property of Texas Instruments Incorporated. 
 *  Restricted rights to use, duplicate or disclose this code are 
 *  granted through contract. 
 *   
 */ 
/* 
 *  ======== osdutil.h ======== 
 */ 
 
#ifndef _OSDUTIL_H 
#define	_OSDUTIL_H 
 
#ifdef __cplusplus 
extern "C" { 
#endif 
 
#include  
#include  
 
typedef struct { 
    Int x; 
    Int y; 
} OSDUTIL_Point; 
 
 
typedef struct { 
	Int fontWidth; 
	Int fontHeight; 
	Uint8 *fontData; 
} OSDUTIL_Font; 
 
typedef struct { 
	Int width; 
	Int height; 
	Uint8 *data; 
} OSDUTIL_PixMap; 
 
/* default font */ 
#define OSDUTIL_FONT_DEFAULT           NULL 
#define OSDUTIL_FONT_DEFAULT_WIDTH     6 
#define OSDUTIL_FONT_DEFAULT_HEIGHT    10 
 
 
void OSDUTIL_drawPixMap(Uint8 *pFrame, Uint32 pitch, OSDUTIL_Point *loc, 
					OSDUTIL_PixMap *pPixmap, Uint8 fgColor, Uint8 bgColor); 
 
void OSDUTIL_line(Uint8* buf, OSDUTIL_Point* a, OSDUTIL_Point* b, int color, int bufWidth); 
 
void OSDUTIL_rectangle(Uint8 *buf, OSDUTIL_Point* topLeft, OSDUTIL_Point* bottomRight, 
				   int color, int bufWidth); 
 
void OSDUTIL_text(Uint8 *pFrame, Uint32 pitch, OSDUTIL_Point* loc, char *pString, 
			   OSDUTIL_Font *font, Uint8 fgColor, Uint8 bgColor); 
 
#ifdef __cplusplus 
} 
#endif 
 
#endif