blob: 379294ed004bfedb668b79a40ffdf4405f01b76b [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _DVBOSD_H_
20#define _DVBOSD_H_
21#include <linux/compiler.h>
22typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080023 OSD_Close = 1,
24 OSD_Open,
25 OSD_Show,
26 OSD_Hide,
Tao Baod7db5942015-01-28 10:07:51 -080027 OSD_Clear,
28 OSD_Fill,
29 OSD_SetColor,
30 OSD_SetPalette,
Tao Baod7db5942015-01-28 10:07:51 -080031 OSD_SetTrans,
32 OSD_SetPixel,
33 OSD_GetPixel,
34 OSD_SetRow,
Tao Baod7db5942015-01-28 10:07:51 -080035 OSD_SetBlock,
36 OSD_FillRow,
37 OSD_FillBlock,
38 OSD_Line,
Tao Baod7db5942015-01-28 10:07:51 -080039 OSD_Query,
40 OSD_Test,
41 OSD_Text,
42 OSD_SetWindow,
Tao Baod7db5942015-01-28 10:07:51 -080043 OSD_MoveWindow,
44 OSD_OpenRaw,
Ben Cheng655a7c02013-10-16 16:09:24 -070045} OSD_Command;
46typedef struct osd_cmd_s {
Tao Baod7db5942015-01-28 10:07:51 -080047 OSD_Command cmd;
48 int x0;
49 int y0;
50 int x1;
Tao Baod7db5942015-01-28 10:07:51 -080051 int y1;
52 int color;
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070053 void * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070054} osd_cmd_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070055typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080056 OSD_BITMAP1,
57 OSD_BITMAP2,
58 OSD_BITMAP4,
Tao Baod7db5942015-01-28 10:07:51 -080059 OSD_BITMAP8,
60 OSD_BITMAP1HR,
61 OSD_BITMAP2HR,
62 OSD_BITMAP4HR,
Tao Baod7db5942015-01-28 10:07:51 -080063 OSD_BITMAP8HR,
64 OSD_YCRCB422,
65 OSD_YCRCB444,
66 OSD_YCRCB444HR,
Tao Baod7db5942015-01-28 10:07:51 -080067 OSD_VIDEOTSIZE,
68 OSD_VIDEOHSIZE,
69 OSD_VIDEOQSIZE,
70 OSD_VIDEODSIZE,
Tao Baod7db5942015-01-28 10:07:51 -080071 OSD_VIDEOTHSIZE,
72 OSD_VIDEOTQSIZE,
73 OSD_VIDEOTDSIZE,
74 OSD_VIDEONSIZE,
Tao Baod7db5942015-01-28 10:07:51 -080075 OSD_CURSOR
Ben Cheng655a7c02013-10-16 16:09:24 -070076} osd_raw_window_t;
77typedef struct osd_cap_s {
Tao Baod7db5942015-01-28 10:07:51 -080078 int cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define OSD_CAP_MEMSIZE 1
Tao Baod7db5942015-01-28 10:07:51 -080080 long val;
Ben Cheng655a7c02013-10-16 16:09:24 -070081} osd_cap_t;
82#define OSD_SEND_CMD _IOW('o', 160, osd_cmd_t)
Ben Cheng655a7c02013-10-16 16:09:24 -070083#define OSD_GET_CAPABILITY _IOR('o', 161, osd_cap_t)
84#endif