📄 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 <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -