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