LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Enumerations | Functions | Variables
preferences.h File Reference

Go to the source code of this file.

Data Structures

struct  _prefs
 
struct  _prefsw
 prefs window More...
 
struct  _ign_opts
 startup overrides from commandline More...
 
struct  _future_prefs
 

Macros

#define LIVES_PREFS_TIMEOUT   (10 * U_SEC)
 
#define PREFS_PANED_POS   ((int)(200.*widget_opts.scale))
 
#define PB_QUALITY_LOW   1
 
#define PB_QUALITY_MED   2
 default More...
 
#define PB_QUALITY_HIGH   3
 
#define AUD_PLAYER_SOX   1
 
#define AUD_PLAYER_MPLAYER   2
 
#define AUD_PLAYER_JACK   3
 
#define AUD_PLAYER_PULSE   4
 
#define AUD_PLAYER_MPLAYER2   5
 
#define Q_FILL   1
 
#define Q_SMOOTH   1
 
#define WARN_MASK_FPS   (1<<0)
 
#define WARN_MASK_FSIZE   (1<<1)
 
#define WARN_MASK_SAVE_QUALITY   (1<<2)
 no longer used More...
 
#define WARN_MASK_SAVE_SET   (1<<3)
 
#define WARN_MASK_NO_MPLAYER   (1<<4)
 
#define WARN_MASK_RENDERED_FX   (1<<5)
 
#define WARN_MASK_NO_ENCODERS   (1<<6)
 
#define WARN_MASK_LAYOUT_MISSING_CLIPS   (1<<7)
 
#define WARN_MASK_LAYOUT_CLOSE_FILE   (1<<8)
 
#define WARN_MASK_LAYOUT_DELETE_FRAMES   (1<<9)
 
#define WARN_MASK_LAYOUT_SHIFT_FRAMES   (1<<10)
 
#define WARN_MASK_LAYOUT_ALTER_FRAMES   (1<<11)
 
#define WARN_MASK_DUPLICATE_SET   (1<<12)
 
#define WARN_MASK_EXIT_MT   (1<<13)
 
#define WARN_MASK_DISCARD_SET   (1<<14)
 
#define WARN_MASK_AFTER_DVGRAB   (1<<15)
 
#define WARN_MASK_MT_ACHANS   (1<<16)
 
#define WARN_MASK_LAYOUT_DELETE_AUDIO   (1<<17)
 
#define WARN_MASK_LAYOUT_SHIFT_AUDIO   (1<<18)
 
#define WARN_MASK_LAYOUT_ALTER_AUDIO   (1<<19)
 
#define WARN_MASK_MT_NO_JACK   (1<<20)
 
#define WARN_MASK_OPEN_YUV4M   (1<<21)
 
#define WARN_MASK_MT_BACKUP_SPACE   (1<<22)
 
#define WARN_MASK_LAYOUT_POPUP   (1<<23)
 
#define WARN_MASK_CLEAN_AFTER_CRASH   (1<<24)
 
#define WARN_MASK_NO_PULSE_CONNECT   (1<<25)
 
#define WARN_MASK_LAYOUT_WIPE   (1<<26)
 
#define SEPWIN_TYPE_NON_STICKY   0
 
#define SEPWIN_TYPE_STICKY   1
 
#define REC_FRAMES   (1<<0)
 
#define REC_FPS   (1<<1)
 
#define REC_EFFECTS   (1<<2)
 
#define REC_CLIPS   (1<<3)
 
#define REC_AUDIO   (1<<4)
 
#define REC_AFTER_PB   (1<<5)
 
#define AUDIO_SRC_INT   0
 
#define AUDIO_SRC_EXT   1
 
#define JACK_OPTS_TRANSPORT_CLIENT   (1<<0)
 jack can start/stop More...
 
#define JACK_OPTS_TRANSPORT_MASTER   (1<<1)
 transport master More...
 
#define JACK_OPTS_START_TSERVER   (1<<2)
 start transport server More...
 
#define JACK_OPTS_NOPLAY_WHEN_PAUSED   (1<<3)
 play audio even when transport paused More...
 
#define JACK_OPTS_START_ASERVER   (1<<4)
 start audio server More...
 
#define JACK_OPTS_TIMEBASE_START   (1<<5)
 jack sets play start position More...
 
#define JACK_OPTS_TIMEBASE_CLIENT   (1<<6)
 full timebase client More...
 
#define JACK_OPTS_TIMEBASE_MASTER   (1<<7)
 timebase master (not implemented yet) More...
 
#define JACK_OPTS_NO_READ_AUTOCON   (1<<8)
 do not auto connect read clients when playing ext audio More...
 
#define AUDIO_OPTS_FOLLOW_CLIPS   (1<<0)
 
#define AUDIO_OPTS_FOLLOW_FPS   (1<<1)
 
#define OMC_DEV_MIDI   1<<0
 
#define OMC_DEV_JS   1<<1
 
#define OMC_DEV_FORCE_RAW_MIDI   1<<2
 
#define STARTUP_CE   0
 
#define STARTUP_MT   1
 
#define DEF_DS_WARN_LEVEL   250000000
 
#define DEF_DS_CRIT_LEVEL   20000000
 
#define LIVES_CDISK_LEAVE_ORPHAN_SETS   (1<<0)
 
#define LIVES_CDISK_LEAVE_BFILES   (1<<1)
 
#define LIVES_CDISK_REMOVE_ORPHAN_LAYOUTS   (1<<2)
 
#define LIVES_CDISK_LEAVE_MARKER_FILES   (1<<3)
 
#define LIVES_CDISK_LEAVE_MISC_FILES   (1<<4)
 
#define LIVES_CDISK_REMOVE_LOCK_FILES   (1<<5)
 not yet implemented - TODO More...
 
#define LIVES_CDISK_REBUILD_ORDER_FILES   (1<<6)
 not yet implemented - TODO More...
 
#define PREF_WIN_WIDTH   (mainw->scr_width*.9)
 
#define PREF_WIN_HEIGHT   (mainw->scr_height*.9)
 
#define DS_WARN_CRIT_MAX   1000000.
 MB. More...
 
#define LIVES_PERM_OSC_PORTS   1
 

Enumerations

enum  {
  LIST_ENTRY_GUI, LIST_ENTRY_DECODING, LIST_ENTRY_PLAYBACK, LIST_ENTRY_RECORDING,
  LIST_ENTRY_ENCODING, LIST_ENTRY_EFFECTS, LIST_ENTRY_DIRECTORIES, LIST_ENTRY_WARNINGS,
  LIST_ENTRY_MISC, LIST_ENTRY_THEMES, LIST_ENTRY_NET, LIST_ENTRY_JACK,
  LIST_ENTRY_MIDI, LIST_ENTRY_MULTITRACK
}
 
enum  { LIST_ICON = 0, LIST_ITEM, LIST_NUM, N_COLUMNS }
 
enum  { PREF_REC_EXT_AUDIO, PREF_AUDIO_OPTS, PREF_SEPWIN_STICKY, PREF_MT_EXIT_RENDER }
 

Functions

void set_acodec_list_from_allowed (_prefsw *, render_details *)
 
void rdet_acodec_changed (LiVESCombo *acodec_combo, livespointer user_data)
 
_prefswcreate_prefs_dialog (void)
 
boolean on_prefs_delete_event (LiVESWidget *, LiVESXEvent *, livespointer prefsw)
 
void on_preferences_activate (LiVESMenuItem *, livespointer)
 
void on_prefs_close_clicked (LiVESButton *, livespointer)
 
void on_prefs_revert_clicked (LiVESButton *, livespointer)
 
void set_vpp (boolean set_in_prefs)
 
void on_prefDomainChanged (LiVESTreeSelection *, livespointer)
 
void populate_combo_box (LiVESCombo *, LiVESList *data)
 
void set_combo_box_active_string (LiVESCombo *, char *active_str)
 
void prefsw_set_astream_settings (_vid_playback_plugin *)
 
void prefsw_set_rec_after_settings (_vid_playback_plugin *)
 
void apply_button_set_enabled (LiVESWidget *widget, livespointer func_data)
 
void pref_factory_bool (int prefidx, boolean newval)
 
void pref_factory_int (int prefidx, int newval)
 
void pref_factory_bitmapped (int prefidx, int bitfield, boolean newval)
 
boolean lives_ask_permission (int what)
 

Variables

_prefsprefs
 
_future_prefsfuture_prefs
 
_prefswprefsw
 

Macro Definition Documentation

#define AUD_PLAYER_JACK   3
#define AUD_PLAYER_MPLAYER   2
#define AUD_PLAYER_MPLAYER2   5
#define AUD_PLAYER_PULSE   4
#define AUD_PLAYER_SOX   1
#define AUDIO_OPTS_FOLLOW_CLIPS   (1<<0)
#define AUDIO_OPTS_FOLLOW_FPS   (1<<1)
#define AUDIO_SRC_EXT   1
#define AUDIO_SRC_INT   0
#define DEF_DS_CRIT_LEVEL   20000000
#define DEF_DS_WARN_LEVEL   250000000
#define DS_WARN_CRIT_MAX   1000000.

MB.

#define JACK_OPTS_NO_READ_AUTOCON   (1<<8)

do not auto connect read clients when playing ext audio

#define JACK_OPTS_NOPLAY_WHEN_PAUSED   (1<<3)

play audio even when transport paused

#define JACK_OPTS_START_ASERVER   (1<<4)

start audio server

#define JACK_OPTS_START_TSERVER   (1<<2)

start transport server

#define JACK_OPTS_TIMEBASE_CLIENT   (1<<6)

full timebase client

#define JACK_OPTS_TIMEBASE_MASTER   (1<<7)

timebase master (not implemented yet)

#define JACK_OPTS_TIMEBASE_START   (1<<5)

jack sets play start position

#define JACK_OPTS_TRANSPORT_CLIENT   (1<<0)

jack can start/stop

#define JACK_OPTS_TRANSPORT_MASTER   (1<<1)

transport master

#define LIVES_CDISK_LEAVE_BFILES   (1<<1)
#define LIVES_CDISK_LEAVE_MARKER_FILES   (1<<3)
#define LIVES_CDISK_LEAVE_MISC_FILES   (1<<4)
#define LIVES_CDISK_LEAVE_ORPHAN_SETS   (1<<0)
#define LIVES_CDISK_REBUILD_ORDER_FILES   (1<<6)

not yet implemented - TODO

#define LIVES_CDISK_REMOVE_LOCK_FILES   (1<<5)

not yet implemented - TODO

#define LIVES_CDISK_REMOVE_ORPHAN_LAYOUTS   (1<<2)
#define LIVES_PERM_OSC_PORTS   1
#define LIVES_PREFS_TIMEOUT   (10 * U_SEC)
#define OMC_DEV_FORCE_RAW_MIDI   1<<2
#define OMC_DEV_JS   1<<1
#define OMC_DEV_MIDI   1<<0
#define PB_QUALITY_HIGH   3
#define PB_QUALITY_LOW   1
#define PB_QUALITY_MED   2

default

#define PREF_WIN_HEIGHT   (mainw->scr_height*.9)
#define PREF_WIN_WIDTH   (mainw->scr_width*.9)
#define PREFS_PANED_POS   ((int)(200.*widget_opts.scale))
#define Q_FILL   1
#define Q_SMOOTH   1
#define REC_AFTER_PB   (1<<5)
#define REC_AUDIO   (1<<4)
#define REC_CLIPS   (1<<3)
#define REC_EFFECTS   (1<<2)
#define REC_FPS   (1<<1)
#define REC_FRAMES   (1<<0)
#define SEPWIN_TYPE_NON_STICKY   0
#define SEPWIN_TYPE_STICKY   1
#define STARTUP_CE   0
#define STARTUP_MT   1
#define WARN_MASK_AFTER_DVGRAB   (1<<15)
#define WARN_MASK_CLEAN_AFTER_CRASH   (1<<24)
#define WARN_MASK_DISCARD_SET   (1<<14)
#define WARN_MASK_DUPLICATE_SET   (1<<12)
#define WARN_MASK_EXIT_MT   (1<<13)
#define WARN_MASK_FPS   (1<<0)
#define WARN_MASK_FSIZE   (1<<1)
#define WARN_MASK_LAYOUT_ALTER_AUDIO   (1<<19)
#define WARN_MASK_LAYOUT_ALTER_FRAMES   (1<<11)
#define WARN_MASK_LAYOUT_CLOSE_FILE   (1<<8)
#define WARN_MASK_LAYOUT_DELETE_AUDIO   (1<<17)
#define WARN_MASK_LAYOUT_DELETE_FRAMES   (1<<9)
#define WARN_MASK_LAYOUT_MISSING_CLIPS   (1<<7)
#define WARN_MASK_LAYOUT_POPUP   (1<<23)
#define WARN_MASK_LAYOUT_SHIFT_AUDIO   (1<<18)
#define WARN_MASK_LAYOUT_SHIFT_FRAMES   (1<<10)
#define WARN_MASK_LAYOUT_WIPE   (1<<26)
#define WARN_MASK_MT_ACHANS   (1<<16)
#define WARN_MASK_MT_BACKUP_SPACE   (1<<22)
#define WARN_MASK_MT_NO_JACK   (1<<20)
#define WARN_MASK_NO_ENCODERS   (1<<6)
#define WARN_MASK_NO_MPLAYER   (1<<4)
#define WARN_MASK_NO_PULSE_CONNECT   (1<<25)
#define WARN_MASK_OPEN_YUV4M   (1<<21)
#define WARN_MASK_RENDERED_FX   (1<<5)
#define WARN_MASK_SAVE_QUALITY   (1<<2)

no longer used

#define WARN_MASK_SAVE_SET   (1<<3)

Enumeration Type Documentation

anonymous enum
Enumerator
LIST_ENTRY_GUI 
LIST_ENTRY_DECODING 
LIST_ENTRY_PLAYBACK 
LIST_ENTRY_RECORDING 
LIST_ENTRY_ENCODING 
LIST_ENTRY_EFFECTS 
LIST_ENTRY_DIRECTORIES 
LIST_ENTRY_WARNINGS 
LIST_ENTRY_MISC 
LIST_ENTRY_THEMES 
LIST_ENTRY_NET 
LIST_ENTRY_JACK 
LIST_ENTRY_MIDI 
LIST_ENTRY_MULTITRACK 
anonymous enum
Enumerator
LIST_ICON 
LIST_ITEM 
LIST_NUM 
N_COLUMNS 
anonymous enum
Enumerator
PREF_REC_EXT_AUDIO 
PREF_AUDIO_OPTS 
PREF_SEPWIN_STICKY 
PREF_MT_EXIT_RENDER 

Function Documentation

void apply_button_set_enabled ( LiVESWidget *  widget,
livespointer  func_data 
)
_prefsw* create_prefs_dialog ( void  )
boolean lives_ask_permission ( int  what)
void on_prefDomainChanged ( LiVESTreeSelection *  ,
livespointer   
)
void on_preferences_activate ( LiVESMenuItem *  ,
livespointer   
)
void on_prefs_close_clicked ( LiVESButton *  button,
livespointer  user_data 
)

Closes preferences dialog window

boolean on_prefs_delete_event ( LiVESWidget *  ,
LiVESXEvent *  ,
livespointer  prefsw 
)
void on_prefs_revert_clicked ( LiVESButton *  ,
livespointer   
)
void populate_combo_box ( LiVESCombo *  ,
LiVESList *  data 
)
void pref_factory_bitmapped ( int  prefidx,
int  bitfield,
boolean  newval 
)
void pref_factory_bool ( int  prefidx,
boolean  newval 
)
void pref_factory_int ( int  prefidx,
int  newval 
)
void prefsw_set_astream_settings ( _vid_playback_plugin )
void prefsw_set_rec_after_settings ( _vid_playback_plugin )
void rdet_acodec_changed ( LiVESCombo *  acodec_combo,
livespointer  user_data 
)
void set_acodec_list_from_allowed ( _prefsw ,
render_details  
)
void set_combo_box_active_string ( LiVESCombo *  ,
char *  active_str 
)
void set_vpp ( boolean  set_in_prefs)

Variable Documentation

_future_prefs* future_prefs
_prefs* prefs
_prefsw* prefsw