forked from feihengli/util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sal_osd.h
69 lines (57 loc) · 1.31 KB
/
sal_osd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __SAL_OSD_H__
#define __SAL_OSD_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif
#define RGB_VALUE_BLACK 0x8000 //黑
#define RGB_VALUE_WHITE 0xffff // 白色
#define RGB_VALUE_BG 0x7fff //透明
typedef enum OSD_TITLE_TYPE_E
{
TITLE_ADD_NOTHING = 0,
TITLE_ADD_RESOLUTION = 1,
TITLE_ADD_BITRATE = 2,
TITLE_ADD_ALL = 3,
TITLE_ADD_BUTT,
}OSD_TITLE_TYPE_E;
typedef enum OSD_LOCATION_E
{
OSD_LEFT_TOP = 0,
OSD_LEFT_BOTTOM = 1,
OSD_RIGHT_TOP = 2,
OSD_RIGHT_BOTTOM = 3,
OSD_HIDE = 4,
}OSD_LOCATION_E;
typedef struct sal_osd_item_s
{
int enable;
OSD_LOCATION_E location;
unsigned long tmformat; //only valid for time
OSD_TITLE_TYPE_E type; //only valid for title title type
char buffer[256];
char buffer_bak[256]; //only for title type eg: add bitrate
}sal_osd_item_s;
/*
函 数 名: sal_osd_init
功能描述: 初始化OSD模块,默认显示时间和标题
输入参数: 无
输出参数: 无
返 回 值: 成功返回0,失败返回小于0
*/
int sal_osd_init();
/*
函 数 名: sal_osd_exit
功能描述: 去初始化OSD模块
输入参数: 无
输出参数: 无
返 回 值: 成功返回0,失败返回小于0
*/
int sal_osd_exit();
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif
#endif