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

Go to the source code of this file.

Data Structures

struct  lives_colRGB48_t
 
struct  lives_colRGBA64_t
 
struct  event
 
struct  xprocess
 
struct  lives_audio_track_state_t
 
struct  lives_clip_t
 corresponds to one clip in the GUI More...
 
struct  capability
 

Macros

#define GUI_GTK
 
#define PAINTER_CAIRO
 
#define USE_GLIB
 
#define GDK_WINDOWING_X11
 
#define 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"
 
#define PREFIX   PREFIX_DEFAULT
 if –prefix= was not set, this is set to "NONE" More...
 
#define LIVES_DIR_SEP   "/"
 
#define LIVES_STATUS_FILE_NAME   ".status"
 
#define LIVES_INFO_FILE_NAME   ".info"
 
#define LIVES_BFILE_NAME   ".smogrify"
 
#define LIVES_SMOGPLUGIN_FILE_NAME   ".smogplugin"
 
#define LIVES_SMOGVAL_FILE_NAME   ".smogval"
 
#define LIVES_ENC_DEBUG_FILE_NAME   ".debug_out"
 
#define LIVES_DEVNULL   "/dev/null"
 
#define DLL_NAME   "so"
 
#define DOC_DIR   "/share/doc/lives-"
 
#define THEME_DIR   "/share/lives/themes/"
 
#define PLUGIN_SCRIPTS_DIR   "/share/lives/plugins/"
 
#define PLUGIN_COMPOUND_DIR   "/share/lives/plugins/"
 
#define PLUGIN_EXEC_DIR   "/lives/plugins/"
 
#define ICON_DIR   "/share/lives/icons/"
 
#define DESKTOP_ICON_DIR   "/share/icons/hicolor/48x48/apps"
 
#define DATA_DIR   "/share/lives/"
 
#define LIVES_CONFIG_DIR   ".lives-dir/"
 
#define LIVES_WORK_NAME   "livesprojects"
 
#define LIVES_DEVICE_DIR   "/dev/"
 
#define LIVES_COPYRIGHT_YEARS   "2002 - 2018"
 
#define LIVES_WEBSITE   PACKAGE_URL
 
#define LIVES_MANUAL_URL   LIVES_WEBSITE "/manual/"
 
#define LIVES_MANUAL_FILENAME   "LiVES_manual.html"
 
#define LIVES_AUTHOR_EMAIL   "salsaman+lives@gmail.com"
 
#define LIVES_DONATE_URL   "https://sourceforge.net/p/lives/donate/"
 
#define LIVES_BUG_URL   PACKAGE_BUGREPORT
 
#define LIVES_FEATURE_URL   "https://sourceforge.net/p/lives/feature-requests/"
 
#define LIVES_TRANSLATE_URL   "https://translations.launchpad.net/lives/trunk"
 
#define DEF_FILE_PERMS   (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
 non-executable, is modified by the umask More...
 
#define WARN_FILE_SIZE   500
 
#define FPS_MAX   200.
 maximum fps we will allow (double) More...
 
#define MAX_FRAME_WIDTH   100000.
 
#define MAX_FRAME_HEIGHT   100000.
 
#define ENABLE_DVD_GRAB
 
#define LIVES_INLINE   static inline
 
#define LIVES_GLOBAL_INLINE   inline
 
#define LIVES_LOCAL_INLINE   LIVES_INLINE
 
#define PATH_MAX   4096
 
#define WARN_UNUSED
 
#define GNU_PURE
 
#define GNU_CONST
 
#define GNU_MALLOC
 
#define GNU_ALIGN(x)
 
#define ALLOW_MPV
 
#define ALLOW_PNG24
 
#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_deinterlace"
 
#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 IS_VALID_CLIP(clip)   (clip >= 0 && mainw->files[clip] != NULL)
 
#define CURRENT_CLIP_IS_VALID   IS_VALID_CLIP(mainw->current_file)
 
#define CLIP_HAS_VIDEO(clip)   (IS_VALID_CLIP(clip) && mainw->files[clip]->frames > 0)
 
#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)
 
#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)   ((double)(IS_VALID_CLIP(clip) ? (mainw->files[clip]->achans > 1 ? mainw->files[clip]->raudio_time : 0.) : 0.))
 
#define CLIP_AUDIO_TIME(clip)   ((double)(CLIP_LEFT_AUDIO_TIME(clip) >= CLIP_RIGHT_AUDIO_TIME(clip) ? CLIP_LEFT_AUDIO_TIME(clip) : CLIP_RIGHT_AUDIO_TIME(clip)))
 
#define CLIP_TOTAL_TIME(clip)   ((double)(CLIP_VIDEO_TIME(clip) > CLIP_AUDIO_TIME(clip) ? CLIP_VIDEO_TIME(clip) : CLIP_AUDIO_TIME(clip)))
 
#define CURRENT_CLIP_TOTAL_TIME   CLIP_TOTAL_TIME(mainw->current_file)
 
#define LIVES_CLIP_HEADER_VERSION   100
 
#define FX_FRAME_PUMP_VAL   200
 how many frames to prime the pump for realtime effects and resampler More...
 
#define IMG_BUFF_SIZE   4096
 chunk size for reading images More...
 
#define __STDC_FORMAT_MACROS
 
#define __WORDSIZE   32
 
#define __PRI64_PREFIX   "ll"
 
#define PRId64   __PRI64_PREFIX "d"
 
#define PRIu64   __PRI64_PREFIX "u"
 
#define cfile   mainw->files[mainw->current_file]
 
#define clipboard   mainw->files[0]
 
#define PREFS_TIMEOUT   10000000
 10 seconds More...
 
#define LIVES_TV_CHANNEL1   "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm"
 
#define CEIL(a, b)   ((int)(((double)a + (double)b - .000000001) / ((double)b)) * b)
 
#define LIVES_NO_DEBUG
 
#define LIVES_DEBUG(x)   dummychar = x
 
#define LIVES_INFO(x)   fprintf(stderr, "LiVES info: %s\n", x)
 
#define LIVES_WARN(x)   fprintf(stderr, "LiVES warning: %s\n", x)
 
#define LIVES_ERROR(x)   {fprintf(stderr, "LiVES error: %s\n", x); break_me();}
 
#define LIVES_FATAL(x)   {fprintf(stderr, "LiVES fatal: %s\n", x); raise (LIVES_SIGSEGV);}
 

Typedefs

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

Enumerations

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

Functions

uint64_t lives_random (void)
 
boolean do_progress_dialog (boolean visible, boolean cancellable, const char *text)
 
boolean do_warning_dialog (const char *text)
 
boolean do_warning_dialog_with_check (const char *text, int warn_mask_number)
 
boolean do_warning_dialog_with_check_transient (const char *text, int warn_mask_number, LiVESWindow *transient)
 
boolean do_yesno_dialog (const char *text)
 
boolean do_yesno_dialog_with_check (const char *text, int warn_mask_number)
 
boolean do_yesno_dialog_with_check_transient (const char *text, int warn_mask_number, LiVESWindow *transient)
 
int do_abort_cancel_retry_dialog (const char *text, LiVESWindow *transient) WARN_UNUSED
 
int do_error_dialog (const char *text)
 
int do_info_dialog (const char *text)
 
int do_error_dialog_with_check (const char *text, int warn_mask_number)
 
int do_blocking_error_dialog (const char *text)
 
int do_blocking_info_dialog (const char *text)
 
int do_error_dialog_with_check_transient (const char *text, boolean is_blocking, int warn_mask_number, LiVESWindow *transient)
 
int do_info_dialog_with_transient (const char *text, boolean is_blocking, LiVESWindow *transient)
 
LiVESWidget * create_message_dialog (lives_dialog_t diat, const char *text, LiVESWindow *transient, int warn_mask_number, boolean is_blocking)
 
LiVESWidget * create_question_dialog (const char *title, const char *text, LiVESWindow *parent)
 
LiVESWindow * get_transient_full ()
 
void do_system_failed_error (const char *com, int retval, const char *addinfo)
 
int do_write_failed_error_s_with_retry (const char *fname, const char *errtext, LiVESWindow *transient) WARN_UNUSED
 
void do_write_failed_error_s (const char *filename, const char *addinfo)
 
int do_read_failed_error_s_with_retry (const char *fname, const char *errtext, LiVESWindow *transient) WARN_UNUSED
 
void do_read_failed_error_s (const char *filename, const char *addinfo)
 
boolean do_header_write_error (int clip)
 
int do_header_read_error_with_retry (int clip) WARN_UNUSED
 
int do_header_missing_detail_error (int clip, lives_clip_details_t detail) WARN_UNUSED
 
void do_chdir_failed_error (const char *dir)
 
void handle_backend_errors (void)
 
boolean check_backend_return (lives_clip_t *sfile)
 
char * ds_critical_msg (const char *dir, uint64_t dsval)
 
char * ds_warning_msg (const char *dir, uint64_t dsval, uint64_t cwarn, uint64_t nwarn)
 
boolean check_storage_space (lives_clip_t *sfile, boolean is_processing)
 
char * get_upd_msg (int type)
 
char * get_new_install_msg (void)
 
boolean ask_permission_dialog (int what)
 
boolean do_abort_check (void)
 
void add_warn_check (LiVESBox *box, int warn_mask_number)
 
void do_memory_error_dialog (void)
 
void too_many_files (void)
 
void workdir_warning (void)
 
void do_audio_import_error (void)
 
void do_mt_backup_space_error (lives_mt *, int memreq_mb)
 
boolean do_clipboard_fps_warning (void)
 
void perf_mem_warning (void)
 
void do_dvgrab_error (void)
 
boolean do_comments_dialog (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 (void)
 
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_lb_composite_error (void)
 
void do_lb_convert_error (void)
 
void do_ra_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_yuv4m_open_warning (void)
 
void do_mt_undo_mem_error (void)
 
void do_mt_undo_buf_error (void)
 
void do_mt_set_mem_error (boolean has_mt, boolean trans)
 
void do_mt_audchan_error (int warn_mask)
 
void do_mt_no_audchan_error (void)
 
void do_mt_no_jack_error (int warn_mask)
 
boolean do_mt_rect_prompt (void)
 
void do_audrate_error_dialog (void)
 
boolean do_event_list_warning (void)
 
void do_nojack_rec_error (void)
 
void do_vpp_palette_error (void)
 
void do_vpp_fps_error (void)
 
void do_decoder_palette_error (void)
 
void do_rmem_max_error (int size)
 
boolean do_original_lost_warning (const char *fname)
 
void do_no_decoder_error (const char *fname)
 
void do_jack_noopen_warn (void)
 
void do_jack_noopen_warn2 (void)
 
void do_jack_noopen_warn3 (void)
 
void do_jack_noopen_warn4 (void)
 
void do_file_perm_error (const char *file_name)
 
void do_dir_perm_error (const char *dir_name)
 
void do_dir_perm_access_error (const char *dir_name)
 
void do_encoder_img_ftm_error (render_details *rdet)
 
void do_after_crash_warning (void)
 
void do_bad_layout_error (void)
 
void do_card_in_use_error (void)
 
void do_dev_busy_error (const char *devstr)
 
boolean do_existing_subs_warning (void)
 
void do_invalid_subs_error (void)
 
boolean do_erase_subs_warning (void)
 
boolean do_sub_type_warning (const char *ext, const char *type_ext)
 
boolean do_move_workdir_dialog (void)
 
void do_set_locked_warning (const char *setname)
 
void do_no_in_vdevs_error (void)
 
void do_locked_in_vdevs_error (void)
 
void do_do_not_close_d (void)
 
void do_set_noclips_error (const char *setname)
 
void do_no_autolives_error (void)
 
void do_autolives_needs_clips_error (void)
 
void do_pulse_lost_conn_error (void)
 
void do_jack_lost_conn_error (void)
 
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 process_one (boolean visible)
 
void do_threaded_dialog (char *translated_text, boolean has_cancel)
 
void end_threaded_dialog (void)
 
void threaded_dialog_spin (double fraction)
 
void response_ok (LiVESButton *button, livespointer user_data)
 
void pump_io_chan (LiVESIOChannel *iochan)
 
void do_splash_progress (void)
 
void d_print_cancelled (void)
 
void d_print_failed (void)
 
void d_print_done (void)
 
void d_print_file_error_failed (void)
 
void do_text_window (const char *title, const char *text)
 
boolean read_file_details (const char *file_name, boolean only_check_for_audio)
 
boolean add_file_info (const char *check_handle, boolean aud_only)
 
boolean save_file_comments (int fileno)
 
boolean reload_clip (int fileno, int maxframe)
 
void wait_for_bg_audio_sync (int fileno)
 
void reget_afilesize (int fileno)
 
ulong deduce_file (const char *filename, double start_time, int end)
 
ulong open_file (const char *filename)
 
ulong open_file_sel (const char *file_name, double start_time, int frames)
 
void open_fw_device (void)
 
char * get_untitled_name (int number)
 
boolean get_new_handle (int index, const char *name)
 
boolean get_temp_handle (int index, boolean create)
 
boolean get_handle_from_info_file (int index)
 
void create_cfile (void)
 
void save_file (int clip, int start, int end, const char *filename)
 
void play_file (void)
 
void save_frame (LiVESMenuItem *menuitem, livespointer user_data)
 
boolean save_frame_inner (int clip, int frame, const char *file_name, int width, int height, boolean from_osc)
 
void wait_for_stop (const char *stop_command)
 
boolean save_clip_values (int which_file)
 
void add_to_recovery_file (const char *handle)
 
void rewrite_recovery_file (void)
 
boolean check_for_recovery_files (boolean auto_recover)
 
void recover_layout_map (int numclips)
 
const char * get_deinterlace_string (void)
 
void backup_file (int clip, int start, int end, const char *filename)
 
int save_event_frames (void)
 
boolean write_headers (lives_clip_t *file)
 
ulong restore_file (const char *filename)
 
boolean read_headers (const char *file_name)
 
void open_set_file (const char *set_name, int clipnum)
 
boolean open_scrap_file (void)
 
boolean open_ascrap_file (void)
 
int save_to_scrap_file (weed_plant_t *layer)
 
boolean load_from_scrap_file (weed_plant_t *layer, int frame)
 
void close_ascrap_file (void)
 
void close_scrap_file (void)
 
void add_to_ascrap_mb (uint64_t bytes)
 
boolean check_for_disk_space (void)
 
void set_signal_handlers (SignalHandlerPointer sigfunc)
 
void catch_sigint (int signum)
 
void defer_sigint (int signum)
 
boolean startup_message_fatal (const char *msg)
 
boolean startup_message_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, int warning_mask)
 
capabilityget_capabilities (void)
 
void get_monitors (void)
 
void set_ce_frame_from_pixbuf (LiVESImage *image, LiVESPixbuf *pixbuf, lives_painter_t *)
 
void load_start_image (int frame)
 
void load_end_image (int frame)
 
void load_preview_image (boolean update_always)
 
boolean pull_frame (weed_plant_t *layer, const char *image_ext, weed_timecode_t tc)
 
void pull_frame_threaded (weed_plant_t *layer, const char *img_ext, weed_timecode_t tc)
 
void check_layer_ready (weed_plant_t *layer)
 
boolean pull_frame_at_size (weed_plant_t *layer, const char *image_ext, weed_timecode_t tc, int width, int height, int target_palette)
 
LiVESPixbuf * pull_lives_pixbuf_at_size (int clip, int frame, const char *image_ext, weed_timecode_t tc, int width, int height, LiVESInterpType interp)
 
LiVESPixbuf * pull_lives_pixbuf (int clip, int frame, const char *image_ext, weed_timecode_t tc)
 
LiVESError * lives_pixbuf_save (LiVESPixbuf *pixbuf, char *fname, lives_image_type_t imgtype, int quality, boolean do_chmod, LiVESError **gerrorptr)
 
void init_track_decoders (void)
 
void free_track_decoders (void)
 
void load_frame_image (int frame)
 
void sensitize (void)
 
void desensitize (void)
 
void procw_desensitize (void)
 
void close_current_file (int file_to_switch_to)
 close current file, and try to switch to file_to_switch_to More...
 
void get_next_free_file (void)
 
void switch_to_file (int old_file, int new_file)
 
void do_quick_switch (int new_file)
 
void switch_audio_clip (int new_file, boolean activate)
 
void resize (double scale)
 
void do_start_messages (void)
 
boolean set_palette_colours (boolean force_reload)
 
void set_main_title (const char *filename, int or_untitled_number)
 
void set_record (void)
 
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)
 
void enable_record (void)
 
void toggle_record (void)
 
void disable_record (void)
 
void make_custom_submenus (void)
 
void fade_background (void)
 
void unfade_background (void)
 
void block_expose (void)
 
void unblock_expose (void)
 
void frame_size_update (void)
 
void splash_init (void)
 
void splash_end (void)
 
void splash_msg (const char *msg, double pct)
 
void add_message_scroller (LiVESWidget *conter)
 
void resize_widgets_for_monitor (boolean get_play_times)
 
int lives_system (const char *com, boolean allow_error)
 
lives_pid_t lives_fork (const char *com)
 
int lives_open3 (const char *pathname, int flags, mode_t mode)
 
int lives_open2 (const char *pathname, int flags)
 
int lives_open_buffered_rdonly (const char *pathname)
 
int lives_creat_buffered (const char *pathname, int mode)
 
int lives_close_buffered (int fd)
 
void lives_close_all_file_buffers (void)
 
off_t lives_lseek_buffered_rdonly (int fd, off_t offset)
 
off_t lives_lseek_buffered_rdonly_absolute (int fd, off_t offset)
 
ssize_t lives_write (int fd, livesconstpointer buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_buffered (int fd, const char *buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_le (int fd, livesconstpointer buf, size_t count, boolean allow_fail)
 
ssize_t lives_write_le_buffered (int fd, livesconstpointer buf, size_t count, boolean allow_fail)
 
ssize_t file_buffer_flush (int fd)
 
ssize_t lives_read (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_buffered (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_le (int fd, void *buf, size_t count, boolean allow_less)
 
ssize_t lives_read_le_buffered (int fd, void *buf, size_t count, boolean allow_less)
 
int lives_chdir (const char *path, boolean allow_fail)
 
int lives_fputs (const char *s, FILE *stream)
 
char * lives_fgets (char *s, int size, FILE *stream)
 
pid_t lives_getpid (void)
 
int lives_getgid (void)
 
int lives_getuid (void)
 
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)
 
void lives_srandom (unsigned int seed)
 
ssize_t lives_readlink (const char *path, char *buf, size_t bufsiz)
 
boolean lives_setenv (const char *name, const char *value)
 
boolean lives_fsync (int fd)
 
void lives_sync (void)
 
int lives_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_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)
 
char * filename_from_fd (char *val, int fd)
 
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
 
int get_approx_ln (uint32_t val) GNU_CONST
 
int64_t lives_get_current_ticks (int64_t delta_seconds, int64_t delta_usec)
 
boolean lives_alarm_get (int alarm_handle)
 
int lives_alarm_set (int64_t ticks)
 
void lives_alarm_clear (int alarm_handle)
 
lives_storage_status_t get_storage_status (const char *dir, uint64_t warn_level, uint64_t *dsval)
 
char * lives_format_storage_space_string (uint64_t space)
 
char * lives_datetime (struct timeval *tv)
 
int myround (double n)
 
void get_dirname (char *filename)
 
char * get_dir (const char *filename)
 
void get_basename (char *filename)
 
void get_filename (char *filename, boolean strip_dir)
 
char * get_extension (const char *filename)
 
uint64_t get_version_hash (const char *exe, const char *sep, int piece)
 
uint64_t make_version_hash (const char *ver)
 
void d_print (const char *fmt,...)
 
void init_clipboard (void)
 
boolean cache_file_contents (const char *filename)
 
char * get_val_from_cached_list (const char *key, size_t maxlen)
 
void get_location (const char *exe, char *val, int maxlen)
 
char * make_image_file_name (lives_clip_t *clip, int frame, const char *img_ext)
 
const char * get_image_ext_for_type (lives_image_type_t imgtype)
 
lives_image_type_t lives_image_ext_to_type (const char *img_ext)
 
lives_image_type_t lives_image_type_to_image_type (const char *lives_img_type)
 
void set_menu_text (LiVESWidget *menu, const char *text, boolean use_mnemonic)
 
void get_menu_text (LiVESWidget *menu, char *text)
 
void get_menu_text_long (LiVESWidget *menuitem, char *text)
 
void reset_clipmenu (void)
 
double lives_ce_update_timeline (int frame, double x)
 pointer position in timeline 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 audio waveforms More...
 
void update_timer_bars (int posx, int posy, int width, int height, int which)
 draw the timer bars More...
 
void redraw_timer_bars (double oldx, double newx, int which)
 paint a damage region More...
 
void get_total_time (lives_clip_t *file)
 calculate laudio, raudio and video time (may be deprecated and replaced with macros) More...
 
uint32_t get_signed_endian (boolean is_signed, boolean little_endian)
 
void fullscreen_internal (void)
 
void switch_to_int_player (void)
 
void switch_to_mplayer (void)
 
void switch_aud_to_sox (boolean set_pref)
 
boolean switch_aud_to_jack (void)
 
boolean switch_aud_to_pulse (void)
 
void switch_aud_to_mplayer (boolean set_pref)
 
void switch_aud_to_mplayer2 (boolean set_pref)
 
boolean prepare_to_play_foreign (void)
 
boolean after_foreign_play (void)
 
boolean check_file (const char *file_name, boolean check_exists)
 check if file exists More...
 
boolean check_dir_access (const char *dir)
 
uint64_t get_file_size (int fd)
 
uint64_t sget_file_size (const char *name)
 
uint64_t get_fs_free (const char *dir)
 
boolean is_writeable_dir (const char *dir)
 
boolean ensure_isdir (char *fname)
 
char * ensure_extension (const char *fname, const char *ext) WARN_UNUSED
 
boolean check_dev_busy (char *devstr)
 
void activate_url_inner (const char *link)
 
void activate_url (LiVESAboutDialog *about, const char *link, livespointer data)
 
void show_manual_section (const char *lang, const char *section)
 
double calc_time_from_frame (int clip, int frame)
 
int calc_frame_from_time (int filenum, double time)
 nearest frame start More...
 
int calc_frame_from_time2 (int filenum, double time)
 nearest frame end More...
 
int calc_frame_from_time3 (int filenum, double time)
 nearest frame mid More...
 
boolean check_for_ratio_fps (double fps)
 
double get_ratio_fps (const char *string)
 
void calc_maxspect (int rwidth, int rheight, int *cwidth, int *cheight)
 
char * remove_trailing_zeroes (double val)
 
void remove_layout_files (LiVESList *lmap)
 
boolean add_lmap_error (lives_lmap_error_t lerror, const char *name, livespointer user_data, int clipno, int frameno, double atime, boolean affects_current)
 
void clear_lmap_errors (void)
 
boolean prompt_remove_layout_files (void)
 
boolean 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)
 
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)
 
void save_clip_value (int which, lives_clip_details_t, void *val)
 
boolean check_frame_count (int idx)
 
void count_opening_frames (void)
 
void get_frame_count (int idx)
 
void get_frames_sizes (int fileno, int frame_to_test)
 
int count_resampled_frames (int in_frames, double orig_fps, double resampled_fps)
 
boolean int_array_contains_value (int *array, int num_elems, int value)
 
boolean check_for_lock_file (const char *set_name, int type)
 
void lives_list_free_strings (LiVESList *)
 
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 draw_little_bars (double ptrtime, int which)
 
void set_sel_label (LiVESWidget *label)
 
void clear_mainw_msg (void)
 
int get_token_count (const char *string, int delim)
 
LiVESPixbuf * lives_pixbuf_new_blank (int width, int height, int palette)
 
char * lives_strappend (char *string, int len, const char *newbit)
 
LiVESList * lives_list_append_unique (LiVESList *xlist, const char *add)
 
void find_when_to_stop (void)
 
int calc_new_playback_position (int fileno, uint64_t otc, uint64_t *ntc)
 
void calc_aframeno (int fileno)
 
void minimise_aspect_delta (double allowed_aspect, int hblock, int vblock, int hsize, int vsize, int *width, int *height)
 
LiVESInterpType get_interp_value (short quality)
 
LiVESList * lives_list_move_to_first (LiVESList *list, LiVESList *item) WARN_UNUSED
 
LiVESList * lives_list_delete_string (LiVESList *, char *string) WARN_UNUSED
 
LiVESList * lives_list_copy_strings (LiVESList *list)
 
boolean string_lists_differ (LiVESList *, LiVESList *)
 
boolean is_realtime_aplayer (int ptype)
 
LiVESList * get_set_list (const char *dir, boolean utf8)
 
char * subst (const char *string, const char *from, const char *to)
 
char * insert_newlines (const char *text, int maxwidth)
 
int hextodec (char *string)
 
int get_hex_digit (const char *c)
 
uint32_t fastrand (void)
 
void fastsrand (uint32_t seed)
 
int lives_list_strcmp_index (LiVESList *list, livesconstpointer data)
 
lives_cancel_t check_for_bad_ffmpeg (void)
 
LiVESPixbuf * mt_framedraw (lives_mt *, LiVESPixbuf *)
 
livespointer _lives_malloc (size_t size) GNU_MALLOC
 
livespointer lives_memcpy (livespointer dest, livesconstpointer src, size_t n)
 
livespointer lives_memset (livespointer s, int c, size_t n)
 
void _lives_free (livespointer ptr)
 
livespointer lives_calloc (size_t n_blocks, size_t n_block_bytes)
 
livespointer _lives_realloc (livespointer ptr, size_t new_size)
 
boolean subtitles_init (lives_clip_t *sfile, char *fname, lives_subtitle_type_t)
 
void subtitles_free (lives_clip_t *sfile)
 
boolean get_srt_text (lives_clip_t *sfile, double xtime)
 
boolean get_sub_text (lives_clip_t *sfile, double xtime)
 
boolean save_sub_subtitles (lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
 
boolean save_srt_subtitles (lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
 
void break_me (void)
 

Variables

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

Macro Definition Documentation

◆ __PRI64_PREFIX

#define __PRI64_PREFIX   "ll"

◆ __STDC_FORMAT_MACROS

#define __STDC_FORMAT_MACROS

◆ __WORDSIZE

#define __WORDSIZE   32

◆ AFORM_BIG_ENDIAN

#define AFORM_BIG_ENDIAN   (1<<1)

◆ AFORM_LITTLE_ENDIAN

#define AFORM_LITTLE_ENDIAN   0

◆ AFORM_SIGNED

#define AFORM_SIGNED   0

◆ AFORM_UNKNOWN

#define AFORM_UNKNOWN   65536

◆ AFORM_UNSIGNED

#define AFORM_UNSIGNED   1

◆ ALLOW_MPV

#define ALLOW_MPV

◆ ALLOW_PNG24

#define ALLOW_PNG24

◆ CEIL

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

◆ cfile

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

◆ CLIP_AUDIO_TIME

#define CLIP_AUDIO_TIME (   clip)    ((double)(CLIP_LEFT_AUDIO_TIME(clip) >= CLIP_RIGHT_AUDIO_TIME(clip) ? CLIP_LEFT_AUDIO_TIME(clip) : CLIP_RIGHT_AUDIO_TIME(clip)))

◆ CLIP_HAS_AUDIO

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

◆ CLIP_HAS_VIDEO

#define CLIP_HAS_VIDEO (   clip)    (IS_VALID_CLIP(clip) && mainw->files[clip]->frames > 0)

◆ CLIP_LEFT_AUDIO_TIME

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

◆ CLIP_NAME_MAXLEN

#define CLIP_NAME_MAXLEN   256

◆ CLIP_RIGHT_AUDIO_TIME

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

◆ CLIP_TOTAL_TIME

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

◆ CLIP_VIDEO_TIME

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

◆ clipboard

#define clipboard   mainw->files[0]

◆ CURRENT_CLIP_HAS_AUDIO

#define CURRENT_CLIP_HAS_AUDIO   CLIP_HAS_AUDIO(mainw->current_file)

◆ CURRENT_CLIP_HAS_VIDEO

#define CURRENT_CLIP_HAS_VIDEO   CLIP_HAS_VIDEO(mainw->current_file)

◆ CURRENT_CLIP_IS_VALID

#define CURRENT_CLIP_IS_VALID   IS_VALID_CLIP(mainw->current_file)

◆ CURRENT_CLIP_TOTAL_TIME

#define CURRENT_CLIP_TOTAL_TIME   CLIP_TOTAL_TIME(mainw->current_file)

◆ DATA_DIR

#define DATA_DIR   "/share/lives/"

◆ 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

◆ DESKTOP_ICON_DIR

#define DESKTOP_ICON_DIR   "/share/icons/hicolor/48x48/apps"

◆ DLL_NAME

#define DLL_NAME   "so"

◆ DOC_DIR

#define DOC_DIR   "/share/doc/lives-"

◆ ENABLE_DVD_GRAB

#define ENABLE_DVD_GRAB

◆ FPS_MAX

#define FPS_MAX   200.

maximum fps we will allow (double)

◆ FX_FRAME_PUMP_VAL

#define FX_FRAME_PUMP_VAL   200

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

◆ GDK_WINDOWING_X11

#define GDK_WINDOWING_X11

◆ GNU_ALIGN

#define GNU_ALIGN (   x)

◆ GNU_CONST

#define GNU_CONST

◆ GNU_MALLOC

#define GNU_MALLOC

◆ GNU_PURE

#define GNU_PURE

◆ GUI_GTK

#define GUI_GTK

◆ ICON_DIR

#define ICON_DIR   "/share/lives/icons/"

◆ IMG_BUFF_SIZE

#define IMG_BUFF_SIZE   4096

chunk size for reading images

◆ IMG_TYPE_BEST

#define IMG_TYPE_BEST   IMG_TYPE_PNG

◆ IS_VALID_CLIP

#define IS_VALID_CLIP (   clip)    (clip >= 0 && mainw->files[clip] != NULL)

◆ LIVES_AUTHOR_EMAIL

#define LIVES_AUTHOR_EMAIL   "salsaman+lives@gmail.com"

◆ LIVES_BFILE_NAME

#define LIVES_BFILE_NAME   ".smogrify"

◆ LIVES_BUG_URL

#define LIVES_BUG_URL   PACKAGE_BUGREPORT

◆ LIVES_CLIP_HEADER_VERSION

#define LIVES_CLIP_HEADER_VERSION   100

◆ LIVES_CONFIG_DIR

#define LIVES_CONFIG_DIR   ".lives-dir/"

◆ LIVES_COPYRIGHT_YEARS

#define LIVES_COPYRIGHT_YEARS   "2002 - 2018"

◆ LIVES_DEBUG

#define LIVES_DEBUG (   x)    dummychar = x

◆ LIVES_DEVICE_DIR

#define LIVES_DEVICE_DIR   "/dev/"

◆ LIVES_DEVNULL

#define LIVES_DEVNULL   "/dev/null"

◆ LIVES_DIR_SEP

#define LIVES_DIR_SEP   "/"

◆ LIVES_DONATE_URL

#define LIVES_DONATE_URL   "https://sourceforge.net/p/lives/donate/"

◆ LIVES_ENC_DEBUG_FILE_NAME

#define LIVES_ENC_DEBUG_FILE_NAME   ".debug_out"

◆ LIVES_ERROR

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

◆ LIVES_FATAL

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

◆ LIVES_FEATURE_URL

#define LIVES_FEATURE_URL   "https://sourceforge.net/p/lives/feature-requests/"

◆ LIVES_GLOBAL_INLINE

#define LIVES_GLOBAL_INLINE   inline

◆ LIVES_INFO

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

◆ LIVES_INFO_FILE_NAME

#define LIVES_INFO_FILE_NAME   ".info"

◆ LIVES_INLINE

#define LIVES_INLINE   static inline

◆ LIVES_LOCAL_INLINE

#define LIVES_LOCAL_INLINE   LIVES_INLINE

◆ LIVES_MANUAL_FILENAME

#define LIVES_MANUAL_FILENAME   "LiVES_manual.html"

◆ LIVES_MANUAL_URL

#define LIVES_MANUAL_URL   LIVES_WEBSITE "/manual/"

◆ LIVES_NO_DEBUG

#define LIVES_NO_DEBUG

◆ LIVES_SMOGPLUGIN_FILE_NAME

#define LIVES_SMOGPLUGIN_FILE_NAME   ".smogplugin"

◆ LIVES_SMOGVAL_FILE_NAME

#define LIVES_SMOGVAL_FILE_NAME   ".smogval"

◆ LIVES_STATUS_FILE_NAME

#define LIVES_STATUS_FILE_NAME   ".status"

◆ LIVES_TRANSLATE_URL

#define LIVES_TRANSLATE_URL   "https://translations.launchpad.net/lives/trunk"

◆ LIVES_TV_CHANNEL1

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

◆ LIVES_WARN

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

◆ LIVES_WEBSITE

#define LIVES_WEBSITE   PACKAGE_URL

◆ LIVES_WORK_NAME

#define LIVES_WORK_NAME   "livesprojects"

◆ MAX_FILES

#define MAX_FILES   65535

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

◆ MAX_FRAME_HEIGHT

#define MAX_FRAME_HEIGHT   100000.

◆ MAX_FRAME_WIDTH

#define MAX_FRAME_WIDTH   100000.

◆ PAINTER_CAIRO

#define PAINTER_CAIRO

◆ PATH_MAX

#define PATH_MAX   4096

◆ PLUGIN_COMPOUND_DIR

#define PLUGIN_COMPOUND_DIR   "/share/lives/plugins/"

◆ PLUGIN_EXEC_DIR

#define PLUGIN_EXEC_DIR   "/lives/plugins/"

◆ PLUGIN_SCRIPTS_DIR

#define PLUGIN_SCRIPTS_DIR   "/share/lives/plugins/"

◆ PREFIX

#define PREFIX   PREFIX_DEFAULT

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

◆ 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

◆ PREFS_TIMEOUT

#define PREFS_TIMEOUT   10000000

10 seconds

◆ PRId64

#define PRId64   __PRI64_PREFIX "d"

◆ PRIu64

#define PRIu64   __PRI64_PREFIX "u"

◆ QUOTEME

#define QUOTEME (   x)    #x

◆ THEME_DIR

#define THEME_DIR   "/share/lives/themes/"

◆ ulong

#define ulong   unsigned long

◆ USE_GLIB

#define USE_GLIB

◆ 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)

◆ WARN_UNUSED

#define WARN_UNUSED

◆ WEED_LEAF_HOST_DECODER

#define WEED_LEAF_HOST_DECODER   "host_decoder"

◆ WEED_LEAF_HOST_DEINTERLACE

#define WEED_LEAF_HOST_DEINTERLACE   "host_deinterlace"

◆ WEED_LEAF_HOST_PTHREAD

#define WEED_LEAF_HOST_PTHREAD   "host_pthread"

◆ WEED_LEAF_HOST_TC

#define WEED_LEAF_HOST_TC   "host_tc"

Typedef Documentation

◆ fn_ptr

typedef void*(* fn_ptr) (void *ptr)

◆ lives_pgid_t

typedef int lives_pgid_t

◆ lives_pid_t

typedef pid_t lives_pid_t

◆ SignalHandlerPointer

typedef void(* SignalHandlerPointer) (int)

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_KEEP 

user pressed 'Keep'

CANCEL_AUD_END 

video playback completed

CANCEL_ERROR 

cancelled because of error

CANCEL_USER_PAUSED 

cancelled and paused

CANCEL_KEEP_LOOPING 

special cancel for TV toy

◆ lives_cancel_type_t

Enumerator
CANCEL_KILL 

normal - kill background processes working on current clip

CANCEL_SOFT 

just cancel in GUI (for keep, etc)

◆ 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 

◆ lives_clip_type_t

Enumerator
CLIP_TYPE_DISK 

imported video, broken into frames

CLIP_TYPE_YUV4MPEG 

yuv4mpeg stream

CLIP_TYPE_GENERATOR 

frames from generator plugin

CLIP_TYPE_FILE 

unimported video, not or partially broken in frames

CLIP_TYPE_LIVES2LIVES 

type for LiVES to LiVES streaming

CLIP_TYPE_VIDEODEV 

frames from video device

◆ lives_image_type_t

Enumerator
IMG_TYPE_UNKNOWN 
IMG_TYPE_JPEG 
IMG_TYPE_PNG 

◆ 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 

◆ lives_undo_t

need this for event_list_t *

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

resample/resize and resample audio for encoding

UNDO_RENDER 

resample/reorder/resize/apply effects

UNDO_FADE_AUDIO 
UNDO_REC_AUDIO 

record audio to selection

UNDO_INSERT_WITH_AUDIO 

◆ lives_whentostop_t

which stream end should cause playback to finish ?

Enumerator
NEVER_STOP 
STOP_ON_VID_END 
STOP_ON_AUD_END 

Function Documentation

◆ _lives_free()

void _lives_free ( livespointer  ptr)

◆ _lives_malloc()

livespointer _lives_malloc ( size_t  size)

◆ _lives_realloc()

livespointer _lives_realloc ( livespointer  ptr,
size_t  new_size 
)

◆ activate_url()

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

◆ activate_url_inner()

void activate_url_inner ( const char *  link)

◆ add_file_info()

boolean add_file_info ( const char *  check_handle,
boolean  aud_only 
)

◆ 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 
)

◆ add_message_scroller()

void add_message_scroller ( LiVESWidget *  conter)

◆ add_to_ascrap_mb()

void add_to_ascrap_mb ( uint64_t  bytes)

◆ add_to_recent()

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

◆ 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 
)

◆ after_foreign_play()

boolean after_foreign_play ( void  )

◆ ask_permission_dialog()

boolean ask_permission_dialog ( int  what)

◆ backup_file()

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

◆ block_expose()

void block_expose ( void  )

◆ break_me()

void break_me ( void  )

◆ cache_file_contents()

boolean cache_file_contents ( const char *  filename)

◆ calc_aframeno()

void calc_aframeno ( int  fileno)

◆ calc_frame_from_time()

int calc_frame_from_time ( int  filenum,
double  time 
)

nearest frame start

◆ calc_frame_from_time2()

int calc_frame_from_time2 ( int  filenum,
double  time 
)

nearest frame end

◆ calc_frame_from_time3()

int calc_frame_from_time3 ( int  filenum,
double  time 
)

nearest frame mid

nearest frame start, no maximum

◆ calc_maxspect()

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

◆ calc_new_playback_position()

int calc_new_playback_position ( int  fileno,
uint64_t  otc,
uint64_t *  ntc 
)

◆ calc_time_from_frame()

double calc_time_from_frame ( int  clip,
int  frame 
)

◆ catch_sigint()

void catch_sigint ( int  signum)

◆ check_backend_return()

boolean check_backend_return ( lives_clip_t sfile)

◆ check_dev_busy()

boolean check_dev_busy ( char *  devstr)

◆ check_dir_access()

boolean check_dir_access ( const char *  dir)

◆ check_file()

boolean check_file ( const char *  file_name,
boolean  check_exists 
)

check if file exists

◆ check_for_bad_ffmpeg()

lives_cancel_t check_for_bad_ffmpeg ( void  )

◆ check_for_disk_space()

boolean check_for_disk_space ( void  )

◆ check_for_lock_file()

boolean check_for_lock_file ( const char *  set_name,
int  type 
)

◆ check_for_ratio_fps()

boolean check_for_ratio_fps ( double  fps)

◆ check_for_recovery_files()

boolean check_for_recovery_files ( boolean  auto_recover)

◆ check_frame_count()

boolean check_frame_count ( int  idx)

◆ check_layer_ready()

void check_layer_ready ( weed_plant_t *  layer)

◆ check_storage_space()

boolean check_storage_space ( lives_clip_t sfile,
boolean  is_processing 
)

◆ clear_lmap_errors()

void clear_lmap_errors ( void  )

◆ 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 
)

◆ close_ascrap_file()

void close_ascrap_file ( void  )

◆ close_current_file()

void close_current_file ( int  file_to_switch_to)

close current file, and try to switch to file_to_switch_to

◆ close_scrap_file()

void close_scrap_file ( void  )

◆ count_opening_frames()

void count_opening_frames ( void  )

◆ count_resampled_frames()

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

◆ create_cfile()

void create_cfile ( void  )

◆ create_event_space()

boolean create_event_space ( int  length_in_eventsb)

◆ create_LiVES()

void create_LiVES ( void  )

◆ create_message_dialog()

LiVESWidget* create_message_dialog ( lives_dialog_t  diat,
const char *  text,
LiVESWindow *  transient,
int  warn_mask_number,
boolean  is_blocking 
)

◆ create_question_dialog()

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

◆ d_print()

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

◆ d_print_cancelled()

void d_print_cancelled ( void  )

◆ d_print_done()

void d_print_done ( void  )

◆ d_print_failed()

void d_print_failed ( void  )

◆ d_print_file_error_failed()

void d_print_file_error_failed ( void  )

◆ deduce_file()

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

◆ defer_sigint()

void defer_sigint ( int  signum)

◆ desensitize()

void desensitize ( void  )

◆ disable_record()

void disable_record ( void  )

◆ do_abort_cancel_retry_dialog()

int do_abort_cancel_retry_dialog ( const char *  text,
LiVESWindow *  transient 
)

◆ do_abort_check()

boolean do_abort_check ( void  )

◆ do_after_crash_warning()

void do_after_crash_warning ( void  )

◆ do_aud_during_play_error()

void do_aud_during_play_error ( void  )

◆ do_audio_import_error()

void do_audio_import_error ( void  )

◆ do_audrate_error_dialog()

void do_audrate_error_dialog ( void  )

◆ do_auto_dialog()

boolean do_auto_dialog ( const char *  text,
int  type 
)

◆ do_autolives_needs_clips_error()

void do_autolives_needs_clips_error ( void  )

◆ do_bad_layout_error()

void do_bad_layout_error ( void  )

◆ do_bad_theme_error()

void do_bad_theme_error ( const char *  themefile)

◆ do_bad_theme_import_error()

void do_bad_theme_import_error ( const char *  theme_file)

◆ do_blocking_error_dialog()

int do_blocking_error_dialog ( const char *  text)

◆ do_blocking_info_dialog()

int do_blocking_info_dialog ( const char *  text)

◆ do_card_in_use_error()

void do_card_in_use_error ( void  )

◆ do_cd_error_dialog()

void do_cd_error_dialog ( void  )

◆ do_chdir_failed_error()

void do_chdir_failed_error ( const char *  dir)

◆ do_clipboard_fps_warning()

boolean do_clipboard_fps_warning ( void  )

◆ do_comments_dialog()

boolean do_comments_dialog ( int  fileno,
char *  filename 
)

◆ do_decoder_palette_error()

void do_decoder_palette_error ( void  )

◆ do_dev_busy_error()

void do_dev_busy_error ( const char *  devstr)

◆ do_dir_perm_access_error()

void do_dir_perm_access_error ( const char *  dir_name)

◆ do_dir_perm_error()

void do_dir_perm_error ( const char *  dir_name)

◆ do_do_not_close_d()

void do_do_not_close_d ( void  )

◆ do_dvgrab_error()

void do_dvgrab_error ( void  )

◆ do_encoder_acodec_error()

void do_encoder_acodec_error ( void  )

◆ do_encoder_img_ftm_error()

void do_encoder_img_ftm_error ( render_details rdet)

◆ 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 
)

◆ do_encoder_sox_error()

void do_encoder_sox_error ( void  )

◆ do_erase_subs_warning()

boolean do_erase_subs_warning ( void  )

◆ do_error_dialog()

int do_error_dialog ( const char *  text)

◆ do_error_dialog_with_check()

int do_error_dialog_with_check ( const char *  text,
int  warn_mask_number 
)

◆ do_error_dialog_with_check_transient()

int do_error_dialog_with_check_transient ( const char *  text,
boolean  is_blocking,
int  warn_mask_number,
LiVESWindow *  transient 
)

◆ do_event_list_warning()

boolean do_event_list_warning ( void  )

◆ do_existing_subs_warning()

boolean do_existing_subs_warning ( void  )

◆ do_file_perm_error()

void do_file_perm_error ( const char *  file_name)

◆ do_firstever_dialog()

void do_firstever_dialog ( void  )

◆ do_header_missing_detail_error()

int do_header_missing_detail_error ( int  clip,
lives_clip_details_t  detail 
)

◆ do_header_read_error_with_retry()

int do_header_read_error_with_retry ( int  clip)

◆ do_header_write_error()

boolean do_header_write_error ( int  clip)

◆ do_info_dialog()

int do_info_dialog ( const char *  text)

◆ do_info_dialog_with_transient()

int do_info_dialog_with_transient ( const char *  text,
boolean  is_blocking,
LiVESWindow *  transient 
)

◆ do_invalid_subs_error()

void do_invalid_subs_error ( void  )

◆ do_jack_lost_conn_error()

void do_jack_lost_conn_error ( void  )

◆ do_jack_noopen_warn()

void do_jack_noopen_warn ( void  )

◆ 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  )

◆ do_layout_alter_frames_warning()

boolean do_layout_alter_frames_warning ( void  )

◆ do_layout_ascrap_file_error()

void do_layout_ascrap_file_error ( void  )

◆ do_layout_scrap_file_error()

void do_layout_scrap_file_error ( void  )

◆ do_lb_composite_error()

void do_lb_composite_error ( void  )

◆ do_lb_convert_error()

void do_lb_convert_error ( void  )

◆ do_locked_in_vdevs_error()

void do_locked_in_vdevs_error ( void  )

◆ do_memory_error_dialog()

void do_memory_error_dialog ( void  )

◆ do_messages_window()

void do_messages_window ( void  )

◆ do_move_workdir_dialog()

boolean do_move_workdir_dialog ( void  )

◆ do_mt_audchan_error()

void do_mt_audchan_error ( int  warn_mask)

◆ do_mt_backup_space_error()

void do_mt_backup_space_error ( lives_mt *  ,
int  memreq_mb 
)

◆ do_mt_no_audchan_error()

void do_mt_no_audchan_error ( void  )

◆ do_mt_no_jack_error()

void do_mt_no_jack_error ( int  warn_mask)

◆ do_mt_rect_prompt()

boolean do_mt_rect_prompt ( void  )

◆ do_mt_set_mem_error()

void do_mt_set_mem_error ( boolean  has_mt,
boolean  trans 
)

◆ do_mt_undo_buf_error()

void do_mt_undo_buf_error ( void  )

◆ do_mt_undo_mem_error()

void do_mt_undo_mem_error ( void  )

◆ do_need_mplayer_dialog()

void do_need_mplayer_dialog ( void  )

◆ do_need_mplayer_mpv_dialog()

void do_need_mplayer_mpv_dialog ( void  )

◆ do_no_autolives_error()

void do_no_autolives_error ( void  )

◆ do_no_decoder_error()

void do_no_decoder_error ( const char *  fname)

◆ do_no_in_vdevs_error()

void do_no_in_vdevs_error ( void  )

◆ do_no_mplayer_sox_error()

void do_no_mplayer_sox_error ( void  )

◆ do_nojack_rec_error()

void do_nojack_rec_error ( void  )

◆ do_original_lost_warning()

boolean do_original_lost_warning ( const char *  fname)

◆ 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  )

◆ do_quick_switch()

void do_quick_switch ( int  new_file)

◆ do_ra_convert_error()

void do_ra_convert_error ( void  )

◆ do_read_failed_error_s()

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

◆ do_read_failed_error_s_with_retry()

int do_read_failed_error_s_with_retry ( const char *  fname,
const char *  errtext,
LiVESWindow *  transient 
)

◆ do_rendered_fx_dialog()

void do_rendered_fx_dialog ( void  )

◆ do_rmem_max_error()

void do_rmem_max_error ( int  size)

◆ do_set_duplicate_warning()

boolean do_set_duplicate_warning ( const char *  new_set)

◆ do_set_load_lmap_error()

void do_set_load_lmap_error ( void  )

◆ do_set_locked_warning()

void do_set_locked_warning ( const char *  setname)

◆ do_set_noclips_error()

void do_set_noclips_error ( const char *  setname)

◆ do_set_rename_old_layouts_warning()

boolean do_set_rename_old_layouts_warning ( const char *  new_set)

◆ do_splash_progress()

void do_splash_progress ( void  )

◆ do_start_messages()

void do_start_messages ( void  )

◆ do_std_checks()

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

◆ do_sub_type_warning()

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

◆ do_system_failed_error()

void do_system_failed_error ( const char *  com,
int  retval,
const char *  addinfo 
)

◆ 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)

◆ do_threaded_dialog()

void do_threaded_dialog ( char *  translated_text,
boolean  has_cancel 
)

◆ do_upgrade_error_dialog()

void do_upgrade_error_dialog ( void  )

◆ do_vpp_fps_error()

void do_vpp_fps_error ( void  )

◆ do_vpp_palette_error()

void do_vpp_palette_error ( void  )

◆ do_warning_dialog()

boolean do_warning_dialog ( const char *  text)

◆ do_warning_dialog_with_check()

boolean do_warning_dialog_with_check ( const char *  text,
int  warn_mask_number 
)

◆ do_warning_dialog_with_check_transient()

boolean do_warning_dialog_with_check_transient ( const char *  text,
int  warn_mask_number,
LiVESWindow *  transient 
)

◆ do_write_failed_error_s()

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

◆ do_write_failed_error_s_with_retry()

int do_write_failed_error_s_with_retry ( const char *  fname,
const char *  errtext,
LiVESWindow *  transient 
)

◆ do_yesno_dialog()

boolean do_yesno_dialog ( const char *  text)

◆ do_yesno_dialog_with_check()

boolean do_yesno_dialog_with_check ( const char *  text,
int  warn_mask_number 
)

◆ do_yesno_dialog_with_check_transient()

boolean do_yesno_dialog_with_check_transient ( const char *  text,
int  warn_mask_number,
LiVESWindow *  transient 
)

◆ do_yuv4m_open_warning()

boolean do_yuv4m_open_warning ( void  )

◆ draw_little_bars()

void draw_little_bars ( double  ptrtime,
int  which 
)

◆ ds_critical_msg()

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

warn about disk space

< crit level

< current level

◆ ds_warning_msg()

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

< warn level

< current level

< next warn level

◆ enable_record()

void enable_record ( void  )

◆ end_threaded_dialog()

void end_threaded_dialog ( void  )

◆ ensure_extension()

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

◆ ensure_isdir()

boolean ensure_isdir ( char *  fname)

◆ fade_background()

void fade_background ( void  )

◆ fastrand()

uint32_t fastrand ( void  )

◆ fastsrand()

void fastsrand ( uint32_t  seed)

◆ file_buffer_flush()

ssize_t file_buffer_flush ( int  fd)

◆ filename_from_fd()

char* filename_from_fd ( char *  val,
int  fd 
)

◆ find_when_to_stop()

void find_when_to_stop ( void  )

◆ frame_size_update()

void frame_size_update ( void  )

◆ free_track_decoders()

void free_track_decoders ( void  )

◆ fullscreen_internal()

void fullscreen_internal ( void  )

◆ get_approx_ln()

int get_approx_ln ( uint32_t  val)

◆ get_basename()

void get_basename ( char *  filename)

◆ get_capabilities()

capability* get_capabilities ( void  )

◆ get_clip_value()

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

◆ get_deinterlace_string()

const char* get_deinterlace_string ( void  )

◆ get_dir()

char* get_dir ( const char *  filename)

◆ get_dirname()

void get_dirname ( char *  filename)

◆ get_extension()

char* get_extension ( const char *  filename)

◆ get_file_size()

uint64_t get_file_size ( int  fd)

◆ get_filename()

void get_filename ( char *  filename,
boolean  strip_dir 
)

◆ get_frame_count()

void get_frame_count ( int  idx)

◆ get_frames_sizes()

void get_frames_sizes ( int  fileno,
int  frame_to_test 
)

◆ get_fs_free()

uint64_t get_fs_free ( const char *  dir)

◆ get_handle_from_info_file()

boolean get_handle_from_info_file ( int  index)

◆ get_hex_digit()

int get_hex_digit ( const char *  c)

◆ get_image_ext_for_type()

const char* get_image_ext_for_type ( lives_image_type_t  imgtype)

◆ get_interp_value()

LiVESInterpType get_interp_value ( short  quality)

◆ get_location()

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

◆ get_menu_name()

char* get_menu_name ( lives_clip_t sfile)

◆ get_menu_text()

void get_menu_text ( LiVESWidget *  menu,
char *  text 
)

◆ get_menu_text_long()

void get_menu_text_long ( LiVESWidget *  menuitem,
char *  text 
)

◆ get_monitors()

void get_monitors ( void  )

◆ get_new_handle()

boolean get_new_handle ( int  index,
const char *  name 
)

◆ get_new_install_msg()

char* get_new_install_msg ( void  )

◆ get_next_free_file()

void get_next_free_file ( void  )

◆ get_play_times()

void get_play_times ( void  )

recalculate video / audio lengths and draw the timer bars

◆ get_ratio_fps()

double get_ratio_fps ( const char *  string)

◆ get_set_list()

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

◆ get_signed_endian()

uint32_t get_signed_endian ( boolean  is_signed,
boolean  little_endian 
)

◆ get_srt_text()

boolean get_srt_text ( lives_clip_t sfile,
double  xtime 
)

◆ get_storage_status()

lives_storage_status_t get_storage_status ( const char *  dir,
uint64_t  warn_level,
uint64_t *  dsval 
)

◆ get_sub_text()

boolean get_sub_text ( lives_clip_t sfile,
double  xtime 
)

◆ get_temp_handle()

boolean get_temp_handle ( int  index,
boolean  create 
)

◆ get_token_count()

int 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)

◆ get_transient_full()

LiVESWindow* get_transient_full ( )

◆ get_untitled_name()

char* get_untitled_name ( int  number)

◆ get_upd_msg()

char* get_upd_msg ( int  type)

◆ get_val_from_cached_list()

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

◆ 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

◆ handle_backend_errors()

void handle_backend_errors ( void  )

◆ hextodec()

int hextodec ( char *  string)

◆ init_clipboard()

void init_clipboard ( void  )

◆ init_track_decoders()

void init_track_decoders ( void  )

◆ insert_newlines()

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

< we will insert a nl here

◆ int_array_contains_value()

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

◆ is_legal_set_name()

boolean is_legal_set_name ( const char *  set_name,
boolean  allow_dupes 
)

◆ is_realtime_aplayer()

boolean is_realtime_aplayer ( int  ptype)

◆ is_writeable_dir()

boolean is_writeable_dir ( const char *  dir)

◆ LEFloat_to_BEFloat()

float LEFloat_to_BEFloat ( float  f)

◆ lives_10pow()

uint64_t lives_10pow ( int  pow)

◆ lives_alarm_clear()

void lives_alarm_clear ( int  alarm_handle)

◆ lives_alarm_get()

boolean lives_alarm_get ( int  alarm_handle)

◆ lives_alarm_set()

int lives_alarm_set ( int64_t  ticks)

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

◆ lives_calloc()

livespointer lives_calloc ( size_t  n_blocks,
size_t  n_block_bytes 
)

◆ lives_cat()

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

◆ lives_ce_update_timeline()

double lives_ce_update_timeline ( int  frame,
double  x 
)

pointer position in timeline

◆ lives_chdir()

int lives_chdir ( const char *  path,
boolean  allow_fail 
)

◆ lives_chmod()

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

◆ lives_close_all_file_buffers()

void lives_close_all_file_buffers ( void  )

◆ 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 
)

◆ lives_creat_buffered()

int lives_creat_buffered ( const char *  pathname,
int  mode 
)

◆ lives_datetime()

char* lives_datetime ( struct timeval *  tv)

◆ lives_echo()

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

◆ lives_fgets()

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

◆ lives_fix()

double lives_fix ( double  val,
int  decimals 
)

◆ lives_fork()

lives_pid_t lives_fork ( const char *  com)

◆ lives_format_storage_space_string()

char* lives_format_storage_space_string ( uint64_t  space)

◆ lives_fputs()

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

◆ lives_freep()

boolean lives_freep ( void **  ptr)

◆ lives_fsync()

boolean lives_fsync ( int  fd)

◆ lives_get_current_ticks()

int64_t lives_get_current_ticks ( int64_t  origsecs,
int64_t  origusecs 
)

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

◆ lives_getgid()

int lives_getgid ( void  )

◆ lives_getpid()

pid_t lives_getpid ( void  )

◆ lives_getuid()

int lives_getuid ( void  )

◆ lives_image_ext_to_type()

lives_image_type_t lives_image_ext_to_type ( const char *  img_ext)

◆ lives_image_type_to_image_type()

lives_image_type_t lives_image_type_to_image_type ( const char *  lives_img_type)

◆ lives_kill()

int lives_kill ( lives_pid_t  pid,
int  sig 
)

◆ lives_kill_subprocesses()

void lives_kill_subprocesses ( const char *  dirname,
boolean  kill_parent 
)

◆ lives_killpg()

int lives_killpg ( lives_pgid_t  pgrp,
int  sig 
)

◆ 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)

◆ lives_list_delete_string()

LiVESList* lives_list_delete_string ( LiVESList *  ,
char *  string 
)

◆ lives_list_free_all()

void lives_list_free_all ( LiVESList **  )

◆ lives_list_free_strings()

void lives_list_free_strings ( LiVESList *  )

◆ lives_list_move_to_first()

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

◆ lives_list_strcmp_index()

int lives_list_strcmp_index ( LiVESList *  list,
livesconstpointer  data 
)

◆ lives_ln()

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

◆ lives_lseek_buffered_rdonly()

off_t lives_lseek_buffered_rdonly ( int  fd,
off_t  offset 
)

◆ lives_lseek_buffered_rdonly_absolute()

off_t lives_lseek_buffered_rdonly_absolute ( int  fd,
off_t  offset 
)

◆ lives_memcpy()

livespointer lives_memcpy ( livespointer  dest,
livesconstpointer  src,
size_t  n 
)

◆ lives_memset()

livespointer lives_memset ( livespointer  s,
int  c,
size_t  n 
)

◆ lives_mv()

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

◆ lives_open2()

int lives_open2 ( const char *  pathname,
int  flags 
)

◆ lives_open3()

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

◆ lives_open_buffered_rdonly()

int lives_open_buffered_rdonly ( const char *  pathname)

◆ lives_pixbuf_new_blank()

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

◆ lives_pixbuf_save()

LiVESError* lives_pixbuf_save ( LiVESPixbuf *  pixbuf,
char *  fname,
lives_image_type_t  imgtype,
int  quality,
boolean  do_chmod,
LiVESError **  gerrorptr 
)

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

◆ lives_random()

uint64_t lives_random ( void  )

◆ lives_read()

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

◆ lives_read_buffered()

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

◆ lives_read_le()

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

◆ lives_read_le_buffered()

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

◆ lives_readlink()

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

◆ 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)

◆ lives_rmglob()

int lives_rmglob ( const char *  files)

◆ lives_setenv()

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

◆ lives_slist_free_all()

void lives_slist_free_all ( LiVESSList **  )

◆ lives_srandom()

void lives_srandom ( unsigned int  seed)

◆ lives_strappend()

char* lives_strappend ( char *  string,
int  len,
const char *  newbit 
)

◆ lives_suspend_resume_process()

void lives_suspend_resume_process ( const char *  dirname,
boolean  suspend 
)

◆ lives_sync()

void lives_sync ( void  )

◆ lives_system()

int lives_system ( const char *  com,
boolean  allow_error 
)

◆ lives_touch()

int lives_touch ( const char *  tfile)

◆ lives_utf8_strcasecmp()

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

◆ lives_write()

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

◆ lives_write_buffered()

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

◆ lives_write_le()

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

◆ lives_write_le_buffered()

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

◆ load_end_image()

void load_end_image ( int  frame)

◆ load_frame_image()

void load_frame_image ( int  frame)

◆ load_from_scrap_file()

boolean load_from_scrap_file ( weed_plant_t *  layer,
int  frame 
)

◆ 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  )

◆ make_custom_submenus()

void make_custom_submenus ( void  )

◆ make_image_file_name()

char* make_image_file_name ( lives_clip_t clip,
int  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

◆ minimise_aspect_delta()

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

◆ mt_framedraw()

LiVESPixbuf* mt_framedraw ( lives_mt *  ,
LiVESPixbuf *   
)

◆ myround()

int myround ( double  n)

◆ open_ascrap_file()

boolean open_ascrap_file ( void  )

◆ open_file()

ulong open_file ( const char *  filename)

◆ open_file_sel()

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

◆ open_fw_device()

void open_fw_device ( void  )

◆ open_scrap_file()

boolean open_scrap_file ( void  )

◆ open_set_file()

void open_set_file ( const char *  set_name,
int  clipnum 
)

◆ perf_mem_warning()

void perf_mem_warning ( void  )

◆ play_file()

void play_file ( void  )

◆ prepare_to_play_foreign()

boolean prepare_to_play_foreign ( void  )

◆ process_one()

boolean process_one ( boolean  visible)

◆ procw_desensitize()

void procw_desensitize ( void  )

◆ prompt_remove_layout_files()

boolean prompt_remove_layout_files ( void  )

◆ pull_frame()

boolean pull_frame ( weed_plant_t *  layer,
const char *  image_ext,
weed_timecode_t  tc 
)

◆ pull_frame_at_size()

boolean pull_frame_at_size ( weed_plant_t *  layer,
const char *  image_ext,
weed_timecode_t  tc,
int  width,
int  height,
int  target_palette 
)

◆ pull_frame_threaded()

void pull_frame_threaded ( weed_plant_t *  layer,
const char *  img_ext,
weed_timecode_t  tc 
)

◆ pull_lives_pixbuf()

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

◆ pull_lives_pixbuf_at_size()

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

◆ pump_io_chan()

void pump_io_chan ( LiVESIOChannel *  iochan)

◆ 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 
)

◆ read_file_details()

boolean read_file_details ( const char *  file_name,
boolean  only_check_for_audio 
)

◆ read_headers()

boolean read_headers ( const char *  file_name)

◆ recover_layout_map()

void recover_layout_map ( int  numclips)

◆ redraw_timer_bars()

void redraw_timer_bars ( double  oldx,
double  newx,
int  which 
)

paint a damage region

◆ reget_afilesize()

void reget_afilesize ( int  fileno)

◆ reload_clip()

boolean reload_clip ( int  fileno,
int  maxframe 
)

◆ remove_layout_files()

void remove_layout_files ( LiVESList *  lmap)

◆ remove_trailing_zeroes()

char* remove_trailing_zeroes ( double  val)

◆ repl_workdir()

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

◆ reset_clipmenu()

void reset_clipmenu ( void  )

◆ resize()

void resize ( double  scale)

◆ resize_widgets_for_monitor()

void resize_widgets_for_monitor ( boolean  get_play_times)

◆ response_ok()

void response_ok ( LiVESButton *  button,
livespointer  user_data 
)

◆ restore_file()

ulong restore_file ( const char *  filename)

◆ rewrite_recovery_file()

void rewrite_recovery_file ( void  )

◆ save_clip_value()

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

◆ save_clip_values()

boolean save_clip_values ( int  which_file)

◆ save_event_frames()

int save_event_frames ( void  )

◆ save_file()

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

◆ save_file_comments()

boolean save_file_comments ( int  fileno)

◆ save_frame()

void save_frame ( LiVESMenuItem *  menuitem,
livespointer  user_data 
)

◆ save_frame_inner()

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

◆ save_srt_subtitles()

boolean save_srt_subtitles ( lives_clip_t sfile,
double  start_time,
double  end_time,
double  offset_time,
const char *  filename 
)

◆ save_sub_subtitles()

boolean save_sub_subtitles ( lives_clip_t sfile,
double  start_time,
double  end_time,
double  offset_time,
const char *  filename 
)

◆ save_to_scrap_file()

int save_to_scrap_file ( weed_plant_t *  layer)

◆ sensitize()

void sensitize ( void  )

◆ set_ce_frame_from_pixbuf()

void set_ce_frame_from_pixbuf ( LiVESImage *  image,
LiVESPixbuf *  pixbuf,
lives_painter_t *   
)

◆ set_colours()

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

◆ set_interactive()

void set_interactive ( boolean  interactive)

◆ set_main_title()

void set_main_title ( const char *  filename,
int  or_untitled_number 
)

◆ set_menu_text()

void set_menu_text ( LiVESWidget *  menu,
const char *  text,
boolean  use_mnemonic 
)

◆ set_palette_colours()

boolean set_palette_colours ( boolean  force_reload)

◆ set_preview_box_colours()

void set_preview_box_colours ( void  )

◆ set_record()

void set_record ( void  )

◆ set_redoable()

void set_redoable ( const char *  what,
boolean  sensitive 
)

◆ set_sel_label()

void set_sel_label ( LiVESWidget *  label)

◆ set_signal_handlers()

void set_signal_handlers ( SignalHandlerPointer  sigfunc)

◆ set_undoable()

void set_undoable ( const char *  what,
boolean  sensitive 
)

◆ sget_file_size()

uint64_t sget_file_size ( const char *  name)

◆ show_lives()

void show_lives ( void  )

◆ show_manual_section()

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

◆ splash_end()

void splash_end ( void  )

◆ splash_init()

void splash_init ( void  )

◆ splash_msg()

void splash_msg ( const char *  msg,
double  pct 
)

◆ startup_message_choice()

boolean startup_message_choice ( const char *  msg,
int  msgtype 
)

◆ startup_message_fatal()

boolean startup_message_fatal ( const char *  msg)

◆ startup_message_info()

boolean startup_message_info ( const char *  msg)

◆ startup_message_nonfatal()

boolean startup_message_nonfatal ( const char *  msg)

◆ startup_message_nonfatal_dismissable()

boolean startup_message_nonfatal_dismissable ( const char *  msg,
int  warning_mask 
)

◆ string_lists_differ()

boolean string_lists_differ ( LiVESList *  ,
LiVESList *   
)

◆ subst()

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

◆ subtitles_free()

void subtitles_free ( lives_clip_t sfile)

◆ subtitles_init()

boolean subtitles_init ( lives_clip_t sfile,
char *  fname,
lives_subtitle_type_t   
)

◆ switch_aud_to_jack()

boolean switch_aud_to_jack ( void  )

◆ switch_aud_to_mplayer()

void switch_aud_to_mplayer ( boolean  set_pref)

◆ switch_aud_to_mplayer2()

void switch_aud_to_mplayer2 ( boolean  set_pref)

◆ switch_aud_to_pulse()

boolean switch_aud_to_pulse ( void  )

◆ switch_aud_to_sox()

void switch_aud_to_sox ( boolean  set_pref)

◆ switch_audio_clip()

void switch_audio_clip ( int  new_file,
boolean  activate 
)

◆ switch_to_file()

void switch_to_file ( int  old_file,
int  new_file 
)

◆ switch_to_int_player()

void switch_to_int_player ( void  )

◆ switch_to_mplayer()

void switch_to_mplayer ( void  )

◆ threaded_dialog_spin()

void threaded_dialog_spin ( double  fraction)

◆ toggle_record()

void toggle_record ( void  )

◆ too_many_files()

void too_many_files ( void  )

◆ unblock_expose()

void unblock_expose ( void  )

◆ unfade_background()

void unfade_background ( void  )

◆ update_play_times()

void update_play_times ( void  )

like get_play_times, but will force redraw audio waveforms

◆ update_timer_bars()

void update_timer_bars ( int  posx,
int  posy,
int  width,
int  height,
int  which 
)

draw the timer bars

◆ verhash()

int verhash ( char *  version)

◆ wait_for_bg_audio_sync()

void wait_for_bg_audio_sync ( int  fileno)

◆ wait_for_stop()

void wait_for_stop ( const char *  stop_command)

◆ workdir_warning()

void workdir_warning ( void  )

◆ write_headers()

boolean write_headers ( lives_clip_t file)

◆ zero_spinbuttons()

void zero_spinbuttons ( void  )

Variable Documentation

◆ capable

capability* capable

some shared structures

◆ dummychar

char* dummychar

◆ mainw

mainwindow* mainw

◆ sizdbl

ssize_t sizdbl

◆ sizint

ssize_t sizint

type sizes

◆ sizshrt

ssize_t sizshrt

◆ tv

struct timeval tv