Lines Matching defs:pts
144 double pts; /* clock base */
158 double pts; /* presentation timestamp for the frame */
591 frame->pts = frame->best_effort_timestamp;
593 frame->pts = frame->pkt_dts;
601 if (frame->pts != AV_NOPTS_VALUE)
602 frame->pts = av_rescale_q(frame->pts, d->avctx->pkt_timebase, tb);
604 frame->pts = av_rescale_q(d->next_pts, d->next_pts_tb, tb);
605 if (frame->pts != AV_NOPTS_VALUE) {
606 d->next_pts = frame->pts + frame->nb_samples;
972 if (vp->pts >= sp->pts + ((float) sp->sub.start_display_time / 1000)) {
1368 return c->pts;
1375 static void set_clock_at(Clock *c, double pts, int serial, double time)
1377 c->pts = pts;
1379 c->pts_drift = c->pts - time;
1383 static void set_clock(Clock *c, double pts, int serial)
1386 set_clock_at(c, pts, serial, time);
1546 double duration = nextvp->pts - vp->pts;
1556 static void update_video_pts(VideoState *is, double pts, int64_t pos, int serial) {
1557 /* update current video pts */
1558 set_clock(&is->vidclk, pts, serial);
1620 if (!isnan(vp->pts))
1621 update_video_pts(is, vp->pts, vp->pos, vp->serial);
1644 || (is->vidclk.pts > (sp->pts + ((float) sp->sub.end_display_time / 1000)))
1645 || (sp2 && is->vidclk.pts > (sp2->pts + ((float) sp2->sub.start_display_time / 1000))))
1732 static int queue_picture(VideoState *is, AVFrame *src_frame, double pts, double duration, int64_t pos, int serial)
1737 printf("frame_type=%c pts=%0.3f\n",
1738 av_get_picture_type_char(src_frame->pict_type), pts);
1751 vp->pts = pts;
1773 if (frame->pts != AV_NOPTS_VALUE)
1774 dpts = av_q2d(is->video_st->time_base) * frame->pts;
1779 if (frame->pts != AV_NOPTS_VALUE) {
2080 af->pts = (frame->pts == AV_NOPTS_VALUE) ? NAN : frame->pts * av_q2d(tb);
2120 double pts;
2203 pts = (frame->pts == AV_NOPTS_VALUE) ? NAN : frame->pts * av_q2d(tb);
2204 ret = queue_picture(is, frame, pts, duration, frame->pkt_pos, is->viddec.pkt_serial);
2228 double pts;
2237 pts = 0;
2240 if (sp->sub.pts != AV_NOPTS_VALUE)
2241 pts = sp->sub.pts / (double)AV_TIME_BASE;
2242 sp->pts = pts;
2416 /* update the audio clock with the pts */
2417 if (!isnan(af->pts))
2418 is->audio_clock = af->pts + (double) af->frame->nb_samples / af->frame->sample_rate;
3032 pkt_ts = pkt->pts == AV_NOPTS_VALUE ? pkt->dts : pkt->pts;
3584 { "genpts", OPT_BOOL | OPT_EXPERT, { &genpts }, "generate pts", "" },
3585 { "drp", OPT_INT | HAS_ARG | OPT_EXPERT, { &decoder_reorder_pts }, "let decoder reorder pts 0=off 1=on -1=auto", ""},