LiVES
3.2.0
|
#include "main.h"
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "interface.h"
#include "cvirtual.h"
#include "resample.h"
#include "rte_window.h"
#include "paramwindow.h"
#include "ce_thumbs.h"
#include "callbacks.h"
#include "diagnostics.h"
Go to the source code of this file.
Macros | |
#define | ANIM_LIMIT 0 |
#define | OPEN_CHECK_TICKS (TICKS_PER_SECOND/10l) |
#define | PROG_LOOP_VAL 200 |
#define | ENABLE_PRECACHE |
#define | ANIM_LIM 1000000 |
#define | ADJUST_AUDIO_RATE |
#define | SWITCH_COMPENSATION 1.0 |
#define | TEST_TRIGGER 9999 |
#define | DROPFRAME_TRIGGER 4 |
#define | JUMPFRAME_TRIGGER 99999999 |
#define | MIN_FLASH_TIME MILLIONS(100) |
#define ADJUST_AUDIO_RATE |
#define DROPFRAME_TRIGGER 4 |
#define JUMPFRAME_TRIGGER 99999999 |
#define OPEN_CHECK_TICKS (TICKS_PER_SECOND/10l) |
#define SWITCH_COMPENSATION 1.0 |
#define TEST_TRIGGER 9999 |
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 ask_permission_dialog_complex | ( | int | what, |
char ** | argv, | ||
int | argc, | ||
int | offs, | ||
const char * | sudocom | ||
) |
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 1086 of file dialogs.c.
Referenced by do_auto_dialog(), do_clip_divergence_error(), on_paste_as_new_activate(), and on_utube_select().
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().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_abort_dialog | ( | const char * | text | ) |
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_abortblank_error | ( | const char * | what | ) |
LIVES_GLOBAL_INLINE void do_after_crash_warning | ( | void | ) |
Definition at line 3742 of file dialogs.c.
Referenced by recover_layout(), and recover_layout_cancelled().
LIVES_GLOBAL_INLINE void do_after_invalid_warning | ( | void | ) |
LIVES_GLOBAL_INLINE void do_aud_during_play_error | ( | void | ) |
LIVES_GLOBAL_INLINE void do_audio_warning | ( | void | ) |
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_autolives_needs_clips_error | ( | void | ) |
Definition at line 4507 of file dialogs.c.
Referenced by autolives_toggle().
LIVES_GLOBAL_INLINE void do_bad_layout_error | ( | void | ) |
Definition at line 3635 of file dialogs.c.
Referenced by recover_layout().
LIVES_GLOBAL_INLINE void do_bad_theme_error | ( | const char * | themefile | ) |
LIVES_GLOBAL_INLINE void do_bad_theme_import_error | ( | const char * | theme_file | ) |
Definition at line 4530 of file dialogs.c.
Referenced by on_import_theme_activate().
LIVES_GLOBAL_INLINE void do_card_in_use_error | ( | void | ) |
Definition at line 4289 of file dialogs.c.
Referenced by on_live_tvcard_activate().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_clip_divergence_error | ( | int | fileno | ) |
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().
LIVES_GLOBAL_INLINE void do_decoder_palette_error | ( | void | ) |
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_do_not_close_d | ( | void | ) |
Definition at line 4409 of file dialogs.c.
Referenced by lives_exit().
LIVES_GLOBAL_INLINE void do_dvgrab_error | ( | void | ) |
Definition at line 3714 of file dialogs.c.
Referenced by on_open_fw_activate().
LIVES_GLOBAL_INLINE void do_encoder_acodec_error | ( | void | ) |
void do_encoder_img_fmt_error | ( | render_details * | rdet | ) |
LIVES_GLOBAL_INLINE void do_encoder_sox_error | ( | void | ) |
LIVES_GLOBAL_INLINE boolean do_erase_subs_warning | ( | void | ) |
Definition at line 4334 of file dialogs.c.
Referenced by on_erase_subs_activate().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE boolean do_event_list_warning | ( | void | ) |
Definition at line 3707 of file dialogs.c.
Referenced by multitrack_view_events(), and multitrack_view_sel_events().
LIVES_GLOBAL_INLINE 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 * | filename | ||
) |
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 | ||
) |
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE LiVESResponseType do_imgfmts_error | ( | lives_img_type_t | imgtype | ) |
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE LiVESResponseType do_info_dialog_with_expander | ( | const char * | text, |
const char * | exp_text, | ||
LiVESList * | list | ||
) |
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().
LIVES_GLOBAL_INLINE void do_jack_lost_conn_error | ( | void | ) |
LIVES_GLOBAL_INLINE boolean do_layout_alter_audio_warning | ( | void | ) |
LIVES_GLOBAL_INLINE boolean do_layout_alter_frames_warning | ( | void | ) |
LIVES_GLOBAL_INLINE void do_layout_ascrap_file_error | ( | void | ) |
LIVES_GLOBAL_INLINE boolean do_layout_recover_dialog | ( | void | ) |
LIVES_GLOBAL_INLINE void do_layout_scrap_file_error | ( | void | ) |
LIVES_GLOBAL_INLINE void do_lb_composite_error | ( | void | ) |
LIVES_GLOBAL_INLINE void do_lb_convert_error | ( | void | ) |
LIVES_GLOBAL_INLINE void do_locked_in_vdevs_error | ( | 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().
LIVES_GLOBAL_INLINE void do_messages_window | ( | boolean | is_startup | ) |
Definition at line 3335 of file dialogs.c.
Referenced by on_show_messages_activate().
LIVES_GLOBAL_INLINE boolean do_move_workdir_dialog | ( | void | ) |
Definition at line 4351 of file dialogs.c.
Referenced by lives_exit().
LIVES_GLOBAL_INLINE void do_mt_audchan_error | ( | int | warn_mask | ) |
LIVES_GLOBAL_INLINE void do_mt_backup_space_error | ( | lives_mt * | mt, |
int | memreq_mb | ||
) |
LIVES_GLOBAL_INLINE void do_mt_no_audchan_error | ( | void | ) |
Definition at line 3614 of file dialogs.c.
Referenced by mt_change_vals_activate().
LIVES_GLOBAL_INLINE void do_mt_no_jack_error | ( | int | warn_mask | ) |
LIVES_GLOBAL_INLINE boolean do_mt_rect_prompt | ( | void | ) |
LIVES_GLOBAL_INLINE void do_mt_set_mem_error | ( | boolean | has_mt | ) |
LIVES_GLOBAL_INLINE void do_mt_undo_buf_error | ( | void | ) |
LIVES_GLOBAL_INLINE void do_mt_undo_mem_error | ( | void | ) |
Definition at line 3579 of file dialogs.c.
Referenced by multitrack().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_need_mplayer_mpv_dialog | ( | void | ) |
Definition at line 3027 of file dialogs.c.
Referenced by on_open_loc_activate().
LIVES_GLOBAL_INLINE void do_no_autolives_error | ( | void | ) |
Definition at line 4500 of file dialogs.c.
Referenced by autolives_toggle().
LIVES_GLOBAL_INLINE void do_no_decoder_error | ( | const char * | fname | ) |
Definition at line 3518 of file dialogs.c.
Referenced by reload_clip().
LIVES_GLOBAL_INLINE void do_no_in_vdevs_error | ( | void | ) |
LIVES_GLOBAL_INLINE void do_no_loadfile_error | ( | const char * | fname | ) |
LIVES_GLOBAL_INLINE void do_no_mplayer_sox_error | ( | void | ) |
LIVES_GLOBAL_INLINE void do_no_sets_dialog | ( | const char * | dir | ) |
Definition at line 4366 of file dialogs.c.
Referenced by create_rename_dialog().
LIVES_GLOBAL_INLINE void do_nojack_rec_error | ( | void | ) |
Definition at line 3719 of file dialogs.c.
Referenced by on_recaudclip_activate().
LIVES_GLOBAL_INLINE void do_optarg_blank_err | ( | const char * | what | ) |
LIVES_GLOBAL_INLINE boolean do_please_install | ( | const char * | exec, |
uint64_t | gflags | ||
) |
Definition at line 3659 of file dialogs.c.
Referenced by on_utube_select().
LIVES_GLOBAL_INLINE boolean do_please_install_either | ( | const char * | exec, |
const char * | exec2 | ||
) |
Definition at line 3694 of file dialogs.c.
Referenced by run_youtube_dialog().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_pulse_lost_conn_error | ( | void | ) |
void do_read_failed_error_s | ( | const char * | s, |
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().
LIVES_GLOBAL_INLINE boolean do_reload_set_query | ( | void | ) |
Definition at line 3256 of file dialogs.c.
Referenced by on_load_set_activate().
LIVES_GLOBAL_INLINE void do_rendered_fx_dialog | ( | void | ) |
Definition at line 3368 of file dialogs.c.
Referenced by add_rfx_effects().
LIVES_GLOBAL_INLINE LiVESResponseType do_resize_dlg | ( | int | cwidth, |
int | cheight, | ||
int | fwidth, | ||
int | fheight | ||
) |
LIVES_GLOBAL_INLINE LiVESResponseType do_retry_cancel_dialog | ( | const char * | text | ) |
Definition at line 730 of file dialogs.c.
Referenced by on_utube_select().
LIVES_GLOBAL_INLINE void do_rmem_max_error | ( | int | size | ) |
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().
LIVES_GLOBAL_INLINE boolean do_set_locked_warning | ( | const char * | setname | ) |
Definition at line 4357 of file dialogs.c.
Referenced by check_for_lock_file().
LIVES_GLOBAL_INLINE void do_set_noclips_error | ( | const char * | setname | ) |
Definition at line 4480 of file dialogs.c.
Referenced by reload_set().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE void do_shutdown_msg | ( | void | ) |
Definition at line 4554 of file dialogs.c.
Referenced by on_prefs_close_clicked().
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 | trysudo | ||
) |
we must not fail during the abort hook
Definition at line 3897 of file dialogs.c.
Referenced by handle_backend_errors(), and lives_system().
LIVES_GLOBAL_INLINE 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 * | trans_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().
LIVES_GLOBAL_INLINE void do_upgrade_error_dialog | ( | void | ) |
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE 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().
LIVES_GLOBAL_INLINE 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 * | s, |
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().
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().
LIVES_GLOBAL_INLINE boolean findex_bk_dialog | ( | const char * | fname_back | ) |
Definition at line 3261 of file dialogs.c.
Referenced by load_frame_index().
LIVES_GLOBAL_INLINE LiVESWindow* get_transient_full | ( | void | ) |
Definition at line 622 of file dialogs.c.
Referenced by choose_file().
LIVES_GLOBAL_INLINE char* get_upd_msg | ( | void | ) |
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().
void on_warn_mask_toggled | ( | LiVESToggleButton * | togglebutton, |
livespointer | user_data | ||
) |
Definition at line 77 of file dialogs.c.
Referenced by add_warn_check().
LIVES_GLOBAL_INLINE boolean paste_enough_dlg | ( | int | lframe | ) |
Definition at line 3266 of file dialogs.c.
Referenced by on_paste_as_new_activate().
LIVES_GLOBAL_INLINE void perf_mem_warning | ( | void | ) |
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
LIVES_GLOBAL_INLINE boolean prompt_remove_layout_files | ( | void | ) |
void reset_frame_and_clip_index | ( | void | ) |
TODO: split into player, progress, dialogs.
Definition at line 12219 of file effects-weed.c.
void response_ok | ( | LiVESButton * | button, |
livespointer | user_data | ||
) |
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().
LIVES_GLOBAL_INLINE 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 update_progress | ( | boolean | visible | ) |
Definition at line 1275 of file dialogs.c.
Referenced by virtual_to_images().
LIVES_GLOBAL_INLINE char* workdir_ch_warning | ( | void | ) |
void workdir_warning | ( | void | ) |
Definition at line 3001 of file dialogs.c.
Referenced by open_ascrap_file(), and open_scrap_file().