LiVES  3.2.0
Macros | Functions
dialogs.c File Reference
#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)
 

Functions

void reset_frame_and_clip_index (void)
 TODO: split into player, progress, dialogs. More...
 
const char * get_cache_stats (void)
 
void on_warn_mask_toggled (LiVESToggleButton *togglebutton, livespointer user_data)
 
void add_warn_check (LiVESBox *box, int warn_mask_number)
 
LiVESWidget * create_message_dialog (lives_dialog_t diat, const char *text, int warn_mask_number)
 
LIVES_GLOBAL_INLINE LiVESWidget * create_question_dialog (const char *title, const char *text)
 
boolean do_warning_dialogf (const char *fmt,...)
 
LIVES_GLOBAL_INLINE boolean do_warning_dialog (const char *text)
 
boolean do_warning_dialog_with_check (const char *text, uint64_t warn_mask_number)
 
boolean do_yesno_dialog_with_check (const char *text, uint64_t warn_mask_number)
 
LIVES_GLOBAL_INLINE LiVESWindow * get_transient_full (void)
 
boolean do_yesno_dialogf (const char *fmt,...)
 
boolean do_yesno_dialog (const char *text)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_abort_cancel_retry_dialog (const char *text)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_abort_retry_dialog (const char *text)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_abort_ok_dialog (const char *text)
 
LIVES_GLOBAL_INLINE void do_abort_dialog (const char *text)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_retry_cancel_dialog (const char *text)
 
LiVESResponseType do_error_dialogf (const char *fmt,...)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_error_dialog (const char *text)
 
LiVESResponseType do_info_dialogf (const char *fmt,...)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_info_dialog (const char *text)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_info_dialog_with_expander (const char *text, const char *exp_text, LiVESList *list)
 
LiVESResponseType do_error_dialog_with_check (const char *text, uint64_t warn_mask_number)
 
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)
 
LIVES_GLOBAL_INLINE void do_abortblank_error (const char *what)
 
LIVES_GLOBAL_INLINE void do_optarg_blank_err (const char *what)
 
LIVES_GLOBAL_INLINE void do_clip_divergence_error (int fileno)
 
LIVES_GLOBAL_INLINE void do_aud_during_play_error (void)
 
LiVESResponseType do_memory_error_dialog (char *op, size_t bytes)
 
LiVESResponseType handle_backend_errors (boolean can_retry)
 
boolean check_backend_return (lives_clip_t *sfile)
 
void pump_io_chan (LiVESIOChannel *iochan)
 
boolean check_storage_space (int clipno, boolean is_processing)
 
void update_progress (boolean visible)
 
int process_one (boolean visible)
 
boolean do_progress_dialog (boolean visible, boolean cancellable, const char *text)
 
boolean do_auto_dialog (const char *text, int type)
 
boolean do_save_clipset_warn (void)
 
LIVES_GLOBAL_INLINE void too_many_files (void)
 
void workdir_warning (void)
 
LIVES_GLOBAL_INLINE void do_no_mplayer_sox_error (void)
 
LIVES_GLOBAL_INLINE void do_need_mplayer_dialog (void)
 
LIVES_GLOBAL_INLINE void do_need_mplayer_mpv_dialog (void)
 
LIVES_GLOBAL_INLINE void do_audio_warning (void)
 
LIVES_GLOBAL_INLINE void do_encoder_sox_error (void)
 
LIVES_GLOBAL_INLINE void do_encoder_acodec_error (void)
 
LIVES_GLOBAL_INLINE void do_layout_scrap_file_error (void)
 
LIVES_GLOBAL_INLINE void do_layout_ascrap_file_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)
 
LIVES_GLOBAL_INLINE void perf_mem_warning (void)
 
boolean do_clipboard_fps_warning (void)
 
LIVES_GLOBAL_INLINE boolean do_reload_set_query (void)
 
LIVES_GLOBAL_INLINE boolean findex_bk_dialog (const char *fname_back)
 
LIVES_GLOBAL_INLINE boolean paste_enough_dlg (int lframe)
 
boolean do_yuv4m_open_warning (void)
 
boolean do_comments_dialog (int fileno, char *filename)
 
LIVES_GLOBAL_INLINE void do_messages_window (boolean is_startup)
 
LIVES_GLOBAL_INLINE void do_upgrade_error_dialog (void)
 
LIVES_GLOBAL_INLINE void do_rendered_fx_dialog (void)
 
void do_audio_import_error (void)
 
LIVES_GLOBAL_INLINE boolean prompt_remove_layout_files (void)
 
boolean do_set_duplicate_warning (const char *new_set)
 
LIVES_GLOBAL_INLINE boolean do_layout_alter_frames_warning (void)
 
LIVES_GLOBAL_INLINE boolean do_layout_alter_audio_warning (void)
 
LIVES_GLOBAL_INLINE boolean do_gamma_import_warn (uint64_t fv, int gamma_type)
 
boolean do_mt_lb_warn (boolean lb)
 
LiVESResponseType do_dir_notfound_dialog (const char *detail, const char *dirname)
 
LiVESResponseType do_file_notfound_dialog (const char *detail, const char *filename)
 
LIVES_GLOBAL_INLINE void do_no_decoder_error (const char *fname)
 
LIVES_GLOBAL_INLINE void do_no_loadfile_error (const char *fname)
 
LIVES_GLOBAL_INLINE void do_mt_backup_space_error (lives_mt *mt, int memreq_mb)
 
LIVES_GLOBAL_INLINE boolean do_set_rename_old_layouts_warning (const char *new_set)
 
LIVES_GLOBAL_INLINE void do_mt_undo_mem_error (void)
 
LIVES_GLOBAL_INLINE void do_mt_undo_buf_error (void)
 
LIVES_GLOBAL_INLINE void do_mt_set_mem_error (boolean has_mt)
 
LIVES_GLOBAL_INLINE void do_mt_audchan_error (int warn_mask)
 
LIVES_GLOBAL_INLINE void do_mt_no_audchan_error (void)
 
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_bad_layout_error (void)
 
LIVES_GLOBAL_INLINE void do_program_not_found_error (const char *progname)
 
LIVES_GLOBAL_INLINE void do_lb_composite_error (void)
 
LIVES_GLOBAL_INLINE void do_lb_convert_error (void)
 
LIVES_GLOBAL_INLINE boolean do_please_install (const char *exec, uint64_t gflags)
 
LIVES_GLOBAL_INLINE boolean do_please_install_either (const char *exec, const char *exec2)
 
LIVES_GLOBAL_INLINE void do_audrate_error_dialog (void)
 
LIVES_GLOBAL_INLINE boolean do_event_list_warning (void)
 
LIVES_GLOBAL_INLINE void do_dvgrab_error (void)
 
LIVES_GLOBAL_INLINE void do_nojack_rec_error (void)
 
LIVES_GLOBAL_INLINE void do_vpp_palette_error (void)
 
LIVES_GLOBAL_INLINE void do_decoder_palette_error (void)
 
LIVES_GLOBAL_INLINE void do_vpp_fps_error (void)
 
LIVES_GLOBAL_INLINE void do_after_crash_warning (void)
 
LIVES_GLOBAL_INLINE void do_after_invalid_warning (void)
 
LIVES_GLOBAL_INLINE void do_rmem_max_error (int size)
 
void threaded_dialog_push (void)
 
void threaded_dialog_pop (void)
 
void threaded_dialog_spin (double fraction)
 
void do_threaded_dialog (const char *trans_text, boolean has_cancel)
 
void end_threaded_dialog (void)
 
void response_ok (LiVESButton *button, livespointer user_data)
 
LiVESResponseType do_system_failed_error (const char *com, int retval, const char *addinfo, boolean can_retry, boolean trysudo)
 
void do_write_failed_error_s (const char *s, const char *addinfo)
 
void do_read_failed_error_s (const char *s, const char *addinfo)
 
LiVESResponseType do_write_failed_error_s_with_retry (const char *fname, const char *errtext)
 
LiVESResponseType do_read_failed_error_s_with_retry (const char *fname, const char *errtext)
 
LiVESResponseType do_header_read_error_with_retry (int clip)
 
boolean do_header_write_error (int clip)
 
LiVESResponseType do_header_missing_detail_error (int clip, lives_clip_details_t detail)
 
void do_chdir_failed_error (const char *dir)
 
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)
 
boolean do_abort_check (void)
 
void do_encoder_img_fmt_error (render_details *rdet)
 
LIVES_GLOBAL_INLINE void do_card_in_use_error (void)
 
LIVES_GLOBAL_INLINE void do_dev_busy_error (const char *devstr)
 
LIVES_GLOBAL_INLINE boolean do_existing_subs_warning (void)
 
void do_invalid_subs_error (void)
 
LIVES_GLOBAL_INLINE boolean do_erase_subs_warning (void)
 
boolean do_sub_type_warning (const char *ext, const char *type_ext)
 
LIVES_GLOBAL_INLINE boolean do_move_workdir_dialog (void)
 
LIVES_GLOBAL_INLINE boolean do_set_locked_warning (const char *setname)
 
LIVES_GLOBAL_INLINE void do_no_sets_dialog (const char *dir)
 
boolean do_foundclips_query (void)
 
LIVES_GLOBAL_INLINE void do_no_in_vdevs_error (void)
 
LIVES_GLOBAL_INLINE void do_locked_in_vdevs_error (void)
 
LIVES_GLOBAL_INLINE void do_do_not_close_d (void)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_resize_dlg (int cwidth, int cheight, int fwidth, int fheight)
 
LIVES_GLOBAL_INLINE LiVESResponseType do_imgfmts_error (lives_img_type_t imgtype)
 
LIVES_GLOBAL_INLINE void do_bad_theme_error (const char *themefile)
 
LIVES_GLOBAL_INLINE void do_set_noclips_error (const char *setname)
 
LIVES_GLOBAL_INLINE char * get_upd_msg (void)
 
LIVES_GLOBAL_INLINE void do_no_autolives_error (void)
 
LIVES_GLOBAL_INLINE void do_autolives_needs_clips_error (void)
 
LIVES_GLOBAL_INLINE void do_jack_lost_conn_error (void)
 
LIVES_GLOBAL_INLINE void do_pulse_lost_conn_error (void)
 
LIVES_GLOBAL_INLINE void do_cd_error_dialog (void)
 
LIVES_GLOBAL_INLINE void do_bad_theme_import_error (const char *theme_file)
 
boolean do_close_changed_warn (void)
 
LIVES_GLOBAL_INLINE char * workdir_ch_warning (void)
 
LIVES_GLOBAL_INLINE void do_shutdown_msg (void)
 
LIVES_GLOBAL_INLINE boolean do_theme_exists_warn (const char *themename)
 
void add_resnn_label (LiVESDialog *dialog)
 
boolean ask_permission_dialog (int what)
 
boolean ask_permission_dialog_complex (int what, char **argv, int argc, int offs, const char *sudocom)
 
LIVES_GLOBAL_INLINE boolean do_layout_recover_dialog (void)
 

Macro Definition Documentation

◆ ADJUST_AUDIO_RATE

#define ADJUST_AUDIO_RATE

◆ ANIM_LIM

#define ANIM_LIM   1000000

Definition at line 1335 of file dialogs.c.

◆ ANIM_LIMIT

#define ANIM_LIMIT   0

Definition at line 28 of file dialogs.c.

◆ DROPFRAME_TRIGGER

#define DROPFRAME_TRIGGER   4

◆ ENABLE_PRECACHE

#define ENABLE_PRECACHE

Definition at line 1332 of file dialogs.c.

◆ JUMPFRAME_TRIGGER

#define JUMPFRAME_TRIGGER   99999999

◆ MIN_FLASH_TIME

#define MIN_FLASH_TIME   MILLIONS(100)

Definition at line 2842 of file dialogs.c.

◆ OPEN_CHECK_TICKS

#define OPEN_CHECK_TICKS   (TICKS_PER_SECOND/10l)

Definition at line 56 of file dialogs.c.

◆ PROG_LOOP_VAL

#define PROG_LOOP_VAL   200

Definition at line 1250 of file dialogs.c.

◆ SWITCH_COMPENSATION

#define SWITCH_COMPENSATION   1.0

◆ TEST_TRIGGER

#define TEST_TRIGGER   9999

Function Documentation

◆ add_resnn_label()

void add_resnn_label ( LiVESDialog *  dialog)

Definition at line 4567 of file dialogs.c.

◆ add_warn_check()

void add_warn_check ( LiVESBox *  box,
int  warn_mask_number 
)

Definition at line 103 of file dialogs.c.

Referenced by create_cds_dialog(), and popup_lmap_errors().

◆ ask_permission_dialog()

boolean ask_permission_dialog ( int  what)

Definition at line 4587 of file dialogs.c.

◆ ask_permission_dialog_complex()

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

badly formed request, ignore it

Definition at line 4605 of file dialogs.c.

◆ check_backend_return()

boolean check_backend_return ( lives_clip_t sfile)

Definition at line 1009 of file dialogs.c.

Referenced by do_effect(), and on_resaudio_ok_clicked().

◆ check_storage_space()

boolean check_storage_space ( int  clipno,
boolean  is_processing 
)

◆ create_message_dialog()

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

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

Definition at line 260 of file dialogs.c.

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

◆ create_question_dialog()

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

◆ do_abort_cancel_retry_dialog()

LIVES_GLOBAL_INLINE LiVESResponseType do_abort_cancel_retry_dialog ( const char *  text)

◆ do_abort_check()

boolean do_abort_check ( void  )

Definition at line 4277 of file dialogs.c.

◆ do_abort_dialog()

LIVES_GLOBAL_INLINE void do_abort_dialog ( const char *  text)

Definition at line 725 of file dialogs.c.

◆ do_abort_ok_dialog()

LIVES_GLOBAL_INLINE LiVESResponseType do_abort_ok_dialog ( const char *  text)

◆ do_abort_retry_dialog()

LIVES_GLOBAL_INLINE LiVESResponseType do_abort_retry_dialog ( const char *  text)

◆ do_abortblank_error()

LIVES_GLOBAL_INLINE void do_abortblank_error ( const char *  what)

Definition at line 873 of file dialogs.c.

◆ do_after_crash_warning()

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().

◆ do_after_invalid_warning()

LIVES_GLOBAL_INLINE void do_after_invalid_warning ( void  )

Definition at line 3748 of file dialogs.c.

◆ do_aud_during_play_error()

LIVES_GLOBAL_INLINE void do_aud_during_play_error ( void  )

Definition at line 899 of file dialogs.c.

◆ do_audio_import_error()

void do_audio_import_error ( void  )

Definition at line 3381 of file dialogs.c.

◆ do_audio_warning()

LIVES_GLOBAL_INLINE void do_audio_warning ( void  )

Definition at line 3034 of file dialogs.c.

◆ do_audrate_error_dialog()

LIVES_GLOBAL_INLINE void do_audrate_error_dialog ( void  )

◆ do_auto_dialog()

boolean do_auto_dialog ( const char *  text,
int  type 
)

Definition at line 2844 of file dialogs.c.

Referenced by on_load_cdtrack_ok_clicked(), and on_utube_select().

◆ do_autolives_needs_clips_error()

LIVES_GLOBAL_INLINE void do_autolives_needs_clips_error ( void  )

Definition at line 4507 of file dialogs.c.

Referenced by autolives_toggle().

◆ do_bad_layout_error()

LIVES_GLOBAL_INLINE void do_bad_layout_error ( void  )

Definition at line 3635 of file dialogs.c.

Referenced by recover_layout().

◆ do_bad_theme_error()

LIVES_GLOBAL_INLINE void do_bad_theme_error ( const char *  themefile)

Definition at line 4474 of file dialogs.c.

◆ do_bad_theme_import_error()

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().

◆ do_card_in_use_error()

LIVES_GLOBAL_INLINE void do_card_in_use_error ( void  )

Definition at line 4289 of file dialogs.c.

Referenced by on_live_tvcard_activate().

◆ do_cd_error_dialog()

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().

◆ do_chdir_failed_error()

void do_chdir_failed_error ( const char *  dir)

Definition at line 4213 of file dialogs.c.

Referenced by lives_chdir().

◆ do_clip_divergence_error()

LIVES_GLOBAL_INLINE void do_clip_divergence_error ( int  fileno)

Definition at line 888 of file dialogs.c.

◆ do_clipboard_fps_warning()

boolean do_clipboard_fps_warning ( void  )

Definition at line 3244 of file dialogs.c.

◆ do_close_changed_warn()

boolean do_close_changed_warn ( void  )

Definition at line 4536 of file dialogs.c.

Referenced by on_close_activate().

◆ do_comments_dialog()

boolean do_comments_dialog ( int  fileno,
char *  filename 
)

Definition at line 3288 of file dialogs.c.

Referenced by on_show_file_comments_activate().

◆ do_decoder_palette_error()

LIVES_GLOBAL_INLINE void do_decoder_palette_error ( void  )

Definition at line 3732 of file dialogs.c.

◆ do_dev_busy_error()

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().

◆ do_dir_notfound_dialog()

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

Definition at line 3509 of file dialogs.c.

Referenced by build_init_config().

◆ do_dir_perm_access_error()

void do_dir_perm_access_error ( const char *  dir_name)

Definition at line 4270 of file dialogs.c.

◆ do_dir_perm_error()

LiVESResponseType do_dir_perm_error ( const char *  dir_name,
boolean  allow_cancel 
)

Definition at line 4247 of file dialogs.c.

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

◆ do_do_not_close_d()

LIVES_GLOBAL_INLINE void do_do_not_close_d ( void  )

Definition at line 4409 of file dialogs.c.

Referenced by lives_exit().

◆ do_dvgrab_error()

LIVES_GLOBAL_INLINE void do_dvgrab_error ( void  )

Definition at line 3714 of file dialogs.c.

Referenced by on_open_fw_activate().

◆ do_encoder_acodec_error()

LIVES_GLOBAL_INLINE void do_encoder_acodec_error ( void  )

Definition at line 3046 of file dialogs.c.

◆ do_encoder_img_fmt_error()

void do_encoder_img_fmt_error ( render_details rdet)

Definition at line 4282 of file dialogs.c.

◆ do_encoder_restrict_dialog()

boolean do_encoder_restrict_dialog ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian,
boolean  anr,
boolean  save_all 
)

Definition at line 3148 of file dialogs.c.

◆ do_encoder_sox_error()

LIVES_GLOBAL_INLINE void do_encoder_sox_error ( void  )

Definition at line 3039 of file dialogs.c.

◆ do_erase_subs_warning()

LIVES_GLOBAL_INLINE boolean do_erase_subs_warning ( void  )

Definition at line 4334 of file dialogs.c.

Referenced by on_erase_subs_activate().

◆ do_error_dialog()

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().

◆ do_error_dialog_with_check()

LiVESResponseType do_error_dialog_with_check ( const char *  text,
uint64_t  warn_mask_number 
)

◆ do_error_dialogf()

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

◆ do_event_list_warning()

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().

◆ do_existing_subs_warning()

LIVES_GLOBAL_INLINE boolean do_existing_subs_warning ( void  )

Definition at line 4302 of file dialogs.c.

Referenced by on_load_subs_activate().

◆ do_file_notfound_dialog()

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

Definition at line 3513 of file dialogs.c.

Referenced by build_init_config(), and reload_clip().

◆ do_file_perm_error()

LiVESResponseType do_file_perm_error ( const char *  file_name,
boolean  allow_cancel 
)

Definition at line 4226 of file dialogs.c.

◆ do_foundclips_query()

boolean do_foundclips_query ( void  )

Definition at line 4376 of file dialogs.c.

◆ do_gamma_import_warn()

LIVES_GLOBAL_INLINE boolean do_gamma_import_warn ( uint64_t  fv,
int  gamma_type 
)

Definition at line 3440 of file dialogs.c.

◆ do_header_missing_detail_error()

LiVESResponseType do_header_missing_detail_error ( int  clip,
lives_clip_details_t  detail 
)

Definition at line 4186 of file dialogs.c.

◆ do_header_read_error_with_retry()

LiVESResponseType do_header_read_error_with_retry ( int  clip)

Definition at line 4155 of file dialogs.c.

◆ do_header_write_error()

boolean do_header_write_error ( int  clip)

◆ do_imgfmts_error()

LIVES_GLOBAL_INLINE LiVESResponseType do_imgfmts_error ( lives_img_type_t  imgtype)

Definition at line 4449 of file dialogs.c.

◆ do_info_dialog()

LIVES_GLOBAL_INLINE LiVESResponseType do_info_dialog ( const char *  text)

◆ do_info_dialog_with_expander()

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

Definition at line 793 of file dialogs.c.

◆ do_info_dialogf()

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

Definition at line 773 of file dialogs.c.

Referenced by do_please_install_either(), and on_send_lives2lives_activate().

◆ do_invalid_subs_error()

void do_invalid_subs_error ( void  )

Definition at line 4308 of file dialogs.c.

Referenced by on_load_subs_activate().

◆ do_jack_lost_conn_error()

LIVES_GLOBAL_INLINE void do_jack_lost_conn_error ( void  )

Definition at line 4512 of file dialogs.c.

◆ do_layout_alter_audio_warning()

LIVES_GLOBAL_INLINE boolean do_layout_alter_audio_warning ( void  )

Definition at line 3433 of file dialogs.c.

◆ do_layout_alter_frames_warning()

LIVES_GLOBAL_INLINE boolean do_layout_alter_frames_warning ( void  )

Definition at line 3426 of file dialogs.c.

◆ do_layout_ascrap_file_error()

LIVES_GLOBAL_INLINE void do_layout_ascrap_file_error ( void  )

Definition at line 3059 of file dialogs.c.

◆ do_layout_recover_dialog()

LIVES_GLOBAL_INLINE boolean do_layout_recover_dialog ( void  )

Definition at line 4698 of file dialogs.c.

◆ do_layout_scrap_file_error()

LIVES_GLOBAL_INLINE void do_layout_scrap_file_error ( void  )

Definition at line 3053 of file dialogs.c.

◆ do_lb_composite_error()

LIVES_GLOBAL_INLINE void do_lb_composite_error ( void  )

Definition at line 3645 of file dialogs.c.

◆ do_lb_convert_error()

LIVES_GLOBAL_INLINE void do_lb_convert_error ( void  )

Definition at line 3652 of file dialogs.c.

◆ do_locked_in_vdevs_error()

LIVES_GLOBAL_INLINE void do_locked_in_vdevs_error ( void  )

Definition at line 4404 of file dialogs.c.

◆ do_memory_error_dialog()

LiVESResponseType do_memory_error_dialog ( char *  op,
size_t  bytes 
)

◆ do_messages_window()

LIVES_GLOBAL_INLINE void do_messages_window ( boolean  is_startup)

Definition at line 3335 of file dialogs.c.

Referenced by on_show_messages_activate().

◆ do_move_workdir_dialog()

LIVES_GLOBAL_INLINE boolean do_move_workdir_dialog ( void  )

Definition at line 4351 of file dialogs.c.

Referenced by lives_exit().

◆ do_mt_audchan_error()

LIVES_GLOBAL_INLINE void do_mt_audchan_error ( int  warn_mask)

Definition at line 3606 of file dialogs.c.

◆ do_mt_backup_space_error()

LIVES_GLOBAL_INLINE void do_mt_backup_space_error ( lives_mt *  mt,
int  memreq_mb 
)

Definition at line 3560 of file dialogs.c.

◆ do_mt_lb_warn()

boolean do_mt_lb_warn ( boolean  lb)

Definition at line 3451 of file dialogs.c.

◆ do_mt_no_audchan_error()

LIVES_GLOBAL_INLINE void do_mt_no_audchan_error ( void  )

Definition at line 3614 of file dialogs.c.

Referenced by mt_change_vals_activate().

◆ do_mt_no_jack_error()

LIVES_GLOBAL_INLINE void do_mt_no_jack_error ( int  warn_mask)

Definition at line 3619 of file dialogs.c.

◆ do_mt_rect_prompt()

LIVES_GLOBAL_INLINE boolean do_mt_rect_prompt ( void  )

Definition at line 3627 of file dialogs.c.

◆ do_mt_set_mem_error()

LIVES_GLOBAL_INLINE void do_mt_set_mem_error ( boolean  has_mt)

Definition at line 3593 of file dialogs.c.

◆ do_mt_undo_buf_error()

LIVES_GLOBAL_INLINE void do_mt_undo_buf_error ( void  )

Definition at line 3587 of file dialogs.c.

◆ do_mt_undo_mem_error()

LIVES_GLOBAL_INLINE void do_mt_undo_mem_error ( void  )

Definition at line 3579 of file dialogs.c.

Referenced by multitrack().

◆ do_need_mplayer_dialog()

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().

◆ do_need_mplayer_mpv_dialog()

LIVES_GLOBAL_INLINE void do_need_mplayer_mpv_dialog ( void  )

Definition at line 3027 of file dialogs.c.

Referenced by on_open_loc_activate().

◆ do_no_autolives_error()

LIVES_GLOBAL_INLINE void do_no_autolives_error ( void  )

Definition at line 4500 of file dialogs.c.

Referenced by autolives_toggle().

◆ do_no_decoder_error()

LIVES_GLOBAL_INLINE void do_no_decoder_error ( const char *  fname)

Definition at line 3518 of file dialogs.c.

Referenced by reload_clip().

◆ do_no_in_vdevs_error()

LIVES_GLOBAL_INLINE void do_no_in_vdevs_error ( void  )

Definition at line 4399 of file dialogs.c.

◆ do_no_loadfile_error()

LIVES_GLOBAL_INLINE void do_no_loadfile_error ( const char *  fname)

Definition at line 3526 of file dialogs.c.

◆ do_no_mplayer_sox_error()

LIVES_GLOBAL_INLINE void do_no_mplayer_sox_error ( void  )

Definition at line 3014 of file dialogs.c.

◆ do_no_sets_dialog()

LIVES_GLOBAL_INLINE void do_no_sets_dialog ( const char *  dir)

Definition at line 4366 of file dialogs.c.

Referenced by create_rename_dialog().

◆ do_nojack_rec_error()

LIVES_GLOBAL_INLINE void do_nojack_rec_error ( void  )

Definition at line 3719 of file dialogs.c.

Referenced by on_recaudclip_activate().

◆ do_optarg_blank_err()

LIVES_GLOBAL_INLINE void do_optarg_blank_err ( const char *  what)

Definition at line 881 of file dialogs.c.

◆ do_please_install()

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().

◆ do_please_install_either()

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().

◆ do_program_not_found_error()

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().

◆ do_progress_dialog()

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

◆ do_pulse_lost_conn_error()

LIVES_GLOBAL_INLINE void do_pulse_lost_conn_error ( void  )

Definition at line 4518 of file dialogs.c.

◆ do_read_failed_error_s()

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

◆ do_read_failed_error_s_with_retry()

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

◆ do_reload_set_query()

LIVES_GLOBAL_INLINE boolean do_reload_set_query ( void  )

Definition at line 3256 of file dialogs.c.

Referenced by on_load_set_activate().

◆ do_rendered_fx_dialog()

LIVES_GLOBAL_INLINE void do_rendered_fx_dialog ( void  )

Definition at line 3368 of file dialogs.c.

Referenced by add_rfx_effects().

◆ do_resize_dlg()

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

Definition at line 4417 of file dialogs.c.

◆ do_retry_cancel_dialog()

LIVES_GLOBAL_INLINE LiVESResponseType do_retry_cancel_dialog ( const char *  text)

Definition at line 730 of file dialogs.c.

Referenced by on_utube_select().

◆ do_rmem_max_error()

LIVES_GLOBAL_INLINE void do_rmem_max_error ( int  size)

Definition at line 3755 of file dialogs.c.

◆ do_save_clipset_warn()

boolean do_save_clipset_warn ( void  )

Definition at line 2975 of file dialogs.c.

Referenced by on_save_set_activate().

◆ do_set_duplicate_warning()

boolean do_set_duplicate_warning ( const char *  new_set)

Definition at line 3415 of file dialogs.c.

Referenced by on_save_set_activate().

◆ do_set_locked_warning()

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().

◆ do_set_noclips_error()

LIVES_GLOBAL_INLINE void do_set_noclips_error ( const char *  setname)

Definition at line 4480 of file dialogs.c.

Referenced by reload_set().

◆ do_set_rename_old_layouts_warning()

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().

◆ do_shutdown_msg()

LIVES_GLOBAL_INLINE void do_shutdown_msg ( void  )

Definition at line 4554 of file dialogs.c.

Referenced by on_prefs_close_clicked().

◆ do_sub_type_warning()

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

Definition at line 4339 of file dialogs.c.

Referenced by do_comments_dialog().

◆ do_system_failed_error()

LiVESResponseType do_system_failed_error ( const char *  com,
int  retval,
const char *  addinfo,
boolean  can_retry,
boolean  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().

◆ do_theme_exists_warn()

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().

◆ do_threaded_dialog()

void do_threaded_dialog ( const char *  trans_text,
boolean  has_cancel 
)

◆ do_upgrade_error_dialog()

LIVES_GLOBAL_INLINE void do_upgrade_error_dialog ( void  )

Definition at line 3358 of file dialogs.c.

◆ do_vpp_fps_error()

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().

◆ do_vpp_palette_error()

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().

◆ do_warning_dialog()

LIVES_GLOBAL_INLINE boolean do_warning_dialog ( const char *  text)

◆ do_warning_dialog_with_check()

boolean do_warning_dialog_with_check ( const char *  text,
uint64_t  warn_mask_number 
)

◆ do_warning_dialogf()

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

Definition at line 551 of file dialogs.c.

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

◆ do_write_failed_error_s()

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

◆ do_write_failed_error_s_with_retry()

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

◆ do_yesno_dialog()

boolean do_yesno_dialog ( const char *  text)

◆ do_yesno_dialog_with_check()

boolean do_yesno_dialog_with_check ( const char *  text,
uint64_t  warn_mask_number 
)

Definition at line 595 of file dialogs.c.

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

◆ do_yesno_dialogf()

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

◆ do_yuv4m_open_warning()

boolean do_yuv4m_open_warning ( void  )

Definition at line 3270 of file dialogs.c.

Referenced by on_open_yuv4m_activate().

◆ ds_critical_msg()

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

warn about disk space

< crit level

< current level

Definition at line 822 of file dialogs.c.

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

◆ ds_warning_msg()

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

< warn level

< current level

< next warn level

Definition at line 850 of file dialogs.c.

Referenced by check_storage_space().

◆ end_threaded_dialog()

void end_threaded_dialog ( void  )

◆ findex_bk_dialog()

LIVES_GLOBAL_INLINE boolean findex_bk_dialog ( const char *  fname_back)

Definition at line 3261 of file dialogs.c.

Referenced by load_frame_index().

◆ get_cache_stats()

const char* get_cache_stats ( void  )

Definition at line 68 of file dialogs.c.

◆ get_transient_full()

LIVES_GLOBAL_INLINE LiVESWindow* get_transient_full ( void  )

Definition at line 622 of file dialogs.c.

Referenced by choose_file().

◆ get_upd_msg()

LIVES_GLOBAL_INLINE char* get_upd_msg ( void  )

Definition at line 4490 of file dialogs.c.

◆ handle_backend_errors()

LiVESResponseType handle_backend_errors ( boolean  can_retry)

handle error conditions returned from the back end

got read error from backend

got write error from backend

got (sub) system error from backend

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

set mainw->error but not mainw->cancelled

Definition at line 922 of file dialogs.c.

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

◆ on_warn_mask_toggled()

void on_warn_mask_toggled ( LiVESToggleButton *  togglebutton,
livespointer  user_data 
)

Definition at line 77 of file dialogs.c.

Referenced by add_warn_check().

◆ paste_enough_dlg()

LIVES_GLOBAL_INLINE boolean paste_enough_dlg ( int  lframe)

Definition at line 3266 of file dialogs.c.

Referenced by on_paste_as_new_activate().

◆ perf_mem_warning()

LIVES_GLOBAL_INLINE void perf_mem_warning ( void  )

Definition at line 3237 of file dialogs.c.

◆ process_one()

int process_one ( boolean  visible)

SWITCH POINT

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

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

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

end SWITCH POINT

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

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

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

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

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

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

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

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

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

failed load, just reset

update the effort calculation with dropped frames and spare_cycles

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

but we did update last_start_ticks

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

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

set this in case we switch

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

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

Definition at line 1337 of file dialogs.c.

◆ prompt_remove_layout_files()

LIVES_GLOBAL_INLINE boolean prompt_remove_layout_files ( void  )

Definition at line 3408 of file dialogs.c.

◆ pump_io_chan()

void pump_io_chan ( LiVESIOChannel *  iochan)

Definition at line 1020 of file dialogs.c.

◆ rdet_suggest_values()

boolean rdet_suggest_values ( int  width,
int  height,
double  fps,
int  fps_num,
int  fps_denom,
int  arate,
int  asigned,
boolean  swap_endian,
boolean  anr,
boolean  ignore_fps 
)

Definition at line 3065 of file dialogs.c.

◆ reset_frame_and_clip_index()

void reset_frame_and_clip_index ( void  )

TODO: split into player, progress, dialogs.

Definition at line 12219 of file effects-weed.c.

◆ response_ok()

void response_ok ( LiVESButton *  button,
livespointer  user_data 
)

Definition at line 3892 of file dialogs.c.

◆ threaded_dialog_pop()

void threaded_dialog_pop ( void  )

Definition at line 3771 of file dialogs.c.

◆ threaded_dialog_push()

void threaded_dialog_push ( void  )

Definition at line 3762 of file dialogs.c.

◆ threaded_dialog_spin()

void threaded_dialog_spin ( double  fraction)

◆ too_many_files()

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().

◆ update_progress()

void update_progress ( boolean  visible)

Definition at line 1275 of file dialogs.c.

Referenced by virtual_to_images().

◆ workdir_ch_warning()

LIVES_GLOBAL_INLINE char* workdir_ch_warning ( void  )

Definition at line 4544 of file dialogs.c.

◆ workdir_warning()

void workdir_warning ( void  )

Definition at line 3001 of file dialogs.c.

Referenced by open_ascrap_file(), and open_scrap_file().