ui.h

来自「采集视频信号进行H264压缩并通过UDP传送」· C头文件 代码 · 共 54 行

H
54
字号
/*
 * ui.h
 *
 * ============================================================================
 * Copyright (c) Texas Instruments Inc 2005
 *
 * Use of this software is controlled by the terms and conditions found in the
 * license agreement under which this software has been supplied or provided.
 * ============================================================================
 */

#ifndef _UI_H
#define _UI_H

#include "encodedecode.h"

/* Double buffered OSD window */
#define NUM_BUFS    2

/* Text placements on OSD */
#define COLUMN_1    40
#define COLUMN_2    280
#define COLUMN_3    430

#define ROW_1       YSCALE(50)
#define ROW_2       YSCALE(80)
#define ROW_3       YSCALE(110)
#define ROW_4       YSCALE(140)
#define ROW_5       YSCALE(170)

/* OSD dimensions */
#define OSD_WIDTH   720
#define OSD_HEIGHT  YSCALE(480)
#define OSD_BPP     16

enum Buttons {
    CTRLPLAY,
    CTRLPAUSE,
    CTRLREC,
    CTRLSTOP,
    NAVPLUS,
    NAVMINUS,
    WRONG
};

extern void uiClearScreen(int x, int y, int w, int h, int screenIdx);
extern int uiDrawText(char *string, int x, int y, int screenIdx);
extern int uiPressButton(enum Buttons btnIdx, int screenIdx);
extern int uiCreate(DemoEnv *envp, char *osdDisplays[]);
extern int uiDraw(void);
extern int uiDelete(void);

#endif /* _UI_H */

⌨️ 快捷键说明

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