blob: c8910bd73b93c3cda5672ca8fbd876c21bcf1ed9 [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 _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>
25typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080026 VIDEO_FORMAT_4_3,
27 VIDEO_FORMAT_16_9,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 VIDEO_FORMAT_221_1
Ben Cheng655a7c02013-10-16 16:09:24 -070030} video_format_t;
31typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080032 VIDEO_SYSTEM_PAL,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 VIDEO_SYSTEM_NTSC,
35 VIDEO_SYSTEM_PALN,
36 VIDEO_SYSTEM_PALNc,
37 VIDEO_SYSTEM_PALM,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 VIDEO_SYSTEM_NTSC60,
40 VIDEO_SYSTEM_PAL60,
41 VIDEO_SYSTEM_PALM60
Ben Cheng655a7c02013-10-16 16:09:24 -070042} video_system_t;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080045 VIDEO_PAN_SCAN,
46 VIDEO_LETTER_BOX,
47 VIDEO_CENTER_CUT_OUT
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49} video_displayformat_t;
50typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -080051 int w;
52 int h;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 video_format_t aspect_ratio;
Ben Cheng655a7c02013-10-16 16:09:24 -070055} video_size_t;
56typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080057 VIDEO_SOURCE_DEMUX,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 VIDEO_SOURCE_MEMORY
Ben Cheng655a7c02013-10-16 16:09:24 -070060} video_stream_source_t;
61typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080062 VIDEO_STOPPED,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 VIDEO_PLAYING,
65 VIDEO_FREEZED
Ben Cheng655a7c02013-10-16 16:09:24 -070066} 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 */
79struct video_command {
Tao Baod7db5942015-01-28 10:07:51 -080080 __u32 cmd;
81 __u32 flags;
82 union {
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 struct {
85 __u64 pts;
86 } stop;
87 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __s32 speed;
90 __u32 format;
91 } play;
92 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u32 data[16];
95 } raw;
96 };
Ben Cheng655a7c02013-10-16 16:09:24 -070097};
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 */
104struct video_event {
Tao Baod7db5942015-01-28 10:07:51 -0800105 __s32 type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700106#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
Tao Baod7db5942015-01-28 10:07:51 -0800111 __kernel_time_t timestamp;
112 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 video_size_t size;
115 unsigned int frame_rate;
116 unsigned char vsync_field;
117 } u;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119};
120struct video_status {
Tao Baod7db5942015-01-28 10:07:51 -0800121 int video_blank;
122 video_play_state_t play_state;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 video_stream_source_t stream_source;
125 video_format_t video_format;
126 video_displayformat_t display_format;
Ben Cheng655a7c02013-10-16 16:09:24 -0700127};
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129struct video_still_picture {
Tao Baod7db5942015-01-28 10:07:51 -0800130 char __user * iFrame;
131 __s32 size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700132};
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134typedef struct video_highlight {
135 int active;
136 __u8 contrast1;
137 __u8 contrast2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u8 color1;
140 __u8 color2;
141 __u32 ypos;
142 __u32 xpos;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144} video_highlight_t;
145typedef struct video_spu {
Tao Baod7db5942015-01-28 10:07:51 -0800146 int active;
147 int stream_id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149} video_spu_t;
150typedef struct video_spu_palette {
Tao Baod7db5942015-01-28 10:07:51 -0800151 int length;
152 __u8 __user * palette;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154} video_spu_palette_t;
155typedef struct video_navi_pack {
Tao Baod7db5942015-01-28 10:07:51 -0800156 int length;
157 __u8 data[1024];
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159} video_navi_pack_t;
160typedef __u16 video_attributes_t;
161#define VIDEO_CAP_MPEG1 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700162#define VIDEO_CAP_MPEG2 2
Tao Baod7db5942015-01-28 10:07:51 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700164#define VIDEO_CAP_SYS 4
165#define VIDEO_CAP_PROG 8
166#define VIDEO_CAP_SPU 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700167#define VIDEO_CAP_NAVI 32
Tao Baod7db5942015-01-28 10:07:51 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700169#define VIDEO_CAP_CSS 64
170#define VIDEO_STOP _IO('o', 21)
171#define VIDEO_PLAY _IO('o', 22)
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#define VIDEO_FREEZE _IO('o', 23)
Tao Baod7db5942015-01-28 10:07:51 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174#define VIDEO_CONTINUE _IO('o', 24)
175#define VIDEO_SELECT_SOURCE _IO('o', 25)
176#define VIDEO_SET_BLANK _IO('o', 26)
Ben Cheng655a7c02013-10-16 16:09:24 -0700177#define VIDEO_GET_STATUS _IOR('o', 27, struct video_status)
Tao Baod7db5942015-01-28 10:07:51 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700179#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)
Ben Cheng655a7c02013-10-16 16:09:24 -0700182#define VIDEO_FAST_FORWARD _IO('o', 31)
Tao Baod7db5942015-01-28 10:07:51 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184#define VIDEO_SLOWMOTION _IO('o', 32)
185#define VIDEO_GET_CAPABILITIES _IOR('o', 33, unsigned int)
186#define VIDEO_CLEAR_BUFFER _IO('o', 34)
Ben Cheng655a7c02013-10-16 16:09:24 -0700187#define VIDEO_SET_ID _IO('o', 35)
Tao Baod7db5942015-01-28 10:07:51 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189#define VIDEO_SET_STREAMTYPE _IO('o', 36)
190#define VIDEO_SET_FORMAT _IO('o', 37)
191#define VIDEO_SET_SYSTEM _IO('o', 38)
Ben Cheng655a7c02013-10-16 16:09:24 -0700192#define VIDEO_SET_HIGHLIGHT _IOW('o', 39, video_highlight_t)
Tao Baod7db5942015-01-28 10:07:51 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194#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)
Ben Cheng655a7c02013-10-16 16:09:24 -0700197#define VIDEO_SET_ATTRIBUTES _IO('o', 53)
Tao Baod7db5942015-01-28 10:07:51 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199#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)
Ben Cheng655a7c02013-10-16 16:09:24 -0700202#define VIDEO_GET_FRAME_COUNT _IOR('o', 58, __u64)
Tao Baod7db5942015-01-28 10:07:51 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700204#define VIDEO_COMMAND _IOWR('o', 59, struct video_command)
205#define VIDEO_TRY_COMMAND _IOWR('o', 60, struct video_command)
206#endif