LiVES
1.6.4-svn
|
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <limits.h>
#include "widget-helper.h"
#include "../libweed/weed.h"
#include "../libweed/weed-events.h"
#include "events.h"
#include "pangotext.h"
#include <inttypes.h>
#include "plugins.h"
#include "colourspace.h"
#include "paramspecial.h"
#include "multitrack.h"
#include "mainwindow.h"
#include "keyboard.h"
#include "preferences.h"
#include <sys/time.h>
Go to the source code of this file.
Data Structures | |
struct | event |
struct | xprocess |
struct | lives_audio_track_state_t |
struct | lives_colRGB24_t |
struct | lives_colRGBA32_t |
struct | file |
corresponds to one clip in the GUI More... | |
struct | capability |
Macros | |
#define | GUI_GTK |
#define | __STDC_CONSTANT_MACROS |
#define | QUOTEME(x) #x |
#define | MAX_FILES 65535 |
max files is actually 1 more than this, since file 0 is the clipboard | |
#define | PREFIX_DEFAULT "/usr" |
#define | PREFIX PREFIX_DEFAULT |
if –prefix= was not set, this is set to "NONE" | |
#define | DOC_DIR "/share/doc/lives-" |
#define | THEME_DIR "/share/lives/themes/" |
#define | PLUGIN_SCRIPTS_DIR "/share/lives/plugins/" |
#define | PLUGIN_EXEC_DIR "/lives/plugins/" |
#define | ICON_DIR "/share/lives/icons/" |
#define | DATA_DIR "/share/lives/" |
#define | LIVES_CONFIG_DIR ".lives-dir/" |
#define | LIVES_TMP_NAME "livestmp" |
#define | LIVES_DEVICE_DIR "/dev/" |
#define | LIVES_MANUAL_URL "http://lives.sourceforge.net/manual/" |
#define | LIVES_MANUAL_FILENAME "LiVES_manual.html" |
#define | LIVES_AUTHOR_EMAIL "mailto:salsaman@gmail.com" |
#define | LIVES_DONATE_URL "https://sourceforge.net/donate/index.php?group_id=64341" |
#define | LIVES_BUG_URL "http://sourceforge.net/tracker/?group_id=64341&atid=507139" |
#define | LIVES_FEATURE_URL "http://sourceforge.net/tracker/?group_id=64341&atid=507142" |
#define | LIVES_TRANSLATE_URL "https://translations.launchpad.net/lives/trunk" |
#define | DEF_FILE_PERMS S_IRUSR|S_IWUSR |
#define | DEF_FILE_UMASK (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)^( DEF_FILE_PERMS ) |
#define | WARN_FILE_SIZE 500 |
#define | FPS_MAX 200. |
maximum fps we will allow (gdouble) | |
#define | ENABLE_DVD_GRAB |
#define | FP_BITS 16 |
#define | LIVES_INLINE inline |
#define | PATH_MAX 4096 |
#define | WARN_UNUSED |
#define | AFORM_SIGNED 0 |
#define | AFORM_LITTLE_ENDIAN 0 |
#define | AFORM_UNSIGNED 1 |
#define | AFORM_BIG_ENDIAN (1<<1) |
#define | AFORM_UNKNOWN 65536 |
#define | LIVES_CLIP_HEADER_VERSION 100 |
#define | FX_FRAME_PUMP_VAL 200 |
how many frames to prime the pump for realtime effects and resampler | |
#define | IMG_BUFF_SIZE 4096 |
chunk size for reading images | |
#define | LIVES_LITTLE_ENDIAN G_LITTLE_ENDIAN |
#define | LIVES_BIG_ENDIAN G_BIG_ENDIAN |
#define | __STDC_FORMAT_MACROS |
#define | __WORDSIZE 32 |
#define | __PRI64_PREFIX "ll" |
#define | PRId64 __PRI64_PREFIX "d" |
#define | PRIu64 __PRI64_PREFIX "u" |
#define | cfile mainw->files[mainw->current_file] |
#define | clipboard mainw->files[0] |
#define | U82L(String) ( g_locale_from_utf8 (String,-1,NULL,NULL,NULL) ) |
#define | L2U8(String) ( g_locale_to_utf8 (String,-1,NULL,NULL,NULL) ) |
#define | PREFS_TIMEOUT 10000000 |
10 seconds | |
#define | LIVES_TV_CHANNEL1 "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm" |
#define | CEIL(a, b) ((int)(((double)a+(double)b-.000000001)/((double)b))*b) |
#define | LIVES_NO_DEBUG |
#define | LIVES_DEBUG(x) dummychar = x |
#define | LIVES_INFO(x) fprintf(stderr, "LiVES info: %s\n", x) |
#define | LIVES_WARN(x) fprintf(stderr, "LiVES warning: %s\n", x) |
#define | LIVES_ERROR(x) fprintf(stderr, "LiVES error: %s\n", x) |
#define | LIVES_FATAL(x) {fprintf(stderr, "LiVES fatal: %s\n", x); raise (LIVES_SIGSEGV);} |
Typedefs | |
typedef pid_t | lives_pid_t |
typedef int | lives_pgid_t |
typedef void *(* | fn_ptr )(void *ptr) |
Functions | |
xprocess * | create_processing (const gchar *text) |
void | add_to_winmenu (void) |
void | remove_from_winmenu (void) |
void | make_play_window (void) |
void | resize_play_window (void) |
void | kill_play_window (void) |
void | make_preview_box (void) |
void | add_to_playframe (void) |
GtkWidget * | create_cdtrack_dialog (gint type, gpointer user_data) |
GtkTextView * | create_output_textview (void) |
gchar * | choose_file (gchar *dir, gchar *fname, gchar **filt, GtkFileChooserAction act, const char *title, GtkWidget *extra) |
void | add_suffix_check (GtkBox *box, const gchar *ext) |
gboolean | do_progress_dialog (gboolean visible, gboolean cancellable, const gchar *text) |
gboolean | do_warning_dialog (const gchar *text) |
gboolean | do_warning_dialog_with_check (const gchar *text, gint warn_mask_number) |
gboolean | do_warning_dialog_with_check_transient (const gchar *text, gint warn_mask_number, GtkWindow *transient) |
gboolean | do_yesno_dialog (const gchar *text) WARN_UNUSED |
int | do_abort_cancel_retry_dialog (const gchar *text, GtkWindow *transient) WARN_UNUSED |
void | do_error_dialog (const gchar *text) |
void | do_error_dialog_with_check (const gchar *text, gint warn_mask_number) |
void | do_blocking_error_dialog (const gchar *text) |
void | do_error_dialog_with_check_transient (const gchar *text, gboolean is_blocking, gint warn_mask_number, GtkWindow *transient) |
void | do_system_failed_error (const char *com, int retval, const char *addinfo) |
int | do_write_failed_error_s_with_retry (const gchar *fname, const gchar *errtext, GtkWindow *transient) WARN_UNUSED |
void | do_write_failed_error_s (const char *filename, const char *addinfo) |
int | do_read_failed_error_s_with_retry (const gchar *fname, const gchar *errtext, GtkWindow *transient) WARN_UNUSED |
void | do_read_failed_error_s (const char *filename, const char *addinfo) |
gboolean | do_header_write_error (int clip) |
int | do_header_read_error_with_retry (int clip) WARN_UNUSED |
int | do_header_missing_detail_error (int clip, lives_clip_details_t detail) WARN_UNUSED |
void | do_chdir_failed_error (const char *dir) |
void | handle_backend_errors (void) |
gboolean | check_backend_return (file *sfile) |
gchar * | ds_critical_msg (const gchar *dir, guint64 dsval) |
gchar * | ds_warning_msg (const gchar *dir, guint64 dsval, guint64 cwarn, guint64 nwarn) |
gboolean | check_storage_space (file *sfile, gboolean is_processing) |
gchar * | get_upd_msg (void) |
gchar * | get_new_install_msg (void) |
gboolean | ask_permission_dialog (int what) |
gboolean | do_abort_check (void) |
void | add_warn_check (GtkBox *box, gint warn_mask_number) |
void | do_memory_error_dialog (void) |
void | too_many_files (void) |
void | tempdir_warning (void) |
void | do_audio_import_error (void) |
void | do_mt_backup_space_error (lives_mt *, gint memreq_mb) |
gboolean | do_clipboard_fps_warning (void) |
void | perf_mem_warning (void) |
void | do_dvgrab_error (void) |
gboolean | do_comments_dialog (file *sfile, gchar *filename) |
gboolean | do_auto_dialog (const gchar *text, gint type) |
void | do_encoder_acodec_error (void) |
void | do_encoder_sox_error (void) |
gboolean | rdet_suggest_values (gint width, gint height, gdouble fps, gint fps_num, gint fps_denom, gint arate, gint asigned, gboolean swap_endian, gboolean anr, gboolean ignore_fps) |
gboolean | do_encoder_restrict_dialog (gint width, gint height, gdouble fps, gint fps_num, gint fps_denom, gint arate, gint asigned, gboolean swap_endian, gboolean anr, gboolean save_all) |
void | do_keys_window (void) |
void | do_mt_keys_window (void) |
void | do_messages_window (void) |
void | do_firstever_dialog (void) |
void | do_upgrade_error_dialog (void) |
void | do_no_mplayer_sox_error (void) |
void | do_aud_during_play_error (void) |
void | do_rendered_fx_dialog (void) |
void | do_layout_scrap_file_error (void) |
void | do_layout_ascrap_file_error (void) |
void | do_set_load_lmap_error (void) |
gboolean | do_set_duplicate_warning (const gchar *new_set) |
gboolean | do_set_rename_old_layouts_warning (const gchar *new_set) |
gboolean | do_layout_alter_frames_warning (void) |
gboolean | do_layout_alter_audio_warning (void) |
gboolean | 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 (gboolean has_mt, gboolean trans) |
void | do_mt_audchan_error (gint warn_mask) |
void | do_mt_no_audchan_error (void) |
void | do_mt_no_jack_error (gint warn_mask) |
gboolean | do_mt_rect_prompt (void) |
void | do_audrate_error_dialog (void) |
gboolean | 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 (gint size) |
gboolean | do_original_lost_warning (const gchar *fname) |
void | do_no_decoder_error (const gchar *fname) |
void | do_jack_noopen_warn (void) |
void | do_jack_noopen_warn2 (void) |
void | do_jack_noopen_warn3 (void) |
void | do_jack_noopen_warn4 (void) |
void | do_file_perm_error (const gchar *file_name) |
void | do_dir_perm_error (const gchar *dir_name) |
void | do_encoder_img_ftm_error (render_details *rdet) |
void | do_after_crash_warning (void) |
void | do_bad_layout_error (void) |
void | do_card_in_use_error (void) |
void | do_dev_busy_error (const gchar *devstr) |
gboolean | do_existing_subs_warning (void) |
void | do_invalid_subs_error (void) |
gboolean | do_erase_subs_warning (void) |
gboolean | do_sub_type_warning (const gchar *ext, const gchar *type_ext) |
gboolean | do_move_tmpdir_dialog (void) |
void | do_set_locked_warning (const gchar *setname) |
void | do_no_in_vdevs_error (void) |
void | do_locked_in_vdevs_error (void) |
void | do_do_not_close_d (void) |
void | do_set_noclips_error (const char *setname) |
void | do_no_autolives_error (void) |
void | do_autolives_needs_clips_error (void) |
void | do_pulse_lost_conn_error (void) |
void | do_jack_lost_conn_error (void) |
gboolean | process_one (gboolean visible) |
void | do_threaded_dialog (gchar *translated_text, gboolean has_cancel) |
void | end_threaded_dialog (void) |
void | threaded_dialog_spin (void) |
void | response_ok (GtkButton *button, gpointer user_data) |
void | response_cancel (GtkButton *button, gpointer user_data) |
void | pump_io_chan (GIOChannel *iochan) |
void | do_splash_progress (void) |
void | d_print_cancelled (void) |
void | d_print_failed (void) |
void | d_print_done (void) |
void | d_print_file_error_failed (void) |
void | do_text_window (const gchar *title, const gchar *text) |
gboolean | add_file_info (const gchar *check_handle, gboolean aud_only) |
gboolean | save_file_comments (int fileno) |
void | reget_afilesize (int fileno) |
void | deduce_file (const gchar *filename, gdouble start_time, gint end) |
void | open_file (const gchar *filename) |
void | open_file_sel (const gchar *file_name, gdouble start_time, gint frames) |
void | open_fw_device (void) |
gboolean | get_new_handle (gint index, const gchar *name) |
gboolean | get_temp_handle (gint index, gboolean create) |
gboolean | get_handle_from_info_file (gint index) |
void | create_cfile (void) |
void | save_file (int clip, int start, int end, const char *filename) |
void | play_file (void) |
void | save_frame (GtkMenuItem *menuitem, gpointer user_data) |
gboolean | save_frame_inner (gint clip, gint frame, const gchar *file_name, gint width, gint height, gboolean auto_overwrite) |
void | wait_for_stop (const gchar *stop_command) |
gboolean | save_clip_values (gint which_file) |
void | add_to_recovery_file (const gchar *handle) |
void | rewrite_recovery_file (void) |
gboolean | check_for_recovery_files (gboolean auto_recover) |
void | recover_layout_map (gint numclips) |
const gchar * | get_deinterlace_string (void) |
void | backup_file (int clip, int start, int end, const gchar *filename) |
gint | save_event_frames (void) |
gboolean | write_headers (file *file) |
void | restore_file (const gchar *filename) |
gboolean | read_headers (const gchar *file_name) |
void | open_set_file (const gchar *set_name, gint clipnum) |
gboolean | open_scrap_file (void) |
gboolean | open_ascrap_file (void) |
gint | save_to_scrap_file (weed_plant_t *layer) |
gboolean | load_from_scrap_file (weed_plant_t *layer, int frame) |
void | close_ascrap_file (void) |
void | close_scrap_file (void) |
void | catch_sigint (int signum) |
gboolean | startup_message_fatal (const gchar *msg) |
gboolean | startup_message_nonfatal (const gchar *msg) |
gboolean | startup_message_nonfatal_dismissable (const gchar *msg, gint warning_mask) |
capability * | get_capabilities (void) |
void | get_monitors (void) |
void | load_start_image (gint frame) |
void | load_end_image (gint frame) |
void | load_preview_image (gboolean update_always) |
gboolean | pull_frame (weed_plant_t *layer, const gchar *image_ext, weed_timecode_t tc) |
gboolean | pull_frame_at_size (weed_plant_t *layer, const gchar *image_ext, weed_timecode_t tc, int width, int height, int target_palette) |
LiVESPixbuf * | pull_lives_pixbuf_at_size (int clip, int frame, const char *image_ext, weed_timecode_t tc, int width, int height, LiVESInterpType interp) |
GError * | lives_pixbuf_save (GdkPixbuf *pixbuf, gchar *fname, lives_image_type_t imgtype, int quality, gboolean do_chmod, GError **gerrorptr) |
void | load_frame_image (gint frame) |
void | sensitize (void) |
void | desensitize (void) |
void | procw_desensitize (void) |
void | close_current_file (gint file_to_switch_to) |
close current file, and try to switch to file_to_switch_to | |
void | get_next_free_file (void) |
void | switch_to_file (gint old_file, gint new_file) |
void | do_quick_switch (gint new_file) |
void | resize (gdouble scale) |
gboolean | read_file_details (const gchar *file_name, gboolean only_check_for_audio) |
void | do_start_messages (void) |
void | set_palette_colours (void) |
void | set_main_title (const gchar *filename, gint or_untitled_number) |
void | set_record (void) |
void | create_LiVES (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 | block_expose (void) |
void | unblock_expose (void) |
void | frame_size_update (void) |
void | splash_init (void) |
void | splash_end (void) |
void | splash_msg (const gchar *msg, gdouble pct) |
void | add_message_scroller (GtkWidget *conter) |
int | lives_system (const char *com, gboolean allow_error) |
lives_pid_t | lives_fork (const char *com) |
ssize_t | lives_write (int fd, const void *buf, size_t count, gboolean allow_fail) |
ssize_t | lives_write_le (int fd, const void *buf, size_t count, gboolean allow_fail) |
ssize_t | lives_read (int fd, void *buf, size_t count, gboolean allow_less) |
ssize_t | lives_read_le (int fd, void *buf, size_t count, gboolean allow_less) |
int | lives_chdir (const char *path, gboolean allow_fail) |
int | lives_fputs (const char *s, FILE *stream) |
char * | lives_fgets (char *s, int size, FILE *stream) |
pid_t | lives_getpid (void) |
int | lives_getgid (void) |
int | lives_getuid (void) |
void | lives_freep (void **ptr) |
void | lives_free (gpointer ptr) |
void | lives_free_with_check (gpointer ptr) |
checks if ptr is mainw->do_not_free, otherwise calls lives_free_normal() | |
int | lives_kill (lives_pid_t pid, int sig) |
int | lives_killpg (lives_pgid_t pgrp, int sig) |
void | lives_srandom (unsigned int seed) |
uint64_t | lives_random (void) |
ssize_t | lives_readlink (const char *path, char *buf, size_t bufsiz) |
boolean | lives_setenv (const char *name, const char *value) |
boolean | lives_fsync (int fd) |
void | lives_sync (void) |
char * | filename_from_fd (char *val, int fd) |
float | LEFloat_to_BEFloat (float f) |
uint64_t | lives_10pow (int pow) |
int | get_approx_ln (guint val) |
int64_t | lives_get_current_ticks (void) |
gboolean | lives_alarm_get (int alarm_handle) |
int | lives_alarm_set (int64_t ticks) |
void | lives_alarm_clear (int alarm_handle) |
lives_storage_status_t | get_storage_status (const char *dir, guint64 warn_level, guint64 *dsval) |
gchar * | lives_format_storage_space_string (guint64 space) |
gint | myround (gdouble n) |
void | get_dirname (gchar *filename) |
gchar * | get_dir (const gchar *filename) |
void | get_basename (gchar *filename) |
void | get_filename (gchar *filename, gboolean strip_dir) |
gchar * | get_extension (const gchar *filename) |
guint64 | get_version_hash (const gchar *exe, const gchar *sep, int piece) |
void | d_print (const gchar *text) |
void | init_clipboard (void) |
gboolean | cache_file_contents (const gchar *filename) |
gchar * | get_val_from_cached_list (const gchar *key, size_t maxlen) |
void | get_pref (const gchar *key, gchar *val, gint maxlen) |
void | get_pref_utf8 (const gchar *key, gchar *val, gint maxlen) |
void | get_pref_default (const gchar *key, gchar *val, gint maxlen) |
gboolean | get_boolean_pref (const gchar *key) |
gdouble | get_double_pref (const gchar *key) |
gint | get_int_pref (const gchar *key) |
GList * | get_list_pref (const gchar *key) |
void | get_location (const gchar *exe, gchar *val, gint maxlen) |
void | set_pref (const gchar *key, const gchar *value) |
void | delete_pref (const gchar *key) |
void | set_boolean_pref (const gchar *key, gboolean value) |
void | set_double_pref (const gchar *key, gdouble value) |
void | set_int_pref (const gchar *key, gint value) |
void | set_int64_pref (const gchar *key, gint64 value) |
void | set_list_pref (const char *key, GList *values) |
gboolean | apply_prefs (gboolean skip_warnings) |
void | save_future_prefs (void) |
void | set_menu_text (GtkWidget *menu, const gchar *text, gboolean use_mnemonic) |
void | get_menu_text (GtkWidget *menu, gchar *text) |
void | get_menu_text_long (GtkWidget *menuitem, gchar *text) |
void | reset_clip_menu (void) |
void | get_play_times (void) |
void | get_total_time (file *file) |
guint | get_signed_endian (gboolean is_signed, gboolean little_endian) |
void | fullscreen_internal (void) |
void | set_alwaysontop (GtkWidget *window, gboolean ontop) |
TODO - use for playwin. | |
void | colour_equal (GdkColor *c1, const GdkColor *c2) |
void | switch_to_int_player (void) |
void | switch_to_mplayer (void) |
void | switch_aud_to_sox (gboolean set_pref) |
gboolean | switch_aud_to_jack (void) |
gboolean | switch_aud_to_pulse (void) |
void | switch_aud_to_mplayer (gboolean set_pref) |
void | prepare_to_play_foreign (void) |
gboolean | after_foreign_play (void) |
gboolean | check_file (const gchar *file_name, gboolean check_exists) |
check if file exists | |
gboolean | check_dir_access (const gchar *dir) |
uint64_t | get_file_size (int fd) |
uint64_t | sget_file_size (const gchar *name) |
uint64_t | get_fs_free (const char *dir) |
gboolean | is_writeable_dir (const char *dir) |
gboolean | ensure_isdir (gchar *fname) |
gchar * | ensure_extension (const gchar *fname, const gchar *ext) WARN_UNUSED |
gboolean | check_dev_busy (gchar *devstr) |
void | activate_url_inner (const gchar *link) |
void | activate_url (GtkAboutDialog *about, const gchar *link, gpointer data) |
void | show_manual_section (const gchar *lang, const gchar *section) |
gdouble | calc_time_from_frame (gint clip, gint frame) |
gint | calc_frame_from_time (gint filenum, gdouble time) |
nearest frame start | |
gint | calc_frame_from_time2 (gint filenum, gdouble time) |
nearest frame end | |
gint | calc_frame_from_time3 (gint filenum, gdouble time) |
nearest frame mid | |
gboolean | check_for_ratio_fps (gdouble fps) |
gdouble | get_ratio_fps (const gchar *string) |
void | calc_maxspect (gint rwidth, gint rheight, gint *cwidth, gint *cheight) |
gchar * | remove_trailing_zeroes (gdouble val) |
void | remove_layout_files (GList *lmap) |
gboolean | add_lmap_error (lives_lmap_error_t lerror, const gchar *name, gpointer user_data, gint clipno, gint frameno, gdouble atime, gboolean affects_current) |
void | clear_lmap_errors (void) |
gboolean | prompt_remove_layout_files (void) |
gboolean | is_legal_set_name (const gchar *set_name, gboolean allow_dupes) |
gchar * | repl_tmpdir (const gchar *entry, gboolean fwd) |
gchar * | clip_detail_to_string (lives_clip_details_t what, size_t *maxlenp) |
gboolean | get_clip_value (int which, lives_clip_details_t, void *retval, size_t maxlen) |
void | save_clip_value (int which, lives_clip_details_t, void *val) |
gboolean | check_frame_count (gint idx) |
void | get_frame_count (gint idx) |
gint | count_resampled_frames (gint in_frames, gdouble orig_fps, gdouble resampled_fps) |
gboolean | int_array_contains_value (int *array, int num_elems, int value) |
gboolean | check_for_lock_file (const gchar *set_name, gint type) |
void | g_list_free_strings (GList *list) |
gboolean | create_event_space (gint length_in_eventsb) |
void | add_to_recent (const gchar *filename, gdouble start, gint frames, const gchar *file_open_params) |
gint | verhash (gchar *version) |
void | set_undoable (const gchar *what, gboolean sensitive) |
void | set_redoable (const gchar *what, gboolean sensitive) |
void | zero_spinbuttons (void) |
void | draw_little_bars (gdouble ptrtime) |
void | set_sel_label (GtkWidget *label) |
void | clear_mainw_msg (void) |
gint | get_token_count (const gchar *string, int delim) |
LiVESPixbuf * | lives_pixbuf_new_blank (int width, int height, int palette) |
gchar * | g_strappend (gchar *string, gint len, const gchar *newbit) |
GList * | g_list_append_unique (GList *xlist, const gchar *add) |
void | find_when_to_stop (void) |
gint | calc_new_playback_position (gint fileno, gint64 otc, gint64 *ntc) |
void | calc_aframeno (gint fileno) |
void | minimise_aspect_delta (gdouble allowed_aspect, gint hblock, gint vblock, gint hsize, gint vsize, gint *width, gint *height) |
LiVESInterpType | get_interp_value (gshort quality) |
GList * | g_list_move_to_first (GList *list, GList *item) WARN_UNUSED |
GList * | g_list_delete_string (GList *, char *string) WARN_UNUSED |
GList * | g_list_copy_strings (GList *list) |
gboolean | string_lists_differ (GList *, GList *) |
GList * | get_set_list (const gchar *dir) |
gchar * | subst (const gchar *string, const gchar *from, const gchar *to) |
gchar * | insert_newlines (const gchar *text, int maxwidth) |
gint | hextodec (const gchar *string) |
gint | get_hex_digit (const gchar *c) |
guint32 | fastrand (void) |
void | fastsrand (guint32 seed) |
gint | lives_list_index (GList *list, const gchar *data) |
lives_cancel_t | check_for_bad_ffmpeg (void) |
GList * | get_external_window_hints (lives_rfx_t *rfx) |
gboolean | check_encoder_restrictions (gboolean get_extension, gboolean user_audio, gboolean save_all) |
void | lives_exit (void) |
void | count_opening_frames (void) |
void | on_fileread_clicked (GtkFileChooser *, gpointer widget) |
gboolean | dirchange_callback (GtkAccelGroup *, GObject *, guint, GdkModifierType, gpointer user_data) |
void | on_effects_paused (GtkButton *, gpointer user_data) |
void | on_cancel_keep_button_clicked (GtkButton *, gpointer user_data) |
void | on_cleardisk_activate (GtkWidget *, gpointer user_data) |
void | on_cleardisk_advanced_clicked (GtkWidget *, gpointer user_data) |
gboolean | mt_framedraw (lives_mt *, GdkPixbuf *) |
void | add_fill_to_box (GtkBox *) |
void | refresh_rte_window (void) |
void * | lives_malloc (size_t size) |
void * | lives_memcpy (void *dest, const void *src, size_t n) |
void * | lives_memset (void *s, int c, size_t n) |
void | lives_free (void *ptr) |
calls mainw->free_fn | |
void | lives_free_normal (void *ptr) |
values of mainw->free_fn | |
gboolean | subtitles_init (file *sfile, char *fname, lives_subtitle_type_t) |
void | subtitles_free (file *sfile) |
gboolean | get_srt_text (file *sfile, double xtime) |
gboolean | get_sub_text (file *sfile, double xtime) |
gboolean | save_sub_subtitles (file *sfile, double start_time, double end_time, double offset_time, const char *filename) |
gboolean | save_srt_subtitles (file *sfile, double start_time, double end_time, double offset_time, const char *filename) |
Variables | |
capability * | capable |
some shared structures | |
mainwindow * | mainw |
struct timeval | tv |
size_t | sizint |
type sizes | |
size_t | sizdbl |
size_t | sizshrt |
gchar * | dummychar |
#define __PRI64_PREFIX "ll" |
#define __STDC_CONSTANT_MACROS |
#define __STDC_FORMAT_MACROS |
#define __WORDSIZE 32 |
#define AFORM_BIG_ENDIAN (1<<1) |
#define AFORM_LITTLE_ENDIAN 0 |
#define AFORM_SIGNED 0 |
#define AFORM_UNKNOWN 65536 |
#define AFORM_UNSIGNED 1 |
#define CEIL | ( | a, | |
b | |||
) | ((int)(((double)a+(double)b-.000000001)/((double)b))*b) |
#define clipboard mainw->files[0] |
#define DATA_DIR "/share/lives/" |
#define DEF_FILE_PERMS S_IRUSR|S_IWUSR |
#define DEF_FILE_UMASK (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)^( DEF_FILE_PERMS ) |
#define DOC_DIR "/share/doc/lives-" |
#define ENABLE_DVD_GRAB |
#define FP_BITS 16 |
#define FPS_MAX 200. |
maximum fps we will allow (gdouble)
#define FX_FRAME_PUMP_VAL 200 |
how many frames to prime the pump for realtime effects and resampler
#define GUI_GTK |
#define ICON_DIR "/share/lives/icons/" |
#define IMG_BUFF_SIZE 4096 |
chunk size for reading images
#define L2U8 | ( | String | ) | ( g_locale_to_utf8 (String,-1,NULL,NULL,NULL) ) |
#define LIVES_AUTHOR_EMAIL "mailto:salsaman@gmail.com" |
#define LIVES_BIG_ENDIAN G_BIG_ENDIAN |
#define LIVES_BUG_URL "http://sourceforge.net/tracker/?group_id=64341&atid=507139" |
#define LIVES_CLIP_HEADER_VERSION 100 |
#define LIVES_CONFIG_DIR ".lives-dir/" |
#define LIVES_DEBUG | ( | x | ) | dummychar = x |
#define LIVES_DEVICE_DIR "/dev/" |
#define LIVES_DONATE_URL "https://sourceforge.net/donate/index.php?group_id=64341" |
#define LIVES_ERROR | ( | x | ) | fprintf(stderr, "LiVES error: %s\n", x) |
#define LIVES_FATAL | ( | x | ) | {fprintf(stderr, "LiVES fatal: %s\n", x); raise (LIVES_SIGSEGV);} |
#define LIVES_FEATURE_URL "http://sourceforge.net/tracker/?group_id=64341&atid=507142" |
#define LIVES_INFO | ( | x | ) | fprintf(stderr, "LiVES info: %s\n", x) |
#define LIVES_INLINE inline |
#define LIVES_LITTLE_ENDIAN G_LITTLE_ENDIAN |
#define LIVES_MANUAL_FILENAME "LiVES_manual.html" |
#define LIVES_MANUAL_URL "http://lives.sourceforge.net/manual/" |
#define LIVES_NO_DEBUG |
#define LIVES_TMP_NAME "livestmp" |
#define LIVES_TRANSLATE_URL "https://translations.launchpad.net/lives/trunk" |
#define LIVES_TV_CHANNEL1 "http://www.serverwillprovide.com/sorteal/livestvclips/livestv.ogm" |
#define LIVES_WARN | ( | x | ) | fprintf(stderr, "LiVES warning: %s\n", x) |
#define MAX_FILES 65535 |
max files is actually 1 more than this, since file 0 is the clipboard
#define PATH_MAX 4096 |
#define PLUGIN_EXEC_DIR "/lives/plugins/" |
#define PLUGIN_SCRIPTS_DIR "/share/lives/plugins/" |
#define PREFIX PREFIX_DEFAULT |
if –prefix= was not set, this is set to "NONE"
#define PREFIX_DEFAULT "/usr" |
this must match AC_PREFIX_DEFAULT in configure.in TODO - when lives-plugins is a separate package, use pkg-config to get PREFIX and remove PREFIX_DEFAULT
#define PREFS_TIMEOUT 10000000 |
10 seconds
#define PRId64 __PRI64_PREFIX "d" |
#define PRIu64 __PRI64_PREFIX "u" |
#define QUOTEME | ( | x | ) | #x |
#define THEME_DIR "/share/lives/themes/" |
#define U82L | ( | String | ) | ( g_locale_from_utf8 (String,-1,NULL,NULL,NULL) ) |
#define WARN_FILE_SIZE 500 |
LiVES will show a warning if this (MBytes) is exceeded on load (can be overridden in prefs)
#define WARN_UNUSED |
typedef void*(* fn_ptr)(void *ptr) |
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_image_type_t |
enum lives_interlace_t |
enum lives_undo_t |
need this for event_list_t *
enum lives_whentostop_t |
void activate_url | ( | GtkAboutDialog * | about, |
const gchar * | link, | ||
gpointer | data | ||
) |
void activate_url_inner | ( | const gchar * | link | ) |
gboolean add_file_info | ( | const gchar * | check_handle, |
gboolean | aud_only | ||
) |
void add_fill_to_box | ( | GtkBox * | ) |
gboolean add_lmap_error | ( | lives_lmap_error_t | lerror, |
const gchar * | name, | ||
gpointer | user_data, | ||
gint | clipno, | ||
gint | frameno, | ||
gdouble | atime, | ||
gboolean | affects_current | ||
) |
void add_message_scroller | ( | GtkWidget * | conter | ) |
void add_suffix_check | ( | GtkBox * | box, |
const gchar * | ext | ||
) |
void add_to_playframe | ( | void | ) |
void add_to_recent | ( | const gchar * | filename, |
gdouble | start, | ||
gint | frames, | ||
const gchar * | file_open_params | ||
) |
void add_to_recovery_file | ( | const gchar * | handle | ) |
void add_to_winmenu | ( | void | ) |
void add_warn_check | ( | GtkBox * | box, |
gint | warn_mask_number | ||
) |
gboolean after_foreign_play | ( | void | ) |
gboolean apply_prefs | ( | gboolean | skip_warnings | ) |
gboolean ask_permission_dialog | ( | int | what | ) |
void backup_file | ( | int | clip, |
int | start, | ||
int | end, | ||
const gchar * | filename | ||
) |
void block_expose | ( | void | ) |
gboolean cache_file_contents | ( | const gchar * | filename | ) |
void calc_aframeno | ( | gint | fileno | ) |
gint calc_frame_from_time | ( | gint | filenum, |
gdouble | time | ||
) |
nearest frame start
gint calc_frame_from_time2 | ( | gint | filenum, |
gdouble | time | ||
) |
nearest frame end
gint calc_frame_from_time3 | ( | gint | filenum, |
gdouble | time | ||
) |
nearest frame mid
void calc_maxspect | ( | gint | rwidth, |
gint | rheight, | ||
gint * | cwidth, | ||
gint * | cheight | ||
) |
gint calc_new_playback_position | ( | gint | fileno, |
gint64 | otc, | ||
gint64 * | ntc | ||
) |
gdouble calc_time_from_frame | ( | gint | clip, |
gint | frame | ||
) |
void catch_sigint | ( | int | signum | ) |
gboolean check_backend_return | ( | file * | sfile | ) |
gboolean check_dev_busy | ( | gchar * | devstr | ) |
gboolean check_dir_access | ( | const gchar * | dir | ) |
gboolean check_encoder_restrictions | ( | gboolean | get_extension, |
gboolean | user_audio, | ||
gboolean | save_all | ||
) |
end restrictions
gboolean check_file | ( | const gchar * | file_name, |
gboolean | check_exists | ||
) |
check if file exists
lives_cancel_t check_for_bad_ffmpeg | ( | void | ) |
gboolean check_for_lock_file | ( | const gchar * | set_name, |
gint | type | ||
) |
gboolean check_for_ratio_fps | ( | gdouble | fps | ) |
gboolean check_for_recovery_files | ( | gboolean | auto_recover | ) |
gboolean check_frame_count | ( | gint | idx | ) |
gboolean check_storage_space | ( | file * | sfile, |
gboolean | is_processing | ||
) |
gchar* choose_file | ( | gchar * | dir, |
gchar * | fname, | ||
gchar ** | filt, | ||
GtkFileChooserAction | act, | ||
const char * | title, | ||
GtkWidget * | extra | ||
) |
void clear_lmap_errors | ( | void | ) |
void clear_mainw_msg | ( | void | ) |
gchar* clip_detail_to_string | ( | lives_clip_details_t | what, |
size_t * | maxlenp | ||
) |
void close_ascrap_file | ( | void | ) |
void close_current_file | ( | gint | file_to_switch_to | ) |
close current file, and try to switch to file_to_switch_to
void close_scrap_file | ( | void | ) |
void colour_equal | ( | GdkColor * | c1, |
const GdkColor * | c2 | ||
) |
void count_opening_frames | ( | void | ) |
gint count_resampled_frames | ( | gint | in_frames, |
gdouble | orig_fps, | ||
gdouble | resampled_fps | ||
) |
GtkWidget* create_cdtrack_dialog | ( | gint | type, |
gpointer | user_data | ||
) |
void create_cfile | ( | void | ) |
gboolean create_event_space | ( | gint | length_in_eventsb | ) |
void create_LiVES | ( | void | ) |
GtkTextView* create_output_textview | ( | void | ) |
xprocess* create_processing | ( | const gchar * | text | ) |
void d_print | ( | const gchar * | text | ) |
void d_print_cancelled | ( | void | ) |
void d_print_done | ( | void | ) |
void d_print_failed | ( | void | ) |
void d_print_file_error_failed | ( | void | ) |
void deduce_file | ( | const gchar * | filename, |
gdouble | start_time, | ||
gint | end | ||
) |
void delete_pref | ( | const gchar * | key | ) |
void desensitize | ( | void | ) |
gboolean dirchange_callback | ( | GtkAccelGroup * | , |
GObject * | , | ||
guint | , | ||
GdkModifierType | , | ||
gpointer | user_data | ||
) |
void disable_record | ( | void | ) |
int do_abort_cancel_retry_dialog | ( | const gchar * | text, |
GtkWindow * | transient | ||
) |
gboolean do_abort_check | ( | void | ) |
void do_after_crash_warning | ( | void | ) |
void do_aud_during_play_error | ( | void | ) |
void do_audio_import_error | ( | void | ) |
void do_audrate_error_dialog | ( | void | ) |
gboolean do_auto_dialog | ( | const gchar * | text, |
gint | type | ||
) |
void do_autolives_needs_clips_error | ( | void | ) |
void do_bad_layout_error | ( | void | ) |
void do_blocking_error_dialog | ( | const gchar * | text | ) |
void do_card_in_use_error | ( | void | ) |
void do_chdir_failed_error | ( | const char * | dir | ) |
gboolean do_clipboard_fps_warning | ( | void | ) |
gboolean do_comments_dialog | ( | file * | sfile, |
gchar * | filename | ||
) |
void do_decoder_palette_error | ( | void | ) |
void do_dev_busy_error | ( | const gchar * | devstr | ) |
void do_dir_perm_error | ( | const gchar * | dir_name | ) |
void do_do_not_close_d | ( | void | ) |
void do_dvgrab_error | ( | void | ) |
void do_encoder_acodec_error | ( | void | ) |
void do_encoder_img_ftm_error | ( | render_details * | rdet | ) |
gboolean do_encoder_restrict_dialog | ( | gint | width, |
gint | height, | ||
gdouble | fps, | ||
gint | fps_num, | ||
gint | fps_denom, | ||
gint | arate, | ||
gint | asigned, | ||
gboolean | swap_endian, | ||
gboolean | anr, | ||
gboolean | save_all | ||
) |
void do_encoder_sox_error | ( | void | ) |
gboolean do_erase_subs_warning | ( | void | ) |
void do_error_dialog | ( | const gchar * | text | ) |
void do_error_dialog_with_check | ( | const gchar * | text, |
gint | warn_mask_number | ||
) |
void do_error_dialog_with_check_transient | ( | const gchar * | text, |
gboolean | is_blocking, | ||
gint | warn_mask_number, | ||
GtkWindow * | transient | ||
) |
gboolean do_event_list_warning | ( | void | ) |
gboolean do_existing_subs_warning | ( | void | ) |
void do_file_perm_error | ( | const gchar * | file_name | ) |
void do_firstever_dialog | ( | void | ) |
int do_header_missing_detail_error | ( | int | clip, |
lives_clip_details_t | detail | ||
) |
int do_header_read_error_with_retry | ( | int | clip | ) |
gboolean do_header_write_error | ( | int | clip | ) |
void do_invalid_subs_error | ( | void | ) |
void do_jack_lost_conn_error | ( | void | ) |
void do_jack_noopen_warn | ( | void | ) |
void do_jack_noopen_warn2 | ( | void | ) |
void do_jack_noopen_warn3 | ( | void | ) |
void do_jack_noopen_warn4 | ( | void | ) |
void do_keys_window | ( | void | ) |
gboolean do_layout_alter_audio_warning | ( | void | ) |
gboolean do_layout_alter_frames_warning | ( | void | ) |
void do_layout_ascrap_file_error | ( | void | ) |
void do_layout_scrap_file_error | ( | void | ) |
void do_locked_in_vdevs_error | ( | void | ) |
void do_memory_error_dialog | ( | void | ) |
void do_messages_window | ( | void | ) |
gboolean do_move_tmpdir_dialog | ( | void | ) |
void do_mt_audchan_error | ( | gint | warn_mask | ) |
void do_mt_backup_space_error | ( | lives_mt * | , |
gint | memreq_mb | ||
) |
void do_mt_keys_window | ( | void | ) |
void do_mt_no_audchan_error | ( | void | ) |
void do_mt_no_jack_error | ( | gint | warn_mask | ) |
gboolean do_mt_rect_prompt | ( | void | ) |
void do_mt_set_mem_error | ( | gboolean | has_mt, |
gboolean | trans | ||
) |
void do_mt_undo_buf_error | ( | void | ) |
void do_mt_undo_mem_error | ( | void | ) |
void do_no_autolives_error | ( | void | ) |
void do_no_decoder_error | ( | const gchar * | fname | ) |
void do_no_in_vdevs_error | ( | void | ) |
void do_no_mplayer_sox_error | ( | void | ) |
void do_nojack_rec_error | ( | void | ) |
gboolean do_original_lost_warning | ( | const gchar * | fname | ) |
gboolean do_progress_dialog | ( | gboolean | visible, |
gboolean | cancellable, | ||
const gchar * | text | ||
) |
void do_pulse_lost_conn_error | ( | void | ) |
void do_quick_switch | ( | gint | new_file | ) |
void do_read_failed_error_s | ( | const char * | filename, |
const char * | addinfo | ||
) |
int do_read_failed_error_s_with_retry | ( | const gchar * | fname, |
const gchar * | errtext, | ||
GtkWindow * | transient | ||
) |
void do_rendered_fx_dialog | ( | void | ) |
void do_rmem_max_error | ( | gint | size | ) |
gboolean do_set_duplicate_warning | ( | const gchar * | new_set | ) |
void do_set_load_lmap_error | ( | void | ) |
void do_set_locked_warning | ( | const gchar * | setname | ) |
void do_set_noclips_error | ( | const char * | setname | ) |
gboolean do_set_rename_old_layouts_warning | ( | const gchar * | new_set | ) |
void do_splash_progress | ( | void | ) |
void do_start_messages | ( | void | ) |
gboolean do_sub_type_warning | ( | const gchar * | ext, |
const gchar * | type_ext | ||
) |
void do_system_failed_error | ( | const char * | com, |
int | retval, | ||
const char * | addinfo | ||
) |
void do_text_window | ( | const gchar * | title, |
const gchar * | text | ||
) |
void do_threaded_dialog | ( | gchar * | translated_text, |
gboolean | has_cancel | ||
) |
void do_upgrade_error_dialog | ( | void | ) |
void do_vpp_fps_error | ( | void | ) |
void do_vpp_palette_error | ( | void | ) |
gboolean do_warning_dialog | ( | const gchar * | text | ) |
gboolean do_warning_dialog_with_check | ( | const gchar * | text, |
gint | warn_mask_number | ||
) |
gboolean do_warning_dialog_with_check_transient | ( | const gchar * | text, |
gint | warn_mask_number, | ||
GtkWindow * | transient | ||
) |
void do_write_failed_error_s | ( | const char * | filename, |
const char * | addinfo | ||
) |
int do_write_failed_error_s_with_retry | ( | const gchar * | fname, |
const gchar * | errtext, | ||
GtkWindow * | transient | ||
) |
gboolean do_yesno_dialog | ( | const gchar * | text | ) |
gboolean do_yuv4m_open_warning | ( | void | ) |
void draw_little_bars | ( | gdouble | ptrtime | ) |
gchar* ds_critical_msg | ( | const gchar * | dir, |
guint64 | dsval | ||
) |
warn about disk space
< crit level
< current level
gchar* ds_warning_msg | ( | const gchar * | dir, |
guint64 | dsval, | ||
guint64 | cwarn, | ||
guint64 | nwarn | ||
) |
< warn level
< current level
< next warn level
void enable_record | ( | void | ) |
void end_threaded_dialog | ( | void | ) |
gchar* ensure_extension | ( | const gchar * | fname, |
const gchar * | ext | ||
) |
gboolean ensure_isdir | ( | gchar * | fname | ) |
void fade_background | ( | void | ) |
guint32 fastrand | ( | void | ) |
void fastsrand | ( | guint32 | seed | ) |
char* filename_from_fd | ( | char * | val, |
int | fd | ||
) |
void find_when_to_stop | ( | void | ) |
void frame_size_update | ( | void | ) |
void fullscreen_internal | ( | void | ) |
GList* g_list_append_unique | ( | GList * | xlist, |
const gchar * | add | ||
) |
GList* g_list_copy_strings | ( | GList * | list | ) |
GList* g_list_delete_string | ( | GList * | , |
char * | string | ||
) |
void g_list_free_strings | ( | GList * | list | ) |
GList* g_list_move_to_first | ( | GList * | list, |
GList * | item | ||
) |
gchar* g_strappend | ( | gchar * | string, |
gint | len, | ||
const gchar * | newbit | ||
) |
int get_approx_ln | ( | guint | val | ) |
void get_basename | ( | gchar * | filename | ) |
gboolean get_boolean_pref | ( | const gchar * | key | ) |
capability* get_capabilities | ( | void | ) |
gboolean get_clip_value | ( | int | which, |
lives_clip_details_t | , | ||
void * | retval, | ||
size_t | maxlen | ||
) |
const gchar* get_deinterlace_string | ( | void | ) |
gchar* get_dir | ( | const gchar * | filename | ) |
void get_dirname | ( | gchar * | filename | ) |
gdouble get_double_pref | ( | const gchar * | key | ) |
gchar* get_extension | ( | const gchar * | filename | ) |
GList* get_external_window_hints | ( | lives_rfx_t * | rfx | ) |
uint64_t get_file_size | ( | int | fd | ) |
void get_filename | ( | gchar * | filename, |
gboolean | strip_dir | ||
) |
void get_frame_count | ( | gint | idx | ) |
uint64_t get_fs_free | ( | const char * | dir | ) |
gboolean get_handle_from_info_file | ( | gint | index | ) |
gint get_hex_digit | ( | const gchar * | c | ) |
gint get_int_pref | ( | const gchar * | key | ) |
LiVESInterpType get_interp_value | ( | gshort | quality | ) |
GList* get_list_pref | ( | const gchar * | key | ) |
void get_location | ( | const gchar * | exe, |
gchar * | val, | ||
gint | maxlen | ||
) |
void get_menu_text | ( | GtkWidget * | menu, |
gchar * | text | ||
) |
void get_menu_text_long | ( | GtkWidget * | menuitem, |
gchar * | text | ||
) |
void get_monitors | ( | void | ) |
gboolean get_new_handle | ( | gint | index, |
const gchar * | name | ||
) |
gchar* get_new_install_msg | ( | void | ) |
void get_next_free_file | ( | void | ) |
void get_play_times | ( | void | ) |
void get_pref | ( | const gchar * | key, |
gchar * | val, | ||
gint | maxlen | ||
) |
void get_pref_default | ( | const gchar * | key, |
gchar * | val, | ||
gint | maxlen | ||
) |
void get_pref_utf8 | ( | const gchar * | key, |
gchar * | val, | ||
gint | maxlen | ||
) |
gdouble get_ratio_fps | ( | const gchar * | string | ) |
GList* get_set_list | ( | const gchar * | dir | ) |
guint get_signed_endian | ( | gboolean | is_signed, |
gboolean | little_endian | ||
) |
gboolean get_srt_text | ( | file * | sfile, |
double | xtime | ||
) |
lives_storage_status_t get_storage_status | ( | const char * | dir, |
guint64 | warn_level, | ||
guint64 * | dsval | ||
) |
gboolean get_sub_text | ( | file * | sfile, |
double | xtime | ||
) |
gboolean get_temp_handle | ( | gint | index, |
gboolean | create | ||
) |
gint get_token_count | ( | const gchar * | string, |
int | delim | ||
) |
void get_total_time | ( | file * | file | ) |
gchar* get_upd_msg | ( | void | ) |
gchar* get_val_from_cached_list | ( | const gchar * | key, |
size_t | maxlen | ||
) |
guint64 get_version_hash | ( | const gchar * | exe, |
const gchar * | sep, | ||
int | piece | ||
) |
void handle_backend_errors | ( | void | ) |
gint hextodec | ( | const gchar * | string | ) |
void init_clipboard | ( | void | ) |
gchar* insert_newlines | ( | const gchar * | text, |
int | maxwidth | ||
) |
< we will insert a nl here
gboolean int_array_contains_value | ( | int * | array, |
int | num_elems, | ||
int | value | ||
) |
gboolean is_legal_set_name | ( | const gchar * | set_name, |
gboolean | allow_dupes | ||
) |
gboolean is_writeable_dir | ( | const char * | dir | ) |
void kill_play_window | ( | void | ) |
float LEFloat_to_BEFloat | ( | float | f | ) |
uint64_t lives_10pow | ( | int | pow | ) |
void lives_alarm_clear | ( | int | alarm_handle | ) |
gboolean lives_alarm_get | ( | int | alarm_handle | ) |
int lives_alarm_set | ( | int64_t | ticks | ) |
set alarm for now + delta ticks (10 nanosec) param ticks (10 nanoseconds) is the offset when we want our alarm to trigger returns int handle or -1 call lives_get_alarm(handle) to test if time arrived
int lives_chdir | ( | const char * | path, |
gboolean | allow_fail | ||
) |
void lives_exit | ( | void | ) |
char* lives_fgets | ( | char * | s, |
int | size, | ||
FILE * | stream | ||
) |
lives_pid_t lives_fork | ( | const char * | com | ) |
gchar* lives_format_storage_space_string | ( | guint64 | space | ) |
int lives_fputs | ( | const char * | s, |
FILE * | stream | ||
) |
void lives_free | ( | gpointer | ptr | ) |
void lives_free | ( | void * | ptr | ) |
calls mainw->free_fn
void lives_free_normal | ( | void * | ptr | ) |
values of mainw->free_fn
void lives_free_with_check | ( | gpointer | ptr | ) |
checks if ptr is mainw->do_not_free, otherwise calls lives_free_normal()
void lives_freep | ( | void ** | ptr | ) |
boolean lives_fsync | ( | int | fd | ) |
int64_t lives_get_current_ticks | ( | void | ) |
return current (wallclock) time in ticks (units of 10 nanoseconds)
int lives_getgid | ( | void | ) |
pid_t lives_getpid | ( | void | ) |
int lives_getuid | ( | void | ) |
int lives_kill | ( | lives_pid_t | pid, |
int | sig | ||
) |
int lives_killpg | ( | lives_pgid_t | pgrp, |
int | sig | ||
) |
gint lives_list_index | ( | GList * | list, |
const gchar * | data | ||
) |
void* lives_malloc | ( | size_t | size | ) |
void* lives_memcpy | ( | void * | dest, |
const void * | src, | ||
size_t | n | ||
) |
void* lives_memset | ( | void * | s, |
int | c, | ||
size_t | n | ||
) |
LiVESPixbuf* lives_pixbuf_new_blank | ( | int | width, |
int | height, | ||
int | palette | ||
) |
GError* lives_pixbuf_save | ( | GdkPixbuf * | pixbuf, |
gchar * | fname, | ||
lives_image_type_t | imgtype, | ||
int | quality, | ||
gboolean | do_chmod, | ||
GError ** | gerrorptr | ||
) |
Save a pixbuf to a file using the specified imgtype and the specified quality/compression value
uint64_t lives_random | ( | void | ) |
ssize_t lives_read | ( | int | fd, |
void * | buf, | ||
size_t | count, | ||
gboolean | allow_less | ||
) |
ssize_t lives_read_le | ( | int | fd, |
void * | buf, | ||
size_t | count, | ||
gboolean | allow_less | ||
) |
ssize_t lives_readlink | ( | const char * | path, |
char * | buf, | ||
size_t | bufsiz | ||
) |
boolean lives_setenv | ( | const char * | name, |
const char * | value | ||
) |
void lives_srandom | ( | unsigned int | seed | ) |
void lives_sync | ( | void | ) |
int lives_system | ( | const char * | com, |
gboolean | allow_error | ||
) |
ssize_t lives_write | ( | int | fd, |
const void * | buf, | ||
size_t | count, | ||
gboolean | allow_fail | ||
) |
ssize_t lives_write_le | ( | int | fd, |
const void * | buf, | ||
size_t | count, | ||
gboolean | allow_fail | ||
) |
void load_end_image | ( | gint | frame | ) |
void load_frame_image | ( | gint | frame | ) |
gboolean load_from_scrap_file | ( | weed_plant_t * | layer, |
int | frame | ||
) |
void load_preview_image | ( | gboolean | update_always | ) |
void load_start_image | ( | gint | frame | ) |
void make_custom_submenus | ( | void | ) |
void make_play_window | ( | void | ) |
void make_preview_box | ( | void | ) |
void minimise_aspect_delta | ( | gdouble | allowed_aspect, |
gint | hblock, | ||
gint | vblock, | ||
gint | hsize, | ||
gint | vsize, | ||
gint * | width, | ||
gint * | height | ||
) |
gboolean mt_framedraw | ( | lives_mt * | , |
GdkPixbuf * | |||
) |
gint myround | ( | gdouble | n | ) |
void on_cancel_keep_button_clicked | ( | GtkButton * | , |
gpointer | user_data | ||
) |
void on_cleardisk_activate | ( | GtkWidget * | , |
gpointer | user_data | ||
) |
< avoid nested warnings
< indicates we tried ds recovery already
< auto reset by do_warning_dialog()
void on_cleardisk_advanced_clicked | ( | GtkWidget * | , |
gpointer | user_data | ||
) |
void on_effects_paused | ( | GtkButton * | , |
gpointer | user_data | ||
) |
void on_fileread_clicked | ( | GtkFileChooser * | , |
gpointer | widget | ||
) |
gboolean open_ascrap_file | ( | void | ) |
void open_file | ( | const gchar * | filename | ) |
void open_file_sel | ( | const gchar * | file_name, |
gdouble | start_time, | ||
gint | frames | ||
) |
void open_fw_device | ( | void | ) |
gboolean open_scrap_file | ( | void | ) |
void open_set_file | ( | const gchar * | set_name, |
gint | clipnum | ||
) |
void perf_mem_warning | ( | void | ) |
void play_file | ( | void | ) |
void prepare_to_play_foreign | ( | void | ) |
gboolean process_one | ( | gboolean | visible | ) |
void procw_desensitize | ( | void | ) |
gboolean prompt_remove_layout_files | ( | void | ) |
gboolean pull_frame | ( | weed_plant_t * | layer, |
const gchar * | image_ext, | ||
weed_timecode_t | tc | ||
) |
gboolean pull_frame_at_size | ( | weed_plant_t * | layer, |
const gchar * | image_ext, | ||
weed_timecode_t | tc, | ||
int | width, | ||
int | height, | ||
int | target_palette | ||
) |
LiVESPixbuf* pull_lives_pixbuf_at_size | ( | int | clip, |
int | frame, | ||
const char * | image_ext, | ||
weed_timecode_t | tc, | ||
int | width, | ||
int | height, | ||
LiVESInterpType | interp | ||
) |
void pump_io_chan | ( | GIOChannel * | iochan | ) |
gboolean rdet_suggest_values | ( | gint | width, |
gint | height, | ||
gdouble | fps, | ||
gint | fps_num, | ||
gint | fps_denom, | ||
gint | arate, | ||
gint | asigned, | ||
gboolean | swap_endian, | ||
gboolean | anr, | ||
gboolean | ignore_fps | ||
) |
gboolean read_file_details | ( | const gchar * | file_name, |
gboolean | only_check_for_audio | ||
) |
gboolean read_headers | ( | const gchar * | file_name | ) |
void recover_layout_map | ( | gint | numclips | ) |
void refresh_rte_window | ( | void | ) |
void reget_afilesize | ( | int | fileno | ) |
void remove_from_winmenu | ( | void | ) |
void remove_layout_files | ( | GList * | lmap | ) |
gchar* remove_trailing_zeroes | ( | gdouble | val | ) |
gchar* repl_tmpdir | ( | const gchar * | entry, |
gboolean | fwd | ||
) |
void reset_clip_menu | ( | void | ) |
void resize | ( | gdouble | scale | ) |
void resize_play_window | ( | void | ) |
void response_cancel | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
void response_ok | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
void restore_file | ( | const gchar * | filename | ) |
void rewrite_recovery_file | ( | void | ) |
void save_clip_value | ( | int | which, |
lives_clip_details_t | , | ||
void * | val | ||
) |
gboolean save_clip_values | ( | gint | which_file | ) |
gint save_event_frames | ( | void | ) |
void save_file | ( | int | clip, |
int | start, | ||
int | end, | ||
const char * | filename | ||
) |
gboolean save_file_comments | ( | int | fileno | ) |
void save_frame | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
gboolean save_frame_inner | ( | gint | clip, |
gint | frame, | ||
const gchar * | file_name, | ||
gint | width, | ||
gint | height, | ||
gboolean | auto_overwrite | ||
) |
void save_future_prefs | ( | void | ) |
gboolean save_srt_subtitles | ( | file * | sfile, |
double | start_time, | ||
double | end_time, | ||
double | offset_time, | ||
const char * | filename | ||
) |
gboolean save_sub_subtitles | ( | file * | sfile, |
double | start_time, | ||
double | end_time, | ||
double | offset_time, | ||
const char * | filename | ||
) |
gint save_to_scrap_file | ( | weed_plant_t * | layer | ) |
void sensitize | ( | void | ) |
void set_alwaysontop | ( | GtkWidget * | window, |
gboolean | ontop | ||
) |
TODO - use for playwin.
void set_boolean_pref | ( | const gchar * | key, |
gboolean | value | ||
) |
void set_double_pref | ( | const gchar * | key, |
gdouble | value | ||
) |
void set_int64_pref | ( | const gchar * | key, |
gint64 | value | ||
) |
void set_int_pref | ( | const gchar * | key, |
gint | value | ||
) |
void set_list_pref | ( | const char * | key, |
GList * | values | ||
) |
void set_main_title | ( | const gchar * | filename, |
gint | or_untitled_number | ||
) |
void set_menu_text | ( | GtkWidget * | menu, |
const gchar * | text, | ||
gboolean | use_mnemonic | ||
) |
void set_palette_colours | ( | void | ) |
void set_pref | ( | const gchar * | key, |
const gchar * | value | ||
) |
void set_record | ( | void | ) |
void set_redoable | ( | const gchar * | what, |
gboolean | sensitive | ||
) |
void set_sel_label | ( | GtkWidget * | label | ) |
void set_undoable | ( | const gchar * | what, |
gboolean | sensitive | ||
) |
uint64_t sget_file_size | ( | const gchar * | name | ) |
void show_manual_section | ( | const gchar * | lang, |
const gchar * | section | ||
) |
void splash_end | ( | void | ) |
void splash_init | ( | void | ) |
void splash_msg | ( | const gchar * | msg, |
gdouble | pct | ||
) |
gboolean startup_message_fatal | ( | const gchar * | msg | ) |
gboolean startup_message_nonfatal | ( | const gchar * | msg | ) |
gboolean startup_message_nonfatal_dismissable | ( | const gchar * | msg, |
gint | warning_mask | ||
) |
gboolean string_lists_differ | ( | GList * | , |
GList * | |||
) |
gchar* subst | ( | const gchar * | string, |
const gchar * | from, | ||
const gchar * | to | ||
) |
void subtitles_free | ( | file * | sfile | ) |
gboolean subtitles_init | ( | file * | sfile, |
char * | fname, | ||
lives_subtitle_type_t | |||
) |
gboolean switch_aud_to_jack | ( | void | ) |
void switch_aud_to_mplayer | ( | gboolean | set_pref | ) |
gboolean switch_aud_to_pulse | ( | void | ) |
void switch_aud_to_sox | ( | gboolean | set_pref | ) |
void switch_to_file | ( | gint | old_file, |
gint | new_file | ||
) |
void switch_to_int_player | ( | void | ) |
void switch_to_mplayer | ( | void | ) |
void tempdir_warning | ( | void | ) |
void threaded_dialog_spin | ( | void | ) |
void toggle_record | ( | void | ) |
void too_many_files | ( | void | ) |
void unblock_expose | ( | void | ) |
void unfade_background | ( | void | ) |
gint verhash | ( | gchar * | version | ) |
void wait_for_stop | ( | const gchar * | stop_command | ) |
gboolean write_headers | ( | file * | file | ) |
void zero_spinbuttons | ( | void | ) |
capability* capable |
some shared structures
gchar* dummychar |
mainwindow* mainw |
size_t sizdbl |
size_t sizint |
type sizes
size_t sizshrt |
struct timeval tv |