Lines Matching refs:cfile

238   cfile->real_pointer_time = x;  in lives_ce_update_timeline()
240 if (cfile->frames > 0 && frame > cfile->frames) frame = cfile->frames; in lives_ce_update_timeline()
242 cfile->pointer_time = x; in lives_ce_update_timeline()
244 cfile->frameno = cfile->last_frameno = frame; in lives_ce_update_timeline()
245 if (cfile->achans) { in lives_ce_update_timeline()
246 cfile->aseek_pos = (off64_t)((double)(cfile->real_pointer_time * cfile->arate) * cfile->achans * in lives_ce_update_timeline()
247 (cfile->asampsize / 8)); in lives_ce_update_timeline()
248 if (cfile->aseek_pos > cfile->afilesize) cfile->aseek_pos = 0.; in lives_ce_update_timeline()
256 if (prefs->show_gui && !prefs->hide_framebar && cfile->frames > 0) { in lives_ce_update_timeline()
258 if (cfile->frames > 0) framecount = lives_strdup_printf("%9d / %d", frame, cfile->frames); in lives_ce_update_timeline()
265 if (!LIVES_IS_PLAYING && mainw->play_window && cfile->is_loaded && !mainw->multitrack) { in lives_ce_update_timeline()
267 if (cfile->frames > 0) { in lives_ce_update_timeline()
268 cfile->frameno = frame; in lives_ce_update_timeline()
276 lives_spin_button_set_value(LIVES_SPIN_BUTTON(mainw->spinbutton_pb_fps), cfile->pb_fps); in lives_ce_update_timeline()
284 return cfile->pointer_time; in lives_ce_update_timeline()
318 if (CURRENT_CLIP_IS_VALID && cfile->cb_src != -1) mainw->current_file = cfile->cb_src; in update_timer_bars()
326 get_total_time(cfile); in update_timer_bars()
344 if (cfile->frames > 0 && mainw->video_drawable && (which == 0 || which == 1)) { in update_timer_bars()
349 offset_left = ROUND_I((double)(cfile->start - 1.) / cfile->fps * scalex); in update_timer_bars()
350 offset_right = ROUND_I((double)(cfile->end) / cfile->fps * scalex); in update_timer_bars()
376 zwidth = ROUND_I(cfile->video_time * scalex) - offset_right; in update_timer_bars()
389 if (cfile->achans > 0 && mainw->laudio_drawable && (which == 0 || which == 2)) { in update_timer_bars()
392 offset_left = ROUND_I((double)(cfile->start - 1.) / cfile->fps * scalex); in update_timer_bars()
393 offset_right = ROUND_I((double)(cfile->end) / cfile->fps * scalex); in update_timer_bars()
394 offset_end = ROUND_I(cfile->laudio_time * scalex); in update_timer_bars()
396 if (!cfile->audio_waveform) { in update_timer_bars()
397 cfile->audio_waveform = (float **)lives_calloc(cfile->achans, sizeof(float *)); in update_timer_bars()
398 cfile->aw_sizes = (size_t *)lives_calloc(cfile->achans, sizeof(size_t)); in update_timer_bars()
402 if (!cfile->audio_waveform[0]) { in update_timer_bars()
405 cfile->audio_waveform[0] = (float *)lives_calloc((int)offset_end, sizeof(float)); in update_timer_bars()
406 start = cfile->aw_sizes[0] = 0; in update_timer_bars()
407 } else if (cfile->aw_sizes[0] != offset_end) { in update_timer_bars()
409cfile->audio_waveform[0] = (float *)lives_realloc(cfile->audio_waveform[0], (int)offset_end * size… in update_timer_bars()
412 if (cfile->audio_waveform[0]) { in update_timer_bars()
414 cfile->aw_sizes[0] = offset_end; in update_timer_bars()
425 cfile->audio_waveform[0][i] = cfile->vol in update_timer_bars()
426 … * get_float_audio_val_at_time(mainw->current_file, afd, atime, 0, cfile->achans) * 2.; in update_timer_bars()
432 offset_right = NORMAL_CLAMP(offset_right, cfile->laudio_time * scalex); in update_timer_bars()
439 pos = ROUND_I((double)(i * cfile->fps / scalex) / cfile->fps * scalex); in update_timer_bars()
442 y = bar_height * (1. - cfile->audio_waveform[0][pos] / 2.); in update_timer_bars()
457 pos = ROUND_I((double)(i * cfile->fps / scalex) / cfile->fps * scalex); in update_timer_bars()
460 y = bar_height * (1. - cfile->audio_waveform[0][pos] / 2.); in update_timer_bars()
474 pos = ROUND_I((double)(i * cfile->fps / scalex) / cfile->fps * scalex); in update_timer_bars()
477 y = bar_height * (1. - cfile->audio_waveform[0][pos] / 2.); in update_timer_bars()
490 if (cfile->achans > 1 && mainw->raudio_drawable && (which == 0 || which == 3)) { in update_timer_bars()
493 offset_left = ROUND_I((double)(cfile->start - 1.) / cfile->fps * scalex); in update_timer_bars()
494 offset_right = ROUND_I((double)(cfile->end) / cfile->fps * scalex); in update_timer_bars()
495 offset_end = ROUND_I(cfile->raudio_time * scalex); in update_timer_bars()
498 if (!cfile->audio_waveform[1]) { in update_timer_bars()
501 cfile->audio_waveform[1] = (float *)lives_calloc((int)offset_end, sizeof(float)); in update_timer_bars()
502 start = cfile->aw_sizes[1] = 0; in update_timer_bars()
503 } else if (cfile->aw_sizes[1] != offset_end) { in update_timer_bars()
505cfile->audio_waveform[1] = (float *)lives_realloc(cfile->audio_waveform[1], (int)offset_end * size… in update_timer_bars()
507 cfile->aw_sizes[1] = offset_end; in update_timer_bars()
509 if (cfile->audio_waveform[1]) { in update_timer_bars()
511 cfile->aw_sizes[1] = offset_end; in update_timer_bars()
521 cfile->audio_waveform[1][i] = cfile->vol in update_timer_bars()
522 … * get_float_audio_val_at_time(mainw->current_file, afd, atime, 1, cfile->achans) * 2.; in update_timer_bars()
528 offset_right = NORMAL_CLAMP(offset_right, cfile->raudio_time * scalex); in update_timer_bars()
537 pos = ROUND_I((double)(i * cfile->fps / scalex) / cfile->fps * scalex); in update_timer_bars()
540 y = bar_height * (1. - cfile->audio_waveform[1][pos] / 2.); in update_timer_bars()
555 pos = ROUND_I((double)(i * cfile->fps / scalex) / cfile->fps * scalex); in update_timer_bars()
558 y = bar_height * (1. - cfile->audio_waveform[1][pos] / 2.); in update_timer_bars()
572 pos = ROUND_I((double)(i * cfile->fps / scalex) / cfile->fps * scalex); in update_timer_bars()
575 y = bar_height * (1. - cfile->audio_waveform[1][pos] / 2.); in update_timer_bars()
592 if (!cfile->opening_loc && which == 0) { in update_timer_bars()
946 if (cfile->opening_loc in create_processing()
960 …if (cfile->nokeep) procw->pause_button = lives_dialog_add_button_from_stock(LIVES_DIALOG(procw->pr… in create_processing()
1070 title = get_menu_name(cfile, TRUE); in create_clip_info_window()
1087 if (cfile->frames > 0 || is_mt) { in create_clip_info_window()
1504 if (cfile->frames == 0) in create_insert_dialog()
1530 if (cfile->frames == 0) lives_widget_set_sensitive(radiobutton, FALSE); in create_insert_dialog()
1532 …toggle_sets_sensitive_cond(LIVES_TOGGLE_BUTTON(insertw->fit_checkbutton), radiobutton, &cfile->fra… in create_insert_dialog()
1567 … (cfile->achans > 0 || clipboard->achans > 0) && mainw->ccpd_with_sound); in create_insert_dialog()
1585 if (cfile->achans == 0 || (double)cfile->end / cfile->fps >= cfile->laudio_time - 0.0001) { in create_insert_dialog()
3385 if (fabs(cfile->vol - mainw->fx1_val) > .005) { in on_avolch_ok()
3400 cfile->undo_action = UNDO_AUDIO_VOL; in on_avolch_ok()
3403 d_print(_("clip volume adjusted by a factor of %.2f\n"), cfile->vol); in on_avolch_ok()
3404 cfile->vol = 1.; in on_avolch_ok()
3517 cfile->fps); in create_new_pb_speed()
3522 cfile->fps); in create_new_pb_speed()
3529 "the adjustment permanent.\n"), "'<'", "'>'", cfile->vol); in create_new_pb_speed()
3540 …spinbutton_pb_speed = lives_standard_spin_button_new(NULL, (double)cfile->vol, 0., 4., .01, .01, 2… in create_new_pb_speed()
3544 …spinbutton_pb_speed = lives_standard_spin_button_new(NULL, cfile->fps, 1., FPS_MAX, .01, .1, 3, LI… in create_new_pb_speed()
3549 …spinbutton_pb_speed = lives_standard_spin_button_new(NULL, cfile->fps, 1., FPS_MAX, .01, .1, 3, LI… in create_new_pb_speed()
3567 (double)((int)(cfile->frames / cfile->fps * 100.)) / 100., in create_new_pb_speed()
3568 1. / FPS_MAX, cfile->frames, 1., 10., 2, LIVES_BOX(hbox), NULL); in create_new_pb_speed()
3586 if (type != 1 || cfile->achans == 0) lives_widget_set_no_show_all(ca_hbox, TRUE); in create_new_pb_speed()
3714 max = cfile->laudio_time; in create_audfade_dialog()
3729 if ((cfile->end - 1.) / cfile->fps > cfile->laudio_time) { in create_audfade_dialog()
3801 …commentsw->title_entry = lives_standard_entry_new(NULL, cfile->title, MEDIUM_ENTRY_WIDTH, 1023, NU… in create_comments_dialog()
3807 …commentsw->author_entry = lives_standard_entry_new(NULL, cfile->author, MEDIUM_ENTRY_WIDTH, 1023, … in create_comments_dialog()
3813 …commentsw->comment_entry = lives_standard_entry_new(NULL, cfile->comment, MEDIUM_ENTRY_WIDTH, 1023… in create_comments_dialog()
5308 CURRENT_CLIP_HAS_VIDEO ? cfile->hsize : DEF_GEN_WIDTH, in run_youtube_dialog()
5315 CURRENT_CLIP_HAS_VIDEO ? cfile->vsize : DEF_GEN_HEIGHT, in run_youtube_dialog()