4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef PLUGINCOMMANDS_H
23 #define PLUGINCOMMANDS_H
27 #define CHECK_HEADER 43
29 #define GET_MULTICHANNEL 3
30 #define GET_REALTIME 4
31 // Get the title given by the plugin
33 // Get the title given by the module
37 #define LOAD_DEFAULTS 8
38 #define SAVE_DEFAULTS 9
40 // Non-realtime plugins
41 #define GET_PARAMETERS 11
42 #define GET_AUDIO_PARAMETERS 41
43 #define GET_VIDEO_PARAMETERS 42
44 #define GET_SAMPLERATE 12
45 #define GET_FRAMERATE 34
46 #define GET_FRAMESIZE 35
48 #define SET_INTERACTIVE 13
50 #define GET_BUFFERS 15
51 #define GET_REALTIME_BUFFERS 36
52 #define START_PLUGIN 16
54 #define EXIT_PLUGIN 18
55 #define READ_SAMPLES 19
56 #define WRITE_SAMPLES 20
57 #define READ_FRAMES 37
58 #define WRITE_FRAMES 38
68 #define START_REALTIME 7
69 #define STOP_REALTIME 31
70 #define PROCESS_REALTIME 32
71 #define CONFIGURE_CHANGE 33
72 #define GET_USE_FLOAT 39
73 #define GET_USE_ALPHA 46
74 #define GET_USE_INTERPOLATION 47
75 #define GET_ASPECT_RATIO 51
78 #define GET_GUI_STATUS 50
79 #define RESTART_REALTIME 52
81 // Commands for I/O plugins
82 #define INTERRUPT_PARAMETERS 86
86 #define FILE_GET_HAS_AUDIO 54
87 #define FILE_GET_CHANNELS 56
88 #define FILE_GET_RATE 57
89 #define FILE_GET_BITS 58
90 #define FILE_GET_BYTE_ORDER 59
91 #define FILE_GET_SIGNED 60
92 #define FILE_GET_HEADER 61
93 #define FILE_GET_HAS_VIDEO 55
94 #define FILE_GET_LAYERS 62
95 #define FILE_GET_FRAME_RATE 63
96 #define FILE_GET_WIDTH 64
97 #define FILE_GET_HEIGHT 65
98 #define FILE_GET_QUALITY 66
99 #define FILE_GET_COMPRESSION 67
100 #define FILE_GET_ALENGTH 68
101 #define FILE_GET_VLENGTH 69
102 #define FILE_SEEK_END 70
103 #define FILE_SEEK_START 71
104 #define FILE_GET_VIDEO_POSITION 72
105 #define FILE_GET_AUDIO_POSITION 73
106 #define FILE_SET_VIDEO_POSITION 74
107 #define FILE_SET_AUDIO_POSITION 75
108 #define FILE_SET_CHANNEL 76
109 #define FILE_SET_LAYER 77
110 #define FILE_READ_SAMPLES 78
111 #define FILE_READ_FRAME 79
112 #define FILE_READ_FRAME_PTR 80
113 #define FILE_RAW_FRAME_POSSIBLE 81
114 #define FILE_STRATEGY_POSSIBLE 85
115 #define FILE_READ_RAW_FRAME 82
116 #define FILE_WRITE_SAMPLES 88
117 #define FILE_WRITE_FRAME 89