Lines Matching defs:delay
777 int i, i_start, x, y1, y, ys, delay, n, nb_display_channels;
786 delay = audio_write_get_buf_size(s);
787 delay /= n;
793 delay += (time_diff * s->audio_st->codec->sample_rate) / 1000000;
796 delay -= s->width / 2;
797 if (delay < s->width)
798 delay = s->width;
800 i_start= x = compute_mod(s->sample_array_index - delay * channels, SAMPLE_ARRAY_SIZE);
921 /* schedule a video refresh in 'delay' ms */
922 static void schedule_refresh(VideoState *is, int delay)
924 if(!delay) delay=1; //SDL seems to be buggy when the delay is 0
925 SDL_AddTimer(delay, sdl_refresh_timer_cb, is);
1010 double actual_delay, delay, sync_threshold, ref_clock, diff;
1012 /* compute nominal delay */
1013 delay = frame_current_pts - is->frame_last_pts;
1014 if (delay <= 0 || delay >= 10.0) {
1015 /* if incorrect delay, use previous one */
1016 delay = is->frame_last_delay;
1018 is->frame_last_delay = delay;
1022 /* update delay to follow master synchronisation source */
1031 delay to compute the threshold. I still don't know
1033 sync_threshold = FFMAX(AV_SYNC_THRESHOLD, delay);
1036 delay = 0;
1038 delay = 2 * delay;
1042 is->frame_timer += delay;
1043 /* compute the REAL delay (we need to do that to avoid
1052 printf("video: delay=%0.3f actual_delay=%0.3f pts=%0.3f A-V=%f\n",
1053 delay, actual_delay, frame_current_pts, -diff);
1641 printf("audio: delay=%0.3f clock=%0.3f pts=%0.3f\n",