add load_file apply button, sketcher colorpicker alpha fix, tweak resize filebox...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / plugincommands.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef PLUGINCOMMANDS_H
23 #define PLUGINCOMMANDS_H
24
25 #define OK                                 0
26 #define CANCEL                             1
27 #define CHECK_HEADER                       43
28 #define GET_AUDIO                          2
29 #define GET_MULTICHANNEL                   3
30 #define GET_REALTIME                       4
31 // Get the title given by the plugin
32 #define GET_TITLE                          5
33 // Get the title given by the module
34 #define GET_STRING                         84
35 #define GET_VIDEO                          6
36 #define GET_FILEIO                         40
37 #define LOAD_DEFAULTS                      8
38 #define SAVE_DEFAULTS                      9
39
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
47 #define GET_SMP                            53
48 #define SET_INTERACTIVE                    13
49 #define SET_RANGE                          14
50 #define GET_BUFFERS                        15
51 #define GET_REALTIME_BUFFERS               36
52 #define START_PLUGIN                       16
53 #define COMPLETED                          17
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
59
60 // Realtime plugins
61 #define SHOW_GUI                           22
62 #define HIDE_GUI                           23
63 #define START_GUI                          24
64 #define STOP_GUI                           25
65 #define SET_STRING                         26
66 #define SAVE_DATA                          27
67 #define LOAD_DATA                          28
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
76 #define GUI_ON                             48
77 #define GUI_OFF                            49
78 #define GET_GUI_STATUS                     50
79 #define RESTART_REALTIME                   52
80
81 // Commands for I/O plugins
82 #define INTERRUPT_PARAMETERS               86
83 #define SET_CPUS                           83
84 #define OPEN_FILE                          44
85 #define CLOSE_FILE                         45
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
118
119 #endif