Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux/dvb
File: osd.h
/* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* osd.h
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright (C) 2001 Ralph Metzler <ralph@convergence.de>
[4] Fix | Delete
* & Marcus Metzler <marcus@convergence.de>
[5] Fix | Delete
* for convergence integrated media GmbH
[6] Fix | Delete
*
[7] Fix | Delete
* This program is free software; you can redistribute it and/or
[8] Fix | Delete
* modify it under the terms of the GNU General Lesser Public License
[9] Fix | Delete
* as published by the Free Software Foundation; either version 2.1
[10] Fix | Delete
* of the License, or (at your option) any later version.
[11] Fix | Delete
*
[12] Fix | Delete
* This program is distributed in the hope that it will be useful,
[13] Fix | Delete
* but WITHOUT ANY WARRANTY; without even the implied warranty of
[14] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[15] Fix | Delete
* GNU General Public License for more details.
[16] Fix | Delete
*
[17] Fix | Delete
* You should have received a copy of the GNU Lesser General Public License
[18] Fix | Delete
* along with this program; if not, write to the Free Software
[19] Fix | Delete
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
[20] Fix | Delete
*
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
#ifndef _DVBOSD_H_
[24] Fix | Delete
#define _DVBOSD_H_
[25] Fix | Delete
[26] Fix | Delete
[27] Fix | Delete
[28] Fix | Delete
typedef enum {
[29] Fix | Delete
// All functions return -2 on "not open"
[30] Fix | Delete
OSD_Close=1, // ()
[31] Fix | Delete
// Disables OSD and releases the buffers
[32] Fix | Delete
// returns 0 on success
[33] Fix | Delete
OSD_Open, // (x0,y0,x1,y1,BitPerPixel[2/4/8](color&0x0F),mix[0..15](color&0xF0))
[34] Fix | Delete
// Opens OSD with this size and bit depth
[35] Fix | Delete
// returns 0 on success, -1 on DRAM allocation error, -2 on "already open"
[36] Fix | Delete
OSD_Show, // ()
[37] Fix | Delete
// enables OSD mode
[38] Fix | Delete
// returns 0 on success
[39] Fix | Delete
OSD_Hide, // ()
[40] Fix | Delete
// disables OSD mode
[41] Fix | Delete
// returns 0 on success
[42] Fix | Delete
OSD_Clear, // ()
[43] Fix | Delete
// Sets all pixel to color 0
[44] Fix | Delete
// returns 0 on success
[45] Fix | Delete
OSD_Fill, // (color)
[46] Fix | Delete
// Sets all pixel to color <col>
[47] Fix | Delete
// returns 0 on success
[48] Fix | Delete
OSD_SetColor, // (color,R{x0},G{y0},B{x1},opacity{y1})
[49] Fix | Delete
// set palette entry <num> to <r,g,b>, <mix> and <trans> apply
[50] Fix | Delete
// R,G,B: 0..255
[51] Fix | Delete
// R=Red, G=Green, B=Blue
[52] Fix | Delete
// opacity=0: pixel opacity 0% (only video pixel shows)
[53] Fix | Delete
// opacity=1..254: pixel opacity as specified in header
[54] Fix | Delete
// opacity=255: pixel opacity 100% (only OSD pixel shows)
[55] Fix | Delete
// returns 0 on success, -1 on error
[56] Fix | Delete
OSD_SetPalette, // (firstcolor{color},lastcolor{x0},data)
[57] Fix | Delete
// Set a number of entries in the palette
[58] Fix | Delete
// sets the entries "firstcolor" through "lastcolor" from the array "data"
[59] Fix | Delete
// data has 4 byte for each color:
[60] Fix | Delete
// R,G,B, and a opacity value: 0->transparent, 1..254->mix, 255->pixel
[61] Fix | Delete
OSD_SetTrans, // (transparency{color})
[62] Fix | Delete
// Sets transparency of mixed pixel (0..15)
[63] Fix | Delete
// returns 0 on success
[64] Fix | Delete
OSD_SetPixel, // (x0,y0,color)
[65] Fix | Delete
// sets pixel <x>,<y> to color number <col>
[66] Fix | Delete
// returns 0 on success, -1 on error
[67] Fix | Delete
OSD_GetPixel, // (x0,y0)
[68] Fix | Delete
// returns color number of pixel <x>,<y>, or -1
[69] Fix | Delete
OSD_SetRow, // (x0,y0,x1,data)
[70] Fix | Delete
// fills pixels x0,y through x1,y with the content of data[]
[71] Fix | Delete
// returns 0 on success, -1 on clipping all pixel (no pixel drawn)
[72] Fix | Delete
OSD_SetBlock, // (x0,y0,x1,y1,increment{color},data)
[73] Fix | Delete
// fills pixels x0,y0 through x1,y1 with the content of data[]
[74] Fix | Delete
// inc contains the width of one line in the data block,
[75] Fix | Delete
// inc<=0 uses blockwidth as linewidth
[76] Fix | Delete
// returns 0 on success, -1 on clipping all pixel
[77] Fix | Delete
OSD_FillRow, // (x0,y0,x1,color)
[78] Fix | Delete
// fills pixels x0,y through x1,y with the color <col>
[79] Fix | Delete
// returns 0 on success, -1 on clipping all pixel
[80] Fix | Delete
OSD_FillBlock, // (x0,y0,x1,y1,color)
[81] Fix | Delete
// fills pixels x0,y0 through x1,y1 with the color <col>
[82] Fix | Delete
// returns 0 on success, -1 on clipping all pixel
[83] Fix | Delete
OSD_Line, // (x0,y0,x1,y1,color)
[84] Fix | Delete
// draw a line from x0,y0 to x1,y1 with the color <col>
[85] Fix | Delete
// returns 0 on success
[86] Fix | Delete
OSD_Query, // (x0,y0,x1,y1,xasp{color}}), yasp=11
[87] Fix | Delete
// fills parameters with the picture dimensions and the pixel aspect ratio
[88] Fix | Delete
// returns 0 on success
[89] Fix | Delete
OSD_Test, // ()
[90] Fix | Delete
// draws a test picture. for debugging purposes only
[91] Fix | Delete
// returns 0 on success
[92] Fix | Delete
// TODO: remove "test" in final version
[93] Fix | Delete
OSD_Text, // (x0,y0,size,color,text)
[94] Fix | Delete
OSD_SetWindow, // (x0) set window with number 0<x0<8 as current
[95] Fix | Delete
OSD_MoveWindow, // move current window to (x0, y0)
[96] Fix | Delete
OSD_OpenRaw, // Open other types of OSD windows
[97] Fix | Delete
} OSD_Command;
[98] Fix | Delete
[99] Fix | Delete
typedef struct osd_cmd_s {
[100] Fix | Delete
OSD_Command cmd;
[101] Fix | Delete
int x0;
[102] Fix | Delete
int y0;
[103] Fix | Delete
int x1;
[104] Fix | Delete
int y1;
[105] Fix | Delete
int color;
[106] Fix | Delete
void *data;
[107] Fix | Delete
} osd_cmd_t;
[108] Fix | Delete
[109] Fix | Delete
/* OSD_OpenRaw: set 'color' to desired window type */
[110] Fix | Delete
typedef enum {
[111] Fix | Delete
OSD_BITMAP1, /* 1 bit bitmap */
[112] Fix | Delete
OSD_BITMAP2, /* 2 bit bitmap */
[113] Fix | Delete
OSD_BITMAP4, /* 4 bit bitmap */
[114] Fix | Delete
OSD_BITMAP8, /* 8 bit bitmap */
[115] Fix | Delete
OSD_BITMAP1HR, /* 1 Bit bitmap half resolution */
[116] Fix | Delete
OSD_BITMAP2HR, /* 2 bit bitmap half resolution */
[117] Fix | Delete
OSD_BITMAP4HR, /* 4 bit bitmap half resolution */
[118] Fix | Delete
OSD_BITMAP8HR, /* 8 bit bitmap half resolution */
[119] Fix | Delete
OSD_YCRCB422, /* 4:2:2 YCRCB Graphic Display */
[120] Fix | Delete
OSD_YCRCB444, /* 4:4:4 YCRCB Graphic Display */
[121] Fix | Delete
OSD_YCRCB444HR, /* 4:4:4 YCRCB graphic half resolution */
[122] Fix | Delete
OSD_VIDEOTSIZE, /* True Size Normal MPEG Video Display */
[123] Fix | Delete
OSD_VIDEOHSIZE, /* MPEG Video Display Half Resolution */
[124] Fix | Delete
OSD_VIDEOQSIZE, /* MPEG Video Display Quarter Resolution */
[125] Fix | Delete
OSD_VIDEODSIZE, /* MPEG Video Display Double Resolution */
[126] Fix | Delete
OSD_VIDEOTHSIZE, /* True Size MPEG Video Display Half Resolution */
[127] Fix | Delete
OSD_VIDEOTQSIZE, /* True Size MPEG Video Display Quarter Resolution*/
[128] Fix | Delete
OSD_VIDEOTDSIZE, /* True Size MPEG Video Display Double Resolution */
[129] Fix | Delete
OSD_VIDEONSIZE, /* Full Size MPEG Video Display */
[130] Fix | Delete
OSD_CURSOR /* Cursor */
[131] Fix | Delete
} osd_raw_window_t;
[132] Fix | Delete
[133] Fix | Delete
typedef struct osd_cap_s {
[134] Fix | Delete
int cmd;
[135] Fix | Delete
#define OSD_CAP_MEMSIZE 1 /* memory size */
[136] Fix | Delete
long val;
[137] Fix | Delete
} osd_cap_t;
[138] Fix | Delete
[139] Fix | Delete
[140] Fix | Delete
#define OSD_SEND_CMD _IOW('o', 160, osd_cmd_t)
[141] Fix | Delete
#define OSD_GET_CAPABILITY _IOR('o', 161, osd_cap_t)
[142] Fix | Delete
[143] Fix | Delete
#endif
[144] Fix | Delete
[145] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function