5 #include "audioconfig.inc"
6 #include "defaults.inc"
8 #include "maxchannels.h"
10 #include "preferences.inc"
11 #include "videoconfig.inc"
20 Preferences
& operator=(Preferences
&that
);
21 void copy_from(Preferences
*that
);
22 int load_defaults(Defaults
*defaults
);
23 int save_defaults(Defaults
*defaults
);
27 void add_node(char *text
, int port
, int enabled
, float rate
);
28 void delete_node(int number
);
31 // Get average frame rate or 1.0
32 float get_avg_rate(int use_master_node
);
34 void edit_node(int number
, char *new_text
, int port
, int enabled
);
35 int get_enabled_nodes();
36 char* get_node_hostname(int number
);
37 int get_node_port(int number
);
38 // Copy frame rates. Always used where the argument is the renderfarm and this is
39 // the master preferences. This way, the value for master node is properly
40 // translated from a unix socket to the local_rate.
41 void copy_rates_from(Preferences
*preferences
);
42 // Set frame rate for a node. Node -1 is the master node.
43 // The node number is relative to the enabled nodes.
44 void set_rate(float rate
, int node
);
45 // Calculate the number of cpus to use. Determined by /proc/cpuinfo and force_uniprocessor
46 int calculate_processors();
48 // ================================= Performance ================================
49 // directory to look in for indexes
50 char index_directory
[BCTEXTLEN
];
51 // size of index file in bytes
54 // Use thumbnails in AWindow assets.
57 char theme
[BCTEXTLEN
];
58 double render_preroll
;
60 int force_uniprocessor
;
61 // The number of cpus to use. Determined by /proc/cpuinfo and force_uniprocessor
67 // Number of frames in a brender job.
69 // Size of cache in bytes.
70 // Several caches of cache_size exist so multiply by 4.
71 // rendering, playback, timeline, preview
76 // If the node starts with a / it's on the localhost using a path as the socket.
77 ArrayList
<char*> renderfarm_nodes
;
78 ArrayList
<int> renderfarm_ports
;
79 ArrayList
<int> renderfarm_enabled
;
80 ArrayList
<float> renderfarm_rate
;
81 // Rate of master node
83 char renderfarm_mountpoint
[BCTEXTLEN
];
84 // Use virtual filesystem
87 int renderfarm_job_count
;
88 // Consolidate output files
89 int renderfarm_consolidate
;
94 // ====================================== Plugin Set ==============================
95 char global_plugin_dir
[BCTEXTLEN
];
96 char local_plugin_dir
[BCTEXTLEN
];
98 // Required when updating renderfarm rates
99 Mutex
*preferences_lock
;