aboutsummaryrefslogtreecommitdiffstats
path: root/util/av7110_loadkeys/input_fake.h
blob: 7aecc9f90983da5e6c693f041be7c97b0230a936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef _INPUT_FAKE_H
#define _INPUT_FAKE_H

#include <linux/input.h>


#if !defined(KEY_OK)

/**
 *  define some additional remote control keys in case they 
 *  were not already defined above in <linux/input.h>
 */

#define KEY_OK           0x160
#define KEY_SELECT       0x161
#define KEY_GOTO         0x162
#define KEY_CLEAR        0x163
#define KEY_POWER2       0x164
#define KEY_OPTION       0x165
#define KEY_INFO         0x166
#define KEY_TIME         0x167
#define KEY_VENDOR       0x168
#define KEY_ARCHIVE      0x169
#define KEY_PROGRAM      0x16a
#define KEY_CHANNEL      0x16b
#define KEY_FAVORITES    0x16c
#define KEY_EPG          0x16d
#define KEY_PVR          0x16e
#define KEY_MHP          0x16f
#define KEY_LANGUAGE     0x170
#define KEY_TITLE        0x171
#define KEY_SUBTITLE     0x172
#define KEY_ANGLE        0x173
#define KEY_ZOOM         0x174
#define KEY_MODE         0x175
#define KEY_KEYBOARD     0x176
#define KEY_SCREEN       0x177
#define KEY_PC           0x178
#define KEY_TV           0x179
#define KEY_TV2          0x17a
#define KEY_VCR          0x17b
#define KEY_VCR2         0x17c
#define KEY_SAT          0x17d
#define KEY_SAT2         0x17e
#define KEY_CD           0x17f
#define KEY_TAPE         0x180
#define KEY_RADIO        0x181
#define KEY_TUNER        0x182
#define KEY_PLAYER       0x183
#define KEY_TEXT         0x184
#define KEY_DVD          0x185
#define KEY_AUX          0x186
#define KEY_MP3          0x187
#define KEY_AUDIO        0x188
#define KEY_VIDEO        0x189
#define KEY_DIRECTORY    0x18a
#define KEY_LIST         0x18b
#define KEY_MEMO         0x18c
#define KEY_CALENDAR     0x18d
#define KEY_RED          0x18e
#define KEY_GREEN        0x18f
#define KEY_YELLOW       0x190
#define KEY_BLUE         0x191
#define KEY_CHANNELUP    0x192
#define KEY_CHANNELDOWN  0x193
#define KEY_FIRST        0x194
#define KEY_LAST         0x195
#define KEY_AB           0x196
#define KEY_PLAY         0x197
#define KEY_RESTART      0x198
#define KEY_SLOW         0x199
#define KEY_SHUFFLE      0x19a
#define KEY_FASTFORWARD  0x19b
#define KEY_PREVIOUS     0x19c
#define KEY_NEXT         0x19d
#define KEY_DIGITS       0x19e
#define KEY_TEEN         0x19f
#define KEY_TWEN         0x1a0
#define KEY_BREAK        0x1a1


#endif  /* !defined(KEY_OK)  */
#endif  /* _INPUT_FAKE_H */
it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #ifndef LIBDVBDEMUX_H #define LIBDVBDEMUX_H 1 #ifdef __cplusplus extern "C" { #endif #include <stdint.h> /** * Source of the data to be demuxed. * * FRONTEND. The data will be read from the frontend on the adapter. * * DVR. The data will be read from the DVR device of the adapter (of course, * you need to write data TO the DVR device as well). */ #define DVBDEMUX_INPUT_FRONTEND 0 #define DVBDEMUX_INPUT_DVR 1 /** * Destination of the demuxed data. * * DECODER. Sends the data directly to a hardware decoder (if present). * * DEMUX. Sends the PID stream to the current demux file descriptor. HOWEVER, the * data will be the payload *only* - transport stream headers will be stripped. * * DVR sends the data to the DVR device. The data will be the complete transport * stream packets with headers intact. Note: if multiple filters specify * DVBDEMUX_OUTPUT_DVR, the individual PID streams will be re-multiplexed * together. */ #define DVBDEMUX_OUTPUT_DECODER 0 #define DVBDEMUX_OUTPUT_DEMUX 1 #define DVBDEMUX_OUTPUT_DVR 2 #define DVBDEMUX_OUTPUT_TS_DEMUX 3 /** * PES types. */ #define DVBDEMUX_PESTYPE_AUDIO 0 #define DVBDEMUX_PESTYPE_VIDEO 1 #define DVBDEMUX_PESTYPE_TELETEXT 2 #define DVBDEMUX_PESTYPE_SUBTITLE 3 #define DVBDEMUX_PESTYPE_PCR 4 /** * Open a demux device. Can be called multiple times. These let you setup a * single filter per FD. It can can also be read() from if you use a section * filter, or create a pes_filter or raw_filter with output DVBDEMUX_OUTPUT_DEMUX. * * @param adapter Index of the DVB adapter. * @param demuxdevice Index of the demux device on that adapter (usually 0). * @param nonblocking If 1, frontend will be opened in nonblocking mode. * @return A unix file descriptor on success, or -1 on failure. */ extern int dvbdemux_open_demux(int adapter, int demuxdevice, int nonblocking); /** * Open a DVR device. May be opened for writing or reading once. * It is used to either write() transport stream data to be demuxed * (if input == DVBDEMUX_INPUT_DVR), or to read() a stream of demuxed data * (if output == DVBDEMUX_OUTPUT_DVR). * * Note, all demux filters with output set to DVBDEMUX_OUTPUT_DVR will be * multiplexed together and output their data on this device. * * @param adapter Index of the DVB adapter. * @param dvrdevice Index of the dvr device on that adapter (usually 0) * @param readonly If 1, frontend will be opened in readonly mode only. * @param nonblocking If 1, frontend will be opened in nonblocking mode. * @return A unix file descriptor on success, or -1 on failure. */ extern int dvbdemux_open_dvr(int adapter, int dvrdevice, int readonly, int nonblocking); /** * Set filter for the first 18 bytes of decoded SI table sections. Note that * bytes 1 and 2 are _not_ filtered since they contain the length field. * * Conceptually, the driver computes the following for each filtered bit. * * (filter[X].bit[Y] & mask[X].bit[Y]) == (header[X].bit[Y] & mask[X].bit[Y]) * * Any sections which do not match this criteria for every bit will be discarded. * * The SI data is always read from the frontend, and is always returned by * read()ing the demux fd. FIXME: check this statement! * * @param fd FD as opened with dvbdemux_open_demux() above. * @param pid PID of the stream. * @param filter The filter values of the first 18 bytes of the desired sections. * @param mask Bitmask indicating which bits in the filter array should be tested * (if a bit is 1, it will be tested). * @param start If 1, the filter will be started immediately. Otherwise you must * call dvbdemux_start() manually. * @param checkcrc If 1, the driver will check the CRC on the table sections. * Any bad sections will be dropped. * @return 0 on success, nonzero on failure. */ extern int dvbdemux_set_section_filter(int fd, int pid, uint8_t filter[18], uint8_t mask[18], int start, int checkcrc); /** * Set filter for a stream of PES data. This call can only used for cards * equipped with a hardware decoder. * * @param fd FD as opened with dvbdemux_open_demux() above. * @param pid PID of the stream. * @param input One of DVBDEMUX_INPUT_*. * @param output One of DVBDEMUX_OUTPUT_*. * @param pestype One of DVBDEMUX_PESTYPE_* - this tells the decoder the type * of data in this stream. * @param start If 1, the filter will be started immediately. Otherwise you must * call dvbdemux_start() manually. * @return 0 on success, nonzero on failure. */ extern int dvbdemux_set_pes_filter(int fd, int pid, int input, int output, int pestype, int start); /** * Create a pid filter - this will extract transport stream packets for a * specified PID. * * Note: The wildcard PID can only be used on "budget" cards. * * @param fd FD as opened with dvbdemux_open_demux() above. * @param pid PID to retrieve, or use -1 as a wildcard for ALL PIDs. * @param input One of DVBDEMUX_INPUT_*. * @param output One of DVBDEMUX_OUTPUT_*. * @param start If 1, the filter will be started immediately. Otherwise you must * call dvbdemux_start() manually. * @return 0 on success, nonzero on failure. */ extern int dvbdemux_set_pid_filter(int fd, int pid, int input, int output, int start); /** * Start a demux going. * * @param fd FD as opened with dvbdemux_open_demux() above. * @return 0 on success, nonzero on failure. */ extern int dvbdemux_start(int fd); /** * Stop a demux. * * @param fd FD as opened with dvbdemux_open_demux() above. * @return 0 on success, nonzero on failure. */ extern int dvbdemux_stop(int fd); /** * Retrieve the current STC from the demux. This call can only used for cards * equipped with a hardware decoder. * * @param fd FD as opened with dvbdemux_open_demux() above. * @param stc Where to put the retrieved STC value (in 90kHz clock). * @return 0 on success, nonzero on failure. */ extern int dvbdemux_get_stc(int fd, uint64_t *stc); /** * Change the internal buffer size used by the demuxer. The default buffer size * is 8192 bytes. Can only be used if the demux in question is stopped. * * @param fd FD as opened with dvbdemux_open_demux() above. * @param bufsize New buffer size to use. * @return 0 on success, nonzero on failure. */ extern int dvbdemux_set_buffer(int fd, int bufsize); #ifdef __cplusplus } #endif #endif // LIBDVBDEMUX_H