• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
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 _UAPI_DVBVIDEO_H_
20 #define _UAPI_DVBVIDEO_H_
21 #include <linux/types.h>
22 #include <stdint.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #include <time.h>
25 typedef enum {
26   VIDEO_FORMAT_4_3,
27   VIDEO_FORMAT_16_9,
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   VIDEO_FORMAT_221_1
30 } video_format_t;
31 typedef enum {
32   VIDEO_SYSTEM_PAL,
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   VIDEO_SYSTEM_NTSC,
35   VIDEO_SYSTEM_PALN,
36   VIDEO_SYSTEM_PALNc,
37   VIDEO_SYSTEM_PALM,
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   VIDEO_SYSTEM_NTSC60,
40   VIDEO_SYSTEM_PAL60,
41   VIDEO_SYSTEM_PALM60
42 } video_system_t;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 typedef enum {
45   VIDEO_PAN_SCAN,
46   VIDEO_LETTER_BOX,
47   VIDEO_CENTER_CUT_OUT
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 } video_displayformat_t;
50 typedef struct {
51   int w;
52   int h;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   video_format_t aspect_ratio;
55 } video_size_t;
56 typedef enum {
57   VIDEO_SOURCE_DEMUX,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   VIDEO_SOURCE_MEMORY
60 } video_stream_source_t;
61 typedef enum {
62   VIDEO_STOPPED,
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   VIDEO_PLAYING,
65   VIDEO_FREEZED
66 } video_play_state_t;
67 #define VIDEO_CMD_PLAY (0)
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define VIDEO_CMD_STOP (1)
70 #define VIDEO_CMD_FREEZE (2)
71 #define VIDEO_CMD_CONTINUE (3)
72 #define VIDEO_CMD_FREEZE_TO_BLACK (1 << 0)
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define VIDEO_CMD_STOP_TO_BLACK (1 << 0)
75 #define VIDEO_CMD_STOP_IMMEDIATELY (1 << 1)
76 #define VIDEO_PLAY_FMT_NONE (0)
77 #define VIDEO_PLAY_FMT_GOP (1)
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 struct video_command {
80   __u32 cmd;
81   __u32 flags;
82   union {
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84     struct {
85       __u64 pts;
86     } stop;
87     struct {
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89       __s32 speed;
90       __u32 format;
91     } play;
92     struct {
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94       __u32 data[16];
95     } raw;
96   };
97 };
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define VIDEO_VSYNC_FIELD_UNKNOWN (0)
100 #define VIDEO_VSYNC_FIELD_ODD (1)
101 #define VIDEO_VSYNC_FIELD_EVEN (2)
102 #define VIDEO_VSYNC_FIELD_PROGRESSIVE (3)
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 struct video_event {
105   __s32 type;
106 #define VIDEO_EVENT_SIZE_CHANGED 1
107 #define VIDEO_EVENT_FRAME_RATE_CHANGED 2
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define VIDEO_EVENT_DECODER_STOPPED 3
110 #define VIDEO_EVENT_VSYNC 4
111   __kernel_time_t timestamp;
112   union {
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114     video_size_t size;
115     unsigned int frame_rate;
116     unsigned char vsync_field;
117   } u;
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 };
120 struct video_status {
121   int video_blank;
122   video_play_state_t play_state;
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124   video_stream_source_t stream_source;
125   video_format_t video_format;
126   video_displayformat_t display_format;
127 };
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 struct video_still_picture {
130   char __user * iFrame;
131   __s32 size;
132 };
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 typedef struct video_highlight {
135   int active;
136   __u8 contrast1;
137   __u8 contrast2;
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139   __u8 color1;
140   __u8 color2;
141   __u32 ypos;
142   __u32 xpos;
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 } video_highlight_t;
145 typedef struct video_spu {
146   int active;
147   int stream_id;
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 } video_spu_t;
150 typedef struct video_spu_palette {
151   int length;
152   __u8 __user * palette;
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 } video_spu_palette_t;
155 typedef struct video_navi_pack {
156   int length;
157   __u8 data[1024];
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 } video_navi_pack_t;
160 typedef __u16 video_attributes_t;
161 #define VIDEO_CAP_MPEG1 1
162 #define VIDEO_CAP_MPEG2 2
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 #define VIDEO_CAP_SYS 4
165 #define VIDEO_CAP_PROG 8
166 #define VIDEO_CAP_SPU 16
167 #define VIDEO_CAP_NAVI 32
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 #define VIDEO_CAP_CSS 64
170 #define VIDEO_STOP _IO('o', 21)
171 #define VIDEO_PLAY _IO('o', 22)
172 #define VIDEO_FREEZE _IO('o', 23)
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 #define VIDEO_CONTINUE _IO('o', 24)
175 #define VIDEO_SELECT_SOURCE _IO('o', 25)
176 #define VIDEO_SET_BLANK _IO('o', 26)
177 #define VIDEO_GET_STATUS _IOR('o', 27, struct video_status)
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179 #define VIDEO_GET_EVENT _IOR('o', 28, struct video_event)
180 #define VIDEO_SET_DISPLAY_FORMAT _IO('o', 29)
181 #define VIDEO_STILLPICTURE _IOW('o', 30, struct video_still_picture)
182 #define VIDEO_FAST_FORWARD _IO('o', 31)
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184 #define VIDEO_SLOWMOTION _IO('o', 32)
185 #define VIDEO_GET_CAPABILITIES _IOR('o', 33, unsigned int)
186 #define VIDEO_CLEAR_BUFFER _IO('o', 34)
187 #define VIDEO_SET_ID _IO('o', 35)
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 #define VIDEO_SET_STREAMTYPE _IO('o', 36)
190 #define VIDEO_SET_FORMAT _IO('o', 37)
191 #define VIDEO_SET_SYSTEM _IO('o', 38)
192 #define VIDEO_SET_HIGHLIGHT _IOW('o', 39, video_highlight_t)
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 #define VIDEO_SET_SPU _IOW('o', 50, video_spu_t)
195 #define VIDEO_SET_SPU_PALETTE _IOW('o', 51, video_spu_palette_t)
196 #define VIDEO_GET_NAVI _IOR('o', 52, video_navi_pack_t)
197 #define VIDEO_SET_ATTRIBUTES _IO('o', 53)
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 #define VIDEO_GET_SIZE _IOR('o', 55, video_size_t)
200 #define VIDEO_GET_FRAME_RATE _IOR('o', 56, unsigned int)
201 #define VIDEO_GET_PTS _IOR('o', 57, __u64)
202 #define VIDEO_GET_FRAME_COUNT _IOR('o', 58, __u64)
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 #define VIDEO_COMMAND _IOWR('o', 59, struct video_command)
205 #define VIDEO_TRY_COMMAND _IOWR('o', 60, struct video_command)
206 #endif
207