LiVES  3.2.0
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
main.h File Reference
#include <sys/types.h>
#include <inttypes.h>
#include <string.h>
#include <sys/file.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <stdarg.h>
#include <limits.h>
#include <float.h>
#include <weed/weed-host.h>
#include <weed/weed.h>
#include <weed/weed-events.h>
#include <weed/weed-palettes.h>
#include <weed/weed-effects.h>
#include <weed/weed-utils.h>
#include <weed/weed-compat.h>
#include "weed-effects-utils.h"
#include "support.h"
#include "widget-helper.h"
#include "machinestate.h"
#include "lsd-tab.h"
#include "colourspace.h"
#include "pangotext.h"
#include "plugins.h"
#include "paramspecial.h"
#include "multitrack.h"
#include "events.h"
#include "mainwindow.h"
#include "keyboard.h"
#include "preferences.h"
#include <sys/time.h>
#include "osc_notify.h"

Go to the source code of this file.

Data Structures

struct  lives_colRGB48_t
 
struct  lives_colRGBA64_t
 
struct  wm_caps_t
 
struct  capability
 
struct  resample_event
 this struct is used only when physically resampling frames on the disk we create an array of these and write them to the disk More...
 
struct  lives_audio_track_state_t
 
union  binval
 
struct  lives_clip_t
 corresponds to one clip in the GUI More...
 
struct  lives_tcache_entry_t
 
struct  savethread_priv_t
 
struct  lives_file_buffer_t
 

Macros

#define STD_STRINGFUNCS
 
#define WARN_UNUSED
 
#define GNU_PURE
 
#define GNU_CONST
 
#define GNU_MALLOC
 
#define GNU_MALLOC_SIZE(x)
 
#define GNU_MALLOC_SIZE2(x, y)
 
#define GNU_DEPRECATED(msg)
 
#define GNU_ALIGN(x)
 
#define GNU_ALIGNED(x)
 
#define GNU_NORETURN
 
#define GNU_FLATTEN
 
#define GNU_HOT
 
#define GNU_SENTINEL
 
#define GNU_RETURNS_TWICE
 
#define ENABLE_OSC2
 
#define GUI_GTK
 
#define LIVES_PAINTER_IS_CAIRO
 
#define LIVES_LINGO_IS_PANGO
 
#define GDK_WINDOWING_X11
 
#define USE_GLIB
 
#define LIVES_OS_UNIX   G_OS_UNIX
 
#define ulong   unsigned long
 
#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"
 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 More...
 
#define PREFIX   PREFIX_DEFAULT
 if –prefix= was not set, this is set to "NONE" More...
 
#define LIVES_DIR_SEP   "/"
 
#define LIVES_COPYRIGHT_YEARS   "2002 - 2020"
 
#define DEF_FILE_PERMS   (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
 non-executable, is modified by the umask More...
 
#define ALLOW_NONFREE_CODECS
 
#define WARN_FILE_SIZE   500
 LiVES will show a warning if this (MBytes) is exceeded on load (can be overridden in prefs) More...
 
#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 LIVES_INLINE   static inline
 
#define LIVES_GLOBAL_INLINE   inline
 
#define LIVES_LOCAL_INLINE   LIVES_INLINE
 
#define PATH_MAX   4096
 
#define URL_MAX   2048
 
#define strip_ext(fname)
 
#define squared(a)   ((a) * (a))
 
#define sig(a)   ((a) < 0. ? -1.0 : 1.0)
 
#define ROUND_I(a)   ((int)((double)(a) + .5))
 
#define NORMAL_CLAMP(a, b)   (ROUND_I((a)) < 0 ? 0 : ROUND_I((a)) > ROUND_I((b)) ? ROUND_I((b)) : ROUND_I((a)))
 
#define UTIL_CLAMP(a, b)   (NORMAL_CLAMP((a), (b)) <= 0 ? ROUND_I((b)) : ROUND_I((a)))
 
#define INT_CLAMP(i, min, max)   ((i) < (min) ? (min) : (i) > (max) ? (max) : (i))
 
#define CEIL(a, b)   ((int)(((double)(a) + (double)(b) - .000000001) / ((double)(b))) * (b))
 
#define ALIGN_CEIL(a, b)   (((int)(((a) + (b) - 1.) / (b))) * (b))
 
#define ALIGN_CEIL64(a, b)   ((((int64_t)(a) + (int64_t)(b) - 1) / (int64_t)(b)) * (int64_t)(b))
 
#define FLOOR(a, b)   ((int)(((double)(a) - .000000001) / ((double)(b))) * (b))
 
#define SIGNED_DIVIDE(a, b)   ((a) < 0. ? -fabs((a) / (b)) : fabs((a) / (b)))
 
#define ABS_THRESH(a, b)   (((a) + (b)) >> 31) | (((b) - (a)) >> 31)
 
#define myround(n)   ((n) >= 0. ? (int)((n) + 0.5) : (int)((n) - 0.5))
 
#define WEED_ADVANCED_PALETTES
 
#define NEED_FOURCC_COMPAT
 
#define IGN_RET(a)   ((void)((a) + 1))
 
#define EXPECTED(x)   __builtin_expect((x), 1)
 
#define UNEXPECTED(x)   __builtin_expect((x), 0)
 
#define INSTALL_CANLOCAL   (1ul << 0)
 install guidance flags More...
 
#define ANNOY_DISPLAY   (1ul << 0)
 
#define ANNOY_DISK   (1ul << 1)
 
#define ANNOY_PROC   (1ul << 2)
 
#define ANNOY_NETWORK   (1ul << 3)
 
#define ANNOY_SOUNDS   (1ul << 4)
 
#define ANNOY_DEV   (1ul << 5)
 
#define ANNOY_OTHER   (1ul << 6)
 
#define ANNOY_FS   (1ul << 32)
 
#define ANNOY_CONT   (1ul << 33)
 
#define ANNOY_PERIOD   (1ul << 34)
 
#define ANNOY_SPONT   (1ul << 35)
 
#define ANNOY_TIMED   (1ul << 36)
 
#define ANNOY_LOCK   (1ul << 37)
 
#define RES_HIDE   (1ul << 0)
 
#define RES_SUSPEND   (1ul << 1)
 
#define RES_STOP   (1ul << 2)
 
#define RES_BLOCK   (1ul << 3)
 
#define RES_MUTE   (1ul << 4)
 
#define RESTYPE_ACTION   (1ul << 16)
 
#define RESTYPE_CONFIG   (1ul << 17)
 
#define RESTYPE_SIGNAL   (1ul << 18)
 
#define RESTYPE_CMD   (1ul << 19)
 
#define RESTYPE_LOCKOUT   (1ul << 20)
 
#define RESTYPE_TIMED   (1ul << 21)
 
#define RESTYPE_MONITOR   (1ul << 22)
 
#define DEF_ALIGN   (sizeof(void *) * 8)
 
#define ALLOW_PNG24
 
#define N_RECENT_FILES   16
 
#define IMG_TYPE_BEST   IMG_TYPE_PNG
 
#define AFORM_SIGNED   0
 
#define AFORM_LITTLE_ENDIAN   0
 
#define AFORM_UNSIGNED   1
 
#define AFORM_BIG_ENDIAN   (1<<1)
 
#define AFORM_UNKNOWN   65536
 
#define WEED_LEAF_HOST_DEINTERLACE   "host_deint"
 
#define WEED_LEAF_HOST_TC   "host_tc"
 
#define WEED_LEAF_HOST_DECODER   "host_decoder"
 
#define WEED_LEAF_HOST_PTHREAD   "host_pthread"
 
#define CLIP_NAME_MAXLEN   256
 
#define AV_TRACK_MIN_DIFF   0.001
 ignore track time differences < this (seconds) More...
 
#define IS_VALID_CLIP(clip)   (clip >= 0 && clip <= MAX_FILES && mainw->files[clip])
 
#define CURRENT_CLIP_IS_VALID   IS_VALID_CLIP(mainw->current_file)
 
#define IS_TEMP_CLIP(clip)   (IS_VALID_CLIP(clip) && mainw->files[clip]->clip_type == CLIP_TYPE_TEMP)
 
#define CURRENT_CLIP_IS_TEMP   IS_TEMP_CLIP(mainw->current_file)
 
#define CLIP_HAS_VIDEO(clip)   (IS_VALID_CLIP(clip) ? mainw->files[clip]->frames > 0 : FALSE)
 
#define CURRENT_CLIP_HAS_VIDEO   CLIP_HAS_VIDEO(mainw->current_file)
 
#define CLIP_HAS_AUDIO(clip)   (IS_VALID_CLIP(clip) ? (mainw->files[clip]->achans > 0 && mainw->files[clip]->asampsize > 0) : FALSE)
 
#define CURRENT_CLIP_HAS_AUDIO   CLIP_HAS_AUDIO(mainw->current_file)
 
#define CLIP_VIDEO_TIME(clip)   ((double)(IS_VALID_CLIP(clip) ? mainw->files[clip]->video_time : 0.))
 
#define CLIP_LEFT_AUDIO_TIME(clip)   ((double)(IS_VALID_CLIP(clip) ? mainw->files[clip]->laudio_time : 0.))
 
#define CLIP_RIGHT_AUDIO_TIME(clip)
 
#define CLIP_AUDIO_TIME(clip)
 
#define CLIP_TOTAL_TIME(clip)
 
#define IS_NORMAL_CLIP(clip)
 
#define CURRENT_CLIP_IS_NORMAL   IS_NORMAL_CLIP(mainw->current_file)
 
#define LIVES_IS_PLAYING   (mainw && mainw->playing_file > -1)
 
#define LIVES_IS_RENDERING
 
#define CURRENT_CLIP_TOTAL_TIME   CLIP_TOTAL_TIME(mainw->current_file)
 
#define CURRENT_CLIP_IS_CLIPBOARD   (mainw->current_file == 0)
 
#define LIVES_DIRECTION_FWD_OR_REV(dir)   ((dir) == LIVES_DIRECTION_BACKWARD ? LIVES_DIRECTION_REVERSE : (dir))
 
#define LIVES_DIRECTION_SIG(dir)   ((lives_direction_t)sig(dir))
 
#define LIVES_DIRECTION_PAR(dir)   ((lives_direction_t)((dir) & 1))
 
#define LIVES_DIRECTION_OPPOSITE(dir1, dir2)
 
#define LIVES_CLIP_HEADER_VERSION   102
 
#define LIVES_EXT_SRC_UNKNOWN   -1
 
#define LIVES_EXT_SRC_NONE   0
 
#define LIVES_EXT_SRC_DECODER   1
 
#define LIVES_EXT_SRC_FILTER   2
 
#define LIVES_EXT_SRC_FIFO   3
 
#define LIVES_EXT_SRC_STREAM   4
 
#define LIVES_EXT_SRC_DEVICE   5
 
#define LIVES_EXT_SRC_FILE_BUFF   6
 
#define IMG_BUFF_SIZE   262144
 256 * 1024 < chunk size for reading images More...
 
#define USE_MPV   (!capable->has_mplayer && !capable->has_mplayer2 && capable->has_mpv)
 some shared structures More...
 
#define HAS_EXTERNAL_PLAYER   (capable->has_mplayer || capable->has_mplayer2 || capable->has_mpv)
 
#define USE_16BIT_PCONV
 
#define BACKEND_NAME   EXEC_SMOGRIFY
 
#define is_layer_ready(layer)
 
#define BUFFER_FILL_BYTES_SMALL   64
 fixed values only for write buffers (must be multiples of 16) More...
 
#define BUFFER_FILL_BYTES_SMALLMED   1024
 
#define BUFFER_FILL_BYTES_MED   4096
 
#define BUFFER_FILL_BYTES_BIGMED   16386
 
#define BUFFER_FILL_BYTES_LARGE   65536
 
#define BUFF_SIZE_READ_SMALL   0
 
#define BUFF_SIZE_READ_SMALLMED   1
 
#define BUFF_SIZE_READ_MED   2
 
#define BUFF_SIZE_READ_LARGE   3
 
#define BUFF_SIZE_READ_CUSTOM   -1
 
#define BUFF_SIZE_WRITE_SMALL   0
 
#define BUFF_SIZE_WRITE_SMALLMED   1
 
#define BUFF_SIZE_WRITE_MED   2
 
#define BUFF_SIZE_WRITE_BIGMED   3
 
#define BUFF_SIZE_WRITE_LARGE   4
 
#define cfile   mainw->files[mainw->current_file]
 
#define CLIPBOARD_FILE   0
 
#define clipboard   mainw->files[CLIPBOARD_FILE]
 
#define LIVES_TV_CHANNEL1   "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm"
 
#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(x);}
 
#define LIVES_CRITICAL(x)   {fprintf(stderr, "LiVES CRITICAL: %s\n", x); break_me(x); raise (LIVES_SIGSEGV);}
 
#define LIVES_FATAL(x)
 
#define USE_REC_RS
 
#define RESEEK_ENABLE
 

Typedefs

typedef int64_t ticks_t
 
typedef int frames_t
 
typedef int64_t frames64_t
 
typedef pid_t lives_pid_t
 
typedef int lives_pgid_t
 
typedef lives_presence_t lives_checkstatus_t
 
typedef void(* SignalHandlerPointer) (int)
 

Enumerations

enum  lives_presence_t { MISSING = -1, UNCHECKED = 0, PRESENT, LOCAL }
 
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_AUDIO_VOL, UNDO_REC_AUDIO,
  UNDO_INSERT_WITH_AUDIO
}
 
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_EXTERNAL_ENDED, CANCEL_KEEP,
  CANCEL_AUD_END, CANCEL_ERROR, CANCEL_AUDIO_ERROR, CANCEL_USER_PAUSED,
  CANCEL_RETRY, CANCEL_INTERNAL_ERROR, 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_FILE, CLIP_TYPE_GENERATOR, CLIP_TYPE_NULL_VIDEO,
  CLIP_TYPE_TEMP, CLIP_TYPE_YUV4MPEG, CLIP_TYPE_LIVES2LIVES, CLIP_TYPE_VIDEODEV
}
 
enum  lives_img_type_t { IMG_TYPE_UNKNOWN = 0, IMG_TYPE_JPEG, IMG_TYPE_PNG, N_IMG_TYPES }
 
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_direction_t {
  LIVES_DIRECTION_REVERSE = -1, LIVES_DIRECTION_BACKWARD, LIVES_DIRECTION_FORWARD, LIVES_DIRECTION_LEFT,
  LIVES_DIRECTION_RIGHT, LIVES_DIRECTION_UP, LIVES_DIRECTION_DOWN, LIVES_DIRECTION_IN,
  LIVES_DIRECTION_OUT
}
 use REVERSE / FORWARD when a sign is used, BACKWARD / FORWARD when a parity is used More...
 
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, CLIP_DETAILS_GAMMA_TYPE,
  CLIP_DETAILS_MD5SUM, CLIP_DETAILS_CACHE_OBJECTS, CLIP_DETAILS_RESERVED30, CLIP_DETAILS_RESERVED29,
  CLIP_DETAILS_RESERVED28, CLIP_DETAILS_RESERVED27, CLIP_DETAILS_RESERVED26, CLIP_DETAILS_RESERVED25,
  CLIP_DETAILS_RESERVED24, CLIP_DETAILS_RESERVED23, CLIP_DETAILS_RESERVED22, CLIP_DETAILS_RESERVED21,
  CLIP_DETAILS_RESERVED20, CLIP_DETAILS_RESERVED19, CLIP_DETAILS_RESERVED18, CLIP_DETAILS_RESERVED17,
  CLIP_DETAILS_RESERVED16, CLIP_DETAILS_RESERVED15, CLIP_DETAILS_RESERVED14, CLIP_DETAILS_RESERVED13,
  CLIP_DETAILS_RESERVED12, CLIP_DETAILS_RESERVED11, CLIP_DETAILS_RESERVED10, CLIP_DETAILS_RESERVED9,
  CLIP_DETAILS_RESERVED8, CLIP_DETAILS_RESERVED7, CLIP_DETAILS_RESERVED6, CLIP_DETAILS_RESERVED5,
  CLIP_DETAILS_RESERVED4, CLIP_DETAILS_RESERVED3, CLIP_DETAILS_RESERVED2, CLIP_DETAILS_RESERVED1,
  CLIP_DETAILS_RESERVED0
}
 

Functions

float LEFloat_to_BEFloat (float f) GNU_CONST
 
uint64_t lives_10pow (int pow) GNU_CONST
 
double lives_fix (double val, int decimals) GNU_CONST
 
uint32_t get_approx_ln (uint32_t val) GNU_CONST
 
uint64_t get_approx_ln64 (uint64_t x) GNU_CONST
 
uint64_t get_near2pow (uint64_t val) GNU_CONST
 
boolean all_config (LiVESWidget *, LiVESXEventConfigure *, livespointer ppsurf)
 genric func. to create surfaces More...
 
boolean all_expose (LiVESWidget *, lives_painter_t *, livespointer psurf)
 
boolean do_progress_dialog (boolean visible, boolean cancellable, const char *text)
 
boolean do_warning_dialog (const char *text)
 
boolean do_warning_dialogf (const char *fmt,...)
 
boolean do_warning_dialog_with_check (const char *text, uint64_t warn_mask_number)
 
boolean do_yesno_dialog (const char *text)
 
boolean do_yesno_dialogf (const char *fmt,...)
 
boolean do_yesno_dialog_with_check (const char *text, uint64_t warn_mask_number)
 
void do_abort_dialog (const char *text)
 
LiVESResponseType do_abort_ok_dialog (const char *text)
 
LiVESResponseType do_abort_retry_dialog (const char *text)
 
LiVESResponseType do_abort_cancel_retry_dialog (const char *text) WARN_UNUSED
 
LiVESResponseType do_retry_cancel_dialog (const char *text)
 
LiVESResponseType do_error_dialog (const char *text)
 
LiVESResponseType do_error_dialogf (const char *fmt,...)
 
LiVESResponseType do_error_dialog_with_check (const char *text, uint64_t warn_mask_number)
 
LiVESResponseType do_info_dialog (const char *text)
 
LiVESResponseType do_info_dialogf (const char *fmt,...)
 
LiVESResponseType do_info_dialog_with_expander (const char *text, const char *exp_text, LiVESList *)
 
LiVESWidget * create_message_dialog (lives_dialog_t diat, const char *text, int warn_mask_number)
 
LiVESWidget * create_question_dialog (const char *title, const char *text)
 
LiVESWindow * get_transient_full ()
 
void do_abortblank_error (const char *what)
 
void do_optarg_blank_err (const char *what)
 
void do_clip_divergence_error (int fileno)
 
LiVESResponseType do_system_failed_error (const char *com, int retval, const char *addinfo, boolean can_retry, boolean try_sudo)
 
LiVESResponseType do_write_failed_error_s_with_retry (const char *fname, const char *errtext) WARN_UNUSED
 
void do_write_failed_error_s (const char *filename, const char *addinfo)
 
LiVESResponseType do_read_failed_error_s_with_retry (const char *fname, const char *errtext) WARN_UNUSED
 
void do_read_failed_error_s (const char *filename, const char *addinfo)
 
boolean do_header_write_error (int clip)
 
LiVESResponseType do_header_read_error_with_retry (int clip) WARN_UNUSED
 
LiVESResponseType do_header_missing_detail_error (int clip, lives_clip_details_t detail) WARN_UNUSED
 
void do_chdir_failed_error (const char *dir)
 
LiVESResponseType handle_backend_errors (boolean can_retry)
 
boolean check_backend_return (lives_clip_t *sfile)
 
const char * get_cache_stats (void)
 
char * ds_critical_msg (const char *dir, char **mountpoint, uint64_t dsval)
 warn about disk space More...
 
char * ds_warning_msg (const char *dir, char **mountpoint, uint64_t dsval, uint64_t cwarn, uint64_t nwarn)
 
boolean check_storage_space (int clipno, boolean is_processing)
 
char * get_upd_msg (void)
 
boolean ask_permission_dialog (int what)
 
boolean ask_permission_dialog_complex (int what, char **argv, int argc, int offs, const char *sudocom)
 
boolean do_abort_check (void)
 
void add_warn_check (LiVESBox *box, int warn_mask_number)
 
LiVESResponseType do_memory_error_dialog (char *op, size_t bytes)
 
void too_many_files (void)
 
void workdir_warning (void)
 
void do_audio_import_error (void)
 
void do_mt_backup_space_error (lives_mt *, int memreq_mb)
 
LiVESResponseType do_resize_dlg (int cwidth, int cheight, int fwidth, int fheight)
 
LiVESResponseType do_imgfmts_error (lives_img_type_t imgtype)
 
char * workdir_ch_warning (void)
 
void do_shutdown_msg (void)
 
boolean do_close_changed_warn (void)
 
boolean do_save_clipset_warn (void)
 
boolean do_clipboard_fps_warning (void)
 
void perf_mem_warning (void)
 
void do_dvgrab_error (void)
 
boolean do_comments_dialog (int fileno, 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_messages_window (boolean is_startup)
 
void do_firstever_dialog (void)
 
void do_upgrade_error_dialog (void)
 
void do_no_mplayer_sox_error (void)
 
void do_need_mplayer_dialog (void)
 
void do_need_mplayer_mpv_dialog (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_program_not_found_error (const char *progname)
 
void do_lb_composite_error (void)
 
void do_lb_convert_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_reload_set_query (void)
 
boolean findex_bk_dialog (const char *fname_back)
 
boolean paste_enough_dlg (int lframe)
 
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)
 
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_gamma_import_warn (uint64_t fv, int gamma_type)
 
boolean do_mt_lb_warn (boolean lb)
 
LiVESResponseType do_file_notfound_dialog (const char *detail, const char *dirname)
 
LiVESResponseType do_dir_notfound_dialog (const char *detail, const char *dirname)
 
void do_no_decoder_error (const char *fname)
 
void do_no_loadfile_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)
 
LiVESResponseType do_file_perm_error (const char *file_name, boolean allow_cancel)
 
LiVESResponseType do_dir_perm_error (const char *dir_name, boolean allow_cancel)
 
void do_dir_perm_access_error (const char *dir_name)
 
void do_encoder_img_fmt_error (render_details *rdet)
 
void do_after_crash_warning (void)
 
void do_after_invalid_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_workdir_dialog (void)
 
boolean 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)
 
boolean do_foundclips_query (void)
 
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)
 
void do_cd_error_dialog (void)
 
void do_bad_theme_error (const char *themefile)
 
void do_bad_theme_import_error (const char *theme_file)
 
boolean do_theme_exists_warn (const char *themename)
 
boolean do_layout_recover_dialog (void)
 
void do_no_sets_dialog (const char *dir)
 
void add_resnn_label (LiVESDialog *dialog)
 
int process_one (boolean visible)
 
void update_progress (boolean visible)
 
void do_threaded_dialog (const char *translated_text, boolean has_cancel)
 
void end_threaded_dialog (void)
 
void threaded_dialog_spin (double fraction)
 
void threaded_dialog_push (void)
 
void threaded_dialog_pop (void)
 
void response_ok (LiVESButton *button, livespointer user_data)
 
void pump_io_chan (LiVESIOChannel *iochan)
 
void do_splash_progress (void)
 
void d_print (const char *fmt,...)
 
char * dump_messages (int start, int end)
 
weed_plant_t * get_nth_info_message (int n)
 
int add_messages_to_list (const char *text)
 
int free_n_msgs (int frval)
 
void d_print_cancelled (void)
 
void d_print_failed (void)
 
void d_print_done (void)
 
void d_print_enough (int frames)
 
void d_print_file_error_failed (void)
 
boolean d_print_urgency (double timeout_seconds, const char *fmt,...)
 
boolean d_print_overlay (double timeout_seconds, const char *fmt,...)
 
void do_text_window (const char *title, const char *text)
 
boolean read_file_details (const char *file_name, boolean only_check_for_audio, boolean open_image)
 
boolean add_file_info (const char *check_handle, boolean aud_only)
 
boolean save_file_comments (int fileno)
 
void set_default_comment (lives_clip_t *sfile, const char *extrat)
 
boolean restore_clip_binfmt (int clipno)
 
lives_clip_tclip_forensic (int clipno)
 
boolean reload_clip (int fileno, int maxframe)
 
void wait_for_bg_audio_sync (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 pad_init_silence (void)
 
void open_fw_device (void)
 
char * get_untitled_name (int number)
 
boolean get_new_handle (int index, const char *name)
 
boolean get_temp_handle (int index)
 get a temp "handle" from disk. More...
 
int close_temp_handle (int new_clip)
 close cfile and switch to new clip (may be -1) More...
 
boolean get_handle_from_info_file (int index)
 
lives_clip_tcreate_cfile (int new_file, const char *handle, boolean is_loaded)
 set default values for a clip (in memory) More...
 
int create_nullvideo_clip (const char *handle)
 
void save_file (int clip, int start, int end, const char *filename)
 
void play_file (void)
 play the current clip from 'mainw->play_start' to 'mainw->play_end' More...
 
void start_playback_async (int type)
 
boolean start_playback (int type)
 
void play_start_timer (int type)
 
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)
 
boolean rewrite_recovery_file (void)
 
boolean check_for_recovery_files (boolean auto_recover)
 
boolean recover_files (char *recovery_file, boolean auto_recover)
 
void recover_layout_map (int numclips)
 
const char * get_deinterlace_string (void)
 
void reload_subs (int fileno)
 
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 (int clipno, const char *dir, const char *file_name)
 
void open_set_file (int clipnum)
 
boolean open_scrap_file (void)
 
boolean open_ascrap_file (void)
 
int save_to_scrap_file (weed_layer_t *layer)
 
boolean load_from_scrap_file (weed_layer_t *layer, int frame)
 
void close_ascrap_file (boolean remove)
 
void close_scrap_file (boolean remove)
 
void add_to_ascrap_mb (uint64_t bytes)
 
boolean check_for_disk_space (boolean fullcheck)
 
void set_signal_handlers (SignalHandlerPointer sigfunc)
 
void catch_sigint (int signum)
 
void defer_sigint (int signum)
 
void startup_message_fatal (char *msg) GNU_NORETURN
 
boolean startup_message_choice (const char *msg, int msgtype)
 
boolean startup_message_nonfatal (const char *msg)
 
boolean startup_message_info (const char *msg)
 
boolean startup_message_nonfatal_dismissable (const char *msg, uint64_t warning_mask)
 
capabilityget_capabilities (void)
 
void get_monitors (boolean reset)
 
void replace_with_delegates (void)
 
void set_drawing_area_from_pixbuf (LiVESWidget *darea, LiVESPixbuf *pixbuf, lives_painter_surface_t *)
 
void load_start_image (int frame)
 
void load_end_image (int frame)
 
void showclipimgs (void)
 
void load_preview_image (boolean update_always)
 
boolean resize_message_area (livespointer data)
 
boolean lazy_startup_checks (void *data)
 
boolean pull_frame (weed_layer_t *layer, const char *image_ext, ticks_t tc)
 
void pull_frame_threaded (weed_layer_t *layer, const char *img_ext, ticks_t tc, int width, int height)
 
boolean check_layer_ready (weed_layer_t *layer)
 block until layer pixel_data is ready. More...
 
boolean pull_frame_at_size (weed_layer_t *layer, const char *image_ext, ticks_t tc, int width, int height, int target_palette)
 
LiVESPixbuf * pull_lives_pixbuf_at_size (int clip, int frame, const char *image_ext, ticks_t tc, int width, int height, LiVESInterpType interp, boolean fordisp)
 
LiVESPixbuf * pull_lives_pixbuf (int clip, int frame, const char *image_ext, ticks_t tc)
 
boolean weed_layer_create_from_file_progressive (weed_layer_t *layer, const char *fname, int width, int height, int tpalette, const char *img_ext)
 
boolean lives_pixbuf_save (LiVESPixbuf *pixbuf, char *fname, lives_img_type_t imgtype, int quality, int width, int height, LiVESError **gerrorptr)
 Save a pixbuf to a file using the specified imgtype and the specified quality/compression value. More...
 
void * lives_pixbuf_save_threaded (void *saveargs)
 save frame to pixbuf in a thread. More...
 
void init_track_decoders (void)
 
void free_track_decoders (void)
 
void wait_for_cleaner (void)
 
void load_frame_image (int frame)
 
void sensitize (void)
 
void sensitize_rfx (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 switch_to_file (int old_file, int new_file)
 
void do_quick_switch (int new_file)
 
boolean switch_audio_clip (int new_file, boolean activate)
 
void resize (double scale)
 
boolean set_palette_colours (boolean force_reload)
 
void set_main_title (const char *filename, int or_untitled_number)
 
void set_record (void)
 
void get_player_size (int *opwidth, int *opheight)
 
void create_LiVES (void)
 
void show_lives (void)
 
void set_colours (LiVESWidgetColor *colf, LiVESWidgetColor *colb, LiVESWidgetColor *colf2, LiVESWidgetColor *colb2, LiVESWidgetColor *coli, LiVESWidgetColor *colt)
 
void set_preview_box_colours (void)
 
void load_theme_images (void)
 
void set_interactive (boolean interactive)
 
char * get_menu_name (lives_clip_t *sfile, boolean add_set)
 
int get_vspace (void)
 
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 fullscreen_internal (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 resize_widgets_for_monitor (boolean get_play_times)
 
void reset_message_area (void)
 
void get_letterbox_sizes (int *pwidth, int *pheight, int *lb_width, int *lb_height, boolean player_can_upscale)
 calculate sizes for letterboxing More...
 
int lives_system (const char *com, boolean allow_error)
 
ssize_t lives_popen (const char *com, boolean allow_error, char *buff, ssize_t buflen)
 
lives_pid_t lives_fork (const char *com)
 
int lives_open3 (const char *pathname, int flags, mode_t mode)
 
int lives_open2 (const char *pathname, int flags)
 
ssize_t lives_write (int fd, livesconstpointer buf, ssize_t count, boolean allow_fail)
 
ssize_t lives_write_le (int fd, livesconstpointer buf, ssize_t count, boolean allow_fail)
 
ssize_t lives_read (int fd, void *buf, ssize_t count, boolean allow_less)
 
ssize_t lives_read_le (int fd, void *buf, ssize_t count, boolean allow_less)
 
lives_file_buffer_tfind_in_file_buffers (int fd)
 
lives_file_buffer_tfind_in_file_buffers_by_pathname (const char *pathname)
 
size_t get_read_buff_size (int sztype)
 
int lives_open_buffered_rdonly (const char *pathname)
 
int lives_open_buffered_writer (const char *pathname, int mode, boolean append)
 
int lives_create_buffered (const char *pathname, int mode)
 
int lives_create_buffered_nosync (const char *pathname, int mode)
 
int lives_close_buffered (int fd)
 
off_t lives_lseek_buffered_writer (int fd, off_t offset)
 
off_t lives_lseek_buffered_rdonly (int fd, off_t offset)
 
off_t lives_lseek_buffered_rdonly_absolute (int fd, off_t offset)
 
off_t lives_buffered_offset (int fd)
 
size_t lives_buffered_orig_size (int fd)
 
boolean lives_buffered_rdonly_set_reversed (int fd, boolean val)
 
ssize_t lives_write_buffered (int fd, const char *buf, ssize_t count, boolean allow_fail)
 
ssize_t lives_buffered_write_printf (int fd, boolean allow_fail, const char *fmt,...)
 
ssize_t lives_write_le_buffered (int fd, livesconstpointer buf, ssize_t count, boolean allow_fail)
 
ssize_t lives_read_buffered (int fd, void *buf, ssize_t count, boolean allow_less)
 
ssize_t lives_read_le_buffered (int fd, void *buf, ssize_t count, boolean allow_less)
 
boolean lives_read_buffered_eof (int fd)
 
lives_file_buffer_tget_file_buffer (int fd)
 
void lives_buffered_rdonly_slurp (int fd, off_t skip)
 
int lives_chdir (const char *path, boolean no_error_dlg)
 
int lives_fputs (const char *s, FILE *stream)
 
char * lives_fgets (char *s, int size, FILE *stream)
 
size_t lives_fread (void *ptr, size_t size, size_t nmemb, FILE *stream)
 
size_t lives_fread_string (char *buff, size_t stlen, const char *fname)
 
pid_t lives_getpid (void)
 
int lives_getgid (void)
 
int lives_getuid (void)
 
boolean lives_freep (void **ptr)
 
void lives_kill_subprocesses (const char *dirname, boolean kill_parent)
 
void lives_suspend_resume_process (const char *dirname, boolean suspend)
 
int lives_kill (lives_pid_t pid, int sig)
 
int lives_killpg (lives_pgid_t pgrp, int sig)
 
ssize_t lives_readlink (const char *path, char *buf, size_t bufsiz)
 
boolean lives_setenv (const char *name, const char *value)
 
boolean lives_unsetenv (const char *name)
 
boolean lives_fsync (int fd)
 
void lives_sync (int times)
 
int lives_rmdir (const char *dir, boolean force)
 
int lives_rmdir_with_parents (const char *dir)
 
int lives_rm (const char *file)
 
int lives_rmglob (const char *files)
 
int lives_cp (const char *from, const char *to)
 
int lives_cp_recursive (const char *from, const char *to, boolean incl_dir)
 
int lives_cp_keep_perms (const char *from, const char *to)
 
int lives_mv (const char *from, const char *to)
 
int lives_touch (const char *tfile)
 
int lives_chmod (const char *target, const char *mode)
 
int lives_cat (const char *from, const char *to, boolean append)
 
int lives_echo (const char *text, const char *to, boolean append)
 
int lives_ln (const char *from, const char *to)
 
int lives_utf8_strcasecmp (const char *s1, const char *s2)
 
int lives_utf8_strcmp (const char *s1, const char *s2)
 
LiVESList * lives_list_sort_alpha (LiVESList *list, boolean fwd)
 
boolean lives_string_ends_with (const char *string, const char *fmt,...)
 
char * filename_from_fd (char *val, int fd)
 : return filename from an open fd, freeing val first More...
 
void reset_playback_clock (void)
 
ticks_t lives_get_current_playback_ticks (ticks_t origsecs, ticks_t origusecs, lives_time_source_t *time_source)
 
lives_alarm_t lives_alarm_set (ticks_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 More...
 
ticks_t lives_alarm_check (lives_alarm_t alarm_handle)
 
boolean lives_alarm_clear (lives_alarm_t alarm_handle)
 
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)
 
char * unhash_version (uint64_t version)
 
void init_clipboard (void)
 
void print_cache (LiVESList *cache)
 
LiVESList * cache_file_contents (const char *filename)
 
char * get_val_from_cached_list (const char *key, size_t maxlen, LiVESList *cache)
 
void cached_list_free (LiVESList **list)
 
void get_location (const char *exe, char *val, int maxlen)
 
boolean check_for_executable (lives_checkstatus_t *cap, const char *exec)
 
boolean do_please_install (const char *exec, uint64_t guidance_flags)
 
boolean do_please_install_either (const char *exec, const char *exec2)
 
char * make_image_file_name (lives_clip_t *clip, frames_t frame, const char *img_ext)
 lives_image_type can be a string, lives_img_type_t is an enumeration More...
 
const char * get_image_ext_for_type (lives_img_type_t imgtype)
 
lives_img_type_t lives_image_ext_to_img_type (const char *img_ext)
 
lives_img_type_t lives_image_type_to_img_type (const char *lives_image_type)
 
const char * image_ext_to_lives_image_type (const char *img_ext)
 
void reset_clipmenu (void)
 
void get_total_time (lives_clip_t *file)
 calculate laudio, raudio and video time (may be deprecated and replaced with macros) More...
 
void get_play_times (void)
 recalculate video / audio lengths and draw the timer bars More...
 
void update_play_times (void)
 like get_play_times, but will force redraw of audio waveforms More...
 
uint32_t get_signed_endian (boolean is_signed, boolean little_endian)
 produce bitmapped value More...
 
void switch_aud_to_none (boolean set_pref)
 
boolean switch_aud_to_sox (boolean set_pref)
 
boolean switch_aud_to_jack (boolean set_pref)
 
boolean switch_aud_to_pulse (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, boolean leaveit)
 
boolean lives_make_writeable_dir (const char *newdir)
 
boolean is_writeable_dir (const char *dir)
 
boolean ensure_isdir (char *fname)
 
boolean dirs_equal (const char *dira, const char *dirb)
 
char * ensure_extension (const char *fname, const char *ext) WARN_UNUSED
 
char * lives_ellipsize (char *, size_t maxlen, LiVESEllipsizeMode mode)
 
char * lives_pad (char *, size_t minlen, int align)
 
char * lives_pad_ellipsize (char *, size_t fixlen, int padlen, LiVESEllipsizeMode mode)
 
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)
 
void maybe_add_mt_idlefunc (void)
 
boolean render_choice_idle (livespointer data)
 
double calc_time_from_frame (int clip, int frame)
 
int calc_frame_from_time (int filenum, double time)
 nearest frame [1, frames] More...
 
int calc_frame_from_time2 (int filenum, double time)
 nearest frame [1, frames+1] More...
 
int calc_frame_from_time3 (int filenum, double time)
 nearest frame rounded down, [1, frames+1] More...
 
int calc_frame_from_time4 (int filenum, double time)
 nearest frame, no maximum 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)
 
void calc_midspect (int rwidth, int rheight, int *cwidth, int *cheight)
 
void calc_minspect (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 buffer_lmap_error (lives_lmap_error_t lerror, const char *name, livespointer user_data, int clipno, int frameno, double atime, boolean affects_current)
 
void unbuffer_lmap_errors (boolean add)
 
void clear_lmap_errors (void)
 
boolean prompt_remove_layout_files (void)
 
boolean do_std_checks (const char *type_name, const char *type, size_t maxlen, const char *nreject)
 
boolean is_legal_set_name (const char *set_name, boolean allow_dupes, boolean leeway)
 
char * repl_workdir (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)
 
boolean save_clip_value (int which, lives_clip_details_t, void *val)
 
boolean check_frame_count (int idx, boolean last_chkd)
 check number of frames is correct for files of type CLIP_TYPE_DISK More...
 
int get_frame_count (int idx, int xsize)
 sets mainw->files[idx]->frames with current framecount More...
 
boolean get_frames_sizes (int fileno, int frame_to_test, int *hsize, int *vsize)
 
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)
 check for set lock file do this via the back-end (smogrify) this allows for the locking scheme to be more flexible More...
 
void lives_list_free_strings (LiVESList *)
 
void lives_list_free_all (LiVESList **)
 
void lives_slist_free_all (LiVESSList **)
 
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 set_sel_label (LiVESWidget *label)
 
void clear_mainw_msg (void)
 
size_t get_token_count (const char *string, int delim)
 
LiVESPixbuf * lives_pixbuf_new_blank (int width, int height, int palette)
 
void find_when_to_stop (void)
 
frames_t calc_new_playback_position (int fileno, ticks_t otc, ticks_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, boolean low_for_mt)
 
LiVESList * lives_list_move_to_first (LiVESList *list, LiVESList *item) WARN_UNUSED
 
LiVESList * lives_list_delete_string (LiVESList *, const char *string) WARN_UNUSED
 
LiVESList * lives_list_copy_strings (LiVESList *list)
 
boolean string_lists_differ (LiVESList *, LiVESList *)
 
LiVESList * lives_list_append_unique (LiVESList *xlist, const char *add)
 
LiVESList * buff_to_list (const char *buffer, const char *delim, boolean allow_blanks, boolean strip)
 
int lives_list_strcmp_index (LiVESList *list, livesconstpointer data, boolean case_sensitive)
 
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 (const char *string)
 
boolean get_screen_usable_size (int *w, int *h)
 
void break_me (const char *dtl)
 

Variables

weed_leaf_get_f _weed_leaf_get
 
weed_leaf_set_f _weed_leaf_set
 
weed_plant_new_f _weed_plant_new
 
weed_plant_list_leaves_f _weed_plant_list_leaves
 
weed_leaf_num_elements_f _weed_leaf_num_elements
 
weed_leaf_element_size_f _weed_leaf_element_size
 
weed_leaf_seed_type_f _weed_leaf_seed_type
 
weed_leaf_get_flags_f _weed_leaf_get_flags
 
weed_plant_free_f _weed_plant_free
 
weed_leaf_set_flags_f _weed_leaf_set_flags
 
weed_leaf_delete_f _weed_leaf_delete
 
capabilitycapable
 
boolean weed_threadsafe
 
int weed_abi_version
 
mainwindowmainw
 
struct timeval tv
 
ssize_t sizint
 type sizes More...
 
ssize_t sizdbl
 
ssize_t sizshrt
 
const char * dummychar
 

Macro Definition Documentation

◆ ABS_THRESH

#define ABS_THRESH (   a,
 
)    (((a) + (b)) >> 31) | (((b) - (a)) >> 31)

Definition at line 298 of file main.h.

◆ AFORM_BIG_ENDIAN

#define AFORM_BIG_ENDIAN   (1<<1)

Definition at line 787 of file main.h.

◆ AFORM_LITTLE_ENDIAN

#define AFORM_LITTLE_ENDIAN   0

Definition at line 784 of file main.h.

◆ AFORM_SIGNED

#define AFORM_SIGNED   0

Definition at line 783 of file main.h.

◆ AFORM_UNKNOWN

#define AFORM_UNKNOWN   65536

Definition at line 788 of file main.h.

◆ AFORM_UNSIGNED

#define AFORM_UNSIGNED   1

Definition at line 786 of file main.h.

◆ ALIGN_CEIL

#define ALIGN_CEIL (   a,
 
)    (((int)(((a) + (b) - 1.) / (b))) * (b))

Definition at line 286 of file main.h.

◆ ALIGN_CEIL64

#define ALIGN_CEIL64 (   a,
 
)    ((((int64_t)(a) + (int64_t)(b) - 1) / (int64_t)(b)) * (int64_t)(b))

Definition at line 289 of file main.h.

◆ ALLOW_NONFREE_CODECS

#define ALLOW_NONFREE_CODECS

Definition at line 211 of file main.h.

◆ ALLOW_PNG24

#define ALLOW_PNG24

Definition at line 637 of file main.h.

◆ ANNOY_CONT

#define ANNOY_CONT   (1ul << 33)

Definition at line 450 of file main.h.

◆ ANNOY_DEV

#define ANNOY_DEV   (1ul << 5)

Definition at line 446 of file main.h.

◆ ANNOY_DISK

#define ANNOY_DISK   (1ul << 1)

Definition at line 442 of file main.h.

◆ ANNOY_DISPLAY

#define ANNOY_DISPLAY   (1ul << 0)

Definition at line 441 of file main.h.

◆ ANNOY_FS

#define ANNOY_FS   (1ul << 32)

Definition at line 449 of file main.h.

◆ ANNOY_LOCK

#define ANNOY_LOCK   (1ul << 37)

Definition at line 454 of file main.h.

◆ ANNOY_NETWORK

#define ANNOY_NETWORK   (1ul << 3)

Definition at line 444 of file main.h.

◆ ANNOY_OTHER

#define ANNOY_OTHER   (1ul << 6)

Definition at line 447 of file main.h.

◆ ANNOY_PERIOD

#define ANNOY_PERIOD   (1ul << 34)

Definition at line 451 of file main.h.

◆ ANNOY_PROC

#define ANNOY_PROC   (1ul << 2)

Definition at line 443 of file main.h.

◆ ANNOY_SOUNDS

#define ANNOY_SOUNDS   (1ul << 4)

Definition at line 445 of file main.h.

◆ ANNOY_SPONT

#define ANNOY_SPONT   (1ul << 35)

Definition at line 452 of file main.h.

◆ ANNOY_TIMED

#define ANNOY_TIMED   (1ul << 36)

Definition at line 453 of file main.h.

◆ AV_TRACK_MIN_DIFF

#define AV_TRACK_MIN_DIFF   0.001

ignore track time differences < this (seconds)

Definition at line 806 of file main.h.

◆ BACKEND_NAME

#define BACKEND_NAME   EXEC_SMOGRIFY

Definition at line 1132 of file main.h.

◆ BUFF_SIZE_READ_CUSTOM

#define BUFF_SIZE_READ_CUSTOM   -1

Definition at line 1596 of file main.h.

◆ BUFF_SIZE_READ_LARGE

#define BUFF_SIZE_READ_LARGE   3

Definition at line 1595 of file main.h.

◆ BUFF_SIZE_READ_MED

#define BUFF_SIZE_READ_MED   2

Definition at line 1594 of file main.h.

◆ BUFF_SIZE_READ_SMALL

#define BUFF_SIZE_READ_SMALL   0

Definition at line 1592 of file main.h.

◆ BUFF_SIZE_READ_SMALLMED

#define BUFF_SIZE_READ_SMALLMED   1

Definition at line 1593 of file main.h.

◆ BUFF_SIZE_WRITE_BIGMED

#define BUFF_SIZE_WRITE_BIGMED   3

Definition at line 1601 of file main.h.

◆ BUFF_SIZE_WRITE_LARGE

#define BUFF_SIZE_WRITE_LARGE   4

Definition at line 1602 of file main.h.

◆ BUFF_SIZE_WRITE_MED

#define BUFF_SIZE_WRITE_MED   2

Definition at line 1600 of file main.h.

◆ BUFF_SIZE_WRITE_SMALL

#define BUFF_SIZE_WRITE_SMALL   0

Definition at line 1598 of file main.h.

◆ BUFF_SIZE_WRITE_SMALLMED

#define BUFF_SIZE_WRITE_SMALLMED   1

Definition at line 1599 of file main.h.

◆ BUFFER_FILL_BYTES_BIGMED

#define BUFFER_FILL_BYTES_BIGMED   16386

Definition at line 1589 of file main.h.

◆ BUFFER_FILL_BYTES_LARGE

#define BUFFER_FILL_BYTES_LARGE   65536

Definition at line 1590 of file main.h.

◆ BUFFER_FILL_BYTES_MED

#define BUFFER_FILL_BYTES_MED   4096

Definition at line 1588 of file main.h.

◆ BUFFER_FILL_BYTES_SMALL

#define BUFFER_FILL_BYTES_SMALL   64

fixed values only for write buffers (must be multiples of 16)

Definition at line 1586 of file main.h.

◆ BUFFER_FILL_BYTES_SMALLMED

#define BUFFER_FILL_BYTES_SMALLMED   1024

Definition at line 1587 of file main.h.

◆ CEIL

#define CEIL (   a,
 
)    ((int)(((double)(a) + (double)(b) - .000000001) / ((double)(b))) * (b))

Definition at line 283 of file main.h.

◆ cfile

#define cfile   mainw->files[mainw->current_file]

Definition at line 1833 of file main.h.

◆ CLIP_AUDIO_TIME

#define CLIP_AUDIO_TIME (   clip)
Value:

Definition at line 827 of file main.h.

◆ CLIP_HAS_AUDIO

#define CLIP_HAS_AUDIO (   clip)    (IS_VALID_CLIP(clip) ? (mainw->files[clip]->achans > 0 && mainw->files[clip]->asampsize > 0) : FALSE)

Definition at line 817 of file main.h.

◆ CLIP_HAS_VIDEO

#define CLIP_HAS_VIDEO (   clip)    (IS_VALID_CLIP(clip) ? mainw->files[clip]->frames > 0 : FALSE)

Definition at line 814 of file main.h.

◆ CLIP_LEFT_AUDIO_TIME

#define CLIP_LEFT_AUDIO_TIME (   clip)    ((double)(IS_VALID_CLIP(clip) ? mainw->files[clip]->laudio_time : 0.))

Definition at line 822 of file main.h.

◆ CLIP_NAME_MAXLEN

#define CLIP_NAME_MAXLEN   256

Definition at line 804 of file main.h.

◆ CLIP_RIGHT_AUDIO_TIME

#define CLIP_RIGHT_AUDIO_TIME (   clip)
Value:
((double)(IS_VALID_CLIP(clip) ? (mainw->files[clip]->achans > 1 ? \
mainw->files[clip]->raudio_time : 0.) : 0.))

Definition at line 824 of file main.h.

◆ CLIP_TOTAL_TIME

#define CLIP_TOTAL_TIME (   clip)
Value:
((double)(CLIP_VIDEO_TIME(clip) > CLIP_AUDIO_TIME(clip) ? CLIP_VIDEO_TIME(clip) : \

Definition at line 830 of file main.h.

◆ CLIP_VIDEO_TIME

#define CLIP_VIDEO_TIME (   clip)    ((double)(IS_VALID_CLIP(clip) ? mainw->files[clip]->video_time : 0.))

Definition at line 820 of file main.h.

◆ clipboard

#define clipboard   mainw->files[CLIPBOARD_FILE]

Definition at line 1835 of file main.h.

◆ CLIPBOARD_FILE

#define CLIPBOARD_FILE   0

Definition at line 1834 of file main.h.

◆ CURRENT_CLIP_HAS_AUDIO

#define CURRENT_CLIP_HAS_AUDIO   CLIP_HAS_AUDIO(mainw->current_file)

Definition at line 818 of file main.h.

◆ CURRENT_CLIP_HAS_VIDEO

#define CURRENT_CLIP_HAS_VIDEO   CLIP_HAS_VIDEO(mainw->current_file)

Definition at line 815 of file main.h.

◆ CURRENT_CLIP_IS_CLIPBOARD

#define CURRENT_CLIP_IS_CLIPBOARD   (mainw->current_file == 0)

Definition at line 848 of file main.h.

◆ CURRENT_CLIP_IS_NORMAL

#define CURRENT_CLIP_IS_NORMAL   IS_NORMAL_CLIP(mainw->current_file)

Definition at line 838 of file main.h.

◆ CURRENT_CLIP_IS_TEMP

#define CURRENT_CLIP_IS_TEMP   IS_TEMP_CLIP(mainw->current_file)

Definition at line 812 of file main.h.

◆ CURRENT_CLIP_IS_VALID

#define CURRENT_CLIP_IS_VALID   IS_VALID_CLIP(mainw->current_file)

Definition at line 809 of file main.h.

◆ CURRENT_CLIP_TOTAL_TIME

#define CURRENT_CLIP_TOTAL_TIME   CLIP_TOTAL_TIME(mainw->current_file)

Definition at line 846 of file main.h.

◆ DEF_ALIGN

#define DEF_ALIGN   (sizeof(void *) * 8)

Definition at line 629 of file main.h.

◆ DEF_FILE_PERMS

#define DEF_FILE_PERMS   (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)

non-executable, is modified by the umask

Definition at line 209 of file main.h.

◆ ENABLE_DVD_GRAB

#define ENABLE_DVD_GRAB

Definition at line 223 of file main.h.

◆ ENABLE_OSC2

#define ENABLE_OSC2

Definition at line 102 of file main.h.

◆ EXPECTED

#define EXPECTED (   x)    __builtin_expect((x), 1)

Definition at line 381 of file main.h.

◆ FLOOR

#define FLOOR (   a,
 
)    ((int)(((double)(a) - .000000001) / ((double)(b))) * (b))

Definition at line 292 of file main.h.

◆ FPS_MAX

#define FPS_MAX   200.

maximum fps we will allow (double)

Definition at line 218 of file main.h.

◆ GDK_WINDOWING_X11

#define GDK_WINDOWING_X11

Definition at line 122 of file main.h.

◆ GNU_ALIGN

#define GNU_ALIGN (   x)

Definition at line 84 of file main.h.

◆ GNU_ALIGNED

#define GNU_ALIGNED (   x)

Definition at line 85 of file main.h.

◆ GNU_CONST

#define GNU_CONST

Definition at line 79 of file main.h.

◆ GNU_DEPRECATED

#define GNU_DEPRECATED (   msg)

Definition at line 83 of file main.h.

◆ GNU_FLATTEN

#define GNU_FLATTEN

Definition at line 87 of file main.h.

◆ GNU_HOT

#define GNU_HOT

Definition at line 88 of file main.h.

◆ GNU_MALLOC

#define GNU_MALLOC

Definition at line 80 of file main.h.

◆ GNU_MALLOC_SIZE

#define GNU_MALLOC_SIZE (   x)

Definition at line 81 of file main.h.

◆ GNU_MALLOC_SIZE2

#define GNU_MALLOC_SIZE2 (   x,
 
)

Definition at line 82 of file main.h.

◆ GNU_NORETURN

#define GNU_NORETURN

Definition at line 86 of file main.h.

◆ GNU_PURE

#define GNU_PURE

Definition at line 78 of file main.h.

◆ GNU_RETURNS_TWICE

#define GNU_RETURNS_TWICE

Definition at line 90 of file main.h.

◆ GNU_SENTINEL

#define GNU_SENTINEL

Definition at line 89 of file main.h.

◆ GUI_GTK

#define GUI_GTK

Definition at line 105 of file main.h.

◆ HAS_EXTERNAL_PLAYER

#define HAS_EXTERNAL_PLAYER   (capable->has_mplayer || capable->has_mplayer2 || capable->has_mpv)

Definition at line 1113 of file main.h.

◆ IGN_RET

#define IGN_RET (   a)    ((void)((a) + 1))

Definition at line 378 of file main.h.

◆ IMG_BUFF_SIZE

#define IMG_BUFF_SIZE   262144

256 * 1024 < chunk size for reading images

Definition at line 1062 of file main.h.

◆ IMG_TYPE_BEST

#define IMG_TYPE_BEST   IMG_TYPE_PNG

Definition at line 781 of file main.h.

◆ INSTALL_CANLOCAL

#define INSTALL_CANLOCAL   (1ul << 0)

install guidance flags

Definition at line 389 of file main.h.

◆ INT_CLAMP

#define INT_CLAMP (   i,
  min,
  max 
)    ((i) < (min) ? (min) : (i) > (max) ? (max) : (i))

Definition at line 280 of file main.h.

◆ is_layer_ready

#define is_layer_ready (   layer)
Value:
(weed_get_boolean_value((layer), WEED_LEAF_THREAD_PROCESSING, NULL) == WEED_FALSE \
&& weed_get_voidptr_value(layer, WEED_LEAF_RESIZE_THREAD, NULL) == NULL)

Definition at line 1485 of file main.h.

◆ IS_NORMAL_CLIP

#define IS_NORMAL_CLIP (   clip)
Value:

Definition at line 833 of file main.h.

◆ IS_TEMP_CLIP

#define IS_TEMP_CLIP (   clip)    (IS_VALID_CLIP(clip) && mainw->files[clip]->clip_type == CLIP_TYPE_TEMP)

Definition at line 811 of file main.h.

◆ IS_VALID_CLIP

#define IS_VALID_CLIP (   clip)    (clip >= 0 && clip <= MAX_FILES && mainw->files[clip])

Definition at line 808 of file main.h.

◆ LIVES_CLIP_HEADER_VERSION

#define LIVES_CLIP_HEADER_VERSION   102

Definition at line 941 of file main.h.

◆ LIVES_COPYRIGHT_YEARS

#define LIVES_COPYRIGHT_YEARS   "2002 - 2020"

Definition at line 198 of file main.h.

◆ LIVES_CRITICAL

#define LIVES_CRITICAL (   x)    {fprintf(stderr, "LiVES CRITICAL: %s\n", x); break_me(x); raise (LIVES_SIGSEGV);}

Definition at line 1878 of file main.h.

◆ LIVES_DEBUG

#define LIVES_DEBUG (   x)    dummychar = x

Definition at line 1848 of file main.h.

◆ LIVES_DIR_SEP

#define LIVES_DIR_SEP   "/"

Definition at line 197 of file main.h.

◆ LIVES_DIRECTION_FWD_OR_REV

#define LIVES_DIRECTION_FWD_OR_REV (   dir)    ((dir) == LIVES_DIRECTION_BACKWARD ? LIVES_DIRECTION_REVERSE : (dir))

Definition at line 863 of file main.h.

◆ LIVES_DIRECTION_OPPOSITE

#define LIVES_DIRECTION_OPPOSITE (   dir1,
  dir2 
)
Value:
(((dir1) == LIVES_DIR_BACKWARD || (dir1) == LIVES_DIR_REVERSED) \
? (dir2) == LIVES_DIR_FORWARD : \
((dir2) == LIVES_DIR_BACKWARD || (dir2) == LIVES_DIR_REVERSED) \
? (dir1) == LIVES_DIR_FORWARD : sig(dir1) != sig(dir2))

Definition at line 866 of file main.h.

◆ LIVES_DIRECTION_PAR

#define LIVES_DIRECTION_PAR (   dir)    ((lives_direction_t)((dir) & 1))

Definition at line 865 of file main.h.

◆ LIVES_DIRECTION_SIG

#define LIVES_DIRECTION_SIG (   dir)    ((lives_direction_t)sig(dir))

Definition at line 864 of file main.h.

◆ LIVES_ERROR

#define LIVES_ERROR (   x)    {fprintf(stderr, "LiVES ERROR: %s\n", x); break_me(x);}

Definition at line 1870 of file main.h.

◆ LIVES_EXT_SRC_DECODER

#define LIVES_EXT_SRC_DECODER   1

Definition at line 1044 of file main.h.

◆ LIVES_EXT_SRC_DEVICE

#define LIVES_EXT_SRC_DEVICE   5

Definition at line 1048 of file main.h.

◆ LIVES_EXT_SRC_FIFO

#define LIVES_EXT_SRC_FIFO   3

Definition at line 1046 of file main.h.

◆ LIVES_EXT_SRC_FILE_BUFF

#define LIVES_EXT_SRC_FILE_BUFF   6

Definition at line 1049 of file main.h.

◆ LIVES_EXT_SRC_FILTER

#define LIVES_EXT_SRC_FILTER   2

Definition at line 1045 of file main.h.

◆ LIVES_EXT_SRC_NONE

#define LIVES_EXT_SRC_NONE   0

Definition at line 1043 of file main.h.

◆ LIVES_EXT_SRC_STREAM

#define LIVES_EXT_SRC_STREAM   4

Definition at line 1047 of file main.h.

◆ LIVES_EXT_SRC_UNKNOWN

#define LIVES_EXT_SRC_UNKNOWN   -1

Definition at line 1042 of file main.h.

◆ LIVES_FATAL

#define LIVES_FATAL (   x)
Value:
{fprintf(stderr, "LiVES FATAL: %s\n", x); lives_notify(LIVES_OSC_NOTIFY_QUIT, x), \
break_me(x); _exit (1);}

Definition at line 1886 of file main.h.

◆ LIVES_GLOBAL_INLINE

#define LIVES_GLOBAL_INLINE   inline

Definition at line 239 of file main.h.

◆ LIVES_INFO

#define LIVES_INFO (   x)    fprintf(stderr, "LiVES info: %s\n", x)

Definition at line 1854 of file main.h.

◆ LIVES_INLINE

#define LIVES_INLINE   static inline

Definition at line 238 of file main.h.

◆ LIVES_IS_PLAYING

#define LIVES_IS_PLAYING   (mainw && mainw->playing_file > -1)

Definition at line 840 of file main.h.

◆ LIVES_IS_RENDERING

#define LIVES_IS_RENDERING
Value:
|| (mainw->multitrack && mainw->multitrack->is_rendering)) \

Definition at line 842 of file main.h.

◆ LIVES_LINGO_IS_PANGO

#define LIVES_LINGO_IS_PANGO

Definition at line 107 of file main.h.

◆ LIVES_LOCAL_INLINE

#define LIVES_LOCAL_INLINE   LIVES_INLINE

Definition at line 246 of file main.h.

◆ LIVES_NO_DEBUG

#define LIVES_NO_DEBUG

Definition at line 1843 of file main.h.

◆ LIVES_OS_UNIX

#define LIVES_OS_UNIX   G_OS_UNIX

Definition at line 130 of file main.h.

◆ LIVES_PAINTER_IS_CAIRO

#define LIVES_PAINTER_IS_CAIRO

Definition at line 106 of file main.h.

◆ LIVES_TV_CHANNEL1

#define LIVES_TV_CHANNEL1   "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm"

Definition at line 1837 of file main.h.

◆ LIVES_WARN

#define LIVES_WARN (   x)    fprintf(stderr, "LiVES warning: %s\n", x)

Definition at line 1862 of file main.h.

◆ MAX_FILES

#define MAX_FILES   65535

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

Definition at line 184 of file main.h.

◆ MAX_FRAME_HEIGHT

#define MAX_FRAME_HEIGHT   100000.

Definition at line 221 of file main.h.

◆ MAX_FRAME_WIDTH

#define MAX_FRAME_WIDTH   100000.

Definition at line 220 of file main.h.

◆ myround

#define myround (   n)    ((n) >= 0. ? (int)((n) + 0.5) : (int)((n) - 0.5))

Definition at line 300 of file main.h.

◆ N_RECENT_FILES

#define N_RECENT_FILES   16

Definition at line 657 of file main.h.

◆ NEED_FOURCC_COMPAT

#define NEED_FOURCC_COMPAT

Definition at line 357 of file main.h.

◆ NORMAL_CLAMP

#define NORMAL_CLAMP (   a,
 
)    (ROUND_I((a)) < 0 ? 0 : ROUND_I((a)) > ROUND_I((b)) ? ROUND_I((b)) : ROUND_I((a)))

Definition at line 274 of file main.h.

◆ PATH_MAX

#define PATH_MAX   4096

Definition at line 255 of file main.h.

◆ PREFIX

#define PREFIX   PREFIX_DEFAULT

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

Definition at line 194 of file main.h.

◆ PREFIX_DEFAULT

#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

Definition at line 189 of file main.h.

◆ QUOTEME

#define QUOTEME (   x)    #x

Definition at line 181 of file main.h.

◆ RES_BLOCK

#define RES_BLOCK   (1ul << 3)

Definition at line 459 of file main.h.

◆ RES_HIDE

#define RES_HIDE   (1ul << 0)

Definition at line 456 of file main.h.

◆ RES_MUTE

#define RES_MUTE   (1ul << 4)

Definition at line 460 of file main.h.

◆ RES_STOP

#define RES_STOP   (1ul << 2)

Definition at line 458 of file main.h.

◆ RES_SUSPEND

#define RES_SUSPEND   (1ul << 1)

Definition at line 457 of file main.h.

◆ RESEEK_ENABLE

#define RESEEK_ENABLE

Definition at line 1934 of file main.h.

◆ RESTYPE_ACTION

#define RESTYPE_ACTION   (1ul << 16)

Definition at line 462 of file main.h.

◆ RESTYPE_CMD

#define RESTYPE_CMD   (1ul << 19)

Definition at line 465 of file main.h.

◆ RESTYPE_CONFIG

#define RESTYPE_CONFIG   (1ul << 17)

Definition at line 463 of file main.h.

◆ RESTYPE_LOCKOUT

#define RESTYPE_LOCKOUT   (1ul << 20)

Definition at line 466 of file main.h.

◆ RESTYPE_MONITOR

#define RESTYPE_MONITOR   (1ul << 22)

Definition at line 468 of file main.h.

◆ RESTYPE_SIGNAL

#define RESTYPE_SIGNAL   (1ul << 18)

Definition at line 464 of file main.h.

◆ RESTYPE_TIMED

#define RESTYPE_TIMED   (1ul << 21)

Definition at line 467 of file main.h.

◆ ROUND_I

#define ROUND_I (   a)    ((int)((double)(a) + .5))

Definition at line 271 of file main.h.

◆ sig

#define sig (   a)    ((a) < 0. ? -1.0 : 1.0)

Definition at line 268 of file main.h.

◆ SIGNED_DIVIDE

#define SIGNED_DIVIDE (   a,
 
)    ((a) < 0. ? -fabs((a) / (b)) : fabs((a) / (b)))

Definition at line 295 of file main.h.

◆ squared

#define squared (   a)    ((a) * (a))

Definition at line 266 of file main.h.

◆ STD_STRINGFUNCS

#define STD_STRINGFUNCS

Definition at line 59 of file main.h.

◆ strip_ext

#define strip_ext (   fname)
Value:
lives_strdup((char *)(fname ? strrchr(fname, '.') ? lives_memset(strrchr(fname, '.'), 0, 1) \
? fname : fname : fname : NULL))

Definition at line 261 of file main.h.

◆ ulong

#define ulong   unsigned long

Definition at line 178 of file main.h.

◆ UNEXPECTED

#define UNEXPECTED (   x)    __builtin_expect((x), 0)

Definition at line 382 of file main.h.

◆ URL_MAX

#define URL_MAX   2048

Definition at line 259 of file main.h.

◆ USE_16BIT_PCONV

#define USE_16BIT_PCONV

Definition at line 1119 of file main.h.

◆ USE_GLIB

#define USE_GLIB

Definition at line 128 of file main.h.

◆ USE_MPV

#define USE_MPV   (!capable->has_mplayer && !capable->has_mplayer2 && capable->has_mpv)

some shared structures

Definition at line 1112 of file main.h.

◆ USE_REC_RS

#define USE_REC_RS

Definition at line 1933 of file main.h.

◆ UTIL_CLAMP

#define UTIL_CLAMP (   a,
 
)    (NORMAL_CLAMP((a), (b)) <= 0 ? ROUND_I((b)) : ROUND_I((a)))

Definition at line 277 of file main.h.

◆ WARN_FILE_SIZE

#define WARN_FILE_SIZE   500

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

Definition at line 215 of file main.h.

◆ WARN_UNUSED

#define WARN_UNUSED

Definition at line 77 of file main.h.

◆ WEED_ADVANCED_PALETTES

#define WEED_ADVANCED_PALETTES

Definition at line 329 of file main.h.

◆ WEED_LEAF_HOST_DECODER

#define WEED_LEAF_HOST_DECODER   "host_decoder"

Definition at line 801 of file main.h.

◆ WEED_LEAF_HOST_DEINTERLACE

#define WEED_LEAF_HOST_DEINTERLACE   "host_deint"

Definition at line 799 of file main.h.

◆ WEED_LEAF_HOST_PTHREAD

#define WEED_LEAF_HOST_PTHREAD   "host_pthread"

Definition at line 802 of file main.h.

◆ WEED_LEAF_HOST_TC

#define WEED_LEAF_HOST_TC   "host_tc"

Definition at line 800 of file main.h.

Typedef Documentation

◆ frames64_t

typedef int64_t frames64_t

Definition at line 100 of file main.h.

◆ frames_t

typedef int frames_t

Definition at line 99 of file main.h.

◆ lives_checkstatus_t

Definition at line 429 of file main.h.

◆ lives_pgid_t

typedef int lives_pgid_t

Definition at line 118 of file main.h.

◆ lives_pid_t

typedef pid_t lives_pid_t

Definition at line 117 of file main.h.

◆ SignalHandlerPointer

typedef void(* SignalHandlerPointer) (int)

Definition at line 1464 of file main.h.

◆ ticks_t

typedef int64_t ticks_t

Definition at line 97 of file main.h.

Enumeration Type Documentation

◆ lives_cancel_t

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_EXTERNAL_ENDED 

external process ended (e.g. autolives uncheck)

CANCEL_KEEP 

user pressed 'Keep'

CANCEL_AUD_END 

video playback completed

CANCEL_ERROR 

cancelled because of error

CANCEL_AUDIO_ERROR 

cancelled because of soundcard error

CANCEL_USER_PAUSED 

cancelled and paused

CANCEL_RETRY 

an error occurred, retry the operation

CANCEL_INTERNAL_ERROR 

software error: e.g set mainw->current_file directly during pb instead of mainw->new_clip

CANCEL_KEEP_LOOPING 

special cancel for TV toy

Definition at line 699 of file main.h.

◆ lives_cancel_type_t

Enumerator
CANCEL_KILL 

normal - kill background processes working on current clip

CANCEL_SOFT 

just cancel in GUI (for keep, etc)

Definition at line 758 of file main.h.

◆ lives_clip_details_t

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 
CLIP_DETAILS_GAMMA_TYPE 
CLIP_DETAILS_MD5SUM 
CLIP_DETAILS_CACHE_OBJECTS 
CLIP_DETAILS_RESERVED30 
CLIP_DETAILS_RESERVED29 
CLIP_DETAILS_RESERVED28 
CLIP_DETAILS_RESERVED27 
CLIP_DETAILS_RESERVED26 
CLIP_DETAILS_RESERVED25 
CLIP_DETAILS_RESERVED24 
CLIP_DETAILS_RESERVED23 
CLIP_DETAILS_RESERVED22 
CLIP_DETAILS_RESERVED21 
CLIP_DETAILS_RESERVED20 
CLIP_DETAILS_RESERVED19 
CLIP_DETAILS_RESERVED18 
CLIP_DETAILS_RESERVED17 
CLIP_DETAILS_RESERVED16 
CLIP_DETAILS_RESERVED15 
CLIP_DETAILS_RESERVED14 
CLIP_DETAILS_RESERVED13 
CLIP_DETAILS_RESERVED12 
CLIP_DETAILS_RESERVED11 
CLIP_DETAILS_RESERVED10 
CLIP_DETAILS_RESERVED9 
CLIP_DETAILS_RESERVED8 
CLIP_DETAILS_RESERVED7 
CLIP_DETAILS_RESERVED6 
CLIP_DETAILS_RESERVED5 
CLIP_DETAILS_RESERVED4 
CLIP_DETAILS_RESERVED3 
CLIP_DETAILS_RESERVED2 
CLIP_DETAILS_RESERVED1 
CLIP_DETAILS_RESERVED0 

Definition at line 1141 of file main.h.

◆ lives_clip_type_t

Enumerator
CLIP_TYPE_DISK 

imported video, broken into frames

CLIP_TYPE_FILE 

unimported video, not or partially broken in frames

CLIP_TYPE_GENERATOR 

frames from generator plugin

CLIP_TYPE_NULL_VIDEO 

generates blank video frames

CLIP_TYPE_TEMP 

temp type, for internal use only

CLIP_TYPE_YUV4MPEG 

yuv4mpeg stream

CLIP_TYPE_LIVES2LIVES 

type for LiVES to LiVES streaming

CLIP_TYPE_VIDEODEV 

frames from video device

Definition at line 763 of file main.h.

◆ lives_direction_t

use REVERSE / FORWARD when a sign is used, BACKWARD / FORWARD when a parity is used

Enumerator
LIVES_DIRECTION_REVERSE 
LIVES_DIRECTION_BACKWARD 
LIVES_DIRECTION_FORWARD 
LIVES_DIRECTION_LEFT 
LIVES_DIRECTION_RIGHT 
LIVES_DIRECTION_UP 
LIVES_DIRECTION_DOWN 
LIVES_DIRECTION_IN 
LIVES_DIRECTION_OUT 

Definition at line 851 of file main.h.

◆ lives_img_type_t

Enumerator
IMG_TYPE_UNKNOWN 
IMG_TYPE_JPEG 
IMG_TYPE_PNG 
N_IMG_TYPES 

Definition at line 774 of file main.h.

◆ lives_interlace_t

Enumerator
LIVES_INTERLACE_NONE 
LIVES_INTERLACE_BOTTOM_FIRST 
LIVES_INTERLACE_TOP_FIRST 
LIVES_INTERLACE_NONE 
LIVES_INTERLACE_BOTTOM_FIRST 
LIVES_INTERLACE_TOP_FIRST 

Definition at line 790 of file main.h.

◆ lives_presence_t

Enumerator
MISSING 

not yet implemented (TODO)

UNCHECKED 
PRESENT 
LOCAL 

Definition at line 391 of file main.h.

◆ lives_undo_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_AUDIO_VOL 
UNDO_REC_AUDIO 

record audio to selection

UNDO_INSERT_WITH_AUDIO 

Definition at line 659 of file main.h.

◆ lives_whentostop_t

which stream end should cause playback to finish ?

Enumerator
NEVER_STOP 
STOP_ON_VID_END 
STOP_ON_AUD_END 

Definition at line 692 of file main.h.

Function Documentation

◆ activate_url()

void activate_url ( LiVESAboutDialog *  about,
const char *  link,
livespointer  data 
)

Definition at line 4624 of file utils.c.

Referenced by on_about_activate().

◆ activate_url_inner()

void activate_url_inner ( const char *  link)

◆ add_file_info()

boolean add_file_info ( const char *  check_handle,
boolean  aud_only 
)

Definition at line 3870 of file saveplay.c.

◆ add_lmap_error()

boolean add_lmap_error ( lives_lmap_error_t  lerror,
const char *  name,
livespointer  user_data,
int  clipno,
int  frameno,
double  atime,
boolean  affects_current 
)

Definition at line 2673 of file utils.c.

Referenced by on_close_activate(), recover_layout_map(), and unbuffer_lmap_errors().

◆ add_messages_to_list()

int add_messages_to_list ( const char *  text)

Definition at line 2416 of file utils.c.

Referenced by d_print().

◆ add_resnn_label()

void add_resnn_label ( LiVESDialog *  dialog)

Definition at line 4567 of file dialogs.c.

◆ add_to_ascrap_mb()

void add_to_ascrap_mb ( uint64_t  bytes)

Definition at line 5225 of file saveplay.c.

◆ add_to_recent()

void add_to_recent ( const char *  filename,
double  start,
int  frames,
const char *  file_open_params 
)

Definition at line 4701 of file utils.c.

◆ add_to_recovery_file()

void add_to_recovery_file ( const char *  handle)

◆ add_warn_check()

void add_warn_check ( LiVESBox *  box,
int  warn_mask_number 
)

Definition at line 103 of file dialogs.c.

Referenced by create_cds_dialog(), and popup_lmap_errors().

◆ after_foreign_play()

boolean after_foreign_play ( void  )

Definition at line 4193 of file utils.c.

Referenced by on_capture_activate().

◆ all_config()

boolean all_config ( LiVESWidget *  ,
LiVESXEventConfigure *  ,
livespointer  ppsurf 
)

genric func. to create surfaces

Definition at line 10042 of file callbacks.c.

Referenced by lives_standard_drawing_area_new().

◆ all_expose()

boolean all_expose ( LiVESWidget *  ,
lives_painter_t *  ,
livespointer  psurf 
)

Definition at line 9856 of file callbacks.c.

Referenced by all_expose_nopb(), all_expose_pb(), and mt_init_tracks().

◆ ask_permission_dialog()

boolean ask_permission_dialog ( int  what)

Definition at line 4587 of file dialogs.c.

◆ ask_permission_dialog_complex()

boolean ask_permission_dialog_complex ( int  what,
char **  argv,
int  argc,
int  offs,
const char *  sudocom 
)

badly formed request, ignore it

Definition at line 4605 of file dialogs.c.

◆ backup_file()

void backup_file ( int  clip,
int  start,
int  end,
const char *  filename 
)

Definition at line 4264 of file saveplay.c.

◆ block_expose()

void block_expose ( void  )

◆ break_me()

void break_me ( const char *  dtl)

◆ buff_to_list()

LiVESList* buff_to_list ( const char *  buffer,
const char *  delim,
boolean  allow_blanks,
boolean  strip 
)

Definition at line 5755 of file utils.c.

◆ buffer_lmap_error()

void buffer_lmap_error ( lives_lmap_error_t  lerror,
const char *  name,
livespointer  user_data,
int  clipno,
int  frameno,
double  atime,
boolean  affects_current 
)

Definition at line 2640 of file utils.c.

◆ cache_file_contents()

LiVESList* cache_file_contents ( const char *  filename)

Definition at line 4909 of file utils.c.

Referenced by reload_clip().

◆ cached_list_free()

void cached_list_free ( LiVESList **  list)

Definition at line 4881 of file utils.c.

Referenced by reload_clip(), and reload_set().

◆ calc_aframeno()

void calc_aframeno ( int  fileno)

Definition at line 1845 of file utils.c.

Referenced by calc_new_playback_position().

◆ calc_frame_from_time()

int calc_frame_from_time ( int  filenum,
double  time 
)

◆ calc_frame_from_time2()

int calc_frame_from_time2 ( int  filenum,
double  time 
)

nearest frame [1, frames+1]

Definition at line 1768 of file utils.c.

Referenced by on_mouse_sel_start(), and on_mouse_sel_update().

◆ calc_frame_from_time3()

int calc_frame_from_time3 ( int  filenum,
double  time 
)

nearest frame rounded down, [1, frames+1]

Definition at line 1778 of file utils.c.

Referenced by on_mouse_sel_start(), and on_mouse_sel_update().

◆ calc_frame_from_time4()

int calc_frame_from_time4 ( int  filenum,
double  time 
)

nearest frame, no maximum

Definition at line 1788 of file utils.c.

Referenced by lives_ce_update_timeline(), play_all(), render_events(), storeclip_callback(), and update_sel_menu().

◆ calc_maxspect()

void calc_maxspect ( int  rwidth,
int  rheight,
int *  cwidth,
int *  cheight 
)

Definition at line 2174 of file utils.c.

Referenced by get_letterbox_sizes(), and get_player_size().

◆ calc_midspect()

void calc_midspect ( int  rwidth,
int  rheight,
int *  cwidth,
int *  cheight 
)

Definition at line 2216 of file utils.c.

◆ calc_minspect()

void calc_minspect ( int  rwidth,
int  rheight,
int *  cwidth,
int *  cheight 
)

Definition at line 2195 of file utils.c.

◆ calc_new_playback_position()

frames_t calc_new_playback_position ( int  fileno,
ticks_t  otc,
ticks_t ntc 
)

if we are scratching we do the following: the time since the last call is considered to have happened at an increased fps (fwd or back) we recalculate the frame at ntc as if we were at the faster framerate.

the frame number changed, but we will recalulate the value using mainw->deltaticks

retain the fractional part for next time

or subtracted from the selection end (backwards) [if we started backwards then the boundary crossing will be with the

must set norecurse, otherwise we can end up in an infinite loop since dirchange_callback calls this function

????

Definition at line 1865 of file utils.c.

◆ calc_time_from_frame()

double calc_time_from_frame ( int  clip,
int  frame 
)

◆ catch_sigint()

void catch_sigint ( int  signum)

Definition at line 296 of file main.c.

Referenced by mt_idle_add(), real_main(), save_clip_value(), and save_clip_values().

◆ check_backend_return()

boolean check_backend_return ( lives_clip_t sfile)

Definition at line 1009 of file dialogs.c.

Referenced by do_effect(), and on_resaudio_ok_clicked().

◆ check_dir_access()

boolean check_dir_access ( const char *  dir,
boolean  leaveit 
)

◆ check_file()

boolean check_file ( const char *  file_name,
boolean  check_exists 
)

check if file exists

Definition at line 4312 of file utils.c.

Referenced by rfxbuilder_to_script().

◆ check_for_disk_space()

boolean check_for_disk_space ( boolean  fullcheck)

fullcheck == FALSE, we MAY check ds used, and we WILL check free ds using cached value fullcheck == TRUE, we WILL update free ds

value is in BYTES

Definition at line 5416 of file saveplay.c.

◆ check_for_executable()

boolean check_for_executable ( lives_checkstatus_t cap,
const char *  exec 
)

◆ check_for_lock_file()

boolean check_for_lock_file ( const char *  set_name,
int  type 
)

check for set lock file do this via the back-end (smogrify) this allows for the locking scheme to be more flexible

smogrify indicates a lock very simply by by writing > 0 bytes to stdout we read this via popen

type == 0 for load, type == 1 for save

Definition at line 2894 of file utils.c.

Referenced by is_legal_set_name(), and reload_set().

◆ check_for_ratio_fps()

boolean check_for_ratio_fps ( double  fps)

Definition at line 5361 of file utils.c.

Referenced by add_to_clipmenu(), and on_resample_vid_ok().

◆ check_for_recovery_files()

boolean check_for_recovery_files ( boolean  auto_recover)

CRITICAL: make sure this gets called even on system failure and abort

may fail -> abort

Definition at line 6550 of file saveplay.c.

◆ check_frame_count()

boolean check_frame_count ( int  idx,
boolean  last_checked 
)

check number of frames is correct for files of type CLIP_TYPE_DISK

  • check the image files (e.g. jpeg or png)

use a "goldilocks" algorithm (just the right frames, not too few and not too many)

ignores gaps

make sure nth frame is there...

...make sure n + 1 th frame is not

too many frames

just right

Definition at line 3074 of file utils.c.

◆ check_layer_ready()

boolean check_layer_ready ( weed_layer_t layer)

block until layer pixel_data is ready.

This function should always be called for threaded layers, prior to freeing the layer, reading it's properites, pixel data, resizing etc.

We may also deinterlace and overlay subs here for the blend layer, we may also resize, convert palette, apply gamma in preparation for combining with the main layer

if effects were applied then the frame_layer can depend on other layers, however these wil have been checked already when the effects were applied

see also MACRO: is_layer_ready(layer) which can be called first to avoid the block, e.g.

while (!is_layer_ready(layer)) { do_something_else(); } check_layer_ready(layer); // won't block

This function must be called at some point for every threaded frame, otherwise thread resources will be leaked.

N.B. the name if this function is not the best, it will probably get renamed in th future to something like finish_layer.

Definition at line 7528 of file main.c.

Referenced by do_quick_switch(), load_frame_image(), and switch_clip().

◆ check_storage_space()

boolean check_storage_space ( int  clipno,
boolean  is_processing 
)

◆ clear_lmap_errors()

void clear_lmap_errors ( void  )

Definition at line 2858 of file utils.c.

Referenced by on_lerrors_clear_clicked().

◆ clear_mainw_msg()

void clear_mainw_msg ( void  )

◆ clip_detail_to_string()

char* clip_detail_to_string ( lives_clip_details_t  what,
size_t *  maxlenp 
)

Definition at line 4980 of file utils.c.

Referenced by do_header_missing_detail_error(), get_clip_value(), and save_clip_value().

◆ clip_forensic()

lives_clip_t* clip_forensic ( int  clipno)

Definition at line 6029 of file saveplay.c.

◆ close_ascrap_file()

void close_ascrap_file ( boolean  remove)

Definition at line 5612 of file saveplay.c.

Referenced by check_for_layout_del(), on_save_set_activate(), and wipe_layout().

◆ close_current_file()

void close_current_file ( int  file_to_switch_to)

◆ close_scrap_file()

void close_scrap_file ( boolean  remove)

Definition at line 5583 of file saveplay.c.

Referenced by check_for_layout_del(), on_save_set_activate(), and wipe_layout().

◆ close_temp_handle()

int close_temp_handle ( int  new_clip)

close cfile and switch to new clip (may be -1)

note this only closes the disk and basic resources, it does not affect the interface (c.f. close_current_file()) returns new_clip

Definition at line 3498 of file saveplay.c.

Referenced by close_ascrap_file(), close_current_file(), close_file(), on_capture_activate(), on_import_proj_activate(), on_recaudclip_ok_clicked(), and on_utube_select().

◆ count_resampled_frames()

int count_resampled_frames ( int  in_frames,
double  orig_fps,
double  resampled_fps 
)

Definition at line 72 of file resample.c.

Referenced by add_lmap_error(), and setmergealign().

◆ create_cfile()

lives_clip_t* create_cfile ( int  new_file,
const char *  handle,
boolean  is_loaded 
)

set default values for a clip (in memory)

if new_file == -1 we create (malloc) a new clip and switch to it

  • setting its handle to "handle" (reload / crash recovery)

if new_file != -1 the parameter "handle" is ignored, and we switch to new_file, without mallocing anything

default values are then set for the clip

  • a "unique_id" is assigned via uuidgen or lives_random()
  • type is set to CLIP_TYPE_DISK
  • img_type is set depending on prefs->image_type
  • frames is set to 0 etc.
  • loaded is set = to is_loaded

WARNING: on success, returns the clip, and changes the value of mainw->current_file !! returns NULL if: new_file is out of range or points to a NULL clip; new_file is -1 and all free clips are in use (unlikely), or malloc fails.

Definition at line 3656 of file saveplay.c.

Referenced by after_foreign_play(), create_nullvideo_clip(), get_new_handle(), open_ascrap_file(), open_scrap_file(), and weed_generator_start().

◆ create_event_space()

boolean create_event_space ( int  length_in_eventsb)

Definition at line 4660 of file utils.c.

Referenced by event_list_to_block().

◆ create_LiVES()

void create_LiVES ( void  )

Definition at line 366 of file gui.c.

Referenced by resize_widgets_for_monitor().

◆ create_message_dialog()

LiVESWidget* create_message_dialog ( lives_dialog_t  diat,
const char *  text,
int  warn_mask_number 
)

MUST check if execs are MISSING, else we can get stuck in a loop of warning dialogs !!!

Definition at line 260 of file dialogs.c.

Referenced by create_question_dialog(), do_do_not_close_d(), do_error_dialog_with_check(), do_warning_dialog_with_check(), do_yesno_dialog(), do_yesno_dialog_with_check(), and do_yesno_dialogf().

◆ create_nullvideo_clip()

int create_nullvideo_clip ( const char *  handle)

Definition at line 3808 of file saveplay.c.

◆ create_question_dialog()

LiVESWidget* create_question_dialog ( const char *  title,
const char *  text 
)

◆ d_print()

void d_print ( const char *  fmt,
  ... 
)

Definition at line 2542 of file utils.c.

Referenced by add_file_info(), build_init_config(), camready(), check_rfx_for_lives(), close_current_file(), d_print_urgency(), do_audio_import_error(), do_effect(), do_read_failed_error_s(), do_set_noclips_error(), do_system_failed_error(), do_write_failed_error_s(), dprint_recneg(), get_best_audio(), lives2lives_read_stream(), lives_exit(), load_decoders(), load_event_list(), load_rte_defs(), load_vpp_defaults(), mt_change_vals_activate(), mt_clear_timeline(), on_capture_activate(), on_change_speed_ok_clicked(), on_del_node_clicked(), on_delete_rfx_activate(), on_effects_paused(), on_erase_subs_activate(), on_export_proj_activate(), on_export_rfx_activate(), on_fade_audio_activate(), on_import_proj_activate(), on_import_rfx_activate(), on_import_theme_activate(), on_load_cdtrack_ok_clicked(), on_load_subs_activate(), on_normalise_audio_activate(), on_paste_as_new_activate(), on_promote_rfx_activate(), on_rebuild_rfx_activate(), on_recaudclip_ok_clicked(), on_record_perf_activate(), on_redo_activate(), on_render_activate(), on_resample_vid_ok(), on_resaudio_ok_clicked(), on_rev_clipboard_activate(), on_save_rte_defs_activate(), on_undo_activate(), on_vj_realize_activate(), on_vppa_save_clicked(), open_decoder_plugin(), open_raw1394(), open_vid_playback_plugin(), pad_init_silence(), play_file(), print_layout_wiped(), remove_layout_files(), render_to_clip(), resample_clipboard(), resize_message_area(), resize_widgets_for_monitor(), rfxbuilder_to_script(), and start_render_effect_events().

◆ d_print_cancelled()

void d_print_cancelled ( void  )

◆ d_print_done()

void d_print_done ( void  )

◆ d_print_enough()

void d_print_enough ( int  frames)

Definition at line 2630 of file utils.c.

Referenced by add_file_info(), on_cancel_keep_button_clicked(), and on_vj_realize_activate().

◆ d_print_failed()

void d_print_failed ( void  )

◆ d_print_file_error_failed()

void d_print_file_error_failed ( void  )

◆ d_print_overlay()

boolean d_print_overlay ( double  timeout_seconds,
const char *  fmt,
  ... 
)

Definition at line 2523 of file utils.c.

Referenced by on_volch_pressed(), and show_sync_callback().

◆ d_print_urgency()

boolean d_print_urgency ( double  timeout_seconds,
const char *  fmt,
  ... 
)

Definition at line 2497 of file utils.c.

◆ deduce_file()

ulong deduce_file ( const char *  filename,
double  start_time,
int  end 
)

Definition at line 238 of file saveplay.c.

Referenced by on_toy_activate().

◆ defer_sigint()

void defer_sigint ( int  signum)

Definition at line 282 of file main.c.

Referenced by mt_idle_add(), save_clip_value(), and save_clip_values().

◆ desensitize()

void desensitize ( void  )

◆ dirs_equal()

boolean dirs_equal ( const char *  dira,
const char *  dirb 
)

Definition at line 3390 of file utils.c.

◆ disable_record()

void disable_record ( void  )

Definition at line 3717 of file gui.c.

◆ do_abort_cancel_retry_dialog()

LiVESResponseType do_abort_cancel_retry_dialog ( const char *  text)

◆ do_abort_check()

boolean do_abort_check ( void  )

Definition at line 4277 of file dialogs.c.

◆ do_abort_dialog()

void do_abort_dialog ( const char *  text)

Definition at line 725 of file dialogs.c.

◆ do_abort_ok_dialog()

LiVESResponseType do_abort_ok_dialog ( const char *  text)

◆ do_abort_retry_dialog()

LiVESResponseType do_abort_retry_dialog ( const char *  text)

◆ do_abortblank_error()

void do_abortblank_error ( const char *  what)

Definition at line 873 of file dialogs.c.

◆ do_after_crash_warning()

void do_after_crash_warning ( void  )

Definition at line 3742 of file dialogs.c.

Referenced by recover_layout(), and recover_layout_cancelled().

◆ do_after_invalid_warning()

void do_after_invalid_warning ( void  )

Definition at line 3748 of file dialogs.c.

◆ do_aud_during_play_error()

void do_aud_during_play_error ( void  )

Definition at line 899 of file dialogs.c.

◆ do_audio_import_error()

void do_audio_import_error ( void  )

Definition at line 3381 of file dialogs.c.

◆ do_audrate_error_dialog()

void do_audrate_error_dialog ( void  )

◆ do_auto_dialog()

boolean do_auto_dialog ( const char *  text,
int  type 
)

Definition at line 2844 of file dialogs.c.

Referenced by on_load_cdtrack_ok_clicked(), and on_utube_select().

◆ do_autolives_needs_clips_error()

void do_autolives_needs_clips_error ( void  )

Definition at line 4507 of file dialogs.c.

Referenced by autolives_toggle().

◆ do_bad_layout_error()

void do_bad_layout_error ( void  )

Definition at line 3635 of file dialogs.c.

Referenced by recover_layout().

◆ do_bad_theme_error()

void do_bad_theme_error ( const char *  themefile)

Definition at line 4474 of file dialogs.c.

◆ do_bad_theme_import_error()

void do_bad_theme_import_error ( const char *  theme_file)

Definition at line 4530 of file dialogs.c.

Referenced by on_import_theme_activate().

◆ do_card_in_use_error()

void do_card_in_use_error ( void  )

Definition at line 4289 of file dialogs.c.

Referenced by on_live_tvcard_activate().

◆ do_cd_error_dialog()

void do_cd_error_dialog ( void  )

Definition at line 4525 of file dialogs.c.

Referenced by on_eject_cd_activate(), and on_load_cdtrack_activate().

◆ do_chdir_failed_error()

void do_chdir_failed_error ( const char *  dir)

Definition at line 4213 of file dialogs.c.

Referenced by lives_chdir().

◆ do_clip_divergence_error()

void do_clip_divergence_error ( int  fileno)

Definition at line 888 of file dialogs.c.

◆ do_clipboard_fps_warning()

boolean do_clipboard_fps_warning ( void  )

Definition at line 3244 of file dialogs.c.

◆ do_close_changed_warn()

boolean do_close_changed_warn ( void  )

Definition at line 4536 of file dialogs.c.

Referenced by on_close_activate().

◆ do_comments_dialog()

boolean do_comments_dialog ( int  fileno,
char *  filename 
)

Definition at line 3288 of file dialogs.c.

Referenced by on_show_file_comments_activate().

◆ do_decoder_palette_error()

void do_decoder_palette_error ( void  )

Definition at line 3732 of file dialogs.c.

◆ do_dev_busy_error()

void do_dev_busy_error ( const char *  devstr)

Definition at line 4294 of file dialogs.c.

Referenced by on_live_tvcard_activate().

◆ do_dir_notfound_dialog()

LiVESResponseType do_dir_notfound_dialog ( const char *  detail,
const char *  dirname 
)

Definition at line 3509 of file dialogs.c.

Referenced by build_init_config().

◆ do_dir_perm_access_error()

void do_dir_perm_access_error ( const char *  dir_name)

Definition at line 4270 of file dialogs.c.

◆ do_dir_perm_error()

LiVESResponseType do_dir_perm_error ( const char *  dir_name,
boolean  allow_cancel 
)

Definition at line 4247 of file dialogs.c.

Referenced by build_init_config(), check_workdir_valid(), and on_utube_select().

◆ do_do_not_close_d()

void do_do_not_close_d ( void  )

Definition at line 4409 of file dialogs.c.

Referenced by lives_exit().

◆ do_dvgrab_error()

void do_dvgrab_error ( void  )

Definition at line 3714 of file dialogs.c.

Referenced by on_open_fw_activate().

◆ do_encoder_acodec_error()

void do_encoder_acodec_error ( void  )

Definition at line 3046 of file dialogs.c.

◆ do_encoder_img_fmt_error()

void do_encoder_img_fmt_error ( render_details rdet)

Definition at line 4282 of file dialogs.c.

◆ do_encoder_restrict_dialog()

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 
)

Definition at line 3148 of file dialogs.c.

◆ do_encoder_sox_error()

void do_encoder_sox_error ( void  )

Definition at line 3039 of file dialogs.c.

◆ do_erase_subs_warning()

boolean do_erase_subs_warning ( void  )

Definition at line 4334 of file dialogs.c.

Referenced by on_erase_subs_activate().

◆ do_error_dialog()

LiVESResponseType do_error_dialog ( const char *  text)

Definition at line 749 of file dialogs.c.

Referenced by add_file_info(), camready(), check_builder_programs(), check_for_bad_ffmpeg(), check_workdir_valid(), do_aud_during_play_error(), do_audio_import_error(), do_audio_warning(), do_audrate_error_dialog(), do_autolives_needs_clips_error(), do_bad_layout_error(), do_card_in_use_error(), do_cd_error_dialog(), do_decoder_palette_error(), do_dvgrab_error(), do_effect(), do_encoder_acodec_error(), do_encoder_sox_error(), do_invalid_subs_error(), do_jack_lost_conn_error(), do_layout_ascrap_file_error(), do_layout_scrap_file_error(), do_lb_composite_error(), do_lb_convert_error(), do_locked_in_vdevs_error(), do_mix_error(), do_mt_no_audchan_error(), do_mt_undo_buf_error(), do_mt_undo_mem_error(), do_need_mplayer_dialog(), do_need_mplayer_mpv_dialog(), do_no_in_vdevs_error(), do_no_mplayer_sox_error(), do_nojack_rec_error(), do_plugin_encoder_error(), do_pulse_lost_conn_error(), do_read_failed_error_s(), do_std_checks(), do_system_failed_error(), do_vpp_fps_error(), do_vpp_palette_error(), do_write_failed_error_s(), get_best_audio(), handle_audio_timeout(), is_legal_set_name(), lives2lives_read_stream(), lives_yuv_stream_start_write(), load_event_list(), load_vpp_defaults(), on_capture_activate(), on_delete_rfx_activate(), on_fx_pre_activate(), on_import_proj_activate(), on_import_rfx_activate(), on_promote_rfx_activate(), on_recaudclip_ok_clicked(), on_resaudio_ok_clicked(), on_save_textview_clicked(), on_select_all_activate(), on_utube_select(), open_raw1394(), open_vid_playback_plugin(), perf_mem_warning(), perform_param_checks(), perform_rfxbuilder_checks(), script_to_rfxbuilder(), set_vpp(), start_render_effect_events(), startup_message_nonfatal(), and workdir_warning().

◆ do_error_dialog_with_check()

LiVESResponseType do_error_dialog_with_check ( const char *  text,
uint64_t  warn_mask_number 
)

◆ do_error_dialogf()

LiVESResponseType do_error_dialogf ( const char *  fmt,
  ... 
)

◆ do_event_list_warning()

boolean do_event_list_warning ( void  )

Definition at line 3707 of file dialogs.c.

Referenced by multitrack_view_events(), and multitrack_view_sel_events().

◆ do_existing_subs_warning()

boolean do_existing_subs_warning ( void  )

Definition at line 4302 of file dialogs.c.

Referenced by on_load_subs_activate().

◆ do_file_notfound_dialog()

LiVESResponseType do_file_notfound_dialog ( const char *  detail,
const char *  dirname 
)

Definition at line 3513 of file dialogs.c.

Referenced by build_init_config(), and reload_clip().

◆ do_file_perm_error()

LiVESResponseType do_file_perm_error ( const char *  file_name,
boolean  allow_cancel 
)

Definition at line 4226 of file dialogs.c.

◆ do_firstever_dialog()

void do_firstever_dialog ( void  )

◆ do_foundclips_query()

boolean do_foundclips_query ( void  )

Definition at line 4376 of file dialogs.c.

◆ do_gamma_import_warn()

boolean do_gamma_import_warn ( uint64_t  fv,
int  gamma_type 
)

Definition at line 3440 of file dialogs.c.

◆ do_header_missing_detail_error()

LiVESResponseType do_header_missing_detail_error ( int  clip,
lives_clip_details_t  detail 
)

Definition at line 4186 of file dialogs.c.

◆ do_header_read_error_with_retry()

LiVESResponseType do_header_read_error_with_retry ( int  clip)

Definition at line 4155 of file dialogs.c.

◆ do_header_write_error()

boolean do_header_write_error ( int  clip)

◆ do_imgfmts_error()

LiVESResponseType do_imgfmts_error ( lives_img_type_t  imgtype)

Definition at line 4449 of file dialogs.c.

◆ do_info_dialog()

LiVESResponseType do_info_dialog ( const char *  text)

◆ do_info_dialog_with_expander()

LiVESResponseType do_info_dialog_with_expander ( const char *  text,
const char *  exp_text,
LiVESList *   
)

Definition at line 793 of file dialogs.c.

◆ do_info_dialogf()

LiVESResponseType do_info_dialogf ( const char *  fmt,
  ... 
)

Definition at line 773 of file dialogs.c.

Referenced by do_please_install_either(), and on_send_lives2lives_activate().

◆ do_invalid_subs_error()

void do_invalid_subs_error ( void  )

Definition at line 4308 of file dialogs.c.

Referenced by on_load_subs_activate().

◆ do_jack_lost_conn_error()

void do_jack_lost_conn_error ( void  )

Definition at line 4512 of file dialogs.c.

◆ do_jack_noopen_warn()

void do_jack_noopen_warn ( void  )

Referenced by pref_factory_string().

◆ do_jack_noopen_warn2()

void do_jack_noopen_warn2 ( void  )

◆ do_jack_noopen_warn3()

void do_jack_noopen_warn3 ( void  )

◆ do_jack_noopen_warn4()

void do_jack_noopen_warn4 ( void  )

◆ do_layout_alter_audio_warning()

boolean do_layout_alter_audio_warning ( void  )

Definition at line 3433 of file dialogs.c.

◆ do_layout_alter_frames_warning()

boolean do_layout_alter_frames_warning ( void  )

Definition at line 3426 of file dialogs.c.

◆ do_layout_ascrap_file_error()

void do_layout_ascrap_file_error ( void  )

Definition at line 3059 of file dialogs.c.

◆ do_layout_recover_dialog()

boolean do_layout_recover_dialog ( void  )

Definition at line 4698 of file dialogs.c.

◆ do_layout_scrap_file_error()

void do_layout_scrap_file_error ( void  )

Definition at line 3053 of file dialogs.c.

◆ do_lb_composite_error()

void do_lb_composite_error ( void  )

Definition at line 3645 of file dialogs.c.

◆ do_lb_convert_error()

void do_lb_convert_error ( void  )

Definition at line 3652 of file dialogs.c.

◆ do_locked_in_vdevs_error()

void do_locked_in_vdevs_error ( void  )

Definition at line 4404 of file dialogs.c.

◆ do_memory_error_dialog()

LiVESResponseType do_memory_error_dialog ( char *  op,
size_t  bytes 
)

◆ do_messages_window()

void do_messages_window ( boolean  is_startup)

Definition at line 3335 of file dialogs.c.

Referenced by on_show_messages_activate().

◆ do_move_workdir_dialog()

boolean do_move_workdir_dialog ( void  )

Definition at line 4351 of file dialogs.c.

Referenced by lives_exit().

◆ do_mt_audchan_error()

void do_mt_audchan_error ( int  warn_mask)

Definition at line 3606 of file dialogs.c.

◆ do_mt_backup_space_error()

void do_mt_backup_space_error ( lives_mt *  ,
int  memreq_mb 
)

Definition at line 3560 of file dialogs.c.

◆ do_mt_lb_warn()

boolean do_mt_lb_warn ( boolean  lb)

Definition at line 3451 of file dialogs.c.

◆ do_mt_no_audchan_error()

void do_mt_no_audchan_error ( void  )

Definition at line 3614 of file dialogs.c.

Referenced by mt_change_vals_activate().

◆ do_mt_no_jack_error()

void do_mt_no_jack_error ( int  warn_mask)

Definition at line 3619 of file dialogs.c.

◆ do_mt_rect_prompt()

boolean do_mt_rect_prompt ( void  )

Definition at line 3627 of file dialogs.c.

◆ do_mt_set_mem_error()

void do_mt_set_mem_error ( boolean  has_mt)

Definition at line 3593 of file dialogs.c.

◆ do_mt_undo_buf_error()

void do_mt_undo_buf_error ( void  )

Definition at line 3587 of file dialogs.c.

◆ do_mt_undo_mem_error()

void do_mt_undo_mem_error ( void  )

Definition at line 3579 of file dialogs.c.

Referenced by multitrack().

◆ do_need_mplayer_dialog()

void do_need_mplayer_dialog ( void  )

Definition at line 3020 of file dialogs.c.

Referenced by on_live_tvcard_activate(), and on_open_fw_activate().

◆ do_need_mplayer_mpv_dialog()

void do_need_mplayer_mpv_dialog ( void  )

Definition at line 3027 of file dialogs.c.

Referenced by on_open_loc_activate().

◆ do_no_autolives_error()

void do_no_autolives_error ( void  )

Definition at line 4500 of file dialogs.c.

Referenced by autolives_toggle().

◆ do_no_decoder_error()

void do_no_decoder_error ( const char *  fname)

Definition at line 3518 of file dialogs.c.

Referenced by reload_clip().

◆ do_no_in_vdevs_error()

void do_no_in_vdevs_error ( void  )

Definition at line 4399 of file dialogs.c.

◆ do_no_loadfile_error()

void do_no_loadfile_error ( const char *  fname)

Definition at line 3526 of file dialogs.c.

◆ do_no_mplayer_sox_error()

void do_no_mplayer_sox_error ( void  )

Definition at line 3014 of file dialogs.c.

◆ do_no_sets_dialog()

void do_no_sets_dialog ( const char *  dir)

Definition at line 4366 of file dialogs.c.

Referenced by create_rename_dialog().

◆ do_nojack_rec_error()

void do_nojack_rec_error ( void  )

Definition at line 3719 of file dialogs.c.

Referenced by on_recaudclip_activate().

◆ do_optarg_blank_err()

void do_optarg_blank_err ( const char *  what)

Definition at line 881 of file dialogs.c.

◆ do_please_install()

boolean do_please_install ( const char *  exec,
uint64_t  guidance_flags 
)

Definition at line 3659 of file dialogs.c.

Referenced by on_utube_select().

◆ do_please_install_either()

boolean do_please_install_either ( const char *  exec,
const char *  exec2 
)

Definition at line 3694 of file dialogs.c.

Referenced by run_youtube_dialog().

◆ do_program_not_found_error()

void do_program_not_found_error ( const char *  progname)

Definition at line 3640 of file dialogs.c.

Referenced by on_open_utube_activate(), open_ascrap_file(), and open_scrap_file().

◆ do_progress_dialog()

boolean do_progress_dialog ( boolean  visible,
boolean  cancellable,
const char *  text 
)

◆ do_pulse_lost_conn_error()

void do_pulse_lost_conn_error ( void  )

Definition at line 4518 of file dialogs.c.

◆ do_quick_switch()

void do_quick_switch ( int  new_file)

Definition at line 10066 of file main.c.

◆ do_read_failed_error_s()

void do_read_failed_error_s ( const char *  filename,
const char *  addinfo 
)

◆ do_read_failed_error_s_with_retry()

LiVESResponseType do_read_failed_error_s_with_retry ( const char *  fname,
const char *  errtext 
)

◆ do_reload_set_query()

boolean do_reload_set_query ( void  )

Definition at line 3256 of file dialogs.c.

Referenced by on_load_set_activate().

◆ do_rendered_fx_dialog()

void do_rendered_fx_dialog ( void  )

Definition at line 3368 of file dialogs.c.

Referenced by add_rfx_effects().

◆ do_resize_dlg()

LiVESResponseType do_resize_dlg ( int  cwidth,
int  cheight,
int  fwidth,
int  fheight 
)

Definition at line 4417 of file dialogs.c.

◆ do_retry_cancel_dialog()

LiVESResponseType do_retry_cancel_dialog ( const char *  text)

Definition at line 730 of file dialogs.c.

Referenced by on_utube_select().

◆ do_rmem_max_error()

void do_rmem_max_error ( int  size)

Definition at line 3755 of file dialogs.c.

◆ do_save_clipset_warn()

boolean do_save_clipset_warn ( void  )

Definition at line 2975 of file dialogs.c.

Referenced by on_save_set_activate().

◆ do_set_duplicate_warning()

boolean do_set_duplicate_warning ( const char *  new_set)

Definition at line 3415 of file dialogs.c.

Referenced by on_save_set_activate().

◆ do_set_load_lmap_error()

void do_set_load_lmap_error ( void  )

◆ do_set_locked_warning()

boolean do_set_locked_warning ( const char *  setname)

Definition at line 4357 of file dialogs.c.

Referenced by check_for_lock_file().

◆ do_set_noclips_error()

void do_set_noclips_error ( const char *  setname)

Definition at line 4480 of file dialogs.c.

Referenced by reload_set().

◆ do_set_rename_old_layouts_warning()

boolean do_set_rename_old_layouts_warning ( const char *  new_set)

Definition at line 3571 of file dialogs.c.

Referenced by on_save_set_activate().

◆ do_shutdown_msg()

void do_shutdown_msg ( void  )

Definition at line 4554 of file dialogs.c.

Referenced by on_prefs_close_clicked().

◆ do_splash_progress()

void do_splash_progress ( void  )

◆ do_std_checks()

boolean do_std_checks ( const char *  type_name,
const char *  type,
size_t  maxlen,
const char *  nreject 
)

Definition at line 2929 of file utils.c.

Referenced by is_legal_set_name(), and on_import_theme_activate().

◆ do_sub_type_warning()

boolean do_sub_type_warning ( const char *  ext,
const char *  type_ext 
)

Definition at line 4339 of file dialogs.c.

Referenced by do_comments_dialog().

◆ do_system_failed_error()

LiVESResponseType do_system_failed_error ( const char *  com,
int  retval,
const char *  addinfo,
boolean  can_retry,
boolean  try_sudo 
)

we must not fail during the abort hook

Definition at line 3897 of file dialogs.c.

Referenced by handle_backend_errors(), and lives_system().

◆ do_text_window()

void do_text_window ( const char *  title,
const char *  text 
)

◆ do_theme_exists_warn()

boolean do_theme_exists_warn ( const char *  themename)

Definition at line 4561 of file dialogs.c.

Referenced by on_import_theme_activate().

◆ do_threaded_dialog()

void do_threaded_dialog ( const char *  translated_text,
boolean  has_cancel 
)

◆ do_upgrade_error_dialog()

void do_upgrade_error_dialog ( void  )

Definition at line 3358 of file dialogs.c.

◆ do_vpp_fps_error()

void do_vpp_fps_error ( void  )

Definition at line 3737 of file dialogs.c.

Referenced by on_vppa_ok_clicked(), open_vid_playback_plugin(), and set_vpp().

◆ do_vpp_palette_error()

void do_vpp_palette_error ( void  )

Definition at line 3727 of file dialogs.c.

Referenced by on_vppa_ok_clicked(), open_vid_playback_plugin(), and set_vpp().

◆ do_warning_dialog()

boolean do_warning_dialog ( const char *  text)

◆ do_warning_dialog_with_check()

boolean do_warning_dialog_with_check ( const char *  text,
uint64_t  warn_mask_number 
)

◆ do_warning_dialogf()

boolean do_warning_dialogf ( const char *  fmt,
  ... 
)

Definition at line 551 of file dialogs.c.

Referenced by do_sub_type_warning(), on_cleardisk_activate(), and on_quit_activate().

◆ do_write_failed_error_s()

void do_write_failed_error_s ( const char *  filename,
const char *  addinfo 
)

◆ do_write_failed_error_s_with_retry()

LiVESResponseType do_write_failed_error_s_with_retry ( const char *  fname,
const char *  errtext 
)

◆ do_yesno_dialog()

boolean do_yesno_dialog ( const char *  text)

◆ do_yesno_dialog_with_check()

boolean do_yesno_dialog_with_check ( const char *  text,
uint64_t  warn_mask_number 
)

Definition at line 595 of file dialogs.c.

Referenced by do_mt_lb_warn(), on_clear_event_list_activate(), and vj_mode_toggled().

◆ do_yesno_dialogf()

boolean do_yesno_dialogf ( const char *  fmt,
  ... 
)

◆ do_yuv4m_open_warning()

boolean do_yuv4m_open_warning ( void  )

Definition at line 3270 of file dialogs.c.

Referenced by on_open_yuv4m_activate().

◆ ds_critical_msg()

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

warn about disk space

< crit level

< current level

Definition at line 822 of file dialogs.c.

Referenced by check_storage_space(), do_system_failed_error(), do_write_failed_error_s(), and do_write_failed_error_s_with_retry().

◆ ds_warning_msg()

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

< warn level

< current level

< next warn level

Definition at line 850 of file dialogs.c.

Referenced by check_storage_space().

◆ dump_messages()

char* dump_messages ( int  start,
int  end 
)

Definition at line 2338 of file utils.c.

Referenced by do_messages_window().

◆ enable_record()

void enable_record ( void  )

Definition at line 3706 of file gui.c.

Referenced by on_record_perf_activate().

◆ end_threaded_dialog()

void end_threaded_dialog ( void  )

◆ ensure_extension()

char* ensure_extension ( const char *  fname,
const char *  ext 
)

Definition at line 3232 of file utils.c.

◆ ensure_isdir()

boolean ensure_isdir ( char *  fname)

Definition at line 3346 of file utils.c.

Referenced by check_workdir_valid(), and dirs_equal().

◆ fade_background()

void fade_background ( void  )

Definition at line 3216 of file gui.c.

Referenced by on_fade_activate(), and on_sepwin_activate().

◆ filename_from_fd()

char* filename_from_fd ( char *  val,
int  fd 
)

: return filename from an open fd, freeing val first

in case of error function returns val

if fd is a buffered file then the function just returns the known name, else the name is procured from /proc

call like: foo = filename_from_fd(foo,fd); lives_free(foo); input param foo can be NULL or some (non-const) string buffer if non-NULL the old value will be freed, so e.g

char *badfile = NULL; while (condition) { .... if (failed) badfile = filename_from_fd(badfile, fd); } if (badfile != NULL) lives_free(badfile);

or:

char *badfile = NULL; badfile = filename_from_fd(badfile, fd); if (badfile == NULL) // error getting filename

Definition at line 60 of file utils.c.

Referenced by lives_write().

◆ find_in_file_buffers()

lives_file_buffer_t* find_in_file_buffers ( int  fd)

◆ find_in_file_buffers_by_pathname()

lives_file_buffer_t* find_in_file_buffers_by_pathname ( const char *  pathname)

Definition at line 419 of file utils.c.

◆ find_when_to_stop()

void find_when_to_stop ( void  )

Definition at line 3722 of file utils.c.

Referenced by on_loop_cont_activate(), and on_loop_video_activate().

◆ findex_bk_dialog()

boolean findex_bk_dialog ( const char *  fname_back)

Definition at line 3261 of file dialogs.c.

Referenced by load_frame_index().

◆ frame_size_update()

void frame_size_update ( void  )

Definition at line 4479 of file gui.c.

◆ free_n_msgs()

int free_n_msgs ( int  frval)

Definition at line 2381 of file utils.c.

Referenced by pref_factory_int().

◆ free_track_decoders()

void free_track_decoders ( void  )

Definition at line 7826 of file main.c.

Referenced by render_to_clip().

◆ fullscreen_internal()

void fullscreen_internal ( void  )

Definition at line 3440 of file gui.c.

Referenced by on_sepwin_activate(), and on_toolbar_hide().

◆ get_approx_ln()

uint32_t get_approx_ln ( uint32_t  val)

Definition at line 1453 of file utils.c.

◆ get_approx_ln64()

uint64_t get_approx_ln64 ( uint64_t  x)

Definition at line 1458 of file utils.c.

Referenced by get_near2pow().

◆ get_basename()

void get_basename ( char *  filename)

◆ get_cache_stats()

const char* get_cache_stats ( void  )

Definition at line 68 of file dialogs.c.

◆ get_capabilities()

capability* get_capabilities ( void  )

if no configfile: check for migration: if $HOME/.lives exists, get the verhash from it

if < 3200000, migrate (copy) .lives and .lives-dir this should only happen once, since version will now have been updated in .lives after startup, we will offer to remove the old files

Definition at line 3023 of file main.c.

◆ get_clip_value()

boolean get_clip_value ( int  which,
lives_clip_details_t  ,
void *  retval,
size_t  maxlen 
)

ascrap_file now uses a different header name; this is to facilitate diskspace cleanup otherwise it may be wrongly classified as a recoverable clip (here this is largely academic, since the values are only read during crash recovery, and the header should have been cached)

Definition at line 5039 of file utils.c.

Referenced by get_decoder_cdata(), open_set_file(), and reload_clip().

◆ get_deinterlace_string()

const char* get_deinterlace_string ( void  )

Definition at line 230 of file saveplay.c.

◆ get_dir()

char* get_dir ( const char *  filename)

Definition at line 3185 of file utils.c.

Referenced by get_capabilities(), and on_filesel_button_clicked().

◆ get_dirname()

void get_dirname ( char *  filename)

◆ get_extension()

char* get_extension ( const char *  filename)

Definition at line 3217 of file utils.c.

Referenced by do_comments_dialog(), and on_filesel_button_clicked().

◆ get_file_buffer()

lives_file_buffer_t* get_file_buffer ( int  fd)

◆ get_filename()

void get_filename ( char *  filename,
boolean  strip_dir 
)

Definition at line 3205 of file utils.c.

Referenced by create_comments_dialog(), and on_load_subs_activate().

◆ get_frame_count()

int get_frame_count ( int  idx,
int  start 
)

sets mainw->files[idx]->frames with current framecount

calls smogrify which physically finds the last frame using a (fast) O(log n) binary search method for CLIP_TYPE_DISK only (CLIP_TYPE_FILE should use the decoder plugin frame count)

Definition at line 3109 of file utils.c.

Referenced by add_file_info(), check_for_bad_ffmpeg(), do_effect(), load_frame_image(), and on_toy_activate().

◆ get_frames_sizes()

boolean get_frames_sizes ( int  fileno,
int  frame_to_test,
int *  hsize,
int *  vsize 
)

Definition at line 3124 of file utils.c.

◆ get_handle_from_info_file()

boolean get_handle_from_info_file ( int  index)

Definition at line 1163 of file saveplay.c.

◆ get_image_ext_for_type()

const char* get_image_ext_for_type ( lives_img_type_t  imgtype)

◆ get_interp_value()

LiVESInterpType get_interp_value ( short  quality,
boolean  low_for_mt 
)

Definition at line 5744 of file utils.c.

◆ get_letterbox_sizes()

void get_letterbox_sizes ( int *  pwidth,
int *  pheight,
int *  lb_width,
int *  lb_height,
boolean  player_can_upscale 
)

calculate sizes for letterboxing

if the player can resize, then we only need to consider the aspect ratio. we will embed the image in a black rectangle to give it the same aspect ratio as the player; thus when it gets stretched to the player size the inner image wil not be distorted so here we check: if we keep the same height, and then set the width to the player a.r, does it increase ? if so then our outer rectangle will be wider, othewise it will be higher (or the same, in which case we dont do anything)

  • if either dimension ends up larger, then our outer rectangle is the player size, and we scale the inner image down so both width and height fit

widths should be in pixels (not macropixels)

inner frame needs scaling down

inner frame size OK, we will shrink wrap the outer frame

Definition at line 4406 of file gui.c.

◆ get_location()

void get_location ( const char *  exe,
char *  val,
int  maxlen 
)

◆ get_menu_name()

char* get_menu_name ( lives_clip_t sfile,
boolean  add_set 
)

◆ get_monitors()

void get_monitors ( boolean  reset)

Definition at line 400 of file main.c.

Referenced by config_event(), and resize_widgets_for_monitor().

◆ get_near2pow()

uint64_t get_near2pow ( uint64_t  val)

Definition at line 1463 of file utils.c.

◆ get_new_handle()

boolean get_new_handle ( int  index,
const char *  name 
)

◆ get_nth_info_message()

weed_plant_t* get_nth_info_message ( int  n)

Definition at line 2304 of file utils.c.

◆ get_play_times()

void get_play_times ( void  )

◆ get_player_size()

void get_player_size ( int *  opwidth,
int *  opheight 
)

Definition at line 7720 of file main.c.

Referenced by load_frame_image().

◆ get_ratio_fps()

double get_ratio_fps ( const char *  string)

Definition at line 5379 of file utils.c.

Referenced by on_vppa_ok_clicked(), and open_vid_playback_plugin().

◆ get_read_buff_size()

size_t get_read_buff_size ( int  sztype)

Definition at line 771 of file utils.c.

◆ get_screen_usable_size()

boolean get_screen_usable_size ( int *  w,
int *  h 
)

Definition at line 6853 of file interface.c.

Referenced by get_border_size().

◆ get_set_list()

LiVESList* get_set_list ( const char *  dir,
boolean  utf8 
)

Definition at line 5305 of file utils.c.

Referenced by create_rename_dialog().

◆ get_signed_endian()

uint32_t get_signed_endian ( boolean  is_signed,
boolean  little_endian 
)

produce bitmapped value

Definition at line 5408 of file utils.c.

Referenced by add_file_info(), on_ins_silence_details_clicked(), on_recaudclip_ok_clicked(), and on_resaudio_ok_clicked().

◆ get_temp_handle()

boolean get_temp_handle ( int  index)

get a temp "handle" from disk.

Call this to get a temp handle for returning info from the backend (this is deprecated for simple data, use lives_popen() instead whenever possible)

This function is also called from get_new_handle() to create a permanent handle for an opened file.

there are two special instances when this is called with an index != -1:

  • when saving a set and a clip is moved from outside the set to inside it. we need a new handle which is guaranteed unique for the set, but we retain all the other details
  • when called from get_new_handle() to create the disk part of a clip

otherwise, index should be passed in as -1 (the normal case) – handle will be fetched and a directory created in workdir. – clip_type is set to CLIP_TYPE_TEMP. call close_temp_handle() on it after use, then restore mainw->current_file

function returns FALSE if write to workdir fails.

WARNING: this function changes mainw->current_file, unless it returns FALSE (could not create cfile)

get_new_handle() calls this with the index value passed to it, which should not be -1, sets defaults for the clip, and also sets the clip name and filename. That function should be used instead to create permanent clips.

Definition at line 3571 of file saveplay.c.

Referenced by get_new_handle(), on_capture_activate(), on_import_proj_activate(), and on_utube_select().

◆ get_token_count()

size_t get_token_count ( const char *  string,
int  delim 
)

◆ get_total_time()

void get_total_time ( lives_clip_t file)

calculate laudio, raudio and video time (may be deprecated and replaced with macros)

Definition at line 3690 of file utils.c.

Referenced by start_render_effect_events().

◆ get_transient_full()

LiVESWindow* get_transient_full ( )

Definition at line 622 of file dialogs.c.

Referenced by choose_file().

◆ get_untitled_name()

char* get_untitled_name ( int  number)

Definition at line 3802 of file saveplay.c.

Referenced by open_set_file(), render_to_clip(), and set_main_title().

◆ get_upd_msg()

char* get_upd_msg ( void  )

Definition at line 4490 of file dialogs.c.

◆ get_val_from_cached_list()

char* get_val_from_cached_list ( const char *  key,
size_t  maxlen,
LiVESList *  cache 
)

Definition at line 4966 of file utils.c.

Referenced by get_clip_value(), and get_theme_colour_pref().

◆ get_version_hash()

uint64_t get_version_hash ( const char *  exe,
const char *  sep,
int  piece 
)

get version hash output for an executable from the backend

Definition at line 3475 of file utils.c.

◆ get_vspace()

int get_vspace ( void  )

Definition at line 55 of file gui.c.

Referenced by resize().

◆ handle_backend_errors()

LiVESResponseType handle_backend_errors ( boolean  can_retry)

handle error conditions returned from the back end

got read error from backend

got write error from backend

got (sub) system error from backend

sys error is possibly recoverable, but requires user PERMS ask for them and then return either LIVES_RESPONSE_CANCEL or LIVES_RESPONSE_ACCEPT, as well as setting mainw->perm_idx and mainw->perm_key

set mainw->error but not mainw->cancelled

Definition at line 922 of file dialogs.c.

Referenced by check_backend_return(), do_auto_dialog(), get_handle_from_info_file(), and on_render_activate().

◆ hextodec()

int hextodec ( const char *  string)

Definition at line 5694 of file utils.c.

Referenced by prepare_to_play_foreign(), and script_to_rfxbuilder().

◆ image_ext_to_lives_image_type()

const char* image_ext_to_lives_image_type ( const char *  img_ext)

Definition at line 3039 of file utils.c.

Referenced by do_imgfmts_error(), and lives_image_ext_to_img_type().

◆ init_clipboard()

void init_clipboard ( void  )

Definition at line 2238 of file utils.c.

Referenced by do_effect().

◆ init_track_decoders()

void init_track_decoders ( void  )

Definition at line 7816 of file main.c.

Referenced by render_to_clip().

◆ insert_newlines()

char* insert_newlines ( const char *  text,
int  maxwidth 
)

< we will insert a nl here

Definition at line 5591 of file utils.c.

Referenced by do_system_failed_error(), ds_critical_msg(), and ds_warning_msg().

◆ int_array_contains_value()

boolean int_array_contains_value ( int *  array,
int  num_elems,
int  value 
)

Definition at line 4284 of file utils.c.

Referenced by get_best_audio().

◆ is_legal_set_name()

boolean is_legal_set_name ( const char *  set_name,
boolean  allow_dupes,
boolean  leeway 
)

◆ is_writeable_dir()

boolean is_writeable_dir ( const char *  dir)

Definition at line 5701 of file utils.c.

Referenced by check_workdir_valid(), get_ds_free(), and get_storage_status().

◆ lazy_startup_checks()

boolean lazy_startup_checks ( void *  data)

Definition at line 3480 of file main.c.

◆ LEFloat_to_BEFloat()

float LEFloat_to_BEFloat ( float  f)

Definition at line 1750 of file utils.c.

◆ lives_10pow()

uint64_t lives_10pow ( int  pow)

◆ lives_alarm_check()

ticks_t lives_alarm_check ( lives_alarm_t  alarm_handle)

guard against long interrupts (when debugging for example)

Definition at line 1687 of file utils.c.

Referenced by do_auto_dialog(), load_frame_image(), load_rfx_preview(), on_fade_audio_activate(), preview_audio(), start_audio_stream(), switch_audio_clip(), and wait_for_bg_audio_sync().

◆ lives_alarm_clear()

boolean lives_alarm_clear ( lives_alarm_t  alarm_handle)

◆ lives_alarm_set()

lives_alarm_t lives_alarm_set ( ticks_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

Definition at line 1643 of file utils.c.

Referenced by d_print_urgency(), do_auto_dialog(), load_frame_image(), load_rfx_preview(), on_fade_audio_activate(), preview_audio(), start_audio_stream(), switch_audio_clip(), and wait_for_bg_audio_sync().

◆ lives_buffered_offset()

off_t lives_buffered_offset ( int  fd)

Definition at line 1364 of file utils.c.

Referenced by save_srt_subtitles(), and save_sub_subtitles().

◆ lives_buffered_orig_size()

size_t lives_buffered_orig_size ( int  fd)

Definition at line 1377 of file utils.c.

◆ lives_buffered_rdonly_set_reversed()

boolean lives_buffered_rdonly_set_reversed ( int  fd,
boolean  val 
)

Definition at line 681 of file utils.c.

Referenced by changed_fps_during_pb().

◆ lives_buffered_rdonly_slurp()

void lives_buffered_rdonly_slurp ( int  fd,
off_t  skip 
)

Definition at line 671 of file utils.c.

Referenced by load_event_list(), and migrate_layouts().

◆ lives_buffered_write_printf()

ssize_t lives_buffered_write_printf ( int  fd,
boolean  allow_fail,
const char *  fmt,
  ... 
)

Definition at line 1316 of file utils.c.

Referenced by save_sub_subtitles().

◆ lives_cat()

int lives_cat ( const char *  from,
const char *  to,
boolean  append 
)

Definition at line 4484 of file utils.c.

◆ lives_chdir()

int lives_chdir ( const char *  path,
boolean  no_error_dlg 
)

returns 0 on success on failure pops up an error dialog, unless no_error_dlg is TRUE

Definition at line 1393 of file utils.c.

Referenced by cd_to_plugin_dir(), close_clip_decoder(), reload_clip(), weed_call_deinit_func(), and weed_call_init_func().

◆ lives_chmod()

int lives_chmod ( const char *  target,
const char *  mode 
)

Definition at line 4475 of file utils.c.

◆ lives_close_buffered()

int lives_close_buffered ( int  fd)

◆ lives_cp()

int lives_cp ( const char *  from,
const char *  to 
)

◆ lives_cp_keep_perms()

int lives_cp_keep_perms ( const char *  from,
const char *  to 
)

Definition at line 4437 of file utils.c.

◆ lives_cp_recursive()

int lives_cp_recursive ( const char *  from,
const char *  to,
boolean  incl_dir 
)

Definition at line 4423 of file utils.c.

Referenced by build_init_config().

◆ lives_create_buffered()

int lives_create_buffered ( const char *  pathname,
int  mode 
)

◆ lives_create_buffered_nosync()

int lives_create_buffered_nosync ( const char *  pathname,
int  mode 
)

Definition at line 702 of file utils.c.

◆ lives_echo()

int lives_echo ( const char *  text,
const char *  to,
boolean  append 
)

Definition at line 4500 of file utils.c.

Referenced by add_to_recovery_file().

◆ lives_ellipsize()

char* lives_ellipsize ( char *  ,
size_t  maxlen,
LiVESEllipsizeMode  mode 
)

eg. txt = "abcdefgh", maxlen = 6, LIVES_ELLIPSIZE_END -> txt == "...gh" + NUL txt = "abcdefgh", maxlen = 6, LIVES_ELLIPSIZE_START -> txt == "ab..." + NUL txt = "abcdefgh", maxlen = 6, LIVES_ELLIPSIZE_MIDDLE -> txt == "a...h" + NUL

Definition at line 3262 of file utils.c.

Referenced by lives_pad_ellipsize().

◆ lives_fgets()

char* lives_fgets ( char *  s,
int  size,
FILE *  stream 
)

Definition at line 368 of file utils.c.

Referenced by load_rfx_preview(), and reload_set().

◆ lives_fix()

double lives_fix ( double  val,
int  decimals 
)

Definition at line 1446 of file utils.c.

Referenced by changed_fps_during_pb().

◆ lives_fork()

lives_pid_t lives_fork ( const char *  com)

Definition at line 288 of file utils.c.

Referenced by autolives_toggle(), rec(), and start_audio_stream().

◆ lives_fputs()

int lives_fputs ( const char *  s,
FILE *  stream 
)

Definition at line 359 of file utils.c.

Referenced by rfxbuilder_to_script(), and save_clip_value().

◆ lives_fread()

size_t lives_fread ( void *  ptr,
size_t  size,
size_t  nmemb,
FILE *  stream 
)

Definition at line 379 of file utils.c.

Referenced by do_auto_dialog().

◆ lives_fread_string()

size_t lives_fread_string ( char *  buff,
size_t  stlen,
const char *  fname 
)

Definition at line 388 of file utils.c.

Referenced by check_backend_return(), and on_cancel_keep_button_clicked().

◆ lives_freep()

boolean lives_freep ( void **  ptr)

Definition at line 1411 of file utils.c.

Referenced by add_to_clipmenu(), ask_permission_dialog_complex(), backup_recording(), close_current_file(), close_temp_handle(), close_vid_playback_plugin(), d_print_overlay(), d_print_urgency(), del_frame_index(), do_auto_dialog(), do_comments_dialog(), do_rfx_cleanup(), do_warning_dialog_with_check(), do_workdir_query(), do_yesno_dialog_with_check(), enabled_in_channels(), enabled_out_channels(), end_fs_preview(), fill_abuffer_from(), fill_param_vals_to(), get_audio_channel_in(), get_audio_frame_clip(), get_audio_frame_seek(), get_audio_frame_vel(), get_external_window_hints(), get_frame_event_clip(), get_frame_event_frame(), get_monitors(), has_audio_chans_in(), has_audio_chans_out(), has_video_chans_in(), has_video_chans_out(), init_clipboard(), init_event_is_relevant(), insert_audio_event_at(), insert_frames(), interpolate_param(), is_audio_channel_in(), is_audio_channel_out(), lives_ce_update_timeline(), lives_exit(), lives_general_button_clicked(), lives_list_free_strings(), load_frame_image(), load_frame_index(), move_event_left(), mt_change_vals_activate(), multitrack(), num_alpha_channels(), num_in_params(), on_cancel_keep_button_clicked(), on_capture2_activate(), on_capture_activate(), on_effects_paused(), on_export_proj_activate(), on_fade_audio_activate(), on_ins_silence_details_clicked(), on_load_set_activate(), on_multitrack_activate(), on_open_utube_activate(), on_paste_as_new_activate(), on_prefs_close_clicked(), on_recaudclip_ok_clicked(), on_redo_activate(), on_resaudio_ok_clicked(), on_rte_info_clicked(), on_utube_select(), pre_analyse(), prep_audio_player(), pump_io_chan(), reload_clip(), render_events(), render_to_clip(), restore_frame_index_back(), rfx_free(), rfx_free_all(), rfx_params_free(), rte_set_defs_activate(), rte_set_defs_cancel(), sample_silence_stream(), save_event_frames(), send_to_trash(), set_copy_to(), set_new_set_name(), set_string_param(), show_sync_callback(), startup_message_fatal(), stored_event_list_free_undos(), subtitles_free(), switch_to_file(), update_play_times(), weed_apply_audio_instance(), weed_filter_in_paramtmpl(), weed_parameter_has_variable_elements_strict(), and weed_params_to_rfx().

◆ lives_fsync()

boolean lives_fsync ( int  fd)

Definition at line 109 of file utils.c.

◆ lives_get_current_playback_ticks()

ticks_t lives_get_current_playback_ticks ( ticks_t  origsecs,
ticks_t  origusecs,
lives_time_source_t time_source 
)

synchronised timing it can be helpful to imagine a virtual clock which is at currrent time: clock time - cadjticks = virtual time = other time + adjticks cadjticks and adjticks are only set when we switch from one source to another, i.e the virtual clock will run @ different rates depending on the source. This is fine as it enables sync with the clock source, provided the time doesn't jump when moving from one source to another. when the source changes we then alter either cadjticks or adjticks so that the initial timing matches e.g when switching to clock source, cadjticks and adjticks will have diverged. So we want to set new cadjtick s.t: clock ticks - cadjticks == source ticks + adjticks. i.e cadjticks = clock ticks - (source ticks + adjticks). we use the delta calculated the last time, since the other source may longer be available. this should not be a concern since this function is called very frequently recalling cadjticks_new = clock_ticks - (source_ticks + adjticks), and substituting for delta we get:

conversely, when switching from clock to source, adjticks_new = clock_ticks - cadjticks - source_ticks again, this just delta + adjticks; in this case we can use current delta since it is assumed that the system clock is always available

this scheme does, however introduce a small problem, which is that when the sources are switched, we assume that the time on both clocks is equivalent. This can lead to a problem when switching clips, since temporarily we switch to system time and then back to soundcard. However, this can cause some updates to the timer to be missed, i.e the audio is playing but the samples are not counted, however we cannot simply add these to the soundcard timer, as they will be lost due to the resync. hence we need mainw->syncticks --> a global adjustment which is independant of the clock source. This is similar to mainw->deltaticks for the player, however, deltaticks is a temporary impulse, whereas syncticks is a permanent adjustment.

Definition at line 1481 of file utils.c.

Referenced by aud_lock_callback(), avsync_force(), changed_fps_during_pb(), and resync_audio().

◆ lives_getgid()

int lives_getgid ( void  )

◆ lives_getpid()

pid_t lives_getpid ( void  )

Definition at line 2408 of file machinestate.c.

Referenced by get_capabilities().

◆ lives_getuid()

int lives_getuid ( void  )

◆ lives_image_ext_to_img_type()

lives_img_type_t lives_image_ext_to_img_type ( const char *  img_ext)

Definition at line 3034 of file utils.c.

◆ lives_image_type_to_img_type()

lives_img_type_t lives_image_type_to_img_type ( const char *  lives_image_type)

Definition at line 3046 of file utils.c.

Referenced by lives_image_ext_to_img_type().

◆ lives_kill()

int lives_kill ( lives_pid_t  pid,
int  sig 
)

Definition at line 1423 of file utils.c.

◆ lives_kill_subprocesses()

void lives_kill_subprocesses ( const char *  dirname,
boolean  kill_parent 
)

◆ lives_killpg()

int lives_killpg ( lives_pgid_t  pgrp,
int  sig 
)

Definition at line 1432 of file utils.c.

Referenced by autolives_toggle(), on_camstop_clicked(), and stop_audio_stream().

◆ lives_list_append_unique()

LiVESList* lives_list_append_unique ( LiVESList *  xlist,
const char *  add 
)

◆ lives_list_copy_strings()

LiVESList* lives_list_copy_strings ( LiVESList *  list)

Definition at line 5820 of file utils.c.

◆ lives_list_delete_string()

LiVESList* lives_list_delete_string ( LiVESList *  ,
const char *  string 
)

Definition at line 5801 of file utils.c.

◆ lives_list_free_all()

void lives_list_free_all ( LiVESList **  )

◆ lives_list_free_strings()

void lives_list_free_strings ( LiVESList *  )

Definition at line 4860 of file utils.c.

Referenced by lives_list_free_all(), and lives_slist_free_all().

◆ lives_list_move_to_first()

LiVESList* lives_list_move_to_first ( LiVESList *  list,
LiVESList *  item 
)

Definition at line 5789 of file utils.c.

Referenced by get_decoder_cdata().

◆ lives_list_sort_alpha()

LiVESList* lives_list_sort_alpha ( LiVESList *  list,
boolean  fwd 
)

stable sort, so input list should NOT be freed handles utf-8 strings

Definition at line 5474 of file utils.c.

Referenced by create_rename_dialog().

◆ lives_list_strcmp_index()

int lives_list_strcmp_index ( LiVESList *  list,
livesconstpointer  data,
boolean  case_sensitive 
)

◆ lives_ln()

int lives_ln ( const char *  from,
const char *  to 
)

Definition at line 4464 of file utils.c.

◆ lives_lseek_buffered_rdonly()

off_t lives_lseek_buffered_rdonly ( int  fd,
off_t  offset 
)

Definition at line 895 of file utils.c.

Referenced by read_filter_defaults(), and read_generator_sizes().

◆ lives_lseek_buffered_rdonly_absolute()

off_t lives_lseek_buffered_rdonly_absolute ( int  fd,
off_t  offset 
)

Definition at line 907 of file utils.c.

Referenced by get_float_audio_val_at_time(), and render_events().

◆ lives_lseek_buffered_writer()

off_t lives_lseek_buffered_writer ( int  fd,
off_t  offset 
)

Definition at line 1338 of file utils.c.

◆ lives_make_writeable_dir()

boolean lives_make_writeable_dir ( const char *  newdir)

create a directory (including parents) and ensure we can actually write to it

Definition at line 5721 of file utils.c.

Referenced by build_init_config(), on_save_set_activate(), and on_utube_select().

◆ lives_mv()

int lives_mv ( const char *  from,
const char *  to 
)

Definition at line 4446 of file utils.c.

Referenced by insert_blank_frames(), on_utube_select(), and rewrite_recovery_file().

◆ lives_open2()

int lives_open2 ( const char *  pathname,
int  flags 
)

◆ lives_open3()

int lives_open3 ( const char *  pathname,
int  flags,
mode_t  mode 
)

Definition at line 94 of file utils.c.

Referenced by save_vpp_defaults().

◆ lives_open_buffered_rdonly()

int lives_open_buffered_rdonly ( const char *  pathname)

◆ lives_open_buffered_writer()

int lives_open_buffered_writer ( const char *  pathname,
int  mode,
boolean  append 
)

Definition at line 706 of file utils.c.

◆ lives_pad()

char* lives_pad ( char *  ,
size_t  minlen,
int  align 
)

Definition at line 3303 of file utils.c.

Referenced by lives_pad_ellipsize().

◆ lives_pad_ellipsize()

char* lives_pad_ellipsize ( char *  ,
size_t  fixlen,
int  padlen,
LiVESEllipsizeMode  mode 
)

Definition at line 3333 of file utils.c.

◆ lives_pixbuf_new_blank()

LiVESPixbuf* lives_pixbuf_new_blank ( int  width,
int  height,
int  palette 
)

Definition at line 11953 of file colourspace.c.

Referenced by insert_blank_frames().

◆ lives_pixbuf_save()

boolean lives_pixbuf_save ( LiVESPixbuf *  pixbuf,
char *  fname,
lives_img_type_t  imgtype,
int  quality,
int  width,
int  height,
LiVESError **  gerrorptr 
)

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

invalid pixbuf, we will save a blank image

Definition at line 9304 of file main.c.

Referenced by insert_blank_frames(), and lives_pixbuf_save_threaded().

◆ lives_pixbuf_save_threaded()

void* lives_pixbuf_save_threaded ( void *  args)

save frame to pixbuf in a thread.

The renderer uses this now so that it can be saving the current output frame at the same time as it prepares the following frame

Definition at line 9365 of file main.c.

◆ lives_popen()

ssize_t lives_popen ( const char *  com,
boolean  allow_error,
char *  buff,
ssize_t  buflen 
)

◆ lives_read()

ssize_t lives_read ( int  fd,
void *  buf,
ssize_t  count,
boolean  allow_less 
)

◆ lives_read_buffered()

ssize_t lives_read_buffered ( int  fd,
void *  buf,
ssize_t  count,
boolean  allow_less 
)

function can be called with buf == NULL to preload a buffer with at least (count) bytes

buffer used up

Definition at line 924 of file utils.c.

Referenced by apply_rte_audio(), get_float_audio_val_at_time(), lives_read_le_buffered(), load_layout_map(), load_rte_defs(), read_filter_defaults(), and read_generator_sizes().

◆ lives_read_buffered_eof()

boolean lives_read_buffered_eof ( int  fd)

Definition at line 1170 of file utils.c.

◆ lives_read_le()

ssize_t lives_read_le ( int  fd,
void *  buf,
ssize_t  count,
boolean  allow_less 
)

Definition at line 486 of file utils.c.

Referenced by load_vpp_defaults(), and open_set_file().

◆ lives_read_le_buffered()

ssize_t lives_read_le_buffered ( int  fd,
void *  buf,
ssize_t  count,
boolean  allow_less 
)

◆ lives_readlink()

ssize_t lives_readlink ( const char *  path,
char *  buf,
size_t  bufsiz 
)

Definition at line 104 of file utils.c.

Referenced by filename_from_fd().

◆ lives_rm()

int lives_rm ( const char *  file)

◆ lives_rmdir()

int lives_rmdir ( const char *  dir,
boolean  force 
)

◆ lives_rmdir_with_parents()

int lives_rmdir_with_parents ( const char *  dir)

Definition at line 4386 of file utils.c.

Referenced by remove_layout_files().

◆ lives_rmglob()

int lives_rmglob ( const char *  files)

Definition at line 4404 of file utils.c.

◆ lives_setenv()

boolean lives_setenv ( const char *  name,
const char *  value 
)

Definition at line 120 of file utils.c.

◆ lives_slist_free_all()

void lives_slist_free_all ( LiVESSList **  )

Definition at line 4865 of file utils.c.

◆ lives_string_ends_with()

boolean lives_string_ends_with ( const char *  string,
const char *  fmt,
  ... 
)

Definition at line 3143 of file utils.c.

Referenced by open_set_file().

◆ lives_suspend_resume_process()

void lives_suspend_resume_process ( const char *  dirname,
boolean  suspend 
)

Definition at line 4527 of file utils.c.

Referenced by on_effects_paused(), and on_stop_clicked().

◆ lives_sync()

void lives_sync ( int  times)

Definition at line 115 of file utils.c.

Referenced by do_effect(), reget_afilesize_inner(), and wait_for_bg_audio_sync().

◆ lives_system()

int lives_system ( const char *  com,
boolean  allow_error 
)

◆ lives_touch()

int lives_touch ( const char *  tfile)

◆ lives_unsetenv()

boolean lives_unsetenv ( const char *  name)

Definition at line 132 of file utils.c.

◆ lives_utf8_strcasecmp()

int lives_utf8_strcasecmp ( const char *  s1,
const char *  s2 
)

◆ lives_utf8_strcmp()

int lives_utf8_strcmp ( const char *  s1,
const char *  s2 
)

Definition at line 5469 of file utils.c.

Referenced by reload_clip().

◆ lives_write()

ssize_t lives_write ( int  fd,
livesconstpointer  buf,
ssize_t  count,
boolean  allow_fail 
)

◆ lives_write_buffered()

ssize_t lives_write_buffered ( int  fd,
const char *  buf,
ssize_t  count,
boolean  allow_fail 
)

◆ lives_write_le()

ssize_t lives_write_le ( int  fd,
livesconstpointer  buf,
ssize_t  count,
boolean  allow_fail 
)

Referenced by save_vpp_defaults(), and write_headers().

◆ lives_write_le_buffered()

ssize_t lives_write_le_buffered ( int  fd,
livesconstpointer  buf,
ssize_t  count,
boolean  allow_fail 
)

◆ load_end_image()

void load_end_image ( int  frame)

◆ load_frame_image()

void load_frame_image ( int  frame)

< use the "thoretical" time

usual function to record a frame event

will set mainw->blend_layer

check if function exists - it accepts rowstrides

TODO - save w. screen_gamma

check if function exists - it accepts rowstrides

letterbox external

special value to compact the rowstrides

special value to compact the rowstrides

letterbox internal

Definition at line 7984 of file main.c.

◆ load_from_scrap_file()

boolean load_from_scrap_file ( weed_layer_t layer,
int  frame 
)

just open fd

Definition at line 5360 of file saveplay.c.

Referenced by render_events().

◆ load_preview_image()

void load_preview_image ( boolean  update_always)

◆ load_start_image()

void load_start_image ( int  frame)

◆ load_theme_images()

void load_theme_images ( void  )

Definition at line 65 of file gui.c.

Referenced by on_import_theme_activate(), and on_prefs_apply_clicked().

◆ make_custom_submenus()

void make_custom_submenus ( void  )

Definition at line 126 of file gui.c.

Referenced by add_rfx_effects2().

◆ make_image_file_name()

char* make_image_file_name ( lives_clip_t clip,
frames_t  frame,
const char *  img_ext 
)

◆ make_version_hash()

uint64_t make_version_hash ( const char *  ver)

convert a version to uint64_t hash, for comparing

Definition at line 3500 of file utils.c.

Referenced by do_effect(), and script_to_rfxbuilder().

◆ maybe_add_mt_idlefunc()

void maybe_add_mt_idlefunc ( void  )

◆ minimise_aspect_delta()

void minimise_aspect_delta ( double  allowed_aspect,
int  hblock,
int  vblock,
int  hsize,
int  vsize,
int *  width,
int *  height 
)

Definition at line 3750 of file utils.c.

◆ open_ascrap_file()

boolean open_ascrap_file ( void  )

Definition at line 5278 of file saveplay.c.

Referenced by on_record_perf_activate().

◆ open_file()

ulong open_file ( const char *  filename)

Definition at line 261 of file saveplay.c.

Referenced by on_utube_select(), and switch_to_file().

◆ open_file_sel()

ulong open_file_sel ( const char *  file_name,
double  start_time,
int  frames 
)

probe the file to see what it might be...

insert blank frames

Definition at line 309 of file saveplay.c.

Referenced by do_effect(), and on_opensel_range_ok_clicked().

◆ open_fw_device()

void open_fw_device ( void  )

◆ open_scrap_file()

boolean open_scrap_file ( void  )

Definition at line 5230 of file saveplay.c.

Referenced by load_frame_image().

◆ open_set_file()

void open_set_file ( int  clipnum)

Definition at line 4864 of file saveplay.c.

◆ pad_init_silence()

void pad_init_silence ( void  )

Definition at line 293 of file saveplay.c.

Referenced by after_foreign_play().

◆ paste_enough_dlg()

boolean paste_enough_dlg ( int  lframe)

Definition at line 3266 of file dialogs.c.

Referenced by on_paste_as_new_activate().

◆ perf_mem_warning()

void perf_mem_warning ( void  )

Definition at line 3237 of file dialogs.c.

◆ play_file()

void play_file ( void  )

play the current clip from 'mainw->play_start' to 'mainw->play_end'

from now on we can only switch at the designated SWITCH POINT

enable the freeze button

disable ctrl-q since it can be activated by user error

set performance at right place

these values are only relevant for non-realtime audio players (e.g. sox)

play performance data

if we are opening audio or looping we just play to the end of audio, otherwise...

blank the background if asked to

show the frame in the main window

plug the plug into the playframe socket if we need to

create a separate window for the internal player if requested

needed

this doesn't get called if we don't call resize_play_window()

deinit any active real time effects

stop the players before the cache thread, else the players may try to play from a non-existent file

< necessary

kill the separate play window

or resize it back to single size

create the preview in the sepwin

free the last frame image

disable the freeze key

free any pre-cached frame

pop up error dialog if badly sized frames were detected

end record performance

we got an error recording audio

update screen for internal players

need to do this here, in case we want to preview with only a generator and no other clips (which will close to -1)

re-enable generic clip switching

Definition at line 2213 of file saveplay.c.

Referenced by _start_playback(), on_capture2_activate(), on_playsel_activate(), play_all(), and play_sel().

◆ play_start_timer()

void play_start_timer ( int  type)

◆ prepare_to_play_foreign()

boolean prepare_to_play_foreign ( void  )

Definition at line 4055 of file utils.c.

Referenced by on_capture2_activate().

◆ print_cache()

void print_cache ( LiVESList *  cache)

for debugging

Definition at line 4897 of file utils.c.

◆ process_one()

int process_one ( boolean  visible)

SWITCH POINT

during playback this is the only place to update certain variables, e.g. current / playing file, playback plugin. Anywhere else it should be deferred by setting the appropriate update value (e.g. mainw->new_clip, mainw->new_vpp) the code will enforce this so that setting the values directly will cause playback to end

switch compensation allows us to give a brief impulse to the audio when switching

playing file should == current_file, but just in case store separate values.

end SWITCH POINT

Values may need tuning for each clip - possible future targets for the autotuner

we want to avoid the condition where we are constantly seeking ahead and because the seek may take a while to happen, we immediately need to seek again. This will cause the video stream to stutter. So to try to avoid this we will do an an EXTRA jump forwads which ideally will give the player a chance to catch up

  • in this condition, instead of showing the reqiested frame we will do the following:
  • if we have a cached frame, we will show that; otherwise we will advance the frame by 1 from the last frame. and show that, since we can decode it quickly.
  • following this we will cache the "getahead" frame. The player will then render the getahead frame

(A future update will implement a more flexible caching system which will enable the possibility of caching further frames while we waut)

  • if we did not advance enough, we show the getahead frame and then do a larger jump.

on the player's frame. 'getahead' is the target frame. after a jump, we adjust bungle_frames to try to jump more acurately the next tine however, it is impossible to get it right 100% of the time, as the actual value can vary unpredictably 'test_getahead' is used so that we can sometimes recalibrate without actually jumping the frame in future, we could also get a more accurate estimate by integrating statistics from the decoder.

  • useful values would be the frame decode time, keyframe positions, seek time to keyframe, keyframe decode time.

calculate dropped frames, this is ABS(frame - last_frame) - 1

not sure why yet but this doesnt work for rev. pb

failed load, just reset

update the effort calculation with dropped frames and spare_cycles

this is where we rebase the time for the next frame calculation if getahead >= 0 then we want to keep the base at the last "played" frame,

but we did update last_start_ticks

note the audio seek position at the current frame. We will use this when switching clips we don;t know if the last audio buffer has been played or not yet, so we compensate by subtracting half the buffer length

ignore actual value of actual_frame, since it can be messed with (e.g. nervous mode)

set this in case we switch

we are permitted to switch clips here under very restricitive circumstances, e.g when opening a clip

if we did switch clips then cancel the dialog without cancelling the background process

Definition at line 1337 of file dialogs.c.

◆ procw_desensitize()

void procw_desensitize ( void  )

Definition at line 5445 of file main.c.

Referenced by set_interactive().

◆ prompt_remove_layout_files()

boolean prompt_remove_layout_files ( void  )

Definition at line 3408 of file dialogs.c.

◆ pull_frame()

boolean pull_frame ( weed_layer_t layer,
const char *  image_ext,
ticks_t  tc 
)

◆ pull_frame_at_size()

boolean pull_frame_at_size ( weed_layer_t layer,
const char *  image_ext,
ticks_t  tc,
int  width,
int  height,
int  target_palette 
)

◆ pull_frame_threaded()

void pull_frame_threaded ( weed_layer_t layer,
const char *  img_ext,
ticks_t  tc,
int  width,
int  height 
)

◆ pull_lives_pixbuf()

LiVESPixbuf* pull_lives_pixbuf ( int  clip,
int  frame,
const char *  image_ext,
ticks_t  tc 
)

◆ pull_lives_pixbuf_at_size()

LiVESPixbuf* pull_lives_pixbuf_at_size ( int  clip,
int  frame,
const char *  image_ext,
ticks_t  tc,
int  width,
int  height,
LiVESInterpType  interp,
boolean  fordisp 
)

◆ pump_io_chan()

void pump_io_chan ( LiVESIOChannel *  iochan)

Definition at line 1020 of file dialogs.c.

◆ rdet_suggest_values()

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 
)

Definition at line 3065 of file dialogs.c.

◆ read_file_details()

boolean read_file_details ( const char *  file_name,
boolean  only_check_for_audio,
boolean  open_image 
)

Definition at line 207 of file saveplay.c.

◆ read_headers()

boolean read_headers ( int  clipno,
const char *  dir,
const char *  file_name 
)

ascrap_file now uses a different header name; this is to facilitate diskspace cleanup otherwise it may be wrongly classified as a recoverable clip

need to maintain mainw->hdrs_cache in this case, as it may be

mainw->hdrs_cache never set

Definition at line 4465 of file saveplay.c.

◆ recover_files()

boolean recover_files ( char *  recovery_file,
boolean  auto_recover 
)

dont write an entry yet, in case of the unklikely chance we were assigned the same pid as the recovery file, otherwise we will end up in am endless loop of reloading the same set and appending it to the recovery file in any case, the old file is still there and we will create a fresh recovery file after a succesful reload

reset to original value

reset to original value

load single file

create a new cfile and fill in the details

get file details; this will cache the header in mainw->hdrs_cache

see function reload_set() for detailed comments

CLIP_TYPE_FILE

CLIP_TYPE_DISK

not really from a set, but let's pretend to get the details read the playback fps, play frame, and name

NEED TO maintain mainw->hdrs_cache when entering the function, else it will be considered a legacy file load

Definition at line 6033 of file saveplay.c.

◆ recover_layout_map()

void recover_layout_map ( int  numclips)

check for missing frames and audio in layouts

Definition at line 5632 of file saveplay.c.

Referenced by reload_set().

◆ reload_clip()

boolean reload_clip ( int  fileno,
int  maxframe 
)

< retain original order to restore for freshly opened clips

Definition at line 5735 of file saveplay.c.

◆ reload_subs()

void reload_subs ( int  fileno)

Definition at line 4942 of file saveplay.c.

Referenced by reload_clip().

◆ remove_layout_files()

void remove_layout_files ( LiVESList *  lmap)

Definition at line 3559 of file utils.c.

Referenced by on_clear_event_list_activate(), and on_lerrors_delete_clicked().

◆ remove_trailing_zeroes()

char* remove_trailing_zeroes ( double  val)

Definition at line 5395 of file utils.c.

Referenced by on_vpp_advanced_clicked().

◆ render_choice_idle()

boolean render_choice_idle ( livespointer  data)

exit multitrack, backup mainw->event_as it will get set to NULL

Definition at line 3454 of file main.c.

◆ repl_workdir()

char* repl_workdir ( const char *  entry,
boolean  fwd 
)

Definition at line 3534 of file utils.c.

Referenced by load_layout_map(), remove_layout_files(), and save_layout_map().

◆ replace_with_delegates()

void replace_with_delegates ( void  )

Definition at line 1090 of file main.c.

Referenced by resize_widgets_for_monitor().

◆ reset_clipmenu()

void reset_clipmenu ( void  )

Definition at line 4290 of file utils.c.

Referenced by on_render_activate(), reload_set(), and switch_to_file().

◆ reset_message_area()

void reset_message_area ( void  )

Definition at line 4734 of file gui.c.

Referenced by switch_to_file().

◆ reset_playback_clock()

void reset_playback_clock ( void  )

Definition at line 1474 of file utils.c.

◆ resize()

void resize ( double  scale)

◆ resize_message_area()

boolean resize_message_area ( livespointer  data)

Definition at line 3588 of file main.c.

Referenced by close_current_file(), and switch_to_file().

◆ resize_widgets_for_monitor()

void resize_widgets_for_monitor ( boolean  get_play_times)

create a fake event list with no events this prevents problems like the multitrack window trying to auto reload from disk

Definition at line 3752 of file gui.c.

Referenced by config_event().

◆ response_ok()

void response_ok ( LiVESButton *  button,
livespointer  user_data 
)

Definition at line 3892 of file dialogs.c.

◆ restore_clip_binfmt()

boolean restore_clip_binfmt ( int  clipno)

Definition at line 6022 of file saveplay.c.

◆ restore_file()

ulong restore_file ( const char *  filename)

Definition at line 4964 of file saveplay.c.

◆ rewrite_recovery_file()

boolean rewrite_recovery_file ( void  )

Definition at line 6473 of file saveplay.c.

Referenced by close_ascrap_file(), and remove_from_clipmenu().

◆ save_clip_value()

boolean save_clip_value ( int  which,
lives_clip_details_t  ,
void *  val 
)

ascrap_file now uses a different header name; this is to facilitate diskspace cleanup otherwise it may be wrongly classified as a recoverable clip

Definition at line 5175 of file utils.c.

Referenced by do_comments_dialog(), do_effect(), lives_exit(), on_change_speed_ok_clicked(), on_ins_silence_details_clicked(), on_load_cdtrack_ok_clicked(), on_rename_clip_name(), on_vj_reset_activate(), reget_afilesize(), reload_clip(), render_to_clip(), and save_clip_values().

◆ save_clip_values()

boolean save_clip_values ( int  which_file)

◆ save_event_frames()

int save_event_frames ( void  )

Definition at line 5121 of file saveplay.c.

◆ save_file()

void save_file ( int  clip,
int  start,
int  end,
const char *  filename 
)

get extra parameters for saving

re-read values in case they were resampled

flush last of stdout/stderr from plugin

flush last of stdout/stderr from plugin

show iochan (encoder) details

replace letterboxed frames with maxspect frames

save was successful TODO - check for size < 0 !!!

get size of file and show it

TODO - handle file errors !!!!!

Definition at line 1260 of file saveplay.c.

Referenced by on_save_as_activate(), on_save_selection_activate(), on_save_textview_clicked(), and on_vppa_save_clicked().

◆ save_file_comments()

boolean save_file_comments ( int  fileno)

Definition at line 4100 of file saveplay.c.

◆ save_frame()

void save_frame ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

Definition at line 1186 of file saveplay.c.

Referenced by frame_context().

◆ save_frame_inner()

boolean save_frame_inner ( int  clip,
int  frame,
const char *  file_name,
int  width,
int  height,
boolean  from_osc 
)

Definition at line 4170 of file saveplay.c.

Referenced by save_frame().

◆ save_to_scrap_file()

int save_to_scrap_file ( weed_layer_t layer)

Definition at line 5569 of file saveplay.c.

◆ sensitize()

void sensitize ( void  )

◆ sensitize_rfx()

void sensitize_rfx ( void  )

Definition at line 5036 of file main.c.

Referenced by sensitize().

◆ set_colours()

void set_colours ( LiVESWidgetColor *  colf,
LiVESWidgetColor *  colb,
LiVESWidgetColor *  colf2,
LiVESWidgetColor *  colb2,
LiVESWidgetColor *  coli,
LiVESWidgetColor *  colt 
)

no theme !

Definition at line 168 of file gui.c.

Referenced by fade_background(), pref_change_colours(), and show_lives().

◆ set_default_comment()

void set_default_comment ( lives_clip_t sfile,
const char *  extrat 
)

Definition at line 1251 of file saveplay.c.

Referenced by on_paste_as_new_activate().

◆ set_drawing_area_from_pixbuf()

void set_drawing_area_from_pixbuf ( LiVESWidget *  darea,
LiVESPixbuf *  pixbuf,
lives_painter_surface_t *   
)

x, y values are offset of top / left of image in drawing area

Definition at line 5525 of file main.c.

Referenced by mt_show_current_frame(), and on_sepwin_activate().

◆ set_interactive()

void set_interactive ( boolean  interactive)

Definition at line 3072 of file gui.c.

Referenced by resize_widgets_for_monitor().

◆ set_main_title()

void set_main_title ( const char *  filename,
int  or_untitled_number 
)

Definition at line 5005 of file main.c.

Referenced by close_current_file(), do_quick_switch(), on_rename_clip_name(), and switch_to_file().

◆ set_palette_colours()

boolean set_palette_colours ( boolean  force_reload)

get mandatory details

generate some complementary colours

create thread to pick custom colours

set global values

Definition at line 2663 of file main.c.

Referenced by on_import_theme_activate().

◆ set_preview_box_colours()

void set_preview_box_colours ( void  )

Definition at line 3505 of file gui.c.

Referenced by make_preview_box(), and pref_change_colours().

◆ set_record()

void set_record ( void  )

◆ set_redoable()

void set_redoable ( const char *  what,
boolean  sensitive 
)

Definition at line 4813 of file utils.c.

◆ set_sel_label()

void set_sel_label ( LiVESWidget *  label)

◆ set_signal_handlers()

void set_signal_handlers ( SignalHandlerPointer  sigfunc)

Definition at line 4077 of file main.c.

Referenced by mt_idle_add(), real_main(), save_clip_value(), and save_clip_values().

◆ set_undoable()

void set_undoable ( const char *  what,
boolean  sensitive 
)

◆ show_lives()

void show_lives ( void  )

Definition at line 3006 of file gui.c.

Referenced by resize_widgets_for_monitor().

◆ show_manual_section()

void show_manual_section ( const char *  lang,
const char *  section 
)

Definition at line 4629 of file utils.c.

Referenced by show_manual_activate().

◆ showclipimgs()

void showclipimgs ( void  )

◆ splash_end()

void splash_end ( void  )

Definition at line 4712 of file gui.c.

Referenced by startup_message_fatal().

◆ splash_init()

void splash_init ( void  )

Definition at line 4605 of file gui.c.

◆ splash_msg()

void splash_msg ( const char *  msg,
double  pct 
)

Definition at line 4687 of file gui.c.

◆ start_playback()

boolean start_playback ( int  type)

Definition at line 94 of file saveplay.c.

Referenced by on_playall_activate(), on_playclip_activate(), and on_playsel_activate().

◆ start_playback_async()

void start_playback_async ( int  type)

Definition at line 96 of file saveplay.c.

◆ startup_message_choice()

boolean startup_message_choice ( const char *  msg,
int  msgtype 
)

◆ startup_message_fatal()

void startup_message_fatal ( char *  msg)

Definition at line 4962 of file main.c.

Referenced by dir_toolong_error(), and filename_toolong_error().

◆ startup_message_info()

boolean startup_message_info ( const char *  msg)

Definition at line 4987 of file main.c.

Referenced by do_upgrade_error_dialog().

◆ startup_message_nonfatal()

boolean startup_message_nonfatal ( const char *  msg)

Definition at line 4980 of file main.c.

◆ startup_message_nonfatal_dismissable()

boolean startup_message_nonfatal_dismissable ( const char *  msg,
uint64_t  warning_mask 
)

Definition at line 4995 of file main.c.

◆ string_lists_differ()

boolean string_lists_differ ( LiVESList *  ,
LiVESList *   
)

Definition at line 5831 of file utils.c.

◆ subst()

char* subst ( const char *  string,
const char *  from,
const char *  to 
)

◆ switch_aud_to_jack()

boolean switch_aud_to_jack ( boolean  set_pref)

Definition at line 3819 of file utils.c.

Referenced by pref_factory_string().

◆ switch_aud_to_none()

void switch_aud_to_none ( boolean  set_pref)

Definition at line 4001 of file utils.c.

Referenced by handle_audio_timeout(), and pref_factory_string().

◆ switch_aud_to_pulse()

boolean switch_aud_to_pulse ( boolean  set_pref)

Definition at line 3884 of file utils.c.

Referenced by pref_factory_string().

◆ switch_aud_to_sox()

boolean switch_aud_to_sox ( boolean  set_pref)

Definition at line 3944 of file utils.c.

Referenced by pref_factory_string().

◆ switch_audio_clip()

boolean switch_audio_clip ( int  new_file,
boolean  activate 
)

Definition at line 9808 of file main.c.

Referenced by aud_lock_callback(), and do_quick_switch().

◆ switch_to_file()

void switch_to_file ( int  old_file,
int  new_file 
)

◆ threaded_dialog_pop()

void threaded_dialog_pop ( void  )

Definition at line 3771 of file dialogs.c.

◆ threaded_dialog_push()

void threaded_dialog_push ( void  )

Definition at line 3762 of file dialogs.c.

◆ threaded_dialog_spin()

void threaded_dialog_spin ( double  fraction)

◆ toggle_record()

void toggle_record ( void  )

Definition at line 3712 of file gui.c.

Referenced by on_record_perf_activate().

◆ too_many_files()

void too_many_files ( void  )

Definition at line 2996 of file dialogs.c.

Referenced by create_cfile(), get_temp_handle(), and on_capture_activate().

◆ unblock_expose()

void unblock_expose ( void  )

◆ unbuffer_lmap_errors()

void unbuffer_lmap_errors ( boolean  add)

◆ unfade_background()

void unfade_background ( void  )

Definition at line 3324 of file gui.c.

Referenced by on_fade_activate(), and on_sepwin_activate().

◆ unhash_version()

char* unhash_version ( uint64_t  version)

Definition at line 3522 of file utils.c.

Referenced by do_gamma_import_warn().

◆ update_play_times()

void update_play_times ( void  )

like get_play_times, but will force redraw of audio waveforms

Definition at line 3677 of file utils.c.

Referenced by on_load_cdtrack_ok_clicked(), pref_change_colours(), pref_change_xcolours(), and reget_afilesize().

◆ update_progress()

void update_progress ( boolean  visible)

Definition at line 1275 of file dialogs.c.

Referenced by virtual_to_images().

◆ verhash()

int verhash ( char *  version)

Definition at line 4755 of file utils.c.

Referenced by do_effect().

◆ wait_for_bg_audio_sync()

void wait_for_bg_audio_sync ( int  fileno)

Definition at line 4644 of file utils.c.

Referenced by add_file_info().

◆ wait_for_cleaner()

void wait_for_cleaner ( void  )

◆ wait_for_stop()

void wait_for_stop ( const char *  stop_command)

Definition at line 4139 of file saveplay.c.

◆ weed_layer_create_from_file_progressive()

boolean weed_layer_create_from_file_progressive ( weed_layer_t layer,
const char *  fname,
int  width,
int  height,
int  tpalette,
const char *  img_ext 
)

Definition at line 6989 of file main.c.

Referenced by get_frames_sizes().

◆ workdir_ch_warning()

char* workdir_ch_warning ( void  )

Definition at line 4544 of file dialogs.c.

◆ workdir_warning()

void workdir_warning ( void  )

Definition at line 3001 of file dialogs.c.

Referenced by open_ascrap_file(), and open_scrap_file().

◆ write_headers()

boolean write_headers ( lives_clip_t file)

Definition at line 4394 of file saveplay.c.

◆ zero_spinbuttons()

void zero_spinbuttons ( void  )

Definition at line 3807 of file utils.c.

Referenced by close_current_file(), and switch_to_file().

Variable Documentation

◆ _weed_leaf_delete

weed_leaf_delete_f _weed_leaf_delete

Definition at line 375 of file main.h.

Referenced by weed_leaf_delete_host().

◆ _weed_leaf_element_size

weed_leaf_element_size_f _weed_leaf_element_size

Definition at line 370 of file main.h.

◆ _weed_leaf_get

weed_leaf_get_f _weed_leaf_get

Definition at line 365 of file main.h.

Referenced by weed_leaf_get_monitor().

◆ _weed_leaf_get_flags

weed_leaf_get_flags_f _weed_leaf_get_flags

Definition at line 372 of file main.h.

◆ _weed_leaf_num_elements

weed_leaf_num_elements_f _weed_leaf_num_elements

Definition at line 369 of file main.h.

◆ _weed_leaf_seed_type

weed_leaf_seed_type_f _weed_leaf_seed_type

Definition at line 371 of file main.h.

◆ _weed_leaf_set

weed_leaf_set_f _weed_leaf_set

Definition at line 366 of file main.h.

Referenced by weed_leaf_set_host(), and weed_leaf_set_monitor().

◆ _weed_leaf_set_flags

weed_leaf_set_flags_f _weed_leaf_set_flags

Definition at line 374 of file main.h.

◆ _weed_plant_free

weed_plant_free_f _weed_plant_free

Definition at line 373 of file main.h.

Referenced by weed_plant_free_host().

◆ _weed_plant_list_leaves

weed_plant_list_leaves_f _weed_plant_list_leaves

Definition at line 368 of file main.h.

◆ _weed_plant_new

weed_plant_new_f _weed_plant_new

Definition at line 367 of file main.h.

◆ capable

capability* capable

Definition at line 627 of file main.h.

Referenced by activate_x11_window(), after_foreign_play(), apply_rte_audio(), autolives_toggle(), backup_recording(), catch_sigint(), check_dir_access(), check_for_executable(), check_for_lock_file(), check_snap(), check_storage_space(), clear_audio_stream(), create_rename_dialog(), create_resaudw(), do_audio_choice_dialog(), do_system_failed_error(), do_workdir_query(), do_write_failed_error_s(), do_write_failed_error_s_with_retry(), explain_missing_activate(), filter_encoders_by_img_ext(), frame_context(), get_capabilities(), get_clip_value(), get_cpu_load(), get_dir_size(), get_disk_load(), get_distro_dets(), get_ds_free(), get_eload_filename(), get_machine_dets(), get_monitors(), get_num_cpus(), get_play_screen_size(), get_wid_for_name(), get_wm_caps(), get_x11_visible(), hide_desktop_panel(), hide_x11_window(), is_writeable_dir(), LEFloat_to_BEFloat(), lives_cat(), lives_chmod(), lives_cp(), lives_cp_keep_perms(), lives_cp_recursive(), lives_echo(), lives_fork(), lives_ln(), lives_make_writeable_dir(), lives_mv(), lives_read_le(), lives_read_le_buffered(), lives_rm(), lives_rmdir(), lives_rmdir_with_parents(), lives_rmglob(), lives_strdup_quick(), lives_strlen(), lives_touch(), lives_widget_set_opacity(), lives_write_le(), lives_write_le_buffered(), load_frame_image(), lock_set_file(), mt_load_recovery_layout(), multitrack(), on_capture_activate(), on_eject_cd_activate(), on_fade_activate(), on_fade_pressed(), on_import_rfx_activate(), on_live_fw_activate(), on_live_tvcard_activate(), on_open_fw_activate(), on_open_utube_activate(), on_promote_rfx_activate(), on_sepwin_activate(), on_showfct_activate(), on_utube_select(), open_ascrap_file(), open_scrap_file(), pref_factory_string(), prep_audio_player(), prepare_to_play_foreign(), read_filter_defaults(), read_generator_sizes(), real_main(), recover_layout_cancelled(), reload_set(), rfxbuilder_to_script(), run_youtube_dialog(), save_layout_map(), send_to_trash(), sensitize(), show_desktop_panel(), show_lives(), start_audio_stream(), stop_audio_stream(), switch_aud_to_sox(), switch_audio_clip(), trash_rb(), unhide_x11_window(), unlock_set_file(), weed_palette_is_painter_palette(), and write_backup_layout_numbering().

◆ dummychar

const char* dummychar

Definition at line 1839 of file main.h.

◆ mainw

mainwindow* mainw
extern

Definition at line 103 of file main.c.

Referenced by _start_playback(), _weed_instance_obtain(), _weed_instance_ref(), _weed_instance_unref(), activate_mt_preview(), add_audio_track(), add_file_info(), add_lmap_error(), add_rfx_effects(), add_rfx_effects2(), add_suffix_check(), add_to_clipmenu(), add_to_playframe(), add_to_recovery_file(), after_boolean_param_toggled(), after_foreign_play(), after_param_alpha_changed(), after_param_blue_changed(), after_param_green_changed(), after_param_red_changed(), after_param_text_changed(), after_param_text_focus_changed(), after_param_value_changed(), after_string_list_changed(), after_vpp_changed(), all_config(), all_expose_overlay(), append_to_audio_buffer16(), append_to_audio_bufferf(), apply_rte_audio(), ask_permission_dialog_complex(), aud_lock_callback(), audio_cache_end(), audio_process_events_to(), lives::prefs::audioPlayerRate(), autolives_toggle(), avsync_force(), backup_recording(), buffer_lmap_error(), build_init_config(), calc_aframeno(), calc_frame_from_time(), calc_frame_from_time2(), calc_frame_from_time3(), calc_frame_from_time4(), calc_new_playback_position(), calc_time_from_frame(), catch_sigint(), cconx_chain_data(), cconx_delete(), cconx_delete_all(), cconx_list(), cconx_remap_mode(), ce_thumbs_update_current_clip(), changed_fps_during_pb(), check_backend_return(), check_clip_integrity(), check_filter_chain_palettes(), check_for_bad_ffmpeg(), check_for_disk_space(), check_for_layout_del(), check_for_lock_file(), check_frame_count(), check_layer_ready(), check_storage_space(), chill_decoder_plugin(), choose_file(), clear_lmap_errors(), clear_mainw_msg(), clip_can_reverse(), clone_decoder(), close_ascrap_file(), close_clip_decoder(), close_current_file(), close_scrap_file(), close_temp_handle(), close_vid_playback_plugin(), cnum_for_uid(), config_event(), config_event2(), config_laud_draw(), config_raud_draw(), config_vid_draw(), create_cds_dialog(), create_cdtrack_dialog(), create_cfile(), create_comments_dialog(), create_encoder_prep_dialog(), create_frame_index(), create_insert_dialog(), create_new_pb_speed(), create_nullvideo_clip(), create_opensel_dialog(), create_prefs_dialog(), create_processing(), create_rename_dialog(), create_resaudw(), create_rte_window(), create_text_window(), lives::prefs::currentAudioDir(), lives::prefs::currentVideoLoadDir(), d_print(), d_print_overlay(), d_print_urgency(), decoder_plugin_move_to_first(), defer_sigint(), deinterlace_frame(), del_current_set(), delete_audio_track(), delete_event(), deorder_frames(), desensitize(), dirchange_callback(), dirchange_lock_callback(), disable_record(), do_auto_dialog(), do_block_context(), do_clip_divergence_error(), do_comments_dialog(), do_effect(), do_header_missing_detail_error(), do_header_read_error_with_retry(), do_header_write_error(), do_quick_switch(), do_rfx_cleanup(), do_save_clipset_warn(), do_startup_interface_query(), do_startup_tests(), do_std_checks(), do_threaded_dialog(), do_workdir_query(), drag_from_outside(), draw_cool_toggle(), enable_record(), enabled_in_channels(), end_ce_thumb_mode(), end_fs_preview(), end_override_if_activate_output(), end_threaded_dialog(), event_list_add_end_events(), event_list_close_gaps(), event_list_free_undos(), expose_laud_draw(), expose_raud_draw(), expose_vid_draw(), ext_triggers_poll(), fade_background(), fill_abuffer_from(), filter_mutex_trylock(), filter_mutex_unlock(), find_in_file_buffers(), find_in_file_buffers_by_pathname(), find_rfx_plugin_by_name(), find_when_to_stop(), fps_reset_callback(), frame_context(), free_jack_audio_buffers(), free_pulse_audio_buffers(), free_thumb_cache(), free_track_decoders(), freeze_callback(), get_audio_and_effects_state_at(), get_audio_file_name(), get_audio_from_plugin(), get_blend_layer(), get_border_size(), get_capabilities(), get_clip_value(), get_decoder_cdata(), get_deinterlace_string(), get_disk_load(), get_eload_filename(), get_float_audio_val_at_time(), get_frames_sizes(), get_handle_from_info_file(), get_inst_fps(), get_interp_value(), get_md5sum(), get_menu_name(), get_monitors(), get_new_handle(), get_nth_info_message(), get_palette_name_for_clip(), get_play_screen_size(), get_player_size(), get_plugin_result(), get_stats_msg(), get_temp_handle(), get_textparm(), get_theme_colour_pref(), get_transient_full(), get_unique_ids(), get_vspace(), get_window_stack_level(), get_wm_caps(), grabkeys_callback(), handle_audio_timeout(), handle_backend_errors(), has_audio_filters(), idle_cancel_proc(), idle_choose_file_with_preview(), idle_choose_layout(), idle_choose_set(), idle_fx_enable(), idle_fx_setmode(), idle_insert_block(), idle_insert_vtrack(), idle_map_fx(), idle_move_block(), idle_mt_set_track(), idle_open_file(), idle_quit(), idle_reload_layout(), idle_reload_set(), idle_remove_block(), idle_render_layout(), idle_resync_fps(), idle_save_layout(), idle_save_set(), idle_select_all(), idle_select_end(), idle_select_start(), idle_set_current_audio_time(), idle_set_current_fps(), idle_set_current_frame(), idle_set_current_time(), idle_set_fullscreen(), idle_set_fullscreen_sepwin(), idle_set_gravity(), idle_set_if_mode(), idle_set_insert_mode(), idle_set_interactive(), idle_set_loop_mode(), idle_set_ping_pong(), idle_set_pref_bitmapped(), idle_set_pref_bool(), idle_set_pref_int(), idle_set_sepwin(), idle_set_set_name(), idle_set_track_label(), idle_show_info(), idle_stop_playback(), idle_switch_clip(), idle_unmap_effects(), idle_unmap_fx(), idle_wipe_layout(), in_out_end_changed(), in_out_start_changed(), init_audio_frame_buffers(), init_clipboard(), init_jack_audio_buffers(), init_pulse_audio_buffers(), init_track_decoders(), insert_blank_frames(), insert_filter_map_event_at(), insert_frames(), invalidate_preview(), is_legal_set_name(), is_virtual_frame(), label_act_toggle(), layout_audio_is_affected(), lazy_startup_checks(), lives2lives_read_stream(), lives_alarm_check(), lives_alarm_clear(), lives_alarm_reset(), lives_alarm_set(), lives_ce_update_timeline(), lives_close_buffered(), lives_exit(), lives_get_audio_file_name(), lives_get_current_playback_ticks(), lives_get_relative_ticks(), lives_invalidate_all_file_buffers(), lives_message_dialog_new(), lives_notify(), lives_set_cursor_style(), lives_standard_frame_new(), lives_standard_hpaned_new(), lives_standard_hscale_new(), lives_standard_hseparator_new(), lives_standard_text_view_new(), lives_standard_vpaned_new(), lives_standard_vseparator_new(), lives_system(), lives_widget_show_all(), lives_window_get_inner_size(), lives_window_set_monitor(), lives_yuv_stream_start_write(), load_event_list(), load_frame_image(), load_frame_index(), load_from_scrap_file(), load_layout_map(), load_rfx_preview(), loop_callback(), make_custom_submenus(), make_preview_box(), migrate_layouts(), mouse_mode_context(), msg_area_config(), mt_auto_backup(), mt_change_disp_tracks_ok(), mt_change_max_disp_tracks(), mt_change_vals_activate(), mt_clear_timeline(), mt_clip_select(), mt_delete_clips(), mt_desensitise(), mt_idle_add(), mt_idle_show_current_frame(), mt_init_clips(), mt_init_start_end_spins(), mt_init_tracks(), mt_load_recovery_layout(), mt_memory_free(), mt_post_playback(), mt_prepare_for_playback(), mt_sensitise(), mt_set_autotrans(), mt_show_current_frame(), mt_spin_end_value_changed(), mt_swap_play_pause(), multitrack(), multitrack_audio_insert(), multitrack_delete(), multitrack_insert(), multitrack_preview_clicked(), mute_audio_callback(), nervous_callback(), nextclip_callback(), on_append_audio_activate(), on_audio_toggled(), on_back_pressed(), on_camquit_clicked(), on_cancel_keep_button_clicked(), on_cancel_opensel_clicked(), on_capture2_activate(), on_capture_activate(), on_change_speed_activate(), on_change_speed_ok_clicked(), on_clear_clicked(), on_clear_event_list_activate(), on_cleardisk_activate(), on_close_activate(), on_copy_activate(), on_cut_activate(), on_decplug_advanced_clicked(), on_details_button_clicked(), on_double_size_activate(), on_double_size_pressed(), on_effects_paused(), on_encoder_entry_changed(), on_encoder_ofmt_changed(), on_erase_subs_activate(), on_export_proj_activate(), on_fade_activate(), on_fade_audio_activate(), on_fade_pressed(), on_faster_pressed(), on_filechooser_cancel_clicked(), on_forward_pressed(), on_full_screen_pressed(), on_fx_pre_activate(), on_hrule_reset(), on_hrule_set(), on_hrule_update(), on_import_proj_activate(), on_ins_silence_details_clicked(), on_insert_activate(), on_insert_pre_activate(), on_insertwsound_toggled(), on_lerrors_clear_clicked(), on_lerrors_delete_clicked(), on_less_pressed(), on_live_fw_activate(), on_live_tvcard_activate(), on_load_audio_activate(), on_load_cdtrack_activate(), on_load_cdtrack_ok_clicked(), on_load_event_list_activate(), on_load_set_activate(), on_load_subs_activate(), on_load_vcd_ok_clicked(), on_lock_selwidth_activate(), on_loop_button_activate(), on_loop_cont_activate(), on_loop_video_activate(), on_merge_activate(), on_merge_cancel_clicked(), on_more_pressed(), on_mouse_scroll(), on_mouse_sel_reset(), on_mouse_sel_start(), on_mouse_sel_update(), on_multitrack_activate(), on_mute_activate(), on_mute_button_activate(), on_node_spin_value_changed(), on_normalise_audio_activate(), on_ok_file_open_clicked(), on_open_activate(), on_open_fw_activate(), on_open_loc_activate(), on_open_new_audio_clicked(), on_open_sel_activate(), on_open_utube_activate(), on_open_vcd_activate(), on_open_yuv4m_activate(), on_opensel_range_ok_clicked(), on_paramwindow_button_clicked(), on_paste_as_new_activate(), on_pause_clicked(), on_ping_pong_activate(), on_playall_activate(), on_playclip_activate(), on_playsel_activate(), on_prefs_apply_clicked(), on_prefs_close_clicked(), on_prerender_aud_activate(), on_preview_spinbutton_changed(), on_prv_link_toggled(), on_quit_activate(), on_realfx_activate(), on_recaudclip_activate(), on_recaudclip_ok_clicked(), on_record_perf_activate(), on_redo_activate(), on_rename_clip_name(), on_render_activate(), on_render_fx_activate(), on_resample_audio_activate(), on_resample_vid_ok(), on_resample_video_activate(), on_resaudio_ok_clicked(), on_resetp_clicked(), on_rev_clipboard_activate(), on_rewind_activate(), on_rte_apply(), on_save_as_activate(), on_save_event_list_activate(), on_save_selection_activate(), on_save_set_activate(), on_save_subs_activate(), on_save_textview_clicked(), on_select_all_activate(), on_select_end_only_activate(), on_select_from_start_activate(), on_select_invert_activate(), on_select_last_activate(), on_select_new_activate(), on_select_start_only_activate(), on_select_to_end_activate(), on_send_lives2lives_activate(), on_sepwin_activate(), on_sepwin_pressed(), on_set_pvals_clicked(), on_show_clipboard_info_activate(), on_show_file_comments_activate(), on_showfct_activate(), on_showsubs_toggled(), on_slower_pressed(), on_stop_activate(), on_stop_clicked(), on_timeline_press(), on_timeline_update(), on_toolbar_hide(), on_toy_activate(), on_track_release(), on_trans_method_changed(), on_undo_activate(), on_utube_select(), on_vj_realize_activate(), on_vj_reset_activate(), on_volch_pressed(), on_vpp_advanced_clicked(), on_vppa_cancel_clicked(), on_vppa_ok_clicked(), on_vppa_save_clicked(), open_ascrap_file(), open_scrap_file(), open_set_file(), open_vid_playback_plugin(), override_if_active_input(), pad_init_silence(), param_marshall(), pconx_chain_data_omc(), pconx_check_connection(), pconx_delete(), pconx_delete_all(), pconx_list(), pconx_remap_mode(), pl_key_function(), play_all(), play_file(), play_sel(), play_window_set_title(), popup_lmap_errors(), pref_change_colours(), pref_change_images(), pref_change_xcolours(), pref_factory_bool(), pref_factory_float(), pref_factory_int(), pref_factory_string(), pref_factory_string_choice(), prep_audio_player(), prepare_to_play_foreign(), prevclip_callback(), preview_aud_vol(), preview_audio(), procw_desensitize(), prompt_for_script_name(), pull_frame_idle(), pump_io_chan(), push_audio_to_channel(), rdet_acodec_changed(), real_main(), realfx_progress(), realize_all_frames(), rec_callback(), rec_param_change(), recover_layout(), recover_layout_cancelled(), recover_layout_map(), redraw_timeline(), redraw_timer_bars(), redraw_tl_idle(), reget_afilesize(), reinit_audio_gen(), reload_clip(), reload_set(), reload_subs(), remove_current_from_affected_layouts(), remove_from_clipmenu(), remove_layout_files(), render_audio_segment(), render_choice_idle(), render_events(), render_to_clip(), reorder_frames(), replace_event(), replace_with_delegates(), resample_clipboard(), reset_clipmenu(), reset_effort(), reset_frame_and_clip_index(), reset_message_area(), reset_mt_play_sizes(), reset_playback_clock(), reset_renumbering(), reshow_msg_area(), resize(), resize_message_area(), resize_widgets_for_monitor(), restore_frame_index_back(), resync_audio(), reverse_frame_index(), rewrite_recovery_file(), rfx_free(), rfx_free_all(), rfxbuilder_to_script(), rte_key_is_enabled(), rte_key_on_off(), rte_key_setmode(), rte_keymode_get_instance(), rte_keymodes_restore(), rte_on_off_callback(), rte_set_defs_ok(), rte_set_key_defs(), rtemode_callback(), sample_move_abuf_float(), sample_move_abuf_int16(), sample_silence_stream(), save_clip_value(), save_clip_values(), save_event_frames(), save_event_list_inner(), save_file_comments(), save_frame(), save_frame_index(), save_layout_map(), save_to_scrap_file(), script_to_rfxbuilder(), sensitize(), sensitize_rfx(), set_acodec_list_from_allowed(), set_colours(), set_interactive(), set_main_title(), set_mt_colours(), set_mt_play_sizes_cfg(), set_new_set_name(), set_palette_prefs(), set_preview_box_colours(), set_redoable(), set_sel_label(), set_undoable(), set_values_from_defs(), set_vpp(), show_clipinfo_cb(), show_lives(), show_playbar_labels(), show_sync_callback(), showclipimgs(), showfct_callback(), showsubs_callback(), splash_end(), splash_init(), splash_msg(), start_audio_stream(), start_ce_thumb_mode(), start_player(), start_render_effect_events(), startup_message_fatal(), startup_message_nonfatal(), stop_audio_stream(), storeclip_callback(), stored_event_list_free_all(), stored_event_list_free_undos(), swap_fg_bg_callback(), switch_aud_to_jack(), switch_aud_to_none(), switch_aud_to_pulse(), switch_aud_to_sox(), switch_audio_clip(), switch_clip(), switch_clip_activate(), switch_to_file(), textparm_callback(), threaded_dialog_push(), threaded_dialog_spin(), toggle_record(), track_select(), transition_add_in_out(), unbuffer_lmap_errors(), unfade_background(), unload_decoder_plugins(), unlock_loop_lock(), unselect_all(), update_progress(), update_rfx_menus(), update_sel_menu(), update_visual_params(), update_weed_color_value(), used_in_current_layout(), vid_playback_plugin_exit(), virtual_to_images(), vj_mode_toggled(), weed_deinit_all(), weed_generator_end(), weed_generator_start(), weed_in_params_free(), weed_init_effect(), weed_reinit_all(), weed_reinit_effect(), widget_add_preview(), wipe_layout(), workdir_warning(), write_backup_layout_numbering(), and zero_spinbuttons().

◆ sizdbl

ssize_t sizdbl

Definition at line 1139 of file main.h.

◆ sizint

ssize_t sizint
extern

◆ sizshrt

ssize_t sizshrt

Definition at line 1139 of file main.h.

◆ tv

struct timeval tv

Definition at line 1130 of file main.h.

Referenced by lives_get_relative_ticks().

◆ weed_abi_version

int weed_abi_version

Definition at line 635 of file main.h.

◆ weed_threadsafe

boolean weed_threadsafe

Definition at line 634 of file main.h.

CLIP_AUDIO_TIME
#define CLIP_AUDIO_TIME(clip)
Definition: main.h:827
WEED_LEAF_THREAD_PROCESSING
#define WEED_LEAF_THREAD_PROCESSING
Definition: machinestate.h:414
CLIP_VIDEO_TIME
#define CLIP_VIDEO_TIME(clip)
Definition: main.h:820
IS_VALID_CLIP
#define IS_VALID_CLIP(clip)
Definition: main.h:808
mainw
mainwindow * mainw
Definition: main.c:103
lives_clip_t::clip_type
lives_clip_type_t clip_type
Definition: main.h:886
CLIP_RIGHT_AUDIO_TIME
#define CLIP_RIGHT_AUDIO_TIME(clip)
Definition: main.h:824
CLIP_TYPE_DISK
@ CLIP_TYPE_DISK
imported video, broken into frames
Definition: main.h:764
LIVES_OSC_NOTIFY_QUIT
#define LIVES_OSC_NOTIFY_QUIT
sent when app quits
Definition: osc_notify.h:44
lives_memset
#define lives_memset
Definition: machinestate.h:61
mainwindow::preview_rendering
boolean preview_rendering
Definition: mainwindow.h:758
CLIP_TYPE_FILE
@ CLIP_TYPE_FILE
unimported video, not or partially broken in frames
Definition: main.h:765
mainwindow::files
lives_clip_t * files[MAX_FILES+1]
+1 for the clipboard
Definition: mainwindow.h:729
WEED_LEAF_RESIZE_THREAD
#define WEED_LEAF_RESIZE_THREAD
Definition: colourspace.h:25
mainwindow::is_rendering
boolean is_rendering
Definition: mainwindow.h:821
CLIP_TYPE_NULL_VIDEO
@ CLIP_TYPE_NULL_VIDEO
generates blank video frames
Definition: main.h:767
mainwindow::multitrack
lives_mt * multitrack
holds a pointer to the entire multitrack environment; NULL in Clip Edit mode
Definition: mainwindow.h:1087
lives_notify
void lives_notify(int msgnumber, const char *msgstring)
Definition: callbacks.c:49
sig
#define sig(a)
Definition: main.h:268
FALSE
#define FALSE
Definition: videoplugin.h:60
CLIP_LEFT_AUDIO_TIME
#define CLIP_LEFT_AUDIO_TIME(clip)
Definition: main.h:822
lives_clip_t::achans
int achans
number of audio channels (0, 1 or 2)
Definition: main.h:907