r666: Merged the official release 2.0.
[cinelerra_cv.git] / toolame-02l / toolame.h
blob129ef1e186909c8ad729e9a1467c82a24f4f264f
1 #include <pthread.h>
5 void global_init (void);
6 void proginfo (void);
7 void short_usage (void);
9 void obtain_parameters (frame_info *, int *, unsigned long *,
10 char[MAX_NAME_SIZE], char[MAX_NAME_SIZE]);
11 void parse_args (int, char **, frame_info *, int *, unsigned long *,
12 char[MAX_NAME_SIZE], char[MAX_NAME_SIZE]);
13 void print_config (frame_info *, int *,
14 char[MAX_NAME_SIZE], char[MAX_NAME_SIZE]);
15 void usage (void);
19 void smr_dump(double smr[2][SBLIMIT], int nch);
25 // Input buffer management private structures.
26 // This is not reentrant but neither is toolame.
28 extern pthread_mutex_t toolame_input_lock;
29 extern pthread_mutex_t toolame_output_lock;
30 extern pthread_mutex_t toolame_copy_lock;
31 extern char *toolame_buffer;
32 extern int toolame_buffer_bytes;
33 extern int toolame_error;
34 extern int toolame_eof;
35 // Bigger than the biggest fragment
36 #define TOOLAME_BUFFER_BYTES 0x200000
37 // replaces fread
38 int toolame_buffer_read(char *dst, int size, int n);