r1006: configure: Use libx264_pic instead of libx264 if available.
[cinelerra_cv/mob.git] / cinelerra / batch.h
blob603c94b5902bcfd50c72f4e3d6e31e9b9d5f20ba
1 #ifndef RECORDBATCH_H
2 #define RECORDBATCH_H
4 #include "asset.inc"
5 #include "channel.inc"
6 #include "edl.inc"
7 #include "file.inc"
8 #include "guicast.h"
9 #include "mwindow.inc"
10 #include "record.inc"
11 #include "recordlabel.inc"
13 class Batch
15 public:
16 Batch(MWindow *mwindow, Record *record);
17 ~Batch();
19 int create_objects();
20 static char* mode_to_text(int record_mode);
21 static int text_to_mode(char *text);
22 Asset* get_current_asset();
23 char* get_source_text();
24 Channel* get_current_channel_struct();
25 void calculate_news();
26 void create_default_path();
27 void copy_from(Batch *batch);
28 void toggle_label(double position);
29 void start_over();
31 MWindow *mwindow;
32 Record *record;
33 // List of assets for every file created.
34 // First asset is the default asset.
35 ArrayList<Asset*> assets;
36 // Created during recording if scene to scene.
37 // Created after recording if NULL
38 EDL *edl;
40 int current_asset;
41 int recorded;
43 // Add new sources for every input device
44 // Entry in channel table to record from
45 int channel;
47 // Time offset of start of current file from batch start
48 double file_offset;
49 // Type of start time to begin at
50 int start_type;
51 // Batch is enabled
52 int enabled;
53 // Start time of batch
54 double start_time;
55 int start_day;
56 // Number of seconds for all recording except infinite
57 double duration;
58 // Flash the color of the display while waiting for start.of batch
59 int waiting;
60 RecordLabels *labels;
61 // Totals for current batch
62 long total_samples, total_frames;
63 // Current positions
64 long current_sample, current_frame;
65 // Totals for synchronization
66 long session_samples, session_frames;
68 // Info for warning field
69 int file_exists;
70 // Record mode #define
71 int record_mode;
72 char news[BCTEXTLEN];
75 #endif