Lines Matching refs:cfile

1515 …if ((!mainw->is_rendering || (mainw->multitrack && !cfile->opening && !mainw->multitrack->is_rende…  in lives_get_current_playback_ticks()
1814 >= cfile->laudio_time - 0.0001)) { in check_for_audio_stop()
1834 >= cfile->laudio_time - 0.0001)) { in check_for_audio_stop()
1850 … if (mainw->jackd_read) mainw->aframeno = lives_jack_get_pos(mainw->jackd_read) * cfile->fps + 1.; in calc_aframeno()
1851 else mainw->aframeno = lives_jack_get_pos(mainw->jackd) * cfile->fps + 1.; in calc_aframeno()
1858 …if (mainw->pulsed_read) mainw->aframeno = lives_pulse_get_pos(mainw->pulsed_read) * cfile->fps + 1… in calc_aframeno()
1859 else mainw->aframeno = lives_pulse_get_pos(mainw->pulsed) * cfile->fps + 1.; in calc_aframeno()
2047 cfile->last_frameno -= (nframe - cframe - 1); in calc_new_playback_position()
2050 cfile->last_frameno += (cframe - 1 - nframe); in calc_new_playback_position()
2271 cfile->cb_src = current_file; in init_clipboard()
2273 if (cfile->clip_type == CLIP_TYPE_FILE) { in init_clipboard()
2274 lives_freep((void **)&cfile->frame_index); in init_clipboard()
2275 if (cfile->ext_src && cfile->ext_src_type == LIVES_EXT_SRC_DECODER) { in init_clipboard()
2278 cfile->clip_type = CLIP_TYPE_DISK; in init_clipboard()
2291 cfile->progress_start = cfile->start; in init_clipboard()
2292 cfile->progress_end = cfile->end; in init_clipboard()
2563 …(mainw->current_file == -1 || (cfile && cfile->clip_type != CLIP_TYPE_GENERATOR)) && !mainw->no_sw… in d_print()
2566 tmp = get_menu_name(cfile, in d_print()
2593 if ((mainw->current_file == -1 || (cfile && cfile->clip_type != CLIP_TYPE_GENERATOR)) && in d_print()
3680 if (cfile->audio_waveform) { in update_play_times()
3682 for (i = 0; i < cfile->achans; lives_freep((void **)&cfile->audio_waveform[i++])); in update_play_times()
3683 lives_freep((void **)&cfile->audio_waveform); in update_play_times()
3684 lives_freep((void **)&cfile->aw_sizes); in update_play_times()
3738 } else if (cfile->opening_only_audio) mainw->whentostop = STOP_ON_AUD_END; in find_when_to_stop()
3739 else if (cfile->opening_audio) mainw->whentostop = STOP_ON_VID_END; in find_when_to_stop()
3741 else if (!CURRENT_CLIP_HAS_VIDEO || (mainw->loop && cfile->achans > 0 && !mainw->is_rendering in find_when_to_stop()
3742 && (mainw->audio_end / cfile->fps) in find_when_to_stop()
3743 < MAX(cfile->laudio_time, cfile->raudio_time) && in find_when_to_stop()
3744 … calc_time_from_frame(mainw->current_file, mainw->play_start) < cfile->laudio_time)) in find_when_to_stop()
4080 cfile->arate = cfile->arps = mainw->rec_arate; in prepare_to_play_foreign()
4081 cfile->achans = mainw->rec_achans; in prepare_to_play_foreign()
4082 cfile->asampsize = mainw->rec_asamps; in prepare_to_play_foreign()
4083 cfile->signed_endian = mainw->rec_signed_endian; in prepare_to_play_foreign()
4098 cfile->hsize = mainw->foreign_width / 2 + 1; in prepare_to_play_foreign()
4099 cfile->vsize = mainw->foreign_height / 2 + 3; in prepare_to_play_foreign()
4101 cfile->fps = cfile->pb_fps = mainw->rec_fps; in prepare_to_play_foreign()
4114 cfile->hsize = mainw->pwidth; in prepare_to_play_foreign()
4115 cfile->vsize = mainw->pheight; in prepare_to_play_foreign()
4117 cfile->img_type = IMG_TYPE_BEST; // override the pref in prepare_to_play_foreign()
4214 lives_snprintf(cfile->file_name, 256, "Capture %d", mainw->cap_number); in after_foreign_play()
4215 lives_snprintf(cfile->name, CLIP_NAME_MAXLEN, "Capture %d", mainw->cap_number++); in after_foreign_play()
4216 lives_snprintf(cfile->type, 40, "Frames"); in after_foreign_play()
4218 cfile->progress_start = cfile->start = 1; in after_foreign_play()
4219 cfile->progress_end = cfile->frames = cfile->end = new_frames; in after_foreign_play()
4220 cfile->pb_fps = cfile->fps = mainw->rec_fps; in after_foreign_play()
4222 cfile->hsize = CEIL(mainw->foreign_width, 4); in after_foreign_play()
4223 cfile->vsize = CEIL(mainw->foreign_height, 4); in after_foreign_play()
4225 cfile->img_type = IMG_TYPE_BEST; in after_foreign_play()
4226 cfile->changed = TRUE; in after_foreign_play()
4229 cfile->arate = cfile->arps = mainw->rec_arate; in after_foreign_play()
4230 cfile->achans = mainw->rec_achans; in after_foreign_play()
4231 cfile->asampsize = mainw->rec_asamps; in after_foreign_play()
4232 cfile->signed_endian = mainw->rec_signed_endian; in after_foreign_play()
4236 if (prefs->crash_recovery) add_to_recovery_file(cfile->handle); in after_foreign_play()
4243 … resize_all(mainw->current_file, cfile->hsize, cfile->vsize, cfile->img_type, FALSE, NULL, NULL); in after_foreign_play()
4245 if (cfile->afilesize > 0 && cfile->achans > 0 in after_foreign_play()
4246 && CLIP_TOTAL_TIME(mainw->current_file) > cfile->laudio_time + AV_TRACK_MIN_DIFF) { in after_foreign_play()
4264 cfile->nopreview = FALSE; in after_foreign_play()
4277 cfile->is_loaded = TRUE; in after_foreign_play()
4278 cfile->changed = TRUE; in after_foreign_play()
4294 if (mainw->current_file > 0 && cfile && cfile->menuentry) { in reset_clipmenu()
4305 lives_signal_handler_block(cfile->menuentry, cfile->menuentry_func); in reset_clipmenu()
4306 lives_check_menu_item_set_active(LIVES_CHECK_MENU_ITEM(cfile->menuentry), TRUE); in reset_clipmenu()
4307 lives_signal_handler_unblock(cfile->menuentry, cfile->menuentry_func); in reset_clipmenu()
4667 if (cfile->resample_events) { in create_event_space()
4668 lives_free(cfile->resample_events); in create_event_space()
4670 …if ((cfile->resample_events = (resample_event *)(lives_calloc(length, sizeof(resample_event)))) ==… in create_event_space()
4786 cfile->redoable = FALSE; in set_undoable()
4787 cfile->undoable = sensitive; in set_undoable()
4790 lives_snprintf(cfile->undo_text, 32, _("_Undo %s"), what_safe); in set_undoable()
4791 lives_snprintf(cfile->redo_text, 32, _("_Redo %s"), what_safe); in set_undoable()
4794 cfile->undoable = FALSE; in set_undoable()
4795 cfile->undo_action = UNDO_NONE; in set_undoable()
4796 lives_snprintf(cfile->undo_text, 32, "%s", _("_Undo")); in set_undoable()
4797 lives_snprintf(cfile->redo_text, 32, "%s", _("_Redo")); in set_undoable()
4799 lives_menu_item_set_text(mainw->undo, cfile->undo_text, TRUE); in set_undoable()
4800 lives_menu_item_set_text(mainw->redo, cfile->redo_text, TRUE); in set_undoable()
4815 cfile->undoable = FALSE; in set_redoable()
4816 cfile->redoable = sensitive; in set_redoable()
4819 lives_snprintf(cfile->undo_text, 32, _("_Undo %s"), what_safe); in set_redoable()
4820 lives_snprintf(cfile->redo_text, 32, _("_Redo %s"), what_safe); in set_redoable()
4823 cfile->redoable = FALSE; in set_redoable()
4824 cfile->undo_action = UNDO_NONE; in set_redoable()
4825 lives_snprintf(cfile->undo_text, 32, "%s", _("_Undo")); in set_redoable()
4826 lives_snprintf(cfile->redo_text, 32, "%s", _("_Redo")); in set_redoable()
4828 lives_menu_item_set_text(mainw->undo, cfile->undo_text, TRUE); in set_redoable()
4829 lives_menu_item_set_text(mainw->redo, cfile->redo_text, TRUE); in set_redoable()
4842 if (mainw->current_file == -1 || !cfile->frames || mainw->multitrack) { in set_sel_label()
4845 tstr = lives_strdup_printf("%.2f", calc_time_from_frame(mainw->current_file, cfile->end + 1) - in set_sel_label()
4846 calc_time_from_frame(mainw->current_file, cfile->start)); in set_sel_label()
4847 frstr = lives_strdup_printf("%d", cfile->end - cfile->start + 1); in set_sel_label()