⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ui.h

📁 采集视频信号进行H264压缩并通过UDP传送
💻 H
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -