osdutil.h

来自「DM642串口调试模块」· C头文件 代码 · 共 62 行

H
62
字号
/*
 *  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 <std.h>
#include <csl_stdinc.h>

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

⌨️ 快捷键说明

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