LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
main.h File Reference
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <stdarg.h>
#include <limits.h>
#include <float.h>
#include "widget-helper.h"
#include "../libweed/weed.h"
#include "../libweed/weed-events.h"
#include "events.h"
#include "pangotext.h"
#include <inttypes.h>
#include "plugins.h"
#include "colourspace.h"
#include "paramspecial.h"
#include "multitrack.h"
#include "mainwindow.h"
#include "keyboard.h"
#include "preferences.h"
#include <sys/time.h>

Go to the source code of this file.

Data Structures

struct  event
 
struct  xprocess
 
struct  lives_audio_track_state_t
 
struct  lives_colRGB24_t
 
struct  lives_colRGBA32_t
 
struct  lives_clip_t
 corresponds to one clip in the GUI More...
 
struct  capability
 

Macros

#define GUI_GTK
 
#define PAINTER_CAIRO
 
#define USE_GLIB
 
#define GDK_WINDOWING_X11
 
#define QUOTEME(x)   #x
 
#define MAX_FILES   65535
 max files is actually 1 more than this, since file 0 is the clipboard More...
 
#define PREFIX_DEFAULT   "/usr"
 
#define PREFIX   PREFIX_DEFAULT
 if –prefix= was not set, this is set to "NONE" More...
 
#define DOC_DIR   "/share/doc/lives-"
 
#define THEME_DIR   "/share/lives/themes/"
 
#define PLUGIN_SCRIPTS_DIR   "/share/lives/plugins/"
 
#define PLUGIN_COMPOUND_DIR   "/share/lives/plugins/"
 
#define PLUGIN_EXEC_DIR   "/lives/plugins/"
 
#define ICON_DIR   "/share/lives/icons/"
 
#define DESKTOP_ICON_DIR   "/share/app-install/icons/"
 
#define DATA_DIR   "/share/lives/"
 
#define LIVES_CONFIG_DIR   ".lives-dir/"
 
#define LIVES_TMP_NAME   "livestmp"
 
#define LIVES_DEVICE_DIR   "/dev/"
 
#define LIVES_MANUAL_URL   "http://lives.sourceforge.net/manual/"
 
#define LIVES_MANUAL_FILENAME   "LiVES_manual.html"
 
#define LIVES_AUTHOR_EMAIL   "mailto:salsaman@gmail.com"
 
#define LIVES_DONATE_URL   "https://sourceforge.net/p/lives/donate/"
 
#define LIVES_BUG_URL   "https://sourceforge.net/p/lives/bugs/"
 
#define LIVES_FEATURE_URL   "https://sourceforge.net/p/lives/feature-requests/"
 
#define LIVES_TRANSLATE_URL   "https://translations.launchpad.net/lives/trunk"
 
#define DEF_FILE_PERMS   S_IRUSR|S_IWUSR
 
#define DEF_FILE_UMASK   (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)^( DEF_FILE_PERMS )
 
#define WARN_FILE_SIZE   500
 
#define FPS_MAX   200.
 maximum fps we will allow (double) More...
 
#define MAX_FRAME_WIDTH   100000.
 
#define MAX_FRAME_HEIGHT   100000.
 
#define ENABLE_DVD_GRAB
 
#define FP_BITS   16
 
#define LIVES_INLINE   inline
 
#define PATH_MAX   4096
 
#define WARN_UNUSED
 
#define AFORM_SIGNED   0
 
#define AFORM_LITTLE_ENDIAN   0
 
#define AFORM_UNSIGNED   1
 
#define AFORM_BIG_ENDIAN   (1<<1)
 
#define AFORM_UNKNOWN   65536
 
#define LIVES_CLIP_HEADER_VERSION   100
 
#define FX_FRAME_PUMP_VAL   200
 how many frames to prime the pump for realtime effects and resampler More...
 
#define IMG_BUFF_SIZE   4096
 chunk size for reading images More...
 
#define __STDC_FORMAT_MACROS
 
#define __WORDSIZE   32
 
#define __PRI64_PREFIX   "ll"
 
#define PRId64   __PRI64_PREFIX "d"
 
#define PRIu64   __PRI64_PREFIX "u"
 
#define cfile   mainw->files[mainw->current_file]
 
#define clipboard   mainw->files[0]
 
#define PREFS_TIMEOUT   10000000
 10 seconds More...
 
#define LIVES_TV_CHANNEL1   "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm"
 
#define CEIL(a, b)   ((int)(((double)a+(double)b-.000000001)/((double)b))*b)
 
#define LIVES_NO_DEBUG
 
#define LIVES_DEBUG(x)   dummychar = x
 
#define LIVES_INFO(x)   fprintf(stderr, "LiVES info: %s\n", x)
 
#define LIVES_WARN(x)   fprintf(stderr, "LiVES warning: %s\n", x)
 
#define LIVES_ERROR(x)   {fprintf(stderr, "LiVES error: %s\n", x); break_me();}
 
#define LIVES_FATAL(x)   {fprintf(stderr, "LiVES fatal: %s\n", x); raise (LIVES_SIGSEGV);}
 

Typedefs

typedef pid_t lives_pid_t
 
typedef int lives_pgid_t
 
typedef void *(* fn_ptr )(void *ptr)
 
typedef void(* SignalHandlerPointer )(int)
 

Enumerations

enum  lives_undo_t {
  UNDO_NONE =0, UNDO_EFFECT, UNDO_RESIZABLE, UNDO_MERGE,
  UNDO_RESAMPLE, UNDO_TRIM_AUDIO, UNDO_CHANGE_SPEED, UNDO_AUDIO_RESAMPLE,
  UNDO_APPEND_AUDIO, UNDO_INSERT, UNDO_CUT, UNDO_DELETE,
  UNDO_DELETE_AUDIO, UNDO_INSERT_SILENCE, UNDO_NEW_AUDIO, UNDO_ATOMIC_RESAMPLE_RESIZE,
  UNDO_RENDER, UNDO_FADE_AUDIO, UNDO_REC_AUDIO, UNDO_INSERT_WITH_AUDIO
}
 need this for event_list_t * More...
 
enum  lives_whentostop_t { NEVER_STOP =0, STOP_ON_VID_END, STOP_ON_AUD_END }
 which stream end should cause playback to finish ? More...
 
enum  lives_cancel_t {
  CANCEL_NONE =FALSE, CANCEL_USER, CANCEL_NO_PROPOGATE, CANCEL_PREVIEW_FINISHED,
  CANCEL_APP_QUIT, CANCEL_NO_MORE_PREVIEW, CANCEL_CAPTURE_ERROR, CANCEL_EVENT_LIST_END,
  CANCEL_VID_END, CANCEL_GENERATOR_END, CANCEL_KEEP, CANCEL_AUD_END,
  CANCEL_ERROR, CANCEL_USER_PAUSED, CANCEL_KEEP_LOOPING =CANCEL_NONE+100
}
 cancel reason More...
 
enum  lives_cancel_type_t { CANCEL_KILL =0, CANCEL_SOFT }
 
enum  lives_clip_type_t {
  CLIP_TYPE_DISK, CLIP_TYPE_YUV4MPEG, CLIP_TYPE_GENERATOR, CLIP_TYPE_FILE,
  CLIP_TYPE_LIVES2LIVES, CLIP_TYPE_VIDEODEV
}
 
enum  lives_image_type_t { IMG_TYPE_UNKNOWN =0, IMG_TYPE_JPEG, IMG_TYPE_PNG }
 
enum  lives_interlace_t {
  LIVES_INTERLACE_NONE =0, LIVES_INTERLACE_BOTTOM_FIRST =1, LIVES_INTERLACE_TOP_FIRST =2, LIVES_INTERLACE_NONE =0,
  LIVES_INTERLACE_BOTTOM_FIRST =1, LIVES_INTERLACE_TOP_FIRST =2
}
 
enum  lives_clip_details_t {
  CLIP_DETAILS_BPP, CLIP_DETAILS_FPS, CLIP_DETAILS_PB_FPS, CLIP_DETAILS_WIDTH,
  CLIP_DETAILS_HEIGHT, CLIP_DETAILS_UNIQUE_ID, CLIP_DETAILS_ARATE, CLIP_DETAILS_PB_ARATE,
  CLIP_DETAILS_ACHANS, CLIP_DETAILS_ASIGNED, CLIP_DETAILS_AENDIAN, CLIP_DETAILS_ASAMPS,
  CLIP_DETAILS_FRAMES, CLIP_DETAILS_TITLE, CLIP_DETAILS_AUTHOR, CLIP_DETAILS_COMMENT,
  CLIP_DETAILS_PB_FRAMENO, CLIP_DETAILS_FILENAME, CLIP_DETAILS_CLIPNAME, CLIP_DETAILS_HEADER_VERSION,
  CLIP_DETAILS_KEYWORDS, CLIP_DETAILS_INTERLACE, CLIP_DETAILS_DECODER_NAME
}
 

Functions

uint64_t lives_random (void)
 
xprocesscreate_processing (const char *text)
 
void add_to_clipmenu (void)
 
void remove_from_clipmenu (void)
 
void make_play_window (void)
 
void resize_play_window (void)
 
void kill_play_window (void)
 
void make_preview_box (void)
 
void play_window_set_title (void)
 
void add_to_playframe (void)
 
LiVESWidget * create_cdtrack_dialog (int type, livespointer user_data)
 
LiVESTextView * create_output_textview (void)
 
char * choose_file (const char *dir, const char *fname, char **const filt, LiVESFileChooserAction act, const char *title, LiVESWidget *extra)
 
LiVESWidget * choose_file_with_preview (const char *dir, const char *title, int preview_type)
 
void add_suffix_check (LiVESBox *box, const char *ext)
 
boolean do_progress_dialog (boolean visible, boolean cancellable, const char *text)
 
boolean do_warning_dialog (const char *text)
 
boolean do_warning_dialog_with_check (const char *text, int warn_mask_number)
 
boolean do_warning_dialog_with_check_transient (const char *text, int warn_mask_number, LiVESWindow *transient)
 
boolean do_yesno_dialog (const char *text)
 
boolean do_yesno_dialog_with_check (const char *text, int warn_mask_number)
 
boolean do_yesno_dialog_with_check_transient (const char *text, int warn_mask_number, LiVESWindow *transient)
 
int do_abort_cancel_retry_dialog (const char *text, LiVESWindow *transient) WARN_UNUSED
 
int do_error_dialog (const char *text)
 
int do_info_dialog (const char *text)
 
int do_error_dialog_with_check (const char *text, int warn_mask_number)
 
int do_blocking_error_dialog (const char *text)
 
int do_blocking_info_dialog (const char *text)
 
int do_error_dialog_with_check_transient (const char *text, boolean is_blocking, int warn_mask_number, LiVESWindow *transient)
 
int do_info_dialog_with_transient (const char *text, boolean is_blocking, LiVESWindow *transient)
 
LiVESWidget * create_message_dialog (lives_dialog_t diat, const char *text, LiVESWindow *transient, int warn_mask_number, boolean is_blocking)
 
void do_system_failed_error (const char *com, int retval, const char *addinfo)
 
int do_write_failed_error_s_with_retry (const char *fname, const char *errtext, LiVESWindow *transient) WARN_UNUSED
 
void do_write_failed_error_s (const char *filename, const char *addinfo)
 
int do_read_failed_error_s_with_retry (const char *fname, const char *errtext, LiVESWindow *transient) WARN_UNUSED
 
void do_read_failed_error_s (const char *filename, const char *addinfo)
 
boolean do_header_write_error (int clip)
 
int do_header_read_error_with_retry (int clip) WARN_UNUSED
 
int do_header_missing_detail_error (int clip, lives_clip_details_t detail) WARN_UNUSED
 
void do_chdir_failed_error (const char *dir)
 
void handle_backend_errors (void)
 
boolean check_backend_return (lives_clip_t *sfile)
 
char * ds_critical_msg (const char *dir, uint64_t dsval)
 
char * ds_warning_msg (const char *dir, uint64_t dsval, uint64_t cwarn, uint64_t nwarn)
 
boolean check_storage_space (lives_clip_t *sfile, boolean is_processing)
 
char * get_upd_msg (void)
 
char * get_new_install_msg (void)
 
boolean ask_permission_dialog (int what)
 
boolean do_abort_check (void)
 
void add_warn_check (LiVESBox *box, int warn_mask_number)
 
void do_memory_error_dialog (void)
 
void too_many_files (void)
 
void tempdir_warning (void)
 
void do_audio_import_error (void)
 
void do_mt_backup_space_error (lives_mt *, int memreq_mb)
 
boolean do_clipboard_fps_warning (void)
 
void perf_mem_warning (void)
 
void do_dvgrab_error (void)
 
boolean do_comments_dialog (lives_clip_t *sfile, char *filename)
 
boolean do_auto_dialog (const char *text, int type)
 
void do_encoder_acodec_error (void)
 
void do_encoder_sox_error (void)
 
boolean rdet_suggest_values (int width, int height, double fps, int fps_num, int fps_denom, int arate, int asigned, boolean swap_endian, boolean anr, boolean ignore_fps)
 
boolean do_encoder_restrict_dialog (int width, int height, double fps, int fps_num, int fps_denom, int arate, int asigned, boolean swap_endian, boolean anr, boolean save_all)
 
void do_keys_window (void)
 
void do_mt_keys_window (void)
 
void do_messages_window (void)
 
void do_firstever_dialog (void)
 
void do_upgrade_error_dialog (void)
 
void do_no_mplayer_sox_error (void)
 
void do_aud_during_play_error (void)
 
void do_rendered_fx_dialog (void)
 
void do_layout_scrap_file_error (void)
 
void do_layout_ascrap_file_error (void)
 
void do_set_load_lmap_error (void)
 
boolean do_set_duplicate_warning (const char *new_set)
 
boolean do_set_rename_old_layouts_warning (const char *new_set)
 
boolean do_layout_alter_frames_warning (void)
 
boolean do_layout_alter_audio_warning (void)
 
boolean do_yuv4m_open_warning (void)
 
void do_mt_undo_mem_error (void)
 
void do_mt_undo_buf_error (void)
 
void do_mt_set_mem_error (boolean has_mt, boolean trans)
 
void do_mt_audchan_error (int warn_mask)
 
void do_mt_no_audchan_error (void)
 
void do_mt_no_jack_error (int warn_mask)
 
boolean do_mt_rect_prompt (void)
 
void do_audrate_error_dialog (void)
 
boolean do_event_list_warning (void)
 
void do_nojack_rec_error (void)
 
void do_vpp_palette_error (void)
 
void do_vpp_fps_error (void)
 
void do_decoder_palette_error (void)
 
void do_rmem_max_error (int size)
 
boolean do_original_lost_warning (const char *fname)
 
void do_no_decoder_error (const char *fname)
 
void do_jack_noopen_warn (void)
 
void do_jack_noopen_warn2 (void)
 
void do_jack_noopen_warn3 (void)
 
void do_jack_noopen_warn4 (void)
 
void do_file_perm_error (const char *file_name)
 
void do_dir_perm_error (const char *dir_name)
 
void do_dir_perm_access_error (const char *dir_name)
 
void do_encoder_img_ftm_error (render_details *rdet)
 
void do_after_crash_warning (void)
 
void do_bad_layout_error (void)
 
void do_card_in_use_error (void)
 
void do_dev_busy_error (const char *devstr)
 
boolean do_existing_subs_warning (void)
 
void do_invalid_subs_error (void)
 
boolean do_erase_subs_warning (void)
 
boolean do_sub_type_warning (const char *ext, const char *type_ext)
 
boolean do_move_tmpdir_dialog (void)
 
void do_set_locked_warning (const char *setname)
 
void do_no_in_vdevs_error (void)
 
void do_locked_in_vdevs_error (void)
 
void do_do_not_close_d (void)
 
void do_set_noclips_error (const char *setname)
 
void do_no_autolives_error (void)
 
void do_autolives_needs_clips_error (void)
 
void do_pulse_lost_conn_error (void)
 
void do_jack_lost_conn_error (void)
 
boolean process_one (boolean visible)
 
void do_threaded_dialog (char *translated_text, boolean has_cancel)
 
void end_threaded_dialog (void)
 
void threaded_dialog_spin (void)
 
void response_ok (LiVESButton *button, livespointer user_data)
 
void pump_io_chan (LiVESIOChannel *iochan)
 
void do_splash_progress (void)
 
void d_print_cancelled (void)
 
void d_print_failed (void)
 
void d_print_done (void)
 
void d_print_file_error_failed (void)
 
void do_text_window (const char *title, const char *text)
 
boolean read_file_details (const char *file_name, boolean only_check_for_audio)
 
boolean add_file_info (const char *check_handle, boolean aud_only)
 
boolean save_file_comments (int fileno)
 
boolean reload_clip (int fileno)
 
void reget_afilesize (int fileno)
 
ulong deduce_file (const char *filename, double start_time, int end)
 
ulong open_file (const char *filename)
 
ulong open_file_sel (const char *file_name, double start_time, int frames)
 
void open_fw_device (void)
 
boolean get_new_handle (int index, const char *name)
 
boolean get_temp_handle (int index, boolean create)
 
boolean get_handle_from_info_file (int index)
 
void create_cfile (void)
 
void save_file (int clip, int start, int end, const char *filename)
 
void play_file (void)
 
void save_frame (LiVESMenuItem *menuitem, livespointer user_data)
 
boolean save_frame_inner (int clip, int frame, const char *file_name, int width, int height, boolean from_osc)
 
void wait_for_stop (const char *stop_command)
 
boolean save_clip_values (int which_file)
 
void add_to_recovery_file (const char *handle)
 
void rewrite_recovery_file (void)
 
boolean check_for_recovery_files (boolean auto_recover)
 
void recover_layout_map (int numclips)
 
const char * get_deinterlace_string (void)
 
void backup_file (int clip, int start, int end, const char *filename)
 
int save_event_frames (void)
 
boolean write_headers (lives_clip_t *file)
 
ulong restore_file (const char *filename)
 
boolean read_headers (const char *file_name)
 
void open_set_file (const char *set_name, int clipnum)
 
boolean open_scrap_file (void)
 
boolean open_ascrap_file (void)
 
int save_to_scrap_file (weed_plant_t *layer)
 
boolean load_from_scrap_file (weed_plant_t *layer, int frame)
 
void close_ascrap_file (void)
 
void close_scrap_file (void)
 
void set_signal_handlers (SignalHandlerPointer sigfunc)
 
void catch_sigint (int signum)
 
void defer_sigint (int signum)
 
boolean startup_message_fatal (const char *msg)
 
boolean startup_message_nonfatal (const char *msg)
 
boolean startup_message_info (const char *msg)
 
boolean startup_message_nonfatal_dismissable (const char *msg, int warning_mask)
 
capabilityget_capabilities (void)
 
void get_monitors (void)
 
void set_ce_frame_from_pixbuf (LiVESImage *image, LiVESPixbuf *pixbuf, lives_painter_t *)
 
void load_start_image (int frame)
 
void load_end_image (int frame)
 
void load_preview_image (boolean update_always)
 
boolean pull_frame (weed_plant_t *layer, const char *image_ext, weed_timecode_t tc)
 
void pull_frame_threaded (weed_plant_t *layer, const char *img_ext, weed_timecode_t tc)
 
void check_layer_ready (weed_plant_t *layer)
 
boolean pull_frame_at_size (weed_plant_t *layer, const char *image_ext, weed_timecode_t tc, int width, int height, int target_palette)
 
LiVESPixbuf * pull_lives_pixbuf_at_size (int clip, int frame, const char *image_ext, weed_timecode_t tc, int width, int height, LiVESInterpType interp)
 
LiVESPixbuf * pull_lives_pixbuf (int clip, int frame, const char *image_ext, weed_timecode_t tc)
 
LiVESError * lives_pixbuf_save (LiVESPixbuf *pixbuf, char *fname, lives_image_type_t imgtype, int quality, boolean do_chmod, LiVESError **gerrorptr)
 
void init_track_decoders (void)
 
void free_track_decoders (void)
 
void load_frame_image (int frame)
 
void sensitize (void)
 
void desensitize (void)
 
void procw_desensitize (void)
 
void close_current_file (int file_to_switch_to)
 close current file, and try to switch to file_to_switch_to More...
 
void get_next_free_file (void)
 
void switch_to_file (int old_file, int new_file)
 
void do_quick_switch (int new_file)
 
void switch_audio_clip (int new_file, boolean activate)
 
void resize (double scale)
 
void do_start_messages (void)
 
void set_palette_colours (void)
 
void set_main_title (const char *filename, int or_untitled_number)
 
void set_record (void)
 
void create_LiVES (void)
 
void set_interactive (boolean interactive)
 
char * get_menu_name (lives_clip_t *sfile)
 
void enable_record (void)
 
void toggle_record (void)
 
void disable_record (void)
 
void make_custom_submenus (void)
 
void fade_background (void)
 
void unfade_background (void)
 
void block_expose (void)
 
void unblock_expose (void)
 
void frame_size_update (void)
 
void splash_init (void)
 
void splash_end (void)
 
void splash_msg (const char *msg, double pct)
 
void add_message_scroller (LiVESWidget *conter)
 
void resize_widgets_for_monitor (boolean get_play_times)
 
int lives_system (const char *com, boolean allow_error)
 
lives_pid_t lives_fork (const char *com)
 
int lives_open_buffered_rdonly (const char *pathname)
 
int lives_creat_buffered (const char *pathname, int mode)
 
int lives_close_buffered (int fd)
 
void lives_close_all_file_buffers (void)
 
off_t lives_lseek_buffered_rdonly (int fd, off_t offset)
 
ssize_t lives_write (int fd, livesconstpointer buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_buffered (int fd, livesconstpointer buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_le (int fd, livesconstpointer buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_le_buffered (int fd, livesconstpointer buf, size_t count, boolean allow_fail)
 
ssize_t lives_read (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_buffered (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_le (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_le_buffered (int fd, void *buf, size_t count, boolean allow_less)
 
int lives_chdir (const char *path, boolean allow_fail)
 
int lives_fputs (const char *s, FILE *stream)
 
char * lives_fgets (char *s, int size, FILE *stream)
 
pid_t lives_getpid (void)
 
int lives_getgid (void)
 
int lives_getuid (void)
 
void lives_freep (void **ptr)
 
int lives_kill (lives_pid_t pid, int sig)
 
int lives_killpg (lives_pgid_t pgrp, int sig)
 
void lives_srandom (unsigned int seed)
 
ssize_t lives_readlink (const char *path, char *buf, size_t bufsiz)
 
boolean lives_setenv (const char *name, const char *value)
 
boolean lives_fsync (int fd)
 
void lives_sync (void)
 
int lives_utf8_strcasecmp (const char *s1, const char *s2)
 
char * filename_from_fd (char *val, int fd)
 
float LEFloat_to_BEFloat (float f)
 
uint64_t lives_10pow (int pow)
 
int get_approx_ln (uint32_t val)
 
int64_t lives_get_current_ticks (void)
 
boolean lives_alarm_get (int alarm_handle)
 
int lives_alarm_set (int64_t ticks)
 
void lives_alarm_clear (int alarm_handle)
 
lives_storage_status_t get_storage_status (const char *dir, uint64_t warn_level, uint64_t *dsval)
 
char * lives_format_storage_space_string (uint64_t space)
 
int myround (double n)
 
void get_dirname (char *filename)
 
char * get_dir (const char *filename)
 
void get_basename (char *filename)
 
void get_filename (char *filename, boolean strip_dir)
 
char * get_extension (const char *filename)
 
uint64_t get_version_hash (const char *exe, const char *sep, int piece)
 
uint64_t make_version_hash (const char *ver)
 
void d_print (const char *fmt,...)
 
void init_clipboard (void)
 
boolean cache_file_contents (const char *filename)
 
char * get_val_from_cached_list (const char *key, size_t maxlen)
 
void get_location (const char *exe, char *val, int maxlen)
 
void set_menu_text (LiVESWidget *menu, const char *text, boolean use_mnemonic)
 
void get_menu_text (LiVESWidget *menu, char *text)
 
void get_menu_text_long (LiVESWidget *menuitem, char *text)
 
void reset_clipmenu (void)
 
void get_play_times (void)
 
void get_total_time (lives_clip_t *file)
 
uint32_t get_signed_endian (boolean is_signed, boolean little_endian)
 
void fullscreen_internal (void)
 
void switch_to_int_player (void)
 
void switch_to_mplayer (void)
 
void switch_aud_to_sox (boolean set_pref)
 
boolean switch_aud_to_jack (void)
 
boolean switch_aud_to_pulse (void)
 
void switch_aud_to_mplayer (boolean set_pref)
 
void switch_aud_to_mplayer2 (boolean set_pref)
 
boolean prepare_to_play_foreign (void)
 
boolean after_foreign_play (void)
 
boolean check_file (const char *file_name, boolean check_exists)
 check if file exists More...
 
boolean check_dir_access (const char *dir)
 
uint64_t get_file_size (int fd)
 
uint64_t sget_file_size (const char *name)
 
uint64_t get_fs_free (const char *dir)
 
boolean is_writeable_dir (const char *dir)
 
boolean ensure_isdir (char *fname)
 
char * ensure_extension (const char *fname, const char *ext) WARN_UNUSED
 
boolean check_dev_busy (char *devstr)
 
void activate_url_inner (const char *link)
 
void activate_url (LiVESAboutDialog *about, const char *link, livespointer data)
 
void show_manual_section (const char *lang, const char *section)
 
double calc_time_from_frame (int clip, int frame)
 
int calc_frame_from_time (int filenum, double time)
 nearest frame start More...
 
int calc_frame_from_time2 (int filenum, double time)
 nearest frame end More...
 
int calc_frame_from_time3 (int filenum, double time)
 nearest frame mid More...
 
boolean check_for_ratio_fps (double fps)
 
double get_ratio_fps (const char *string)
 
void calc_maxspect (int rwidth, int rheight, int *cwidth, int *cheight)
 
char * remove_trailing_zeroes (double val)
 
void remove_layout_files (LiVESList *lmap)
 
boolean add_lmap_error (lives_lmap_error_t lerror, const char *name, livespointer user_data, int clipno, int frameno, double atime, boolean affects_current)
 
void clear_lmap_errors (void)
 
boolean prompt_remove_layout_files (void)
 
boolean is_legal_set_name (const char *set_name, boolean allow_dupes)
 
char * repl_tmpdir (const char *entry, boolean fwd)
 
char * clip_detail_to_string (lives_clip_details_t what, size_t *maxlenp)
 
boolean get_clip_value (int which, lives_clip_details_t, void *retval, size_t maxlen)
 
void save_clip_value (int which, lives_clip_details_t, void *val)
 
boolean check_frame_count (int idx)
 
void get_frame_count (int idx)
 
void get_frames_sizes (int fileno, int frame_to_test)
 
int count_resampled_frames (int in_frames, double orig_fps, double resampled_fps)
 
boolean int_array_contains_value (int *array, int num_elems, int value)
 
boolean check_for_lock_file (const char *set_name, int type)
 
void lives_list_free_strings (LiVESList *list)
 
boolean create_event_space (int length_in_eventsb)
 
void add_to_recent (const char *filename, double start, int frames, const char *file_open_params)
 
int verhash (char *version)
 
void set_undoable (const char *what, boolean sensitive)
 
void set_redoable (const char *what, boolean sensitive)
 
void zero_spinbuttons (void)
 
void draw_little_bars (double ptrtime)
 
void set_sel_label (LiVESWidget *label)
 
void clear_mainw_msg (void)
 
int get_token_count (const char *string, int delim)
 
LiVESPixbuf * lives_pixbuf_new_blank (int width, int height, int palette)
 
char * lives_strappend (char *string, int len, const char *newbit)
 
LiVESList * lives_list_append_unique (LiVESList *xlist, const char *add)
 
void find_when_to_stop (void)
 
int calc_new_playback_position (int fileno, uint64_t otc, uint64_t *ntc)
 
void calc_aframeno (int fileno)
 
void minimise_aspect_delta (double allowed_aspect, int hblock, int vblock, int hsize, int vsize, int *width, int *height)
 
LiVESInterpType get_interp_value (short quality)
 
LiVESList * lives_list_move_to_first (LiVESList *list, LiVESList *item) WARN_UNUSED
 
LiVESList * lives_list_delete_string (LiVESList *, char *string) WARN_UNUSED
 
LiVESList * lives_list_copy_strings (LiVESList *list)
 
boolean string_lists_differ (LiVESList *, LiVESList *)
 
boolean is_realtime_aplayer (int ptype)
 
LiVESList * get_set_list (const char *dir, boolean utf8)
 
char * subst (const char *string, const char *from, const char *to)
 
char * insert_newlines (const char *text, int maxwidth)
 
int hextodec (char *string)
 
int get_hex_digit (const char *c)
 
const char * get_image_ext_for_type (lives_image_type_t imgtype)
 
uint32_t fastrand (void)
 
void fastsrand (uint32_t seed)
 
int lives_list_strcmp_index (LiVESList *list, livesconstpointer data)
 
lives_cancel_t check_for_bad_ffmpeg (void)
 
LiVESList * get_external_window_hints (lives_rfx_t *rfx)
 
boolean check_encoder_restrictions (boolean get_extension, boolean user_audio, boolean save_all)
 
void lives_exit (int signum)
 
void lives_notify (int msgnumber, const char *msgstring)
 
const char * get_set_name (void)
 
void count_opening_frames (void)
 
void on_fileread_clicked (LiVESFileChooser *, livespointer widget)
 
boolean dirchange_callback (LiVESAccelGroup *, LiVESObject *, uint32_t, LiVESXModifierType, livespointer user_data)
 
void on_effects_paused (LiVESButton *, livespointer user_data)
 
void on_cancel_keep_button_clicked (LiVESButton *, livespointer user_data)
 
void on_cleardisk_activate (LiVESWidget *, livespointer user_data)
 
void on_cleardisk_advanced_clicked (LiVESWidget *, livespointer user_data)
 
void popup_lmap_errors (LiVESMenuItem *, livespointer)
 
void on_filesel_button_clicked (LiVESButton *, livespointer user_data)
 
void switch_clip (int type, int newclip)
 
void on_details_button_clicked (void)
 
void get_pref (const char *key, char *val, int maxlen)
 
void get_pref_utf8 (const char *key, char *val, int maxlen)
 
void get_pref_default (const char *key, char *val, int maxlen)
 
boolean get_boolean_pref (const char *key)
 
double get_double_pref (const char *key)
 
int get_int_pref (const char *key)
 
LiVESList * get_list_pref (const char *key)
 
void set_pref (const char *key, const char *value)
 
void delete_pref (const char *key)
 
void set_boolean_pref (const char *key, boolean value)
 
void set_double_pref (const char *key, double value)
 
void set_int_pref (const char *key, int value)
 
void set_int64_pref (const char *key, int64_t value)
 
void set_list_pref (const char *key, LiVESList *values)
 
boolean apply_prefs (boolean skip_warnings)
 
void save_future_prefs (void)
 
LiVESPixbuf * make_thumb (lives_mt *, int file, int width, int height, int frame, boolean noblanks)
 
LiVESPixbuf * mt_framedraw (lives_mt *, LiVESPixbuf *)
 
LiVESWidget * refresh_rte_window (void)
 
livespointer _lives_malloc (size_t size)
 
livespointer lives_memcpy (livespointer dest, livesconstpointer src, size_t n)
 
livespointer lives_memset (livespointer s, int c, size_t n)
 
void _lives_free (livespointer ptr)
 calls mainw->free_fn More...
 
livespointer lives_calloc (size_t n_blocks, size_t n_block_bytes)
 
livespointer _lives_realloc (livespointer ptr, size_t new_size)
 
void _lives_free_normal (livespointer ptr)
 values of mainw->free_fn More...
 
void _lives_free_with_check (livespointer ptr)
 checks if ptr is mainw->do_not_free, otherwise calls lives_free_normal() More...
 
boolean subtitles_init (lives_clip_t *sfile, char *fname, lives_subtitle_type_t)
 
void subtitles_free (lives_clip_t *sfile)
 
boolean get_srt_text (lives_clip_t *sfile, double xtime)
 
boolean get_sub_text (lives_clip_t *sfile, double xtime)
 
boolean save_sub_subtitles (lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
 
boolean save_srt_subtitles (lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
 
void break_me (void)
 

Variables

capabilitycapable
 some shared structures More...
 
mainwindowmainw
 
struct timeval tv
 
ssize_t sizint
 type sizes More...
 
ssize_t sizdbl
 
ssize_t sizshrt
 
char * dummychar
 

Macro Definition Documentation

#define __PRI64_PREFIX   "ll"
#define __STDC_FORMAT_MACROS
#define __WORDSIZE   32
#define AFORM_BIG_ENDIAN   (1<<1)
#define AFORM_LITTLE_ENDIAN   0
#define AFORM_SIGNED   0
#define AFORM_UNKNOWN   65536
#define AFORM_UNSIGNED   1
#define CEIL (   a,
 
)    ((int)(((double)a+(double)b-.000000001)/((double)b))*b)
#define cfile   mainw->files[mainw->current_file]
#define clipboard   mainw->files[0]
#define DATA_DIR   "/share/lives/"
#define DEF_FILE_PERMS   S_IRUSR|S_IWUSR
#define DEF_FILE_UMASK   (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)^( DEF_FILE_PERMS )
#define DESKTOP_ICON_DIR   "/share/app-install/icons/"
#define DOC_DIR   "/share/doc/lives-"
#define ENABLE_DVD_GRAB
#define FP_BITS   16
#define FPS_MAX   200.

maximum fps we will allow (double)

#define FX_FRAME_PUMP_VAL   200

how many frames to prime the pump for realtime effects and resampler

#define GDK_WINDOWING_X11
#define GUI_GTK
#define ICON_DIR   "/share/lives/icons/"
#define IMG_BUFF_SIZE   4096

chunk size for reading images

#define LIVES_AUTHOR_EMAIL   "mailto:salsaman@gmail.com"
#define LIVES_BUG_URL   "https://sourceforge.net/p/lives/bugs/"
#define LIVES_CLIP_HEADER_VERSION   100
#define LIVES_CONFIG_DIR   ".lives-dir/"
#define LIVES_DEBUG (   x)    dummychar = x
#define LIVES_DEVICE_DIR   "/dev/"
#define LIVES_DONATE_URL   "https://sourceforge.net/p/lives/donate/"
#define LIVES_ERROR (   x)    {fprintf(stderr, "LiVES error: %s\n", x); break_me();}
#define LIVES_FATAL (   x)    {fprintf(stderr, "LiVES fatal: %s\n", x); raise (LIVES_SIGSEGV);}
#define LIVES_FEATURE_URL   "https://sourceforge.net/p/lives/feature-requests/"
#define LIVES_INFO (   x)    fprintf(stderr, "LiVES info: %s\n", x)
#define LIVES_INLINE   inline
#define LIVES_MANUAL_FILENAME   "LiVES_manual.html"
#define LIVES_MANUAL_URL   "http://lives.sourceforge.net/manual/"
#define LIVES_NO_DEBUG
#define LIVES_TMP_NAME   "livestmp"
#define LIVES_TRANSLATE_URL   "https://translations.launchpad.net/lives/trunk"
#define LIVES_TV_CHANNEL1   "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm"
#define LIVES_WARN (   x)    fprintf(stderr, "LiVES warning: %s\n", x)
#define MAX_FILES   65535

max files is actually 1 more than this, since file 0 is the clipboard

#define MAX_FRAME_HEIGHT   100000.
#define MAX_FRAME_WIDTH   100000.
#define PAINTER_CAIRO
#define PATH_MAX   4096
#define PLUGIN_COMPOUND_DIR   "/share/lives/plugins/"
#define PLUGIN_EXEC_DIR   "/lives/plugins/"
#define PLUGIN_SCRIPTS_DIR   "/share/lives/plugins/"
#define PREFIX   PREFIX_DEFAULT

if –prefix= was not set, this is set to "NONE"

#define PREFIX_DEFAULT   "/usr"

this must match AC_PREFIX_DEFAULT in configure.in TODO - when lives-plugins is a separate package, use pkg-config to get PREFIX and remove PREFIX_DEFAULT

#define PREFS_TIMEOUT   10000000

10 seconds

#define PRId64   __PRI64_PREFIX "d"
#define PRIu64   __PRI64_PREFIX "u"
#define QUOTEME (   x)    #x
#define THEME_DIR   "/share/lives/themes/"
#define USE_GLIB
#define WARN_FILE_SIZE   500

LiVES will show a warning if this (MBytes) is exceeded on load (can be overridden in prefs)

#define WARN_UNUSED

Typedef Documentation

typedef void*(* fn_ptr)(void *ptr)
typedef int lives_pgid_t
typedef pid_t lives_pid_t
typedef void(* SignalHandlerPointer)(int)

Enumeration Type Documentation

cancel reason

Enumerator
CANCEL_NONE 

no cancel

CANCEL_USER 

user pressed stop

CANCEL_NO_PROPOGATE 

cancel but keep opening

CANCEL_PREVIEW_FINISHED 

effect processing finished during preview

CANCEL_APP_QUIT 

application quit

CANCEL_NO_MORE_PREVIEW 

ran out of preview frames

CANCEL_CAPTURE_ERROR 

image could not be captured

CANCEL_EVENT_LIST_END 

event_list completed

CANCEL_VID_END 

video playback completed

CANCEL_GENERATOR_END 

generator was stopped

CANCEL_KEEP 

user pressed 'Keep'

CANCEL_AUD_END 

video playback completed

CANCEL_ERROR 

cancelled because of error

CANCEL_USER_PAUSED 

cancelled and paused

CANCEL_KEEP_LOOPING 

special cancel for TV toy

Enumerator
CANCEL_KILL 

normal - kill background processes working on current clip

CANCEL_SOFT 

just cancel in GUI (for keep, etc)

Enumerator
CLIP_DETAILS_BPP 
CLIP_DETAILS_FPS 
CLIP_DETAILS_PB_FPS 
CLIP_DETAILS_WIDTH 
CLIP_DETAILS_HEIGHT 
CLIP_DETAILS_UNIQUE_ID 
CLIP_DETAILS_ARATE 
CLIP_DETAILS_PB_ARATE 
CLIP_DETAILS_ACHANS 
CLIP_DETAILS_ASIGNED 
CLIP_DETAILS_AENDIAN 
CLIP_DETAILS_ASAMPS 
CLIP_DETAILS_FRAMES 
CLIP_DETAILS_TITLE 
CLIP_DETAILS_AUTHOR 
CLIP_DETAILS_COMMENT 
CLIP_DETAILS_PB_FRAMENO 
CLIP_DETAILS_FILENAME 
CLIP_DETAILS_CLIPNAME 
CLIP_DETAILS_HEADER_VERSION 
CLIP_DETAILS_KEYWORDS 
CLIP_DETAILS_INTERLACE 
CLIP_DETAILS_DECODER_NAME 
Enumerator
CLIP_TYPE_DISK 

imported video, broken into frames

CLIP_TYPE_YUV4MPEG 

yuv4mpeg stream

CLIP_TYPE_GENERATOR 

frames from generator plugin

CLIP_TYPE_FILE 

unimported video, not or partially broken in frames

CLIP_TYPE_LIVES2LIVES 

type for LiVES to LiVES streaming

CLIP_TYPE_VIDEODEV 

frames from video device

Enumerator
IMG_TYPE_UNKNOWN 
IMG_TYPE_JPEG 
IMG_TYPE_PNG 
Enumerator
LIVES_INTERLACE_NONE 
LIVES_INTERLACE_BOTTOM_FIRST 
LIVES_INTERLACE_TOP_FIRST 
LIVES_INTERLACE_NONE 
LIVES_INTERLACE_BOTTOM_FIRST 
LIVES_INTERLACE_TOP_FIRST 

need this for event_list_t *

Enumerator
UNDO_NONE 
UNDO_EFFECT 
UNDO_RESIZABLE 
UNDO_MERGE 
UNDO_RESAMPLE 
UNDO_TRIM_AUDIO 
UNDO_CHANGE_SPEED 
UNDO_AUDIO_RESAMPLE 
UNDO_APPEND_AUDIO 
UNDO_INSERT 
UNDO_CUT 
UNDO_DELETE 
UNDO_DELETE_AUDIO 
UNDO_INSERT_SILENCE 
UNDO_NEW_AUDIO 
UNDO_ATOMIC_RESAMPLE_RESIZE 

resample/resize and resample audio for encoding

UNDO_RENDER 

resample/reorder/resize/apply effects

UNDO_FADE_AUDIO 
UNDO_REC_AUDIO 

record audio to selection

UNDO_INSERT_WITH_AUDIO 

which stream end should cause playback to finish ?

Enumerator
NEVER_STOP 
STOP_ON_VID_END 
STOP_ON_AUD_END 

Function Documentation

void _lives_free ( livespointer  ptr)

calls mainw->free_fn

void _lives_free_normal ( livespointer  ptr)

values of mainw->free_fn

void _lives_free_with_check ( livespointer  ptr)

checks if ptr is mainw->do_not_free, otherwise calls lives_free_normal()

livespointer _lives_malloc ( size_t  size)
livespointer _lives_realloc ( livespointer  ptr,
size_t  new_size 
)
void activate_url ( LiVESAboutDialog *  about,
const char *  link,
livespointer  data 
)
void activate_url_inner ( const char *  link)
boolean add_file_info ( const char *  check_handle,
boolean  aud_only 
)
boolean add_lmap_error ( lives_lmap_error_t  lerror,
const char *  name,
livespointer  user_data,
int  clipno,
int  frameno,
double  atime,
boolean  affects_current 
)
void add_message_scroller ( LiVESWidget *  conter)
void add_suffix_check ( LiVESBox *  box,
const char *  ext 
)
void add_to_clipmenu ( void  )
void add_to_playframe ( void  )
void add_to_recent ( const char *  filename,
double  start,
int  frames,
const char *  file_open_params 
)
void add_to_recovery_file ( const char *  handle)
void add_warn_check ( LiVESBox *  box,
int  warn_mask_number 
)
boolean after_foreign_play ( void  )
boolean apply_prefs ( boolean  skip_warnings)
boolean ask_permission_dialog ( int  what)
void backup_file ( int  clip,
int  start,
int  end,
const char *  filename 
)
void block_expose ( void  )
void break_me ( void  )
boolean cache_file_contents ( const char *  filename)
void calc_aframeno ( int  fileno)
int calc_frame_from_time ( int  filenum,
double  time 
)

nearest frame start

int calc_frame_from_time2 ( int  filenum,
double  time 
)

nearest frame end

int calc_frame_from_time3 ( int  filenum,
double  time 
)

nearest frame mid

void calc_maxspect ( int  rwidth,
int  rheight,
int *  cwidth,
int *  cheight 
)
int calc_new_playback_position ( int  fileno,
uint64_t  otc,
uint64_t *  ntc 
)
double calc_time_from_frame ( int  clip,
int  frame 
)
void catch_sigint ( int  signum)
boolean check_backend_return ( lives_clip_t sfile)
boolean check_dev_busy ( char *  devstr)
boolean check_dir_access ( const char *  dir)
boolean check_encoder_restrictions ( boolean  get_extension,
boolean  user_audio,
boolean  save_all 
)

end restrictions

boolean check_file ( const char *  file_name,
boolean  check_exists 
)

check if file exists

lives_cancel_t check_for_bad_ffmpeg ( void  )
boolean check_for_lock_file ( const char *  set_name,
int  type 
)
boolean check_for_ratio_fps ( double  fps)
boolean check_for_recovery_files ( boolean  auto_recover)
boolean check_frame_count ( int  idx)
void check_layer_ready ( weed_plant_t *  layer)
boolean check_storage_space ( lives_clip_t sfile,
boolean  is_processing 
)
char* choose_file ( const char *  dir,
const char *  fname,
char **const  filt,
LiVESFileChooserAction  act,
const char *  title,
LiVESWidget *  extra 
)
LiVESWidget* choose_file_with_preview ( const char *  dir,
const char *  title,
int  preview_type 
)
void clear_lmap_errors ( void  )
void clear_mainw_msg ( void  )
char* clip_detail_to_string ( lives_clip_details_t  what,
size_t *  maxlenp 
)
void close_ascrap_file ( void  )
void close_current_file ( int  file_to_switch_to)

close current file, and try to switch to file_to_switch_to

void close_scrap_file ( void  )
void count_opening_frames ( void  )
int count_resampled_frames ( int  in_frames,
double  orig_fps,
double  resampled_fps 
)
LiVESWidget* create_cdtrack_dialog ( int  type,
livespointer  user_data 
)
void create_cfile ( void  )
boolean create_event_space ( int  length_in_eventsb)
void create_LiVES ( void  )
LiVESWidget* create_message_dialog ( lives_dialog_t  diat,
const char *  text,
LiVESWindow *  transient,
int  warn_mask_number,
boolean  is_blocking 
)
LiVESTextView* create_output_textview ( void  )
xprocess* create_processing ( const char *  text)
void d_print ( const char *  fmt,
  ... 
)
void d_print_cancelled ( void  )
void d_print_done ( void  )
void d_print_failed ( void  )
void d_print_file_error_failed ( void  )
ulong deduce_file ( const char *  filename,
double  start_time,
int  end 
)
void defer_sigint ( int  signum)
void delete_pref ( const char *  key)
void desensitize ( void  )
boolean dirchange_callback ( LiVESAccelGroup *  ,
LiVESObject *  ,
uint32_t  ,
LiVESXModifierType  ,
livespointer  user_data 
)
void disable_record ( void  )
int do_abort_cancel_retry_dialog ( const char *  text,
LiVESWindow *  transient 
)
boolean do_abort_check ( void  )
void do_after_crash_warning ( void  )
void do_aud_during_play_error ( void  )
void do_audio_import_error ( void  )
void do_audrate_error_dialog ( void  )
boolean do_auto_dialog ( const char *  text,
int  type 
)
void do_autolives_needs_clips_error ( void  )
void do_bad_layout_error ( void  )
int do_blocking_error_dialog ( const char *  text)
int do_blocking_info_dialog ( const char *  text)
void do_card_in_use_error ( void  )
void do_chdir_failed_error ( const char *  dir)
boolean do_clipboard_fps_warning ( void  )
boolean do_comments_dialog ( lives_clip_t sfile,
char *  filename 
)
void do_decoder_palette_error ( void  )
void do_dev_busy_error ( const char *  devstr)
void do_dir_perm_access_error ( const char *  dir_name)
void do_dir_perm_error ( const char *  dir_name)
void do_do_not_close_d ( void  )
void do_dvgrab_error ( void  )
void do_encoder_acodec_error ( void  )
void do_encoder_img_ftm_error ( render_details rdet)
boolean do_encoder_restrict_dialog ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian,
boolean  anr,
boolean  save_all 
)
void do_encoder_sox_error ( void  )
boolean do_erase_subs_warning ( void  )
int do_error_dialog ( const char *  text)
int do_error_dialog_with_check ( const char *  text,
int  warn_mask_number 
)
int do_error_dialog_with_check_transient ( const char *  text,
boolean  is_blocking,
int  warn_mask_number,
LiVESWindow *  transient 
)
boolean do_event_list_warning ( void  )
boolean do_existing_subs_warning ( void  )
void do_file_perm_error ( const char *  file_name)
void do_firstever_dialog ( void  )
int do_header_missing_detail_error ( int  clip,
lives_clip_details_t  detail 
)
int do_header_read_error_with_retry ( int  clip)
boolean do_header_write_error ( int  clip)
int do_info_dialog ( const char *  text)
int do_info_dialog_with_transient ( const char *  text,
boolean  is_blocking,
LiVESWindow *  transient 
)
void do_invalid_subs_error ( void  )
void do_jack_lost_conn_error ( void  )
void do_jack_noopen_warn ( void  )
void do_jack_noopen_warn2 ( void  )
void do_jack_noopen_warn3 ( void  )
void do_jack_noopen_warn4 ( void  )
void do_keys_window ( void  )
boolean do_layout_alter_audio_warning ( void  )
boolean do_layout_alter_frames_warning ( void  )
void do_layout_ascrap_file_error ( void  )
void do_layout_scrap_file_error ( void  )
void do_locked_in_vdevs_error ( void  )
void do_memory_error_dialog ( void  )
void do_messages_window ( void  )
boolean do_move_tmpdir_dialog ( void  )
void do_mt_audchan_error ( int  warn_mask)
void do_mt_backup_space_error ( lives_mt *  ,
int  memreq_mb 
)
void do_mt_keys_window ( void  )
void do_mt_no_audchan_error ( void  )
void do_mt_no_jack_error ( int  warn_mask)
boolean do_mt_rect_prompt ( void  )
void do_mt_set_mem_error ( boolean  has_mt,
boolean  trans 
)
void do_mt_undo_buf_error ( void  )
void do_mt_undo_mem_error ( void  )
void do_no_autolives_error ( void  )
void do_no_decoder_error ( const char *  fname)
void do_no_in_vdevs_error ( void  )
void do_no_mplayer_sox_error ( void  )
void do_nojack_rec_error ( void  )
boolean do_original_lost_warning ( const char *  fname)
boolean do_progress_dialog ( boolean  visible,
boolean  cancellable,
const char *  text 
)
void do_pulse_lost_conn_error ( void  )
void do_quick_switch ( int  new_file)
void do_read_failed_error_s ( const char *  filename,
const char *  addinfo 
)
int do_read_failed_error_s_with_retry ( const char *  fname,
const char *  errtext,
LiVESWindow *  transient 
)
void do_rendered_fx_dialog ( void  )
void do_rmem_max_error ( int  size)
boolean do_set_duplicate_warning ( const char *  new_set)
void do_set_load_lmap_error ( void  )
void do_set_locked_warning ( const char *  setname)
void do_set_noclips_error ( const char *  setname)
boolean do_set_rename_old_layouts_warning ( const char *  new_set)
void do_splash_progress ( void  )
void do_start_messages ( void  )
boolean do_sub_type_warning ( const char *  ext,
const char *  type_ext 
)
void do_system_failed_error ( const char *  com,
int  retval,
const char *  addinfo 
)
void do_text_window ( const char *  title,
const char *  text 
)
void do_threaded_dialog ( char *  translated_text,
boolean  has_cancel 
)
void do_upgrade_error_dialog ( void  )
void do_vpp_fps_error ( void  )
void do_vpp_palette_error ( void  )
boolean do_warning_dialog ( const char *  text)
boolean do_warning_dialog_with_check ( const char *  text,
int  warn_mask_number 
)
boolean do_warning_dialog_with_check_transient ( const char *  text,
int  warn_mask_number,
LiVESWindow *  transient 
)
void do_write_failed_error_s ( const char *  filename,
const char *  addinfo 
)
int do_write_failed_error_s_with_retry ( const char *  fname,
const char *  errtext,
LiVESWindow *  transient 
)
boolean do_yesno_dialog ( const char *  text)
boolean do_yesno_dialog_with_check ( const char *  text,
int  warn_mask_number 
)
boolean do_yesno_dialog_with_check_transient ( const char *  text,
int  warn_mask_number,
LiVESWindow *  transient 
)
boolean do_yuv4m_open_warning ( void  )
void draw_little_bars ( double  ptrtime)

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

char* ds_critical_msg ( const char *  dir,
uint64_t  dsval 
)

warn about disk space

< crit level

< current level

char* ds_warning_msg ( const char *  dir,
uint64_t  dsval,
uint64_t  cwarn,
uint64_t  nwarn 
)

< warn level

< current level

< next warn level

void enable_record ( void  )
void end_threaded_dialog ( void  )
char* ensure_extension ( const char *  fname,
const char *  ext 
)
boolean ensure_isdir ( char *  fname)
void fade_background ( void  )
uint32_t fastrand ( void  )
void fastsrand ( uint32_t  seed)
char* filename_from_fd ( char *  val,
int  fd 
)
void find_when_to_stop ( void  )
void frame_size_update ( void  )
void free_track_decoders ( void  )
void fullscreen_internal ( void  )
int get_approx_ln ( uint32_t  val)
void get_basename ( char *  filename)
boolean get_boolean_pref ( const char *  key)
capability* get_capabilities ( void  )
boolean get_clip_value ( int  which,
lives_clip_details_t  ,
void *  retval,
size_t  maxlen 
)
const char* get_deinterlace_string ( void  )
char* get_dir ( const char *  filename)
void get_dirname ( char *  filename)
double get_double_pref ( const char *  key)
char* get_extension ( const char *  filename)
LiVESList* get_external_window_hints ( lives_rfx_t rfx)
uint64_t get_file_size ( int  fd)
void get_filename ( char *  filename,
boolean  strip_dir 
)
void get_frame_count ( int  idx)
void get_frames_sizes ( int  fileno,
int  frame_to_test 
)
uint64_t get_fs_free ( const char *  dir)
boolean get_handle_from_info_file ( int  index)
int get_hex_digit ( const char *  c)
const char* get_image_ext_for_type ( lives_image_type_t  imgtype)
int get_int_pref ( const char *  key)
LiVESInterpType get_interp_value ( short  quality)
LiVESList* get_list_pref ( const char *  key)
void get_location ( const char *  exe,
char *  val,
int  maxlen 
)
char* get_menu_name ( lives_clip_t sfile)
void get_menu_text ( LiVESWidget *  menu,
char *  text 
)
void get_menu_text_long ( LiVESWidget *  menuitem,
char *  text 
)
void get_monitors ( void  )
boolean get_new_handle ( int  index,
const char *  name 
)
char* get_new_install_msg ( void  )
void get_next_free_file ( void  )
void get_play_times ( void  )

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

< opaque black

< opaque white

void get_pref ( const char *  key,
char *  val,
int  maxlen 
)
void get_pref_default ( const char *  key,
char *  val,
int  maxlen 
)
void get_pref_utf8 ( const char *  key,
char *  val,
int  maxlen 
)
double get_ratio_fps ( const char *  string)
LiVESList* get_set_list ( const char *  dir,
boolean  utf8 
)
const char* get_set_name ( void  )
uint32_t get_signed_endian ( boolean  is_signed,
boolean  little_endian 
)
boolean get_srt_text ( lives_clip_t sfile,
double  xtime 
)
lives_storage_status_t get_storage_status ( const char *  dir,
uint64_t  warn_level,
uint64_t *  dsval 
)
boolean get_sub_text ( lives_clip_t sfile,
double  xtime 
)
boolean get_temp_handle ( int  index,
boolean  create 
)
int get_token_count ( const char *  string,
int  delim 
)
void get_total_time ( lives_clip_t file)
char* get_upd_msg ( void  )
char* get_val_from_cached_list ( const char *  key,
size_t  maxlen 
)
uint64_t get_version_hash ( const char *  exe,
const char *  sep,
int  piece 
)

get version hash output for an executable from the backend

void handle_backend_errors ( void  )
int hextodec ( char *  string)
void init_clipboard ( void  )
void init_track_decoders ( void  )
char* insert_newlines ( const char *  text,
int  maxwidth 
)

< we will insert a nl here

boolean int_array_contains_value ( int *  array,
int  num_elems,
int  value 
)
boolean is_legal_set_name ( const char *  set_name,
boolean  allow_dupes 
)
boolean is_realtime_aplayer ( int  ptype)
boolean is_writeable_dir ( const char *  dir)
void kill_play_window ( void  )
float LEFloat_to_BEFloat ( float  f)
uint64_t lives_10pow ( int  pow)
void lives_alarm_clear ( int  alarm_handle)
boolean lives_alarm_get ( int  alarm_handle)
int lives_alarm_set ( int64_t  ticks)

set alarm for now + delta ticks (10 nanosec) param ticks (10 nanoseconds) is the offset when we want our alarm to trigger returns int handle or -1 call lives_get_alarm(handle) to test if time arrived

livespointer lives_calloc ( size_t  n_blocks,
size_t  n_block_bytes 
)
int lives_chdir ( const char *  path,
boolean  allow_fail 
)
void lives_close_all_file_buffers ( void  )
int lives_close_buffered ( int  fd)
int lives_creat_buffered ( const char *  pathname,
int  mode 
)
void lives_exit ( int  signum)
char* lives_fgets ( char *  s,
int  size,
FILE *  stream 
)
lives_pid_t lives_fork ( const char *  com)
char* lives_format_storage_space_string ( uint64_t  space)
int lives_fputs ( const char *  s,
FILE *  stream 
)
void lives_freep ( void **  ptr)
boolean lives_fsync ( int  fd)
int64_t lives_get_current_ticks ( void  )

return current (wallclock) time in ticks (units of 10 nanoseconds)

int lives_getgid ( void  )
pid_t lives_getpid ( void  )
int lives_getuid ( void  )
int lives_kill ( lives_pid_t  pid,
int  sig 
)
int lives_killpg ( lives_pgid_t  pgrp,
int  sig 
)
LiVESList* lives_list_append_unique ( LiVESList *  xlist,
const char *  add 
)
LiVESList* lives_list_copy_strings ( LiVESList *  list)
LiVESList* lives_list_delete_string ( LiVESList *  ,
char *  string 
)
void lives_list_free_strings ( LiVESList *  list)
LiVESList* lives_list_move_to_first ( LiVESList *  list,
LiVESList *  item 
)
int lives_list_strcmp_index ( LiVESList *  list,
livesconstpointer  data 
)
off_t lives_lseek_buffered_rdonly ( int  fd,
off_t  offset 
)
livespointer lives_memcpy ( livespointer  dest,
livesconstpointer  src,
size_t  n 
)
livespointer lives_memset ( livespointer  s,
int  c,
size_t  n 
)
void lives_notify ( int  msgnumber,
const char *  msgstring 
)
int lives_open_buffered_rdonly ( const char *  pathname)
LiVESPixbuf* lives_pixbuf_new_blank ( int  width,
int  height,
int  palette 
)
LiVESError* lives_pixbuf_save ( LiVESPixbuf *  pixbuf,
char *  fname,
lives_image_type_t  imgtype,
int  quality,
boolean  do_chmod,
LiVESError **  gerrorptr 
)

Save a pixbuf to a file using the specified imgtype and the specified quality/compression value

uint64_t lives_random ( void  )
ssize_t lives_read ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)
ssize_t lives_read_buffered ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)
ssize_t lives_read_le ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)
ssize_t lives_read_le_buffered ( int  fd,
void *  buf,
size_t  count,
boolean  allow_less 
)
ssize_t lives_readlink ( const char *  path,
char *  buf,
size_t  bufsiz 
)
boolean lives_setenv ( const char *  name,
const char *  value 
)
void lives_srandom ( unsigned int  seed)
char* lives_strappend ( char *  string,
int  len,
const char *  newbit 
)
void lives_sync ( void  )
int lives_system ( const char *  com,
boolean  allow_error 
)
int lives_utf8_strcasecmp ( const char *  s1,
const char *  s2 
)
ssize_t lives_write ( int  fd,
livesconstpointer  buf,
size_t  count,
boolean  allow_fail 
)
ssize_t lives_write_buffered ( int  fd,
livesconstpointer  buf,
size_t  count,
boolean  allow_fail 
)
ssize_t lives_write_le ( int  fd,
livesconstpointer  buf,
size_t  count,
boolean  allow_fail 
)
ssize_t lives_write_le_buffered ( int  fd,
livesconstpointer  buf,
size_t  count,
boolean  allow_fail 
)
void load_end_image ( int  frame)
void load_frame_image ( int  frame)
boolean load_from_scrap_file ( weed_plant_t *  layer,
int  frame 
)
void load_preview_image ( boolean  update_always)
void load_start_image ( int  frame)
void make_custom_submenus ( void  )
void make_play_window ( void  )
void make_preview_box ( void  )
LiVESPixbuf* make_thumb ( lives_mt *  ,
int  file,
int  width,
int  height,
int  frame,
boolean  noblanks 
)
uint64_t make_version_hash ( const char *  ver)

convert a version to uint64_t hash, for comparing

void minimise_aspect_delta ( double  allowed_aspect,
int  hblock,
int  vblock,
int  hsize,
int  vsize,
int *  width,
int *  height 
)
LiVESPixbuf* mt_framedraw ( lives_mt *  ,
LiVESPixbuf *   
)
int myround ( double  n)
void on_cancel_keep_button_clicked ( LiVESButton *  ,
livespointer  user_data 
)
void on_cleardisk_activate ( LiVESWidget *  ,
livespointer  user_data 
)

< avoid nested warnings

< indicates we tried ds recovery already

< auto reset by do_warning_dialog()

void on_cleardisk_advanced_clicked ( LiVESWidget *  ,
livespointer  user_data 
)
void on_details_button_clicked ( void  )
void on_effects_paused ( LiVESButton *  ,
livespointer  user_data 
)
void on_fileread_clicked ( LiVESFileChooser *  ,
livespointer  widget 
)
void on_filesel_button_clicked ( LiVESButton *  ,
livespointer  user_data 
)
boolean open_ascrap_file ( void  )
ulong open_file ( const char *  filename)
ulong open_file_sel ( const char *  file_name,
double  start_time,
int  frames 
)
void open_fw_device ( void  )
boolean open_scrap_file ( void  )
void open_set_file ( const char *  set_name,
int  clipnum 
)
void perf_mem_warning ( void  )
void play_file ( void  )
void play_window_set_title ( void  )
void popup_lmap_errors ( LiVESMenuItem *  ,
livespointer   
)
boolean prepare_to_play_foreign ( void  )
boolean process_one ( boolean  visible)
void procw_desensitize ( void  )
boolean prompt_remove_layout_files ( void  )
boolean pull_frame ( weed_plant_t *  layer,
const char *  image_ext,
weed_timecode_t  tc 
)
boolean pull_frame_at_size ( weed_plant_t *  layer,
const char *  image_ext,
weed_timecode_t  tc,
int  width,
int  height,
int  target_palette 
)
void pull_frame_threaded ( weed_plant_t *  layer,
const char *  img_ext,
weed_timecode_t  tc 
)
LiVESPixbuf* pull_lives_pixbuf ( int  clip,
int  frame,
const char *  image_ext,
weed_timecode_t  tc 
)
LiVESPixbuf* pull_lives_pixbuf_at_size ( int  clip,
int  frame,
const char *  image_ext,
weed_timecode_t  tc,
int  width,
int  height,
LiVESInterpType  interp 
)
void pump_io_chan ( LiVESIOChannel *  iochan)
boolean rdet_suggest_values ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian,
boolean  anr,
boolean  ignore_fps 
)
boolean read_file_details ( const char *  file_name,
boolean  only_check_for_audio 
)
boolean read_headers ( const char *  file_name)
void recover_layout_map ( int  numclips)
LiVESWidget* refresh_rte_window ( void  )
void reget_afilesize ( int  fileno)
boolean reload_clip ( int  fileno)
void remove_from_clipmenu ( void  )
void remove_layout_files ( LiVESList *  lmap)
char* remove_trailing_zeroes ( double  val)
char* repl_tmpdir ( const char *  entry,
boolean  fwd 
)
void reset_clipmenu ( void  )
void resize ( double  scale)
void resize_play_window ( void  )
void resize_widgets_for_monitor ( boolean  get_play_times)
void response_ok ( LiVESButton *  button,
livespointer  user_data 
)
ulong restore_file ( const char *  filename)
void rewrite_recovery_file ( void  )
void save_clip_value ( int  which,
lives_clip_details_t  ,
void *  val 
)
boolean save_clip_values ( int  which_file)
int save_event_frames ( void  )
void save_file ( int  clip,
int  start,
int  end,
const char *  filename 
)
boolean save_file_comments ( int  fileno)
void save_frame ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)
boolean save_frame_inner ( int  clip,
int  frame,
const char *  file_name,
int  width,
int  height,
boolean  from_osc 
)
void save_future_prefs ( void  )
boolean save_srt_subtitles ( lives_clip_t sfile,
double  start_time,
double  end_time,
double  offset_time,
const char *  filename 
)
boolean save_sub_subtitles ( lives_clip_t sfile,
double  start_time,
double  end_time,
double  offset_time,
const char *  filename 
)
int save_to_scrap_file ( weed_plant_t *  layer)
void sensitize ( void  )
void set_boolean_pref ( const char *  key,
boolean  value 
)
void set_ce_frame_from_pixbuf ( LiVESImage *  image,
LiVESPixbuf *  pixbuf,
lives_painter_t *   
)
void set_double_pref ( const char *  key,
double  value 
)
void set_int64_pref ( const char *  key,
int64_t  value 
)
void set_int_pref ( const char *  key,
int  value 
)
void set_interactive ( boolean  interactive)
void set_list_pref ( const char *  key,
LiVESList *  values 
)
void set_main_title ( const char *  filename,
int  or_untitled_number 
)
void set_menu_text ( LiVESWidget *  menu,
const char *  text,
boolean  use_mnemonic 
)
void set_palette_colours ( void  )
void set_pref ( const char *  key,
const char *  value 
)
void set_record ( void  )
void set_redoable ( const char *  what,
boolean  sensitive 
)
void set_sel_label ( LiVESWidget *  label)
void set_signal_handlers ( SignalHandlerPointer  sigfunc)
void set_undoable ( const char *  what,
boolean  sensitive 
)
uint64_t sget_file_size ( const char *  name)
void show_manual_section ( const char *  lang,
const char *  section 
)
void splash_end ( void  )
void splash_init ( void  )
void splash_msg ( const char *  msg,
double  pct 
)
boolean startup_message_fatal ( const char *  msg)
boolean startup_message_info ( const char *  msg)
boolean startup_message_nonfatal ( const char *  msg)
boolean startup_message_nonfatal_dismissable ( const char *  msg,
int  warning_mask 
)
boolean string_lists_differ ( LiVESList *  ,
LiVESList *   
)
char* subst ( const char *  string,
const char *  from,
const char *  to 
)
void subtitles_free ( lives_clip_t sfile)
boolean subtitles_init ( lives_clip_t sfile,
char *  fname,
lives_subtitle_type_t   
)
boolean switch_aud_to_jack ( void  )
void switch_aud_to_mplayer ( boolean  set_pref)
void switch_aud_to_mplayer2 ( boolean  set_pref)
boolean switch_aud_to_pulse ( void  )
void switch_aud_to_sox ( boolean  set_pref)
void switch_audio_clip ( int  new_file,
boolean  activate 
)
void switch_clip ( int  type,
int  newclip 
)
void switch_to_file ( int  old_file,
int  new_file 
)
void switch_to_int_player ( void  )
void switch_to_mplayer ( void  )
void tempdir_warning ( void  )
void threaded_dialog_spin ( void  )
void toggle_record ( void  )
void too_many_files ( void  )
void unblock_expose ( void  )
void unfade_background ( void  )
int verhash ( char *  version)
void wait_for_stop ( const char *  stop_command)
boolean write_headers ( lives_clip_t file)
void zero_spinbuttons ( void  )

Variable Documentation

capability* capable

some shared structures

char* dummychar
mainwindow* mainw
ssize_t sizdbl
ssize_t sizint

type sizes

ssize_t sizshrt
struct timeval tv