LiVES
3.2.0
|
#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) |
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_t * | clip_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_t * | create_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) |
capability * | get_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_t * | find_in_file_buffers (int fd) |
lives_file_buffer_t * | find_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_t * | get_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 |
capability * | capable |
boolean | weed_threadsafe |
int | weed_abi_version |
mainwindow * | mainw |
struct timeval | tv |
ssize_t | sizint |
type sizes More... | |
ssize_t | sizdbl |
ssize_t | sizshrt |
const char * | dummychar |
#define ABS_THRESH | ( | a, | |
b | |||
) | (((a) + (b)) >> 31) | (((b) - (a)) >> 31) |
#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 AV_TRACK_MIN_DIFF 0.001 |
#define BACKEND_NAME EXEC_SMOGRIFY |
#define BUFFER_FILL_BYTES_SMALL 64 |
#define CEIL | ( | a, | |
b | |||
) | ((int)(((double)(a) + (double)(b) - .000000001) / ((double)(b))) * (b)) |
#define CLIP_AUDIO_TIME | ( | clip | ) |
#define CLIP_HAS_AUDIO | ( | clip | ) | (IS_VALID_CLIP(clip) ? (mainw->files[clip]->achans > 0 && mainw->files[clip]->asampsize > 0) : FALSE) |
#define CLIP_HAS_VIDEO | ( | clip | ) | (IS_VALID_CLIP(clip) ? mainw->files[clip]->frames > 0 : FALSE) |
#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_TOTAL_TIME | ( | clip | ) |
#define CLIP_VIDEO_TIME | ( | clip | ) | ((double)(IS_VALID_CLIP(clip) ? mainw->files[clip]->video_time : 0.)) |
#define clipboard mainw->files[CLIPBOARD_FILE] |
#define CURRENT_CLIP_HAS_AUDIO CLIP_HAS_AUDIO(mainw->current_file) |
#define CURRENT_CLIP_HAS_VIDEO CLIP_HAS_VIDEO(mainw->current_file) |
#define CURRENT_CLIP_IS_NORMAL IS_NORMAL_CLIP(mainw->current_file) |
#define CURRENT_CLIP_IS_TEMP IS_TEMP_CLIP(mainw->current_file) |
#define CURRENT_CLIP_IS_VALID IS_VALID_CLIP(mainw->current_file) |
#define CURRENT_CLIP_TOTAL_TIME CLIP_TOTAL_TIME(mainw->current_file) |
#define DEF_FILE_PERMS (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) |
#define FLOOR | ( | a, | |
b | |||
) | ((int)(((double)(a) - .000000001) / ((double)(b))) * (b)) |
#define IMG_BUFF_SIZE 262144 |
#define IMG_TYPE_BEST IMG_TYPE_PNG |
#define INT_CLAMP | ( | i, | |
min, | |||
max | |||
) | ((i) < (min) ? (min) : (i) > (max) ? (max) : (i)) |
#define is_layer_ready | ( | layer | ) |
#define IS_NORMAL_CLIP | ( | clip | ) |
#define IS_TEMP_CLIP | ( | clip | ) | (IS_VALID_CLIP(clip) && mainw->files[clip]->clip_type == CLIP_TYPE_TEMP) |
#define LIVES_CRITICAL | ( | x | ) | {fprintf(stderr, "LiVES CRITICAL: %s\n", x); break_me(x); raise (LIVES_SIGSEGV);} |
#define LIVES_DIRECTION_FWD_OR_REV | ( | dir | ) | ((dir) == LIVES_DIRECTION_BACKWARD ? LIVES_DIRECTION_REVERSE : (dir)) |
#define LIVES_DIRECTION_OPPOSITE | ( | dir1, | |
dir2 | |||
) |
#define LIVES_DIRECTION_PAR | ( | dir | ) | ((lives_direction_t)((dir) & 1)) |
#define LIVES_DIRECTION_SIG | ( | dir | ) | ((lives_direction_t)sig(dir)) |
#define LIVES_ERROR | ( | x | ) | {fprintf(stderr, "LiVES ERROR: %s\n", x); break_me(x);} |
#define LIVES_FATAL | ( | x | ) |
#define LIVES_INFO | ( | x | ) | fprintf(stderr, "LiVES info: %s\n", x) |
#define LIVES_IS_RENDERING |
#define LIVES_LOCAL_INLINE LIVES_INLINE |
#define LIVES_TV_CHANNEL1 "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm" |
#define LIVES_WARN | ( | x | ) | fprintf(stderr, "LiVES warning: %s\n", x) |
#define MAX_FILES 65535 |
#define myround | ( | n | ) | ((n) >= 0. ? (int)((n) + 0.5) : (int)((n) - 0.5)) |
#define PREFIX PREFIX_DEFAULT |
#define PREFIX_DEFAULT "/usr" |
#define SIGNED_DIVIDE | ( | a, | |
b | |||
) | ((a) < 0. ? -fabs((a) / (b)) : fabs((a) / (b))) |
#define strip_ext | ( | fname | ) |
#define UTIL_CLAMP | ( | a, | |
b | |||
) | (NORMAL_CLAMP((a), (b)) <= 0 ? ROUND_I((b)) : ROUND_I((a))) |
#define WARN_FILE_SIZE 500 |
typedef int64_t frames64_t |
typedef lives_presence_t lives_checkstatus_t |
typedef int lives_pgid_t |
typedef pid_t lives_pid_t |
enum lives_cancel_t |
cancel reason
enum lives_cancel_type_t |
enum lives_clip_details_t |
enum lives_clip_type_t |
enum lives_direction_t |
enum lives_img_type_t |
enum lives_interlace_t |
enum lives_presence_t |
enum lives_undo_t |
enum lives_whentostop_t |
void activate_url | ( | LiVESAboutDialog * | about, |
const char * | link, | ||
livespointer | data | ||
) |
Definition at line 4624 of file utils.c.
Referenced by on_about_activate().
void activate_url_inner | ( | const char * | link | ) |
Definition at line 4607 of file utils.c.
Referenced by activate_url(), donate_activate(), email_author_activate(), help_translate_activate(), report_bug_activate(), show_manual_section(), and suggest_feature_activate().
Definition at line 3870 of file saveplay.c.
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().
int add_messages_to_list | ( | const char * | text | ) |
void add_to_ascrap_mb | ( | uint64_t | bytes | ) |
Definition at line 5225 of file saveplay.c.
void add_to_recent | ( | const char * | filename, |
double | start, | ||
int | frames, | ||
const char * | file_open_params | ||
) |
void add_to_recovery_file | ( | const char * | handle | ) |
Definition at line 6460 of file saveplay.c.
Referenced by after_foreign_play(), do_effect(), on_paste_as_new_activate(), on_render_activate(), on_toy_activate(), open_ascrap_file(), open_scrap_file(), and render_to_clip().
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().
boolean after_foreign_play | ( | void | ) |
Definition at line 4193 of file utils.c.
Referenced by on_capture_activate().
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().
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().
boolean ask_permission_dialog_complex | ( | int | what, |
char ** | argv, | ||
int | argc, | ||
int | offs, | ||
const char * | sudocom | ||
) |
void backup_file | ( | int | clip, |
int | start, | ||
int | end, | ||
const char * | filename | ||
) |
Definition at line 4264 of file saveplay.c.
void block_expose | ( | void | ) |
void break_me | ( | const char * | dtl | ) |
Definition at line 159 of file main.c.
Referenced by _weed_instance_unref(), get_temp_handle(), lives_alarm_check(), lives_alarm_reset(), lives_monitor_malloc(), lives_widget_object_ref(), lives_widget_object_unref(), lives_widget_set_sensitive(), and weed_layer_get_gamma().
void buffer_lmap_error | ( | lives_lmap_error_t | lerror, |
const char * | name, | ||
livespointer | user_data, | ||
int | clipno, | ||
int | frameno, | ||
double | atime, | ||
boolean | affects_current | ||
) |
LiVESList* cache_file_contents | ( | const char * | filename | ) |
Definition at line 4909 of file utils.c.
Referenced by reload_clip().
void cached_list_free | ( | LiVESList ** | list | ) |
Definition at line 4881 of file utils.c.
Referenced by reload_clip(), and reload_set().
void calc_aframeno | ( | int | fileno | ) |
Definition at line 1845 of file utils.c.
Referenced by calc_new_playback_position().
int calc_frame_from_time | ( | int | filenum, |
double | time | ||
) |
nearest frame [1, frames]
Definition at line 1759 of file utils.c.
Referenced by all_expose_overlay(), do_quick_switch(), on_hrule_reset(), on_hrule_set(), on_hrule_update(), on_mouse_sel_start(), on_mouse_sel_update(), play_all(), and play_sel().
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().
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().
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().
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().
void calc_midspect | ( | int | rwidth, |
int | rheight, | ||
int * | cwidth, | ||
int * | cheight | ||
) |
void calc_minspect | ( | int | rwidth, |
int | rheight, | ||
int * | cwidth, | ||
int * | cheight | ||
) |
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
????
double calc_time_from_frame | ( | int | clip, |
int | frame | ||
) |
Definition at line 1756 of file utils.c.
Referenced by event_list_close_gaps(), find_when_to_stop(), lives_ce_update_timeline(), and set_sel_label().
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().
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().
Definition at line 4542 of file utils.c.
Referenced by check_workdir_valid(), lives_make_writeable_dir(), on_utube_select(), and send_to_trash().
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.
boolean check_for_executable | ( | lives_checkstatus_t * | cap, |
const char * | exec | ||
) |
Definition at line 3434 of file utils.c.
Referenced by activate_x11_window(), check_snap(), explain_missing_activate(), get_capabilities(), get_dir_size(), get_wid_for_name(), get_x11_visible(), hide_x11_window(), on_open_utube_activate(), on_utube_select(), open_ascrap_file(), open_scrap_file(), run_youtube_dialog(), send_to_trash(), sensitize(), trash_rb(), and unhide_x11_window().
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().
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().
CRITICAL: make sure this gets called even on system failure and abort
may fail -> abort
Definition at line 6550 of file saveplay.c.
check number of frames is correct for files of type CLIP_TYPE_DISK
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
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().
Definition at line 1086 of file dialogs.c.
Referenced by do_auto_dialog(), do_clip_divergence_error(), on_paste_as_new_activate(), and on_utube_select().
void clear_lmap_errors | ( | void | ) |
Definition at line 2858 of file utils.c.
Referenced by on_lerrors_clear_clicked().
void clear_mainw_msg | ( | void | ) |
Definition at line 1435 of file utils.c.
Referenced by check_for_lock_file(), do_auto_dialog(), load_rfx_preview(), on_cancel_keep_button_clicked(), on_encoder_entry_changed(), realfx_progress(), reload_set(), and render_events().
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().
lives_clip_t* clip_forensic | ( | int | clipno | ) |
Definition at line 6029 of file saveplay.c.
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().
void close_current_file | ( | int | file_to_switch_to | ) |
close current file, and try to switch to file_to_switch_to
Definition at line 9373 of file main.c.
Referenced by _start_playback(), close_file(), close_temp_handle(), do_effect(), lives_exit(), on_close_activate(), on_load_cdtrack_ok_clicked(), on_paramwindow_button_clicked(), on_paste_as_new_activate(), on_recaudclip_ok_clicked(), on_toy_activate(), reload_clip(), render_to_clip(), and weed_generator_start().
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().
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().
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().
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
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
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().
boolean create_event_space | ( | int | length_in_eventsb | ) |
Definition at line 4660 of file utils.c.
Referenced by event_list_to_block().
void create_LiVES | ( | void | ) |
Definition at line 366 of file gui.c.
Referenced by resize_widgets_for_monitor().
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().
int create_nullvideo_clip | ( | const char * | handle | ) |
Definition at line 3808 of file saveplay.c.
LiVESWidget* create_question_dialog | ( | const char * | title, |
const char * | text | ||
) |
Definition at line 540 of file dialogs.c.
Referenced by ask_permission_dialog_complex(), create_cds_dialog(), create_encoder_prep_dialog(), do_foundclips_query(), do_imgfmts_error(), do_please_install(), and do_resize_dlg().
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().
void d_print_cancelled | ( | void | ) |
Definition at line 2610 of file utils.c.
Referenced by d_print_enough(), do_effect(), on_cancel_keep_button_clicked(), on_normalise_audio_activate(), on_recaudclip_ok_clicked(), on_utube_select(), and reload_set().
void d_print_done | ( | void | ) |
Definition at line 2620 of file utils.c.
Referenced by add_file_info(), do_effect(), load_rte_defs(), load_vpp_defaults(), on_delete_rfx_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_normalise_audio_activate(), on_paste_as_new_activate(), on_promote_rfx_activate(), on_rebuild_rfx_activate(), on_recaudclip_ok_clicked(), on_redo_activate(), on_rev_clipboard_activate(), on_save_rte_defs_activate(), on_vj_realize_activate(), on_vppa_save_clicked(), pad_init_silence(), render_to_clip(), and rfxbuilder_to_script().
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().
void d_print_failed | ( | void | ) |
Definition at line 2615 of file utils.c.
Referenced by apply_rte_audio_init(), do_effect(), lives2lives_read_stream(), load_vpp_defaults(), on_delete_rfx_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_normalise_audio_activate(), on_paste_as_new_activate(), on_promote_rfx_activate(), on_recaudclip_ok_clicked(), on_redo_activate(), on_rev_clipboard_activate(), on_utube_select(), on_vj_realize_activate(), render_to_clip(), resample_clipboard(), rfxbuilder_to_script(), and start_render_effect_events().
void d_print_file_error_failed | ( | void | ) |
Definition at line 2625 of file utils.c.
Referenced by load_rte_defs(), load_vpp_defaults(), on_save_rte_defs_activate(), on_save_set_activate(), and rfxbuilder_to_script().
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().
boolean d_print_urgency | ( | double | timeout_seconds, |
const char * | fmt, | ||
... | |||
) |
ulong deduce_file | ( | const char * | filename, |
double | start_time, | ||
int | end | ||
) |
Definition at line 238 of file saveplay.c.
Referenced by on_toy_activate().
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().
void desensitize | ( | void | ) |
Definition at line 5302 of file main.c.
Referenced by on_close_activate(), on_fade_audio_activate(), on_import_theme_activate(), on_normalise_audio_activate(), on_vj_realize_activate(), and set_interactive().
boolean dirs_equal | ( | const char * | dira, |
const char * | dirb | ||
) |
LiVESResponseType do_abort_cancel_retry_dialog | ( | const char * | text | ) |
Definition at line 708 of file dialogs.c.
Referenced by build_init_config(), check_storage_space(), do_dir_perm_error(), do_memory_error_dialog(), do_read_failed_error_s_with_retry(), do_write_failed_error_s_with_retry(), handle_audio_timeout(), on_save_rte_defs_activate(), and send_to_trash().
LiVESResponseType do_abort_ok_dialog | ( | const char * | text | ) |
Definition at line 720 of file dialogs.c.
Referenced by do_abortblank_error(), do_chdir_failed_error(), do_clip_divergence_error(), do_dir_perm_access_error(), and startup_message_nonfatal().
LiVESResponseType do_abort_retry_dialog | ( | const char * | text | ) |
Definition at line 714 of file dialogs.c.
Referenced by dir_toolong_error(), do_dir_perm_error(), do_system_failed_error(), and filename_toolong_error().
void do_after_crash_warning | ( | void | ) |
Definition at line 3742 of file dialogs.c.
Referenced by recover_layout(), and recover_layout_cancelled().
void do_audrate_error_dialog | ( | void | ) |
Definition at line 3702 of file dialogs.c.
Referenced by on_capture_activate(), on_ins_silence_details_clicked(), and on_recaudclip_ok_clicked().
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().
void do_autolives_needs_clips_error | ( | void | ) |
Definition at line 4507 of file dialogs.c.
Referenced by autolives_toggle().
void do_bad_layout_error | ( | void | ) |
Definition at line 3635 of file dialogs.c.
Referenced by recover_layout().
void do_bad_theme_import_error | ( | const char * | theme_file | ) |
Definition at line 4530 of file dialogs.c.
Referenced by on_import_theme_activate().
void do_card_in_use_error | ( | void | ) |
Definition at line 4289 of file dialogs.c.
Referenced by on_live_tvcard_activate().
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().
void do_chdir_failed_error | ( | const char * | dir | ) |
Definition at line 4213 of file dialogs.c.
Referenced by lives_chdir().
boolean do_close_changed_warn | ( | void | ) |
Definition at line 4536 of file dialogs.c.
Referenced by on_close_activate().
boolean do_comments_dialog | ( | int | fileno, |
char * | filename | ||
) |
Definition at line 3288 of file dialogs.c.
Referenced by on_show_file_comments_activate().
void do_dev_busy_error | ( | const char * | devstr | ) |
Definition at line 4294 of file dialogs.c.
Referenced by on_live_tvcard_activate().
LiVESResponseType do_dir_notfound_dialog | ( | const char * | detail, |
const char * | dirname | ||
) |
Definition at line 3509 of file dialogs.c.
Referenced by build_init_config().
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().
void do_do_not_close_d | ( | void | ) |
Definition at line 4409 of file dialogs.c.
Referenced by lives_exit().
void do_dvgrab_error | ( | void | ) |
Definition at line 3714 of file dialogs.c.
Referenced by on_open_fw_activate().
void do_encoder_img_fmt_error | ( | render_details * | rdet | ) |
boolean do_erase_subs_warning | ( | void | ) |
Definition at line 4334 of file dialogs.c.
Referenced by on_erase_subs_activate().
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().
LiVESResponseType do_error_dialog_with_check | ( | const char * | text, |
uint64_t | warn_mask_number | ||
) |
Definition at line 800 of file dialogs.c.
Referenced by do_after_crash_warning(), do_after_invalid_warning(), do_error_dialog(), do_error_dialogf(), do_mt_audchan_error(), do_mt_backup_space_error(), do_mt_no_jack_error(), do_rendered_fx_dialog(), on_camquit_clicked(), on_encoder_entry_changed(), and startup_message_nonfatal_dismissable().
LiVESResponseType do_error_dialogf | ( | const char * | fmt, |
... | |||
) |
Definition at line 735 of file dialogs.c.
Referenced by check_for_lock_file(), do_bad_theme_error(), do_bad_theme_import_error(), do_dev_busy_error(), do_encoder_img_fmt_error(), do_mt_set_mem_error(), do_no_autolives_error(), do_no_decoder_error(), do_no_loadfile_error(), do_program_not_found_error(), do_rmem_max_error(), on_about_activate(), on_utube_select(), pref_factory_string(), and too_many_files().
boolean do_event_list_warning | ( | void | ) |
Definition at line 3707 of file dialogs.c.
Referenced by multitrack_view_events(), and multitrack_view_sel_events().
boolean do_existing_subs_warning | ( | void | ) |
Definition at line 4302 of file dialogs.c.
Referenced by on_load_subs_activate().
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().
LiVESResponseType do_file_perm_error | ( | const char * | file_name, |
boolean | allow_cancel | ||
) |
void do_firstever_dialog | ( | void | ) |
boolean do_gamma_import_warn | ( | uint64_t | fv, |
int | gamma_type | ||
) |
LiVESResponseType do_header_missing_detail_error | ( | int | clip, |
lives_clip_details_t | detail | ||
) |
LiVESResponseType do_header_read_error_with_retry | ( | int | clip | ) |
boolean do_header_write_error | ( | int | clip | ) |
Definition at line 4169 of file dialogs.c.
Referenced by do_effect(), 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(), and render_to_clip().
LiVESResponseType do_imgfmts_error | ( | lives_img_type_t | imgtype | ) |
LiVESResponseType do_info_dialog | ( | const char * | text | ) |
Definition at line 787 of file dialogs.c.
Referenced by do_effect(), do_please_install(), do_shutdown_msg(), explain_missing_activate(), on_prefs_apply_clicked(), and startup_message_info().
LiVESResponseType do_info_dialog_with_expander | ( | const char * | text, |
const char * | exp_text, | ||
LiVESList * | |||
) |
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().
void do_invalid_subs_error | ( | void | ) |
Definition at line 4308 of file dialogs.c.
Referenced by on_load_subs_activate().
void do_jack_noopen_warn | ( | void | ) |
Referenced by pref_factory_string().
void do_jack_noopen_warn2 | ( | void | ) |
void do_jack_noopen_warn3 | ( | void | ) |
void do_jack_noopen_warn4 | ( | void | ) |
LiVESResponseType do_memory_error_dialog | ( | char * | op, |
size_t | bytes | ||
) |
Definition at line 904 of file dialogs.c.
Referenced by event_list_to_block(), load_frame_index(), on_resample_vid_ok(), render_to_clip(), and save_event_frames().
void do_messages_window | ( | boolean | is_startup | ) |
Definition at line 3335 of file dialogs.c.
Referenced by on_show_messages_activate().
boolean do_move_workdir_dialog | ( | void | ) |
Definition at line 4351 of file dialogs.c.
Referenced by lives_exit().
void do_mt_backup_space_error | ( | lives_mt * | , |
int | memreq_mb | ||
) |
void do_mt_no_audchan_error | ( | void | ) |
Definition at line 3614 of file dialogs.c.
Referenced by mt_change_vals_activate().
void do_mt_undo_mem_error | ( | void | ) |
Definition at line 3579 of file dialogs.c.
Referenced by multitrack().
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().
void do_need_mplayer_mpv_dialog | ( | void | ) |
Definition at line 3027 of file dialogs.c.
Referenced by on_open_loc_activate().
void do_no_autolives_error | ( | void | ) |
Definition at line 4500 of file dialogs.c.
Referenced by autolives_toggle().
void do_no_decoder_error | ( | const char * | fname | ) |
Definition at line 3518 of file dialogs.c.
Referenced by reload_clip().
void do_no_sets_dialog | ( | const char * | dir | ) |
Definition at line 4366 of file dialogs.c.
Referenced by create_rename_dialog().
void do_nojack_rec_error | ( | void | ) |
Definition at line 3719 of file dialogs.c.
Referenced by on_recaudclip_activate().
boolean do_please_install | ( | const char * | exec, |
uint64_t | guidance_flags | ||
) |
Definition at line 3659 of file dialogs.c.
Referenced by on_utube_select().
boolean do_please_install_either | ( | const char * | exec, |
const char * | exec2 | ||
) |
Definition at line 3694 of file dialogs.c.
Referenced by run_youtube_dialog().
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().
INIT here
reset dropped frame count etc
Definition at line 2274 of file dialogs.c.
Referenced by deorder_frames(), do_effect(), init_clipboard(), on_capture_activate(), on_export_proj_activate(), on_import_proj_activate(), on_load_cdtrack_ok_clicked(), on_paste_as_new_activate(), on_redo_activate(), on_resaudio_ok_clicked(), on_rev_clipboard_activate(), on_utube_select(), resample_clipboard(), and start_render_effect_events().
void do_read_failed_error_s | ( | const char * | filename, |
const char * | addinfo | ||
) |
Definition at line 4034 of file dialogs.c.
Referenced by aud_fade(), fill_abuffer_from(), handle_backend_errors(), and on_recaudclip_ok_clicked().
LiVESResponseType do_read_failed_error_s_with_retry | ( | const char * | fname, |
const char * | errtext | ||
) |
Definition at line 4122 of file dialogs.c.
Referenced by do_header_missing_detail_error(), do_header_read_error_with_retry(), load_frame_index(), load_layout_map(), load_rfx_preview(), load_rte_defs(), load_vpp_defaults(), and open_set_file().
boolean do_reload_set_query | ( | void | ) |
Definition at line 3256 of file dialogs.c.
Referenced by on_load_set_activate().
void do_rendered_fx_dialog | ( | void | ) |
Definition at line 3368 of file dialogs.c.
Referenced by add_rfx_effects().
LiVESResponseType do_resize_dlg | ( | int | cwidth, |
int | cheight, | ||
int | fwidth, | ||
int | fheight | ||
) |
LiVESResponseType do_retry_cancel_dialog | ( | const char * | text | ) |
Definition at line 730 of file dialogs.c.
Referenced by on_utube_select().
boolean do_save_clipset_warn | ( | void | ) |
Definition at line 2975 of file dialogs.c.
Referenced by on_save_set_activate().
boolean do_set_duplicate_warning | ( | const char * | new_set | ) |
Definition at line 3415 of file dialogs.c.
Referenced by on_save_set_activate().
void do_set_load_lmap_error | ( | void | ) |
boolean do_set_locked_warning | ( | const char * | setname | ) |
Definition at line 4357 of file dialogs.c.
Referenced by check_for_lock_file().
void do_set_noclips_error | ( | const char * | setname | ) |
Definition at line 4480 of file dialogs.c.
Referenced by reload_set().
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().
void do_shutdown_msg | ( | void | ) |
Definition at line 4554 of file dialogs.c.
Referenced by on_prefs_close_clicked().
void do_splash_progress | ( | void | ) |
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().
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().
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().
void do_text_window | ( | const char * | title, |
const char * | text | ||
) |
boolean do_theme_exists_warn | ( | const char * | themename | ) |
Definition at line 4561 of file dialogs.c.
Referenced by on_import_theme_activate().
void do_threaded_dialog | ( | const char * | translated_text, |
boolean | has_cancel | ||
) |
Definition at line 3849 of file dialogs.c.
Referenced by after_foreign_play(), lives2lives_read_stream(), on_fade_audio_activate(), on_normalise_audio_activate(), on_rebuild_rfx_activate(), on_recaudclip_ok_clicked(), on_save_rte_defs_activate(), on_save_set_activate(), on_vj_reset_activate(), reload_set(), and render_to_clip().
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().
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().
boolean do_warning_dialog | ( | const char * | text | ) |
Definition at line 564 of file dialogs.c.
Referenced by check_storage_space(), do_layout_alter_audio_warning(), do_layout_alter_frames_warning(), is_legal_set_name(), on_capture_activate(), on_close_activate(), on_delete_rfx_activate(), and on_lerrors_delete_clicked().
boolean do_warning_dialog_with_check | ( | const char * | text, |
uint64_t | warn_mask_number | ||
) |
Definition at line 569 of file dialogs.c.
Referenced by do_clipboard_fps_warning(), do_save_clipset_warn(), do_set_duplicate_warning(), do_warning_dialog(), do_warning_dialogf(), and do_yuv4m_open_warning().
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().
void do_write_failed_error_s | ( | const char * | filename, |
const char * | addinfo | ||
) |
Definition at line 3979 of file dialogs.c.
Referenced by aud_fade(), handle_backend_errors(), on_recaudclip_ok_clicked(), and on_save_textview_clicked().
LiVESResponseType do_write_failed_error_s_with_retry | ( | const char * | fname, |
const char * | errtext | ||
) |
Definition at line 4058 of file dialogs.c.
Referenced by do_header_write_error(), on_save_rte_defs_activate(), on_utube_select(), rewrite_recovery_file(), rfxbuilder_to_script(), save_clip_values(), save_event_frames(), save_file_comments(), save_frame_index(), save_layout_map(), set_theme_pref(), and write_headers().
boolean do_yesno_dialog | ( | const char * | text | ) |
Definition at line 655 of file dialogs.c.
Referenced by do_abort_check(), do_erase_subs_warning(), do_event_list_warning(), do_existing_subs_warning(), do_layout_recover_dialog(), do_move_workdir_dialog(), do_mt_rect_prompt(), do_reload_set_query(), on_clear_event_list_activate(), on_utube_select(), and prompt_remove_layout_files().
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().
boolean do_yesno_dialogf | ( | const char * | fmt, |
... | |||
) |
Definition at line 635 of file dialogs.c.
Referenced by ask_permission_dialog(), build_init_config(), do_gamma_import_warn(), do_set_locked_warning(), do_set_rename_old_layouts_warning(), do_theme_exists_warn(), findex_bk_dialog(), is_legal_set_name(), and paste_enough_dlg().
boolean do_yuv4m_open_warning | ( | void | ) |
Definition at line 3270 of file dialogs.c.
Referenced by on_open_yuv4m_activate().
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().
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().
char* dump_messages | ( | int | start, |
int | end | ||
) |
Definition at line 2338 of file utils.c.
Referenced by do_messages_window().
void enable_record | ( | void | ) |
Definition at line 3706 of file gui.c.
Referenced by on_record_perf_activate().
void end_threaded_dialog | ( | void | ) |
Definition at line 3883 of file dialogs.c.
Referenced by after_foreign_play(), lives2lives_read_stream(), lives_exit(), on_fade_audio_activate(), on_normalise_audio_activate(), on_quit_activate(), on_rebuild_rfx_activate(), on_recaudclip_ok_clicked(), on_save_rte_defs_activate(), on_save_set_activate(), on_vj_reset_activate(), reload_set(), render_to_clip(), and threaded_dialog_pop().
char* ensure_extension | ( | const char * | fname, |
const char * | ext | ||
) |
boolean ensure_isdir | ( | char * | fname | ) |
Definition at line 3346 of file utils.c.
Referenced by check_workdir_valid(), and dirs_equal().
void fade_background | ( | void | ) |
Definition at line 3216 of file gui.c.
Referenced by on_fade_activate(), and on_sepwin_activate().
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().
lives_file_buffer_t* find_in_file_buffers | ( | int | fd | ) |
Definition at line 401 of file utils.c.
Referenced by _lives_buffered_rdonly_slurp(), filename_from_fd(), get_file_size(), lives_buffered_offset(), lives_buffered_orig_size(), lives_buffered_rdonly_set_reversed(), lives_buffered_rdonly_slurp(), lives_close_buffered(), lives_lseek_buffered_rdonly(), lives_lseek_buffered_rdonly_absolute(), lives_lseek_buffered_writer(), lives_read_buffered(), lives_read_buffered_eof(), and lives_write_buffered().
lives_file_buffer_t* find_in_file_buffers_by_pathname | ( | const char * | pathname | ) |
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().
boolean findex_bk_dialog | ( | const char * | fname_back | ) |
Definition at line 3261 of file dialogs.c.
Referenced by load_frame_index().
int free_n_msgs | ( | int | frval | ) |
Definition at line 2381 of file utils.c.
Referenced by pref_factory_int().
void free_track_decoders | ( | void | ) |
Definition at line 7826 of file main.c.
Referenced by render_to_clip().
void fullscreen_internal | ( | void | ) |
Definition at line 3440 of file gui.c.
Referenced by on_sepwin_activate(), and on_toolbar_hide().
uint64_t get_approx_ln64 | ( | uint64_t | x | ) |
Definition at line 1458 of file utils.c.
Referenced by get_near2pow().
void get_basename | ( | char * | filename | ) |
Definition at line 3194 of file utils.c.
Referenced by get_filename(), on_filesel_button_clicked(), on_import_rfx_activate(), on_save_subs_activate(), and reload_clip().
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
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().
const char* get_deinterlace_string | ( | void | ) |
Definition at line 230 of file saveplay.c.
char* get_dir | ( | const char * | filename | ) |
Definition at line 3185 of file utils.c.
Referenced by get_capabilities(), and on_filesel_button_clicked().
void get_dirname | ( | char * | filename | ) |
Definition at line 3167 of file utils.c.
Referenced by do_write_failed_error_s(), do_write_failed_error_s_with_retry(), get_dir(), on_filesel_button_clicked(), on_ok_file_open_clicked(), on_save_subs_activate(), reload_clip(), and save_frame().
char* get_extension | ( | const char * | filename | ) |
Definition at line 3217 of file utils.c.
Referenced by do_comments_dialog(), and on_filesel_button_clicked().
lives_file_buffer_t* get_file_buffer | ( | int | fd | ) |
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().
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().
boolean get_frames_sizes | ( | int | fileno, |
int | frame_to_test, | ||
int * | hsize, | ||
int * | vsize | ||
) |
boolean get_handle_from_info_file | ( | int | index | ) |
Definition at line 1163 of file saveplay.c.
const char* get_image_ext_for_type | ( | lives_img_type_t | imgtype | ) |
Definition at line 3025 of file utils.c.
Referenced by add_file_info(), check_clip_integrity(), check_for_bad_ffmpeg(), check_frame_count(), clean_images_from_virtual(), deorder_frames(), do_effect(), do_encoder_img_fmt_error(), do_imgfmts_error(), get_frames_sizes(), insert_blank_frames(), load_frame_image(), load_rfx_preview(), make_image_file_name(), on_cancel_keep_button_clicked(), on_capture_activate(), on_paste_as_new_activate(), on_redo_activate(), on_rev_clipboard_activate(), render_events(), reorder_frames(), resample_clipboard(), resolve_img_type(), save_frame(), and virtual_to_images().
LiVESInterpType get_interp_value | ( | short | quality, |
boolean | low_for_mt | ||
) |
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)
widths should be in pixels (not macropixels)
inner frame needs scaling down
inner frame size OK, we will shrink wrap the outer frame
void get_location | ( | const char * | exe, |
char * | val, | ||
int | maxlen | ||
) |
Definition at line 3407 of file utils.c.
Referenced by autolives_toggle(), check_builder_programs(), get_capabilities(), and on_utube_select().
char* get_menu_name | ( | lives_clip_t * | sfile, |
boolean | add_set | ||
) |
Definition at line 4487 of file gui.c.
Referenced by add_to_clipmenu(), create_clip_info_window(), d_print(), on_close_activate(), and remove_from_clipmenu().
void get_monitors | ( | boolean | reset | ) |
Definition at line 400 of file main.c.
Referenced by config_event(), and resize_widgets_for_monitor().
boolean get_new_handle | ( | int | index, |
const char * | name | ||
) |
Definition at line 3821 of file saveplay.c.
Referenced by init_clipboard(), on_fx_pre_activate(), on_live_tvcard_activate(), on_load_cdtrack_ok_clicked(), on_open_yuv4m_activate(), on_paste_as_new_activate(), on_recaudclip_ok_clicked(), on_render_activate(), prepare_to_play_foreign(), and render_to_clip().
void get_play_times | ( | void | ) |
recalculate video / audio lengths and draw the timer bars
Definition at line 3672 of file utils.c.
Referenced by load_frame_image(), on_filechooser_cancel_clicked(), on_record_perf_activate(), on_select_all_activate(), on_select_from_start_activate(), on_select_invert_activate(), on_select_last_activate(), on_select_new_activate(), on_select_to_end_activate(), switch_to_file(), and update_play_times().
void get_player_size | ( | int * | opwidth, |
int * | opheight | ||
) |
Definition at line 7720 of file main.c.
Referenced by load_frame_image().
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().
boolean get_screen_usable_size | ( | int * | w, |
int * | h | ||
) |
Definition at line 6853 of file interface.c.
Referenced by get_border_size().
LiVESList* get_set_list | ( | const char * | dir, |
boolean | utf8 | ||
) |
Definition at line 5305 of file utils.c.
Referenced by create_rename_dialog().
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().
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:
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().
size_t get_token_count | ( | const char * | string, |
int | delim | ||
) |
Definition at line 5430 of file utils.c.
Referenced by add_file_info(), add_to_special(), after_foreign_play(), buff_to_list(), do_effect(), drag_from_outside(), feeds_to_audio_filters(), feeds_to_video_filters(), get_best_audio(), get_colour_pref(), get_cpu_load(), get_disk_load(), get_distro_dets(), get_list_pref(), get_mountpoint_for(), get_nth_token(), get_theme_colour_pref(), handle_backend_errors(), layout_audio_is_affected(), lives_parse_font_string(), load_rfx_preview(), make_version_hash(), on_capture_activate(), on_encoder_entry_changed(), on_encoder_ofmt_changed(), on_vpp_advanced_clicked(), on_vppa_ok_clicked(), open_vid_playback_plugin(), perform_rfxbuilder_checks(), render_fx_get_params(), rfxbuilder_to_script(), and script_to_rfxbuilder().
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().
LiVESWindow* get_transient_full | ( | ) |
Definition at line 622 of file dialogs.c.
Referenced by choose_file().
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().
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().
uint64_t get_version_hash | ( | const char * | exe, |
const char * | sep, | ||
int | piece | ||
) |
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().
int hextodec | ( | const char * | string | ) |
Definition at line 5694 of file utils.c.
Referenced by prepare_to_play_foreign(), and script_to_rfxbuilder().
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().
void init_clipboard | ( | void | ) |
Definition at line 2238 of file utils.c.
Referenced by do_effect().
void init_track_decoders | ( | void | ) |
Definition at line 7816 of file main.c.
Referenced by render_to_clip().
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().
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().
Definition at line 2975 of file utils.c.
Referenced by idle_reload_set(), on_export_proj_activate(), on_import_proj_activate(), on_load_set_activate(), on_quit_activate(), on_save_set_activate(), and set_new_set_name().
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().
uint64_t lives_10pow | ( | int | pow | ) |
Definition at line 1438 of file utils.c.
Referenced by lives_fix(), lives_format_storage_space_string(), lives_spin_button_get_snapval(), render_fx_get_params(), and weed_params_to_rfx().
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().
boolean lives_alarm_clear | ( | lives_alarm_t | alarm_handle | ) |
Definition at line 1732 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_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().
off_t lives_buffered_offset | ( | int | fd | ) |
Definition at line 1364 of file utils.c.
Referenced by save_srt_subtitles(), and save_sub_subtitles().
Definition at line 681 of file utils.c.
Referenced by changed_fps_during_pb().
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().
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().
int lives_cat | ( | const char * | from, |
const char * | to, | ||
boolean | append | ||
) |
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().
int lives_close_buffered | ( | int | fd | ) |
Definition at line 716 of file utils.c.
Referenced by apply_rte_audio_end(), backup_recording(), lives_exit(), load_frame_index(), load_layout_map(), load_rte_defs(), on_save_rte_defs_activate(), save_frame_index(), save_layout_map(), subtitles_free(), and write_backup_layout_numbering().
int lives_cp | ( | const char * | from, |
const char * | to | ||
) |
Definition at line 4414 of file utils.c.
Referenced by build_init_config(), load_frame_index(), on_export_rfx_activate(), on_import_rfx_activate(), on_load_subs_activate(), on_utube_select(), save_clip_values(), and save_frame_index().
int lives_cp_keep_perms | ( | const char * | from, |
const char * | to | ||
) |
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().
int lives_create_buffered | ( | const char * | pathname, |
int | mode | ||
) |
Definition at line 698 of file utils.c.
Referenced by backup_recording(), lives_exit(), on_save_rte_defs_activate(), save_frame_index(), save_layout_map(), save_srt_subtitles(), save_sub_subtitles(), and write_backup_layout_numbering().
int lives_create_buffered_nosync | ( | const char * | pathname, |
int | mode | ||
) |
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().
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().
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().
double lives_fix | ( | double | val, |
int | decimals | ||
) |
Definition at line 1446 of file utils.c.
Referenced by changed_fps_during_pb().
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().
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().
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().
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().
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().
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().
int lives_getgid | ( | void | ) |
Definition at line 2420 of file machinestate.c.
Referenced by backup_recording(), mt_load_recovery_layout(), recover_layout_cancelled(), and write_backup_layout_numbering().
pid_t lives_getpid | ( | void | ) |
Definition at line 2408 of file machinestate.c.
Referenced by get_capabilities().
int lives_getuid | ( | void | ) |
Definition at line 2416 of file machinestate.c.
Referenced by backup_recording(), mt_load_recovery_layout(), recover_layout_cancelled(), and write_backup_layout_numbering().
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 | ) |
Definition at line 3046 of file utils.c.
Referenced by lives_image_ext_to_img_type().
int lives_kill | ( | lives_pid_t | pid, |
int | sig | ||
) |
void lives_kill_subprocesses | ( | const char * | dirname, |
boolean | kill_parent | ||
) |
Definition at line 4516 of file utils.c.
Referenced by close_file(), end_fs_preview(), lives_exit(), on_cancel_keep_button_clicked(), on_paramwindow_button_clicked(), on_stop_clicked(), and on_utube_select().
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().
LiVESList* lives_list_append_unique | ( | LiVESList * | xlist, |
const char * | add | ||
) |
Definition at line 5776 of file utils.c.
Referenced by add_lmap_error(), layout_audio_is_affected(), load_layout_map(), on_close_activate(), and widget_helper_init().
LiVESList* lives_list_delete_string | ( | LiVESList * | , |
const char * | string | ||
) |
void lives_list_free_all | ( | LiVESList ** | ) |
Definition at line 4873 of file utils.c.
Referenced by close_current_file(), do_onchange_init(), filter_encoders_by_img_ext(), free_pkg_list(), lives_exit(), on_close_activate(), on_encoder_entry_changed(), on_encoder_ofmt_changed(), on_fx_pre_activate(), on_merge_cancel_clicked(), on_ok_file_open_clicked(), on_prefs_close_clicked(), on_prefs_revert_clicked(), on_render_fx_activate(), on_vpp_advanced_clicked(), prompt_for_script_name(), recover_layout_map(), render_fx_get_params(), reset_ttable(), rfx_free(), rfx_params_free(), script_to_rfxbuilder(), set_rfx_param_by_name_string(), update_visual_params(), and widget_helper_init().
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().
LiVESList* lives_list_move_to_first | ( | LiVESList * | list, |
LiVESList * | item | ||
) |
Definition at line 5789 of file utils.c.
Referenced by get_decoder_cdata().
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().
int lives_list_strcmp_index | ( | LiVESList * | list, |
livesconstpointer | data, | ||
boolean | case_sensitive | ||
) |
Definition at line 4678 of file utils.c.
Referenced by after_string_list_changed(), on_decplug_advanced_clicked(), pkg_in_list(), pref_factory_string_choice(), and set_param_from_list().
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().
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().
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().
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().
int lives_open2 | ( | const char * | pathname, |
int | flags | ||
) |
Definition at line 99 of file utils.c.
Referenced by after_foreign_play(), check_dir_access(), load_layout_map(), load_vpp_defaults(), open_set_file(), send_to_trash(), and start_audio_stream().
int lives_open3 | ( | const char * | pathname, |
int | flags, | ||
mode_t | mode | ||
) |
Definition at line 94 of file utils.c.
Referenced by save_vpp_defaults().
int lives_open_buffered_rdonly | ( | const char * | pathname | ) |
Definition at line 636 of file utils.c.
Referenced by load_event_list(), load_frame_index(), load_from_scrap_file(), load_rte_defs(), migrate_layouts(), and subtitles_init().
int lives_open_buffered_writer | ( | const char * | pathname, |
int | mode, | ||
boolean | append | ||
) |
char* lives_pad | ( | char * | , |
size_t | minlen, | ||
int | align | ||
) |
Definition at line 3303 of file utils.c.
Referenced by lives_pad_ellipsize().
char* lives_pad_ellipsize | ( | char * | , |
size_t | fixlen, | ||
int | padlen, | ||
LiVESEllipsizeMode | mode | ||
) |
LiVESPixbuf* lives_pixbuf_new_blank | ( | int | width, |
int | height, | ||
int | palette | ||
) |
Definition at line 11953 of file colourspace.c.
Referenced by insert_blank_frames().
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().
void* lives_pixbuf_save_threaded | ( | void * | args | ) |
ssize_t lives_popen | ( | const char * | com, |
boolean | allow_error, | ||
char * | buff, | ||
ssize_t | buflen | ||
) |
Definition at line 194 of file utils.c.
Referenced by check_for_lock_file(), get_best_audio(), get_handle_from_info_file(), get_md5sum(), get_num_cpus(), get_plugin_result(), on_import_proj_activate(), and on_render_activate().
ssize_t lives_read | ( | int | fd, |
void * | buf, | ||
ssize_t | count, | ||
boolean | allow_less | ||
) |
Definition at line 460 of file utils.c.
Referenced by check_dir_access(), lives_read_buffered(), lives_read_le(), load_vpp_defaults(), and open_set_file().
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().
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().
ssize_t lives_read_le_buffered | ( | int | fd, |
void * | buf, | ||
ssize_t | count, | ||
boolean | allow_less | ||
) |
Definition at line 1158 of file utils.c.
Referenced by load_frame_index(), load_layout_map(), read_filter_defaults(), and read_generator_sizes().
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().
int lives_rm | ( | const char * | file | ) |
Definition at line 4395 of file utils.c.
Referenced by add_file_info(), after_foreign_play(), backup_recording(), check_dir_access(), clean_images_from_virtual(), clear_audio_stream(), del_frame_index(), deorder_frames(), do_auto_dialog(), do_effect(), init_clipboard(), lives_exit(), lives_yuv_stream_stop_read(), load_vpp_defaults(), mt_load_recovery_layout(), on_cancel_keep_button_clicked(), on_delete_rfx_activate(), on_erase_subs_activate(), on_export_proj_activate(), on_live_tvcard_activate(), on_load_cdtrack_ok_clicked(), on_playclip_activate(), on_redo_activate(), on_render_activate(), on_resaudio_ok_clicked(), on_rev_clipboard_activate(), on_save_set_activate(), on_send_lives2lives_activate(), on_utube_select(), play_all(), prep_audio_player(), recover_layout_cancelled(), remove_layout_files(), render_to_clip(), resample_clipboard(), rewrite_recovery_file(), rfx_clean_exe(), save_clip_values(), save_event_frames(), save_file_comments(), save_layout_map(), save_vpp_defaults(), stop_audio_stream(), and unlock_set_file().
int lives_rmdir | ( | const char * | dir, |
boolean | force | ||
) |
Definition at line 4366 of file utils.c.
Referenced by check_dir_access(), do_write_failed_error_s(), do_write_failed_error_s_with_retry(), get_ds_free(), get_eload_filename(), on_delete_rfx_activate(), on_import_theme_activate(), on_open_utube_activate(), on_promote_rfx_activate(), on_utube_select(), open_ascrap_file(), open_scrap_file(), and save_layout_map().
int lives_rmdir_with_parents | ( | const char * | dir | ) |
Definition at line 4386 of file utils.c.
Referenced by remove_layout_files().
boolean lives_setenv | ( | const char * | name, |
const char * | value | ||
) |
boolean lives_string_ends_with | ( | const char * | string, |
const char * | fmt, | ||
... | |||
) |
Definition at line 3143 of file utils.c.
Referenced by open_set_file().
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().
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().
int lives_system | ( | const char * | com, |
boolean | allow_error | ||
) |
Definition at line 145 of file utils.c.
Referenced by activate_url_inner(), add_file_info(), add_to_clipmenu(), adjust_clip_volume(), apply_rte_audio_init(), close_current_file(), close_temp_handle(), deorder_frames(), do_effect(), do_rfx_cleanup(), end_fs_preview(), init_clipboard(), lazy_startup_checks(), lives_cat(), lives_chmod(), lives_cp(), lives_cp_keep_perms(), lives_cp_recursive(), lives_echo(), lives_exit(), lives_kill_subprocesses(), lives_ln(), lives_mv(), lives_notify(), lives_rm(), lives_rmdir(), lives_rmdir_with_parents(), lives_rmglob(), lives_suspend_resume_process(), lives_touch(), mini_run(), on_cancel_keep_button_clicked(), on_capture_activate(), on_effects_paused(), on_eject_cd_activate(), on_export_proj_activate(), on_fade_audio_activate(), on_import_proj_activate(), on_import_theme_activate(), on_load_cdtrack_ok_clicked(), on_normalise_audio_activate(), on_paste_as_new_activate(), on_rebuild_rfx_activate(), on_recaudclip_ok_clicked(), on_redo_activate(), on_resaudio_ok_clicked(), on_rev_clipboard_activate(), on_toy_activate(), on_utube_select(), prep_audio_player(), reload_set(), remove_from_clipmenu(), render_to_clip(), resample_clipboard(), save_clip_value(), set_theme_colour_pref(), set_theme_pref(), start_render_effect_events(), stop_audio_stream(), and wait_for_stop().
int lives_touch | ( | const char * | tfile | ) |
Definition at line 4455 of file utils.c.
Referenced by close_current_file(), close_temp_handle(), end_fs_preview(), init_clipboard(), lives_exit(), lock_set_file(), and remove_layout_files().
int lives_utf8_strcasecmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 5458 of file utils.c.
Referenced by after_vpp_changed(), lives_list_append_unique(), lives_list_delete_string(), lives_list_strcmp_index(), remove_layout_files(), set_vpp(), and string_lists_differ().
int lives_utf8_strcmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 5469 of file utils.c.
Referenced by reload_clip().
ssize_t lives_write | ( | int | fd, |
livesconstpointer | buf, | ||
ssize_t | count, | ||
boolean | allow_fail | ||
) |
ssize_t lives_write_buffered | ( | int | fd, |
const char * | buf, | ||
ssize_t | count, | ||
boolean | allow_fail | ||
) |
Definition at line 1226 of file utils.c.
Referenced by backup_recording(), lives_buffered_write_printf(), lives_exit(), lives_write_le_buffered(), on_save_rte_defs_activate(), save_layout_map(), and write_backup_layout_numbering().
ssize_t lives_write_le | ( | int | fd, |
livesconstpointer | buf, | ||
ssize_t | count, | ||
boolean | allow_fail | ||
) |
Referenced by save_vpp_defaults(), and write_headers().
ssize_t lives_write_le_buffered | ( | int | fd, |
livesconstpointer | buf, | ||
ssize_t | count, | ||
boolean | allow_fail | ||
) |
void load_end_image | ( | int | frame | ) |
Definition at line 5922 of file main.c.
Referenced by all_config(), close_current_file(), load_frame_image(), on_redo_activate(), on_select_to_end_activate(), pref_change_images(), resize(), and showclipimgs().
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
boolean load_from_scrap_file | ( | weed_layer_t * | layer, |
int | frame | ||
) |
void load_preview_image | ( | boolean | update_always | ) |
Definition at line 6205 of file main.c.
Referenced by all_config(), lives_ce_update_timeline(), on_preview_spinbutton_changed(), on_prv_link_toggled(), on_showsubs_toggled(), pref_change_images(), and switch_to_file().
void load_start_image | ( | int | frame | ) |
Definition at line 5650 of file main.c.
Referenced by all_config(), close_current_file(), load_frame_image(), on_redo_activate(), on_select_from_start_activate(), pref_change_images(), resize(), and showclipimgs().
void load_theme_images | ( | void | ) |
Definition at line 65 of file gui.c.
Referenced by on_import_theme_activate(), and on_prefs_apply_clicked().
void make_custom_submenus | ( | void | ) |
Definition at line 126 of file gui.c.
Referenced by add_rfx_effects2().
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
Definition at line 3053 of file utils.c.
Referenced by check_clip_integrity(), check_for_bad_ffmpeg(), check_frame_count(), clean_images_from_virtual(), do_effect(), get_frames_sizes(), insert_blank_frames(), load_frame_image(), load_from_scrap_file(), and resolve_img_type().
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().
void maybe_add_mt_idlefunc | ( | void | ) |
Referenced by lives_general_button_clicked(), on_cancel_opensel_clicked(), on_capture_activate(), on_filechooser_cancel_clicked(), on_lerrors_clear_clicked(), on_lerrors_delete_clicked(), on_open_new_audio_clicked(), on_open_sel_activate(), on_open_utube_activate(), on_quit_activate(), on_utube_select(), and reload_set().
void minimise_aspect_delta | ( | double | allowed_aspect, |
int | hblock, | ||
int | vblock, | ||
int | hsize, | ||
int | vsize, | ||
int * | width, | ||
int * | height | ||
) |
boolean open_ascrap_file | ( | void | ) |
Definition at line 5278 of file saveplay.c.
Referenced by on_record_perf_activate().
ulong open_file | ( | const char * | filename | ) |
Definition at line 261 of file saveplay.c.
Referenced by on_utube_select(), and switch_to_file().
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().
void open_fw_device | ( | void | ) |
boolean open_scrap_file | ( | void | ) |
Definition at line 5230 of file saveplay.c.
Referenced by load_frame_image().
void open_set_file | ( | int | clipnum | ) |
Definition at line 4864 of file saveplay.c.
void pad_init_silence | ( | void | ) |
Definition at line 293 of file saveplay.c.
Referenced by after_foreign_play().
boolean paste_enough_dlg | ( | int | lframe | ) |
Definition at line 3266 of file dialogs.c.
Referenced by on_paste_as_new_activate().
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().
void play_start_timer | ( | int | type | ) |
boolean prepare_to_play_foreign | ( | void | ) |
Definition at line 4055 of file utils.c.
Referenced by on_capture2_activate().
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
(A future update will implement a more flexible caching system which will enable the possibility of caching further frames while we waut)
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.
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
void procw_desensitize | ( | void | ) |
Definition at line 5445 of file main.c.
Referenced by set_interactive().
boolean pull_frame | ( | weed_layer_t * | layer, |
const char * | image_ext, | ||
ticks_t | tc | ||
) |
boolean pull_frame_at_size | ( | weed_layer_t * | layer, |
const char * | image_ext, | ||
ticks_t | tc, | ||
int | width, | ||
int | height, | ||
int | target_palette | ||
) |
void pull_frame_threaded | ( | weed_layer_t * | layer, |
const char * | img_ext, | ||
ticks_t | tc, | ||
int | width, | ||
int | height | ||
) |
LiVESPixbuf* pull_lives_pixbuf | ( | int | clip, |
int | frame, | ||
const char * | image_ext, | ||
ticks_t | tc | ||
) |
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 | ||
) |
boolean read_file_details | ( | const char * | file_name, |
boolean | only_check_for_audio, | ||
boolean | open_image | ||
) |
Definition at line 207 of file saveplay.c.
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.
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.
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().
boolean reload_clip | ( | int | fileno, |
int | maxframe | ||
) |
< retain original order to restore for freshly opened clips
Definition at line 5735 of file saveplay.c.
void reload_subs | ( | int | fileno | ) |
Definition at line 4942 of file saveplay.c.
Referenced by reload_clip().
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().
char* remove_trailing_zeroes | ( | double | val | ) |
Definition at line 5395 of file utils.c.
Referenced by on_vpp_advanced_clicked().
boolean render_choice_idle | ( | livespointer | data | ) |
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().
void replace_with_delegates | ( | void | ) |
Definition at line 1090 of file main.c.
Referenced by resize_widgets_for_monitor().
void reset_clipmenu | ( | void | ) |
Definition at line 4290 of file utils.c.
Referenced by on_render_activate(), reload_set(), and switch_to_file().
void reset_message_area | ( | void | ) |
Definition at line 4734 of file gui.c.
Referenced by switch_to_file().
void resize | ( | double | scale | ) |
Definition at line 10230 of file main.c.
Referenced by add_to_playframe(), do_quick_switch(), lazy_startup_checks(), lives_paned_pack(), on_double_size_activate(), on_sepwin_activate(), prepare_to_play_foreign(), resize_message_area(), resize_widgets_for_monitor(), and switch_to_file().
boolean resize_message_area | ( | livespointer | data | ) |
Definition at line 3588 of file main.c.
Referenced by close_current_file(), and switch_to_file().
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().
void response_ok | ( | LiVESButton * | button, |
livespointer | user_data | ||
) |
boolean restore_clip_binfmt | ( | int | clipno | ) |
Definition at line 6022 of file saveplay.c.
ulong restore_file | ( | const char * | filename | ) |
Definition at line 4964 of file saveplay.c.
boolean rewrite_recovery_file | ( | void | ) |
Definition at line 6473 of file saveplay.c.
Referenced by close_ascrap_file(), and remove_from_clipmenu().
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().
boolean save_clip_values | ( | int | which_file | ) |
Definition at line 103 of file saveplay.c.
Referenced by after_foreign_play(), do_effect(), do_header_write_error(), on_paste_as_new_activate(), on_recaudclip_ok_clicked(), on_redo_activate(), on_render_activate(), on_resaudio_ok_clicked(), on_toy_activate(), and render_to_clip().
int save_event_frames | ( | void | ) |
Definition at line 5121 of file saveplay.c.
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().
boolean save_file_comments | ( | int | fileno | ) |
Definition at line 4100 of file saveplay.c.
void save_frame | ( | LiVESMenuItem * | menuitem, |
livespointer | user_data | ||
) |
Definition at line 1186 of file saveplay.c.
Referenced by frame_context().
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().
int save_to_scrap_file | ( | weed_layer_t * | layer | ) |
Definition at line 5569 of file saveplay.c.
void sensitize | ( | void | ) |
Definition at line 5078 of file main.c.
Referenced by close_current_file(), on_capture_activate(), on_fade_audio_activate(), on_import_proj_activate(), on_import_theme_activate(), on_load_cdtrack_ok_clicked(), on_normalise_audio_activate(), on_open_utube_activate(), on_paste_as_new_activate(), on_redo_activate(), on_rev_clipboard_activate(), on_toy_activate(), on_vj_realize_activate(), and switch_to_file().
void sensitize_rfx | ( | void | ) |
Definition at line 5036 of file main.c.
Referenced by sensitize().
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().
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().
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().
void set_interactive | ( | boolean | interactive | ) |
Definition at line 3072 of file gui.c.
Referenced by resize_widgets_for_monitor().
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().
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().
void set_preview_box_colours | ( | void | ) |
Definition at line 3505 of file gui.c.
Referenced by make_preview_box(), and pref_change_colours().
void set_record | ( | void | ) |
void set_sel_label | ( | LiVESWidget * | label | ) |
Definition at line 4838 of file utils.c.
Referenced by close_current_file(), do_quick_switch(), mt_init_start_end_spins(), and switch_to_file().
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().
void set_undoable | ( | const char * | what, |
boolean | sensitive | ||
) |
Definition at line 4784 of file utils.c.
Referenced by do_effect(), on_change_speed_ok_clicked(), on_cut_activate(), on_fade_audio_activate(), on_fx_pre_activate(), on_load_cdtrack_ok_clicked(), on_normalise_audio_activate(), on_recaudclip_ok_clicked(), on_render_activate(), on_resaudio_ok_clicked(), render_to_clip(), and start_render_effect_events().
void show_lives | ( | void | ) |
Definition at line 3006 of file gui.c.
Referenced by resize_widgets_for_monitor().
void show_manual_section | ( | const char * | lang, |
const char * | section | ||
) |
Definition at line 4629 of file utils.c.
Referenced by show_manual_activate().
void showclipimgs | ( | void | ) |
Definition at line 5636 of file main.c.
Referenced by do_effect(), do_quick_switch(), on_select_all_activate(), on_select_invert_activate(), on_select_last_activate(), on_select_new_activate(), on_sepwin_activate(), on_showsubs_toggled(), on_toy_activate(), and switch_to_file().
void splash_end | ( | void | ) |
Definition at line 4712 of file gui.c.
Referenced by startup_message_fatal().
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().
void start_playback_async | ( | int | type | ) |
Definition at line 96 of file saveplay.c.
boolean startup_message_choice | ( | const char * | msg, |
int | msgtype | ||
) |
void startup_message_fatal | ( | char * | msg | ) |
Definition at line 4962 of file main.c.
Referenced by dir_toolong_error(), and filename_toolong_error().
boolean startup_message_info | ( | const char * | msg | ) |
Definition at line 4987 of file main.c.
Referenced by do_upgrade_error_dialog().
boolean startup_message_nonfatal_dismissable | ( | const char * | msg, |
uint64_t | warning_mask | ||
) |
char* subst | ( | const char * | string, |
const char * | from, | ||
const char * | to | ||
) |
Definition at line 5484 of file utils.c.
Referenced by argv_to_marshalled_list(), array_to_string_list(), drag_from_outside(), ensure_isdir(), param_marshall(), reload_clip(), rfxbuilder_to_script(), script_to_rfxbuilder(), set_rfx_param_by_name_string(), and update_visual_params().
Definition at line 3819 of file utils.c.
Referenced by pref_factory_string().
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().
Definition at line 3884 of file utils.c.
Referenced by pref_factory_string().
Definition at line 3944 of file utils.c.
Referenced by pref_factory_string().
Definition at line 9808 of file main.c.
Referenced by aud_lock_callback(), and do_quick_switch().
void switch_to_file | ( | int | old_file, |
int | new_file | ||
) |
Definition at line 9646 of file main.c.
Referenced by _start_playback(), after_foreign_play(), do_quick_switch(), on_change_speed_ok_clicked(), on_erase_subs_activate(), on_load_subs_activate(), on_playclip_activate(), on_recaudclip_ok_clicked(), on_redo_activate(), on_resaudio_ok_clicked(), on_toy_activate(), reload_set(), and switch_clip().
void threaded_dialog_spin | ( | double | fraction | ) |
Definition at line 3823 of file dialogs.c.
Referenced by add_rfx_effects(), add_rfx_effects2(), check_for_lock_file(), clean_images_from_virtual(), delete_event(), lives_exit(), mt_memory_free(), on_fade_audio_activate(), on_normalise_audio_activate(), on_rebuild_rfx_activate(), on_save_rte_defs_activate(), on_vj_reset_activate(), reload_clip(), reload_set(), save_event_list_inner(), and virtual_to_images().
void toggle_record | ( | void | ) |
Definition at line 3712 of file gui.c.
Referenced by on_record_perf_activate().
void too_many_files | ( | void | ) |
Definition at line 2996 of file dialogs.c.
Referenced by create_cfile(), get_temp_handle(), and on_capture_activate().
void unblock_expose | ( | void | ) |
void unbuffer_lmap_errors | ( | boolean | add | ) |
Definition at line 2656 of file utils.c.
Referenced by on_append_audio_activate(), on_cut_activate(), on_fade_audio_activate(), on_load_cdtrack_ok_clicked(), on_realfx_activate(), on_resaudio_ok_clicked(), and popup_lmap_errors().
void unfade_background | ( | void | ) |
Definition at line 3324 of file gui.c.
Referenced by on_fade_activate(), and on_sepwin_activate().
char* unhash_version | ( | uint64_t | version | ) |
Definition at line 3522 of file utils.c.
Referenced by do_gamma_import_warn().
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().
void update_progress | ( | boolean | visible | ) |
Definition at line 1275 of file dialogs.c.
Referenced by virtual_to_images().
int verhash | ( | char * | version | ) |
Definition at line 4755 of file utils.c.
Referenced by do_effect().
void wait_for_bg_audio_sync | ( | int | fileno | ) |
Definition at line 4644 of file utils.c.
Referenced by add_file_info().
void wait_for_cleaner | ( | void | ) |
void wait_for_stop | ( | const char * | stop_command | ) |
Definition at line 4139 of file saveplay.c.
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().
void workdir_warning | ( | void | ) |
Definition at line 3001 of file dialogs.c.
Referenced by open_ascrap_file(), and open_scrap_file().
boolean write_headers | ( | lives_clip_t * | file | ) |
Definition at line 4394 of file saveplay.c.
void zero_spinbuttons | ( | void | ) |
Definition at line 3807 of file utils.c.
Referenced by close_current_file(), and switch_to_file().
weed_leaf_delete_f _weed_leaf_delete |
Definition at line 375 of file main.h.
Referenced by weed_leaf_delete_host().
weed_leaf_get_f _weed_leaf_get |
Definition at line 365 of file main.h.
Referenced by weed_leaf_get_monitor().
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_plant_free_f _weed_plant_free |
Definition at line 373 of file main.h.
Referenced by weed_plant_free_host().
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().
|
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().
|
extern |
type sizes
Definition at line 102 of file main.c.
Referenced by add_track_to_avol_init(), append_filter_init_event(), cconx_delete(), event_list_add_track(), fill_abuffer_from(), fill_param_vals_to(), get_best_audio(), get_int_param(), get_num_cpus(), insert_audio_event_at(), insert_frames(), insert_marker_event_at(), interpolate_param(), load_frame_image(), load_layout_map(), mt_add_region_effect(), param_copy(), pconx_delete(), remove_audio_for_track(), render_fx_get_params(), reset_frame_and_clip_index(), save_event_list_inner(), script_to_rfxbuilder(), set_int_param(), set_params_unchanged(), weed_apply_audio_instance(), and weed_params_to_rfx().
struct timeval tv |
Definition at line 1130 of file main.h.
Referenced by lives_get_relative_ticks().