av_make_q 3336 fftools/ffmpeg.c init_encoder_time_base(ost, av_make_q(1, enc_ctx->sample_rate)); av_make_q 873 fftools/ffplay.c if (av_cmp_q(aspect_ratio, av_make_q(0, 1)) <= 0) av_make_q 874 fftools/ffplay.c aspect_ratio = av_make_q(1, 1); av_make_q 876 fftools/ffplay.c aspect_ratio = av_mul_q(aspect_ratio, av_make_q(pic_width, pic_height)); av_make_q 952 libavcodec/decode.c ts_start = av_rescale_q(pkt->pts, tb, av_make_q(1, 100)); av_make_q 954 libavcodec/decode.c ts_duration = av_rescale_q(pkt->duration, tb, av_make_q(1, 100)); av_make_q 346 libavcodec/libdav1d.c mastering->display_primaries[i][0] = av_make_q(p->mastering_display->primaries[i][0], 1 << 16); av_make_q 347 libavcodec/libdav1d.c mastering->display_primaries[i][1] = av_make_q(p->mastering_display->primaries[i][1], 1 << 16); av_make_q 349 libavcodec/libdav1d.c mastering->white_point[0] = av_make_q(p->mastering_display->white_point[0], 1 << 16); av_make_q 350 libavcodec/libdav1d.c mastering->white_point[1] = av_make_q(p->mastering_display->white_point[1], 1 << 16); av_make_q 352 libavcodec/libdav1d.c mastering->max_luminance = av_make_q(p->mastering_display->max_luminance, 1 << 8); av_make_q 353 libavcodec/libdav1d.c mastering->min_luminance = av_make_q(p->mastering_display->min_luminance, 1 << 14); av_make_q 42 libavcodec/pcm_rechunk_bsf.c AVRational sr = av_make_q(ctx->par_in->sample_rate, 1); av_make_q 103 libavcodec/pcm_rechunk_bsf.c AVRational sr = av_make_q(ctx->par_in->sample_rate, 1); av_make_q 1338 libavcodec/pngdec.c mdm->white_point[0] = av_make_q(bytestream2_get_be32(&s->gb), 100000); av_make_q 1339 libavcodec/pngdec.c mdm->white_point[1] = av_make_q(bytestream2_get_be32(&s->gb), 100000); av_make_q 1343 libavcodec/pngdec.c mdm->display_primaries[i][0] = av_make_q(bytestream2_get_be32(&s->gb), 100000); av_make_q 1344 libavcodec/pngdec.c mdm->display_primaries[i][1] = av_make_q(bytestream2_get_be32(&s->gb), 100000); av_make_q 473 libavcodec/tiffenc.c AVRational y = av_mul_q(av_make_q(s->dpi, 1), av_make_q 235 libavdevice/decklink_common.cpp AVRational target_tb = av_make_q(tb_num, tb_den); av_make_q 245 libavdevice/decklink_common.cpp AVRational mode_tb = av_make_q(bmd_tb_num, bmd_tb_den); av_make_q 708 libavdevice/decklink_dec.cpp AVRational remainder = av_make_q(av_gettime() % cctx->timestamp_align, 1000000); av_make_q 1148 libavdevice/decklink_dec.cpp st->r_frame_rate = av_make_q(st->time_base.den, st->time_base.num); av_make_q 872 libavfilter/af_firequalizer.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, av_make_q(1, inlink->sample_rate), inlink->time_base); av_make_q 874 libavfilter/af_firequalizer.c frame->pts -= av_rescale_q(s->fir_len/2, av_make_q(1, inlink->sample_rate), inlink->time_base); av_make_q 142 libavfilter/avf_concat.c outlink->frame_rate = av_make_q(1, 0); av_make_q 189 libavfilter/avf_concat.c av_make_q(1, inlink->sample_rate), av_make_q 1171 libavfilter/avf_showcqt.c out->sample_aspect_ratio = av_make_q(1, 1); av_make_q 1365 libavfilter/avf_showcqt.c outlink->sample_aspect_ratio = av_make_q(1, 1); av_make_q 1367 libavfilter/avf_showcqt.c outlink->time_base = av_mul_q(av_inv_q(s->rate), av_make_q(1, PTS_STEP)); av_make_q 1465 libavfilter/avf_showcqt.c s->step_frac = av_div_q(av_make_q(inlink->sample_rate, s->count) , s->rate); av_make_q 1527 libavfilter/avf_showcqt.c int64_t pts = av_rescale_q(insamples->pts, inlink->time_base, av_make_q(1, inlink->sample_rate)); av_make_q 1529 libavfilter/avf_showcqt.c pts = av_rescale_q(pts, av_make_q(1, inlink->sample_rate), outlink->time_base); av_make_q 225 libavfilter/avf_showfreqs.c outlink->frame_rate = av_make_q(inlink->sample_rate, s->win_size * (1.-s->overlap)); av_make_q 1171 libavfilter/avf_showspectrum.c s->auto_frame_rate = av_make_q(inlink->sample_rate, s->hop_size); av_make_q 420 libavfilter/avf_showwaves.c showwaves->n = FFMAX(1, av_rescale_q(inlink->sample_rate, av_make_q(1, showwaves->w), showwaves->rate)); av_make_q 649 libavfilter/avf_showwaves.c av_make_q(1, inlink->sample_rate), av_make_q 142 libavfilter/framequeue.c b->frame->pts += av_rescale_q(samples, av_make_q(1, b->frame->sample_rate), time_base); av_make_q 86 libavfilter/vf_dejudder.c outlink->time_base = av_mul_q(inlink->time_base, av_make_q(1, 2 * s->cycle)); av_make_q 87 libavfilter/vf_dejudder.c outlink->frame_rate = av_mul_q(inlink->frame_rate, av_make_q(2 * s->cycle, 1)); av_make_q 539 libavfilter/vf_palettegen.c outlink->sample_aspect_ratio = av_make_q(1, 1); av_make_q 347 libavfilter/vf_stack.c outlink->frame_rate = av_make_q(1, 0); av_make_q 461 libavfilter/vf_subtitles.c const int64_t start_time = av_rescale_q(sub.pts, AV_TIME_BASE_Q, av_make_q(1, 1000)); av_make_q 141 libavfilter/vf_tile.c av_make_q(1, tile->nb_frames - tile->overlap)); av_make_q 229 libavfilter/vf_tinterlace.c av_make_q(2, 1)); av_make_q 393 libavfilter/vf_tinterlace.c out->sample_aspect_ratio = av_mul_q(cur->sample_aspect_ratio, av_make_q(2, 1)); av_make_q 424 libavfilter/vf_tinterlace.c out->sample_aspect_ratio = av_mul_q(cur->sample_aspect_ratio, av_make_q(2, 1)); av_make_q 95 libavfilter/vf_untile.c outlink->frame_rate = av_mul_q(inlink->frame_rate, av_make_q(s->nb_frames, 1)); av_make_q 99 libavfilter/vf_untile.c dt = av_mul_q(inlink->time_base, av_make_q(1, s->nb_frames)); av_make_q 762 libavfilter/vsrc_testsrc.c y0 = av_rescale_q(s->pts, s->time_base, av_make_q(2, s->h - 16)); av_make_q 763 libavfilter/vsrc_testsrc.c g0 = av_rescale_q(s->pts, s->time_base, av_make_q(1, 128)); av_make_q 789 libavfilter/vsrc_testsrc.c pos = av_rescale_q(s->pts, s->time_base, av_make_q(64 >> (c << 1), cycle)) % cycle; av_make_q 822 libavfilter/vsrc_testsrc.c size = av_rescale_q(s->pts, s->time_base, av_make_q(4, cycle)); av_make_q 874 libavfilter/vsrc_testsrc.c unsigned x = av_rescale_q(s->pts, s->time_base, av_make_q(233, 55 * w)) % (w << 1); av_make_q 875 libavfilter/vsrc_testsrc.c unsigned y = av_rescale_q(s->pts, s->time_base, av_make_q(233, 89 * h)) % (h << 1); av_make_q 892 libavfilter/vsrc_testsrc.c time = av_rescale_q(s->pts, s->time_base, av_make_q(1, 1000)) % 86400000; av_make_q 1079 libavformat/dashdec.c rep->framerate = av_make_q(0, 0); av_make_q 295 libavformat/mov.c avpriv_new_chapter(c->fc, i, av_make_q(1, 1000), moment_time, AV_NOPTS_VALUE, NULL); av_make_q 5067 libavformat/mov.c timescale = av_make_q(1, avio_rb32(pb)); av_make_q 5396 libavformat/mov.c sc->mastering->display_primaries[i][0] = av_make_q(avio_rb16(pb), 1 << 16); av_make_q 5397 libavformat/mov.c sc->mastering->display_primaries[i][1] = av_make_q(avio_rb16(pb), 1 << 16); av_make_q 5399 libavformat/mov.c sc->mastering->white_point[0] = av_make_q(avio_rb16(pb), 1 << 16); av_make_q 5400 libavformat/mov.c sc->mastering->white_point[1] = av_make_q(avio_rb16(pb), 1 << 16); av_make_q 5402 libavformat/mov.c sc->mastering->max_luminance = av_make_q(avio_rb32(pb), 1 << 8); av_make_q 5403 libavformat/mov.c sc->mastering->min_luminance = av_make_q(avio_rb32(pb), 1 << 14); av_make_q 5435 libavformat/mov.c sc->mastering->display_primaries[j][0] = av_make_q(avio_rb16(pb), chroma_den); av_make_q 5436 libavformat/mov.c sc->mastering->display_primaries[j][1] = av_make_q(avio_rb16(pb), chroma_den); av_make_q 5438 libavformat/mov.c sc->mastering->white_point[0] = av_make_q(avio_rb16(pb), chroma_den); av_make_q 5439 libavformat/mov.c sc->mastering->white_point[1] = av_make_q(avio_rb16(pb), chroma_den); av_make_q 5441 libavformat/mov.c sc->mastering->max_luminance = av_make_q(avio_rb32(pb), luma_den); av_make_q 5442 libavformat/mov.c sc->mastering->min_luminance = av_make_q(avio_rb32(pb), luma_den); av_make_q 844 libavformat/mpeg.c timestamp = av_rescale_q(timestamp, av_make_q(1, 1000), st->time_base); av_make_q 2475 libavformat/mxfenc.c av_make_q(st->codecpar->width, st->codecpar->height)); av_make_q 649 libavformat/vividas.c pkt->pts = av_rescale_q(viv->audio_sample, av_make_q(1, astream->codecpar->sample_rate), astream->time_base); av_make_q 756 libavformat/vividas.c viv->audio_sample = av_rescale_q(viv->sb_blocks[i].packet_offset, av_make_q(s->streams[1]->codecpar->sample_rate, 1), av_inv_q(s->streams[0]->time_base)); av_make_q 100 libavformat/vorbiscomment.c ms = av_rescale_q(chp->start, chp->time_base, av_make_q( 1, 1000)) % 1000; av_make_q 439 libavformat/wavenc.c av_make_q(1, s->streams[0]->codecpar->sample_rate)); av_make_q 192 libavutil/rational.c return lcm < max_den ? av_make_q(av_gcd(a.num, b.num), lcm) : def;