1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _DVBOSD_H_ 8 #define _DVBOSD_H_ 9 #include <linux/compiler.h> 10 typedef enum { 11 OSD_Close = 1, 12 OSD_Open, 13 OSD_Show, 14 OSD_Hide, 15 OSD_Clear, 16 OSD_Fill, 17 OSD_SetColor, 18 OSD_SetPalette, 19 OSD_SetTrans, 20 OSD_SetPixel, 21 OSD_GetPixel, 22 OSD_SetRow, 23 OSD_SetBlock, 24 OSD_FillRow, 25 OSD_FillBlock, 26 OSD_Line, 27 OSD_Query, 28 OSD_Test, 29 OSD_Text, 30 OSD_SetWindow, 31 OSD_MoveWindow, 32 OSD_OpenRaw, 33 } OSD_Command; 34 typedef struct osd_cmd_s { 35 OSD_Command cmd; 36 int x0; 37 int y0; 38 int x1; 39 int y1; 40 int color; 41 void * data; 42 } osd_cmd_t; 43 typedef enum { 44 OSD_BITMAP1, 45 OSD_BITMAP2, 46 OSD_BITMAP4, 47 OSD_BITMAP8, 48 OSD_BITMAP1HR, 49 OSD_BITMAP2HR, 50 OSD_BITMAP4HR, 51 OSD_BITMAP8HR, 52 OSD_YCRCB422, 53 OSD_YCRCB444, 54 OSD_YCRCB444HR, 55 OSD_VIDEOTSIZE, 56 OSD_VIDEOHSIZE, 57 OSD_VIDEOQSIZE, 58 OSD_VIDEODSIZE, 59 OSD_VIDEOTHSIZE, 60 OSD_VIDEOTQSIZE, 61 OSD_VIDEOTDSIZE, 62 OSD_VIDEONSIZE, 63 OSD_CURSOR 64 } osd_raw_window_t; 65 typedef struct osd_cap_s { 66 int cmd; 67 #define OSD_CAP_MEMSIZE 1 68 long val; 69 } osd_cap_t; 70 #define OSD_SEND_CMD _IOW('o', 160, osd_cmd_t) 71 #define OSD_GET_CAPABILITY _IOR('o', 161, osd_cap_t) 72 #endif 73