av_q2d 858 ffmpeg.c if(video_sync_method>0 || (video_sync_method && av_q2d(enc->time_base) > 0.001)){ av_q2d 860 ffmpeg.c vdelta = get_sync_ipts(ost) / av_q2d(enc->time_base) - ost->sync_opts; av_q2d 868 ffmpeg.c ost->sync_opts= lrintf(get_sync_ipts(ost) / av_q2d(enc->time_base)); av_q2d 882 ffmpeg.c ost->sync_opts= lrintf(get_sync_ipts(ost) / av_q2d(enc->time_base)); av_q2d 1039 ffmpeg.c ti1 = ost->sync_opts * av_q2d(enc->time_base); av_q2d 1043 ffmpeg.c bitrate = (frame_size * 8) / av_q2d(enc->time_base) / 1000.0; av_q2d 1139 ffmpeg.c pts = (double)ost->st->pts.val * av_q2d(ost->st->time_base); av_q2d 1753 ffmpeg.c if(av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) && av_q2d(ist->st->time_base) < 1.0/1000){ av_q2d 2071 ffmpeg.c opts = ost->sync_opts * av_q2d(ost->st->codec->time_base); av_q2d 2073 ffmpeg.c opts = ost->st->pts.val * av_q2d(ost->st->time_base); av_q2d 2885 ffmpeg.c frame_aspect_ratio=av_q2d(ic->streams[i]->sample_aspect_ratio); av_q2d 2887 ffmpeg.c frame_aspect_ratio=av_q2d(enc->sample_aspect_ratio); av_q2d 666 ffplay.c aspect_ratio = av_q2d(is->video_st->sample_aspect_ratio); av_q2d 668 ffplay.c aspect_ratio = av_q2d(is->video_st->codec->sample_aspect_ratio); av_q2d 1327 ffplay.c frame_delay = av_q2d(is->video_st->codec->time_base); av_q2d 1383 ffplay.c pts *= av_q2d(is->video_st->time_base); av_q2d 1438 ffplay.c pts = av_q2d(is->subtitle_st->time_base)*pkt->pts; av_q2d 1671 ffplay.c is->audio_clock = av_q2d(is->audio_st->time_base)*pkt->pts; av_q2d 1172 libavcodec/dv.c if ((int)(av_q2d(c->avctx->sample_aspect_ratio) * c->avctx->width / c->avctx->height * 10) >= 17) /* 16:9 */ av_q2d 198 libavcodec/mpeg12enc.c float aspect_ratio= av_q2d(s->avctx->sample_aspect_ratio); av_q2d 217 libavcodec/mpeg12enc.c error-= av_q2d(ff_mpeg2_aspect[i])*s->height/s->width; av_q2d 336 libavcodec/mpegvideo_enc.c if(avctx->rc_buffer_size && avctx->bit_rate*av_q2d(avctx->time_base) > avctx->rc_buffer_size){ av_q2d 341 libavcodec/mpegvideo_enc.c if(avctx->bit_rate*av_q2d(avctx->time_base) > avctx->bit_rate_tolerance){ av_q2d 246 libavcodec/ratecontrol.c rcc->pass1_wanted_bits+= s->bit_rate/(1/av_q2d(s->avctx->time_base)); //FIXME misbehaves a little for variable fps av_q2d 271 libavcodec/ratecontrol.c const double fps= 1/av_q2d(s->avctx->time_base); av_q2d 441 libavcodec/ratecontrol.c const double fps= 1/av_q2d(s->avctx->time_base); av_q2d 688 libavcodec/ratecontrol.c fps= 1/av_q2d(s->avctx->time_base); av_q2d 833 libavcodec/ratecontrol.c double fps= 1/av_q2d(s->avctx->time_base); av_q2d 250 libavdevice/v4l.c st->codec->bit_rate = s->frame_size * 1/av_q2d(st->codec->time_base) * 8; av_q2d 598 libavdevice/v4l2.c st->codec->bit_rate = s->frame_size * 1/av_q2d(st->codec->time_base) * 8; av_q2d 225 libavdevice/x11grab.c x11grab->time_frame = av_gettime() / av_q2d(ap->time_base); av_q2d 238 libavdevice/x11grab.c st->codec->bit_rate = x11grab->frame_size * 1/av_q2d(ap->time_base) * 8; av_q2d 449 libavdevice/x11grab.c delay = s->time_frame * av_q2d(s->time_base) - curtime; av_q2d 451 libavdevice/x11grab.c if (delay < INT64_C(-1000000) * av_q2d(s->time_base)) { av_q2d 304 libavformat/avienc.c put_le32(pb, lrintf(1.0/av_q2d(stream->time_base))); av_q2d 154 libavformat/flvenc.c framerate = av_q2d(s->streams[i]->r_frame_rate); av_q2d 156 libavformat/flvenc.c framerate = 1/av_q2d(s->streams[i]->codec->time_base); av_q2d 579 libavformat/matroskaenc.c int d_width = codec->width*av_q2d(st->sample_aspect_ratio); av_q2d 1049 libavformat/movenc.c double sample_aspect_ratio = av_q2d(st->sample_aspect_ratio); av_q2d 1393 libavformat/mxfenc.c if (fabs(av_q2d(st->codec->time_base) - 1/25.0) < 0.0001) { av_q2d 1397 libavformat/mxfenc.c } else if (fabs(av_q2d(st->codec->time_base) - 1001/30000.0) < 0.0001) { av_q2d 488 libavformat/nutdec.c *ts= tmp / s->nb_streams * av_q2d(nut->time_base[tmp % s->nb_streams])*AV_TIME_BASE; av_q2d 848 libavformat/nutdec.c Syncpoint dummy={.ts= pts*av_q2d(st->time_base)*AV_TIME_BASE}; av_q2d 586 libavformat/nutenc.c if(av_q2d(time_base) >= 0.001) av_q2d 590 libavformat/nutenc.c nut->stream[i].max_pts_distance= FFMAX(1/av_q2d(time_base), 1); av_q2d 108 libavformat/thp.c st->codec->sample_rate = av_q2d(thp->fps); av_q2d 2111 libavformat/utils.c double dur= duration * av_q2d(st->time_base); av_q2d 2190 libavformat/utils.c double best_error= 2*av_q2d(st->time_base); av_q2d 2203 libavformat/utils.c if (num && (!st->r_frame_rate.num || (double)num/(12*1001) < 1.01 * av_q2d(st->r_frame_rate))) av_q2d 2834 libavformat/utils.c print_fps(av_q2d(st->r_frame_rate), "tbr"); av_q2d 2836 libavformat/utils.c print_fps(1/av_q2d(st->time_base), "tbn"); av_q2d 2838 libavformat/utils.c print_fps(1/av_q2d(st->codec->time_base), "tbc"); av_q2d 81 tests/seek_test.c printf(" st:%2d dts:%f pts:%f pos:%" PRId64 " size:%d flags:%d", pkt.stream_index, pkt.dts*av_q2d(st->time_base), pkt.pts*av_q2d(st->time_base), pkt.pos, pkt.size, pkt.flags); av_q2d 95 tests/seek_test.c printf("ret:%2d st:%2d ts:%f flags:%d\n", ret, stream_id, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)), i&1);