AVRational 110 doc/examples/encode_video.c c->time_base = (AVRational){1, 25}; AVRational 111 doc/examples/encode_video.c c->framerate = (AVRational){25, 1}; AVRational 106 doc/examples/filter_audio.c av_opt_set_q (abuffer_ctx, "time_base", (AVRational){ 1, INPUT_SAMPLERATE }, AV_OPT_SEARCH_CHILDREN); AVRational 99 doc/examples/filtering_audio.c AVRational time_base = fmt_ctx->streams[audio_stream_index]->time_base; AVRational 100 doc/examples/filtering_video.c AVRational time_base = fmt_ctx->streams[video_stream_index]->time_base; AVRational 179 doc/examples/filtering_video.c static void display_frame(const AVFrame *frame, AVRational time_base) AVRational 72 doc/examples/muxing.c AVRational *time_base = &fmt_ctx->streams[pkt->stream_index]->time_base; AVRational 174 doc/examples/muxing.c ost->st->time_base = (AVRational){ 1, c->sample_rate }; AVRational 188 doc/examples/muxing.c ost->st->time_base = (AVRational){ 1, STREAM_FRAME_RATE }; AVRational 318 doc/examples/muxing.c STREAM_DURATION, (AVRational){ 1, 1 }) > 0) AVRational 375 doc/examples/muxing.c frame->pts = av_rescale_q(ost->samples_count, (AVRational){1, c->sample_rate}, c->time_base); AVRational 479 doc/examples/muxing.c STREAM_DURATION, (AVRational){ 1, 1 }) > 0) AVRational 36 doc/examples/remuxing.c AVRational *time_base = &fmt_ctx->streams[pkt->stream_index]->time_base; AVRational 172 doc/examples/transcoding.c enc_ctx->time_base = (AVRational){1, enc_ctx->sample_rate}; AVRational 150 doc/examples/vaapi_encode.c avctx->time_base = (AVRational){1, 25}; AVRational 151 doc/examples/vaapi_encode.c avctx->framerate = (AVRational){25, 1}; AVRational 152 doc/examples/vaapi_encode.c avctx->sample_aspect_ratio = (AVRational){1, 1}; AVRational 1459 fftools/cmdutils.c const AVRational *fps = c->supported_framerates; AVRational 1007 fftools/ffmpeg.c sub->pts += av_rescale_q(sub->start_display_time, (AVRational){ 1, 1000 }, AV_TIME_BASE_Q); AVRational 1028 fftools/ffmpeg.c pkt.duration = av_rescale_q(sub->end_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase); AVRational 1033 fftools/ffmpeg.c pkt.pts += av_rescale_q(sub->start_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase); AVRational 1035 fftools/ffmpeg.c pkt.pts += av_rescale_q(sub->end_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase); AVRational 1051 fftools/ffmpeg.c AVRational frame_rate; AVRational 1465 fftools/ffmpeg.c AVRational filter_tb = av_buffersink_get_time_base(filter); AVRational 1466 fftools/ffmpeg.c AVRational tb = enc->time_base; AVRational 2043 fftools/ffmpeg.c (AVRational){1, ist->dec_ctx->sample_rate}, duration, AVRational 2265 fftools/ffmpeg.c AVRational decoded_frame_tb; AVRational 2311 fftools/ffmpeg.c (AVRational){1, avctx->sample_rate}, decoded_frame->nb_samples, &ist->filter_in_rescale_delta_last, AVRational 2312 fftools/ffmpeg.c (AVRational){1, avctx->sample_rate}); AVRational 2701 fftools/ffmpeg.c AVRational time_base_q = AV_TIME_BASE_Q; AVRational 3029 fftools/ffmpeg.c AVRational sar; AVRational 3075 fftools/ffmpeg.c ost->st->time_base = av_add_q(av_stream_get_codec_timebase(ost->st), (AVRational){0, 1}); AVRational 3118 fftools/ffmpeg.c (AVRational){ par_dst->height, par_dst->width }); AVRational 3241 fftools/ffmpeg.c static void init_encoder_time_base(OutputStream *ost, AVRational default_time_base) AVRational 3306 fftools/ffmpeg.c ost->frame_rate = (AVRational){25, 1}; AVRational 3354 fftools/ffmpeg.c av_mul_q(ost->frame_aspect_ratio, (AVRational){ enc_ctx->height, enc_ctx->width }) : AVRational 3546 fftools/ffmpeg.c ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0, 1}); AVRational 4133 fftools/ffmpeg.c static AVRational duration_max(int64_t tmp, int64_t *duration, AVRational tmp_time_base, AVRational 4134 fftools/ffmpeg.c AVRational time_base) AVRational 4180 fftools/ffmpeg.c AVRational sample_rate = {1, avctx->sample_rate}; AVRational 247 fftools/ffmpeg.h AVRational sample_aspect_ratio; AVRational 270 fftools/ffmpeg.h AVRational frame_rate; AVRational 332 fftools/ffmpeg.h AVRational framerate; /* framerate forced with -r */ AVRational 401 fftools/ffmpeg.h AVRational time_base; /* time base of the duration */ AVRational 460 fftools/ffmpeg.h AVRational mux_timebase; AVRational 461 fftools/ffmpeg.h AVRational enc_timebase; AVRational 477 fftools/ffmpeg.h AVRational frame_rate; AVRational 484 fftools/ffmpeg.h AVRational frame_aspect_ratio; AVRational 760 fftools/ffmpeg_filter.c AVRational tb = ist->framerate.num ? av_inv_q(ist->framerate) : AVRational 762 fftools/ffmpeg_filter.c AVRational fr = ist->framerate; AVRational 763 fftools/ffmpeg_filter.c AVRational sar; AVRational 792 fftools/ffmpeg_filter.c sar = (AVRational){0,1}; AVRational 1270 fftools/ffmpeg_opt.c f->time_base = (AVRational){ 1, 1 }; AVRational 1498 fftools/ffmpeg_opt.c AVRational q; AVRational 1509 fftools/ffmpeg_opt.c AVRational q; AVRational 1689 fftools/ffmpeg_opt.c AVRational q; AVRational 165 fftools/ffplay.c AVRational sar; AVRational 198 fftools/ffplay.c AVRational start_pts_tb; AVRational 200 fftools/ffplay.c AVRational next_pts_tb; AVRational 616 fftools/ffplay.c AVRational tb = (AVRational){1, frame->sample_rate}; AVRational 868 fftools/ffplay.c int pic_width, int pic_height, AVRational pic_sar) AVRational 870 fftools/ffplay.c AVRational aspect_ratio = pic_sar; AVRational 1328 fftools/ffplay.c static void set_default_window_size(int width, int height, AVRational sar) AVRational 1863 fftools/ffplay.c AVRational fr = av_guess_frame_rate(is->ic, is->video_st, NULL); AVRational 2048 fftools/ffplay.c AVRational tb; AVRational 2059 fftools/ffplay.c tb = (AVRational){1, frame->sample_rate}; AVRational 2102 fftools/ffplay.c af->duration = av_q2d((AVRational){frame->nb_samples, frame->sample_rate}); AVRational 2142 fftools/ffplay.c AVRational tb = is->video_st->time_base; AVRational 2143 fftools/ffplay.c AVRational frame_rate = av_guess_frame_rate(is->ic, is->video_st, NULL); AVRational 2221 fftools/ffplay.c duration = (frame_rate.num && frame_rate.den ? av_q2d((AVRational){frame_rate.den, frame_rate.num}) : 0); AVRational 2900 fftools/ffplay.c AVRational sar = av_guess_sample_aspect_ratio(ic, st, NULL); AVRational 445 fftools/ffprobe.c void (*print_rational) (WriterContext *wctx, AVRational *q, char *sep); AVRational 778 fftools/ffprobe.c const char *key, AVRational q, char sep) AVRational 787 fftools/ffprobe.c int64_t ts, const AVRational *time_base, int is_duration) AVRational 2159 fftools/ffprobe.c AVRational sar; AVRational 2413 fftools/ffprobe.c AVRational tb = ifile->streams[pkt.stream_index].st->time_base; AVRational 2492 fftools/ffprobe.c AVRational sar, dar; AVRational 58 libavcodec/audio_frame_queue.c (AVRational){ 1, afq->avctx->sample_rate }); AVRational 48 libavcodec/av1_metadata_bsf.c AVRational tick_rate; AVRational 191 libavcodec/av1_parser.c avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); AVRational 649 libavcodec/avcodec.h AVRational time_base; AVRational 905 libavcodec/avcodec.h AVRational sample_aspect_ratio; AVRational 2069 libavcodec/avcodec.h AVRational framerate; AVRational 2083 libavcodec/avcodec.h AVRational pkt_timebase; AVRational 2363 libavcodec/avcodec.h AVRational av_codec_get_pkt_timebase (const AVCodecContext *avctx); AVRational 2365 libavcodec/avcodec.h void av_codec_set_pkt_timebase (AVCodecContext *avctx, AVRational val); AVRational 712 libavcodec/avpacket.c void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb) AVRational 281 libavcodec/bsf.c AVRational tb = bsf->time_base_in; AVRational 89 libavcodec/bsf.h AVRational time_base_in; AVRational 95 libavcodec/bsf.h AVRational time_base_out; AVRational 33 libavcodec/ccaption_dec.c static const AVRational ms_tb = {1, 1000}; AVRational 210 libavcodec/codec.h const AVRational *supported_framerates; ///< array of supported framerates, or NULL if any, array is terminated by {0,0} AVRational 136 libavcodec/codec_par.h AVRational sample_aspect_ratio; AVRational 581 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 1, 1}; AVRational 584 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 12, 11}; AVRational 587 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 10, 11}; AVRational 590 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 16, 11}; AVRational 593 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 40, 33}; AVRational 596 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 24, 11}; AVRational 599 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 20, 11}; AVRational 602 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 32, 11}; AVRational 605 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 80, 33}; AVRational 608 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 18, 11}; AVRational 611 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 15, 11}; AVRational 614 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 64, 33}; AVRational 617 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) {160, 99}; AVRational 620 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 4, 3}; AVRational 623 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) { 16, 9}; AVRational 626 libavcodec/crystalhd.c avctx->sample_aspect_ratio = (AVRational) {221, 1}; AVRational 211 libavcodec/cuviddec.c (AVRational){ format->display_aspect_ratio.x, format->display_aspect_ratio.y }, AVRational 212 libavcodec/cuviddec.c (AVRational){ avctx->width, avctx->height })); AVRational 307 libavcodec/cuviddec.c avctx->framerate = av_mul_q(avctx->framerate, (AVRational){2, 1}); AVRational 412 libavcodec/cuviddec.c cupkt.timestamp = av_rescale_q(avpkt->pts, avctx->pkt_timebase, (AVRational){1, 10000000}); AVRational 589 libavcodec/cuviddec.c frame->pts = av_rescale_q(parsed_frame.dispinfo.timestamp, (AVRational){1, 10000000}, avctx->pkt_timebase); AVRational 223 libavcodec/decode.c avci->bsf->time_base_in = (AVRational){ 1, 90000 }; AVRational 418 libavcodec/decode.c (AVRational){1, avctx->sample_rate}, AVRational 449 libavcodec/decode.c (AVRational){1, avctx->sample_rate}, AVRational 488 libavcodec/decode.c avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); AVRational 920 libavcodec/decode.c static int convert_sub_to_old_ass_form(AVSubtitle *sub, const AVPacket *pkt, AVRational tb) AVRational 1019 libavcodec/decode.c const AVRational tb = avctx->pkt_timebase.num ? avctx->pkt_timebase AVRational 1029 libavcodec/decode.c AVRational ms = { 1, 1000 }; AVRational 1761 libavcodec/decode.c frame->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 87 libavcodec/dirac.c static const AVRational dirac_preset_aspect_ratios[] = { AVRational 99 libavcodec/dirac.c static const AVRational dirac_frame_rate[] = { AVRational 146 libavcodec/dirac.c AVRational frame_rate = { 0, 0 }; AVRational 103 libavcodec/dirac.h AVRational framerate; AVRational 104 libavcodec/dirac.h AVRational sample_aspect_ratio; AVRational 188 libavcodec/diracdec.c AVRational bytes; /* average bytes per slice */ AVRational 58 libavcodec/dnxhddata.h AVRational packet_scale; AVRational 217 libavcodec/dpx.c avctx->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 223 libavcodec/dpx.c AVRational q = av_d2q(av_int2float(i), 4096); AVRational 310 libavcodec/dv_profile.c return av_dv_codec_profile2(width, height, pix_fmt, (AVRational){0, 0}); AVRational 318 libavcodec/dv_profile.c AVRational frame_rate) AVRational 45 libavcodec/dv_profile.h AVRational time_base; /* 1/framerate */ AVRational 49 libavcodec/dv_profile.h AVRational sar[2]; /* sample aspect ratios for 4:3 and 16:9 */ AVRational 81 libavcodec/dv_profile.h const AVDVProfile *av_dv_codec_profile2(int width, int height, enum AVPixelFormat pix_fmt, AVRational frame_rate); AVRational 754 libavcodec/dvbsubdec.c sub->end_display_time = av_rescale_q((sub->pts - ctx->prev_start ), AV_TIME_BASE_Q, (AVRational){ 1, 1000 }) - 1; AVRational 157 libavcodec/eacmv.c s->avctx->framerate = (AVRational){ fps, 1 }; AVRational 56 libavcodec/eatgq.c avctx->framerate = (AVRational){ 15, 1 }; AVRational 59 libavcodec/eatgv.c avctx->framerate = (AVRational){ 15, 1 }; AVRational 67 libavcodec/eatqi.c avctx->framerate = (AVRational){ 15, 1 }; AVRational 224 libavcodec/ffv1dec.c f->cur->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 103 libavcodec/flvdec.c s->avctx->sample_aspect_ratio= (AVRational){1,2}; AVRational 281 libavcodec/gif.c const AVRational sar = avctx->sample_aspect_ratio; AVRational 502 libavcodec/h261dec.c s->avctx->framerate = (AVRational) { 30000, 1001 }; AVRational 52 libavcodec/h263.h av_const int ff_h263_aspect_to_info(AVRational aspect); AVRational 275 libavcodec/h263data.c const AVRational ff_h263_pixel_aspect[16] = { AVRational 38 libavcodec/h263data.h extern const AVRational ff_h263_pixel_aspect[16]; AVRational 59 libavcodec/h264_metadata_bsf.c AVRational sample_aspect_ratio; AVRational 71 libavcodec/h264_metadata_bsf.c AVRational tick_rate; AVRational 100 libavcodec/h264_metadata_bsf.c static const AVRational sar_idc[] = { AVRational 607 libavcodec/h264_parser.c avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); AVRational 73 libavcodec/h264_ps.h AVRational sar; AVRational 1310 libavcodec/h264_slice.c if (av_cmp_q(h->avctx->framerate, (AVRational) {30, 1}) == 1) { AVRational 1313 libavcodec/h264_slice.c if (av_cmp_q(h->avctx->framerate, (AVRational) {50, 1}) == 0) AVRational 51 libavcodec/h264data.h static const AVRational ff_h264_pixel_aspect[17] = { AVRational 50 libavcodec/h265_metadata_bsf.c AVRational sample_aspect_ratio; AVRational 60 libavcodec/h265_metadata_bsf.c AVRational tick_rate; AVRational 206 libavcodec/h265_metadata_bsf.c static const AVRational sar_idc[] = { AVRational 53 libavcodec/hevc_ps.c static const AVRational vui_sar[] = { AVRational 1125 libavcodec/hevc_ps.c sps->vui.sar = (AVRational){0, 1}; AVRational 50 libavcodec/hevc_ps.h AVRational sar; AVRational 261 libavcodec/internal.h return av_rescale_q(samples, (AVRational){ 1, avctx->sample_rate }, AVRational 330 libavcodec/internal.h int ff_set_sar(AVCodecContext *avctx, AVRational sar); AVRational 1075 libavcodec/ituh263dec.c s->avctx->sample_aspect_ratio= (AVRational){12,11}; AVRational 1076 libavcodec/ituh263dec.c s->avctx->framerate = (AVRational){ 30000, 1001 }; AVRational 1165 libavcodec/ituh263dec.c s->avctx->sample_aspect_ratio= (AVRational){12,11}; AVRational 1186 libavcodec/ituh263dec.c s->avctx->framerate = (AVRational){ 30000, 1001 }; AVRational 89 libavcodec/ituh263enc.c av_const int ff_h263_aspect_to_info(AVRational aspect){ AVRational 92 libavcodec/ituh263enc.c if(aspect.num==0 || aspect.den==0) aspect= (AVRational){1,1}; AVRational 115 libavcodec/jpeg2000dec.c AVRational sar; AVRational 332 libavcodec/libaribb24.c (AVRational){1, 1000}) : AVRational 384 libavcodec/libfdk-aacdec.c (AVRational){1, avctx->sample_rate}, AVRational 258 libavcodec/libopenh264enc.c static const AVRational sar_idc[] = { AVRational 118 libavcodec/libvorbisdec.c avccontext->time_base= (AVRational){1, avccontext->sample_rate}; AVRational 509 libavcodec/mediacodecdec_common.c AVRational sar = av_div_q( AVRational 510 libavcodec/mediacodecdec_common.c (AVRational){ s->display_width, s->display_height }, AVRational 511 libavcodec/mediacodecdec_common.c (AVRational){ width, height }); AVRational 56 libavcodec/mfenc.c #define MF_TIMEBASE (AVRational){1, 10000000} AVRational 99 libavcodec/mfenc.c static AVRational mf_get_tb(AVCodecContext *avctx) AVRational 638 libavcodec/mfenc.c AVRational framerate; AVRational 2156 libavcodec/mjpegdec.c s->avctx->sample_aspect_ratio = (AVRational) { 1, 2 }; AVRational 171 libavcodec/mjpegenc_common.c AVRational sar = avctx->sample_aspect_ratio; AVRational 76 libavcodec/mpeg12.h void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, AVRational 308 libavcodec/mpeg12data.c const AVRational ff_mpeg2_frame_rate_tab[] = { AVRational 395 libavcodec/mpeg12data.c const AVRational ff_mpeg2_aspect[16]={ AVRational 51 libavcodec/mpeg12data.h extern const AVRational ff_mpeg12_frame_rate_tab[]; AVRational 52 libavcodec/mpeg12data.h extern const AVRational ff_mpeg2_frame_rate_tab[]; AVRational 55 libavcodec/mpeg12data.h extern const AVRational ff_mpeg2_aspect[16]; AVRational 65 libavcodec/mpeg12dec.c AVRational save_aspect; AVRational 68 libavcodec/mpeg12dec.c AVRational frame_rate_ext; /* MPEG-2 specific framerate modificator */ AVRational 1219 libavcodec/mpeg12dec.c AVRational aspect_inv = av_d2q(ff_mpeg1_aspect[s->aspect_ratio_info], 255); AVRational 1220 libavcodec/mpeg12dec.c avctx->sample_aspect_ratio = (AVRational) { aspect_inv.den, aspect_inv.num }; AVRational 1224 libavcodec/mpeg12dec.c AVRational dar = AVRational 1226 libavcodec/mpeg12dec.c (AVRational) { s1->pan_scan.width, AVRational 1228 libavcodec/mpeg12dec.c (AVRational) { s->width, s->height }); AVRational 1235 libavcodec/mpeg12dec.c (av_cmp_q(dar, (AVRational) { 4, 3 }) && AVRational 1236 libavcodec/mpeg12dec.c av_cmp_q(dar, (AVRational) { 16, 9 }))) { AVRational 1239 libavcodec/mpeg12dec.c (AVRational) { s->width, s->height }); AVRational 1243 libavcodec/mpeg12dec.c (AVRational) { s1->pan_scan.width, s1->pan_scan.height }); AVRational 1265 libavcodec/mpeg12dec.c avctx->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 105 libavcodec/mpeg12enc.c AVRational bestq = (AVRational) {0, 0}; AVRational 106 libavcodec/mpeg12enc.c AVRational ext; AVRational 107 libavcodec/mpeg12enc.c AVRational target = av_inv_q(s->avctx->time_base); AVRational 116 libavcodec/mpeg12enc.c AVRational q = av_mul_q(ext, ff_mpeg12_frame_rate_tab[i]); AVRational 221 libavcodec/mpeg12enc.c AVRational rate = ff_mpeg12_frame_rate_tab[s->frame_rate_index]; AVRational 248 libavcodec/mpeg12enc.c AVRational aspect_ratio = s->avctx->sample_aspect_ratio; AVRational 251 libavcodec/mpeg12enc.c aspect_ratio = (AVRational){1,1}; // pixel aspect 1.1 (VGA) AVRational 254 libavcodec/mpeg12enc.c AVRational framerate = ff_mpeg12_frame_rate_tab[s->frame_rate_index]; AVRational 24 libavcodec/mpeg12framerate.c const AVRational ff_mpeg12_frame_rate_tab[16] = { AVRational 44 libavcodec/mpeg12framerate.c void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, AVRational 51 libavcodec/mpeg12framerate.c AVRational best_error = { INT_MAX, 1 }; AVRational 67 libavcodec/mpeg12framerate.c AVRational test, error; AVRational 71 libavcodec/mpeg12framerate.c (AVRational) { n, d }); AVRational 37 libavcodec/mpeg2_metadata_bsf.c AVRational display_aspect_ratio; AVRational 39 libavcodec/mpeg2_metadata_bsf.c AVRational frame_rate; AVRational 109 libavcodec/mpeg4video_parser.c s1->pts = av_rescale_q(s->time, (AVRational){1, s->avctx->time_base.den}, (AVRational){1, 1200000}); AVRational 2250 libavcodec/mpeg4videodec.c s->avctx->time_base = av_inv_q(av_mul_q(s->avctx->framerate, (AVRational){s->avctx->ticks_per_frame, 1})); AVRational 2747 libavcodec/mpeg4videodec.c s->avctx->time_base = av_inv_q(av_mul_q(s->avctx->framerate, (AVRational){s->avctx->ticks_per_frame, 1})); AVRational 218 libavcodec/mpegvideo.h AVRational mpeg2_frame_rate_ext; AVRational 29 libavcodec/mpegvideo_parser.c AVRational frame_rate; AVRational 179 libavcodec/mpegvideo_parser.c avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); AVRational 113 libavcodec/options.c s->time_base = (AVRational){0,1}; AVRational 114 libavcodec/options.c s->framerate = (AVRational){ 0, 1 }; AVRational 115 libavcodec/options.c s->pkt_timebase = (AVRational){ 0, 1 }; AVRational 120 libavcodec/options.c s->sample_aspect_ratio = (AVRational){0,1}; AVRational 716 libavcodec/packet.h void av_packet_rescale_ts(AVPacket *pkt, AVRational tb_src, AVRational tb_dst); AVRational 31 libavcodec/pcm_rechunk_bsf.c AVRational frame_rate; AVRational 42 libavcodec/pcm_rechunk_bsf.c AVRational sr = av_make_q(ctx->par_in->sample_rate, 1); AVRational 103 libavcodec/pcm_rechunk_bsf.c AVRational sr = av_make_q(ctx->par_in->sample_rate, 1); AVRational 622 libavcodec/pngdec.c avctx->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 1374 libavcodec/qsvenc.c qf->surface.Data.TimeStamp = av_rescale_q(frame->pts, q->avctx->time_base, (AVRational){1, 90000}); AVRational 1549 libavcodec/qsvenc.c new_pkt.dts = av_rescale_q(bs->DecodeTimeStamp, (AVRational){1, 90000}, avctx->time_base); AVRational 1550 libavcodec/qsvenc.c new_pkt.pts = av_rescale_q(bs->TimeStamp, (AVRational){1, 90000}, avctx->time_base); AVRational 381 libavcodec/rv10.c AVRational old_aspect = s->avctx->sample_aspect_ratio; AVRational 390 libavcodec/rv10.c old_aspect = (AVRational){1, 1}; AVRational 392 libavcodec/rv10.c s->avctx->sample_aspect_ratio = av_mul_q(old_aspect, (AVRational){2, 1}); AVRational 394 libavcodec/rv10.c s->avctx->sample_aspect_ratio = av_mul_q(old_aspect, (AVRational){1, 2}); AVRational 1603 libavcodec/rv34.c static AVRational update_sar(int old_w, int old_h, AVRational sar, int new_w, int new_h) AVRational 1607 libavcodec/rv34.c sar = (AVRational){1, 1}; AVRational 1609 libavcodec/rv34.c sar = av_mul_q(sar, av_mul_q((AVRational){new_h, new_w}, (AVRational){old_w, old_h})); AVRational 27 libavcodec/tests/mpeg12framerate.c AVRational fr = frame_rate; \ AVRational 38 libavcodec/tests/mpeg12framerate.c AVRational fr = (AVRational) { frn, frd }; \ AVRational 42 libavcodec/tests/mpeg12framerate.c (AVRational) { n + 1, d + 1 })) != 0) { \ AVRational 59 libavcodec/tests/mpeg12framerate.c (AVRational) { 1, 1000 }), i, 0, 0); AVRational 61 libavcodec/tests/mpeg12framerate.c (AVRational) { 1, 1000 }), i, 0, 0); AVRational 80 libavcodec/tests/mpeg12framerate.c TEST_MATCH(((AVRational) { i, 1 }), 8, 3, 0); AVRational 84 libavcodec/tests/mpeg12framerate.c TEST_MATCH(((AVRational) { i, 100 }), 1, 0, 31); AVRational 147 libavcodec/tests/options.c ctx1->time_base = (AVRational){12,34}; AVRational 1237 libavcodec/tiff.c s->avctx->sample_aspect_ratio = (AVRational) {0, 1}; AVRational 473 libavcodec/tiffenc.c AVRational y = av_mul_q(av_make_q(s->dpi, 1), AVRational 413 libavcodec/truemotion1.c s->avctx->sample_aspect_ratio = (AVRational){ 1 << width_shift, 1 }; AVRational 119 libavcodec/utils.c int ff_set_sar(AVCodecContext *avctx, AVRational sar) AVRational 126 libavcodec/utils.c avctx->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 479 libavcodec/utils.c MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase) AVRational 651 libavcodec/utils.c avctx->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 1003 libavcodec/utils.c avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); AVRational 1231 libavcodec/utils.c AVRational display_aspect_ratio; AVRational 2038 libavcodec/utils.c par->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 2241 libavcodec/utils.c AVRational framerate = avctx->framerate; AVRational 38 libavcodec/v4l2_buffers.c static AVRational v4l2_timebase = { 1, USEC_PER_SEC }; AVRational 52 libavcodec/v4l2_buffers.c static inline AVRational v4l2_get_timebase(V4L2Buffer *avbuf) AVRational 66 libavcodec/v4l2_context.c static AVRational v4l2_get_sar(V4L2Context *ctx) AVRational 68 libavcodec/v4l2_context.c struct AVRational sar = { 0, 1 }; AVRational 72 libavcodec/v4l2_context.h AVRational sample_aspect_ratio; AVRational 390 libavcodec/vaapi_encode_h264.c static const AVRational sar_idc[] = { AVRational 467 libavcodec/vaapi_encode_h265.c static const AVRational sar_idc[] = { AVRational 264 libavcodec/vaapi_encode_mjpeg.c AVRational sar = pic->input_image->sample_aspect_ratio; AVRational 45 libavcodec/vaapi_encode_mpeg2.c AVRational frame_rate; AVRational 229 libavcodec/vaapi_encode_mpeg2.c AVRational dar = av_div_q(avctx->sample_aspect_ratio, AVRational 230 libavcodec/vaapi_encode_mpeg2.c (AVRational) { avctx->width, avctx->height }); AVRational 232 libavcodec/vaapi_encode_mpeg2.c if (av_cmp_q(avctx->sample_aspect_ratio, (AVRational) { 1, 1 }) == 0) { AVRational 234 libavcodec/vaapi_encode_mpeg2.c } else if (av_cmp_q(dar, (AVRational) { 3, 4 }) == 0) { AVRational 236 libavcodec/vaapi_encode_mpeg2.c } else if (av_cmp_q(dar, (AVRational) { 9, 16 }) == 0) { AVRational 238 libavcodec/vaapi_encode_mpeg2.c } else if (av_cmp_q(dar, (AVRational) { 100, 221 }) == 0) { AVRational 452 libavcodec/vc1.c v->s.avctx->sample_aspect_ratio = (AVRational){w, h}; AVRational 117 libavcodec/vc1_parser.c avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); AVRational 194 libavcodec/vc1data.c const AVRational ff_vc1_pixel_aspect[16] = { AVRational 107 libavcodec/vc1data.h extern const AVRational ff_vc1_pixel_aspect[16]; AVRational 40 libavcodec/vc2enc.c AVRational time_base; AVRational 1175 libavcodec/videotoolboxenc.c AVRational *avpar = &avctx->sample_aspect_ratio; AVRational 2921 libavcodec/vp3.c AVRational fps, aspect; AVRational 73 libavcodec/xsubdec.c packet_time = av_rescale_q(avpkt->pts, AV_TIME_BASE_Q, (AVRational){1, 1000}); AVRational 64 libavdevice/android_camera.c AVRational framerate; AVRational 676 libavdevice/android_camera.c st->avg_frame_rate = (AVRational) { ctx->framerate_range[1], 1 }; AVRational 677 libavdevice/android_camera.c st->r_frame_rate = (AVRational) { ctx->framerate_range[1], 1 }; AVRational 413 libavdevice/avdevice.h AVRational fps; AVRational 263 libavdevice/bktr.c AVRational framerate; AVRational 235 libavdevice/decklink_common.cpp AVRational target_tb = av_make_q(tb_num, tb_den); AVRational 245 libavdevice/decklink_common.cpp AVRational mode_tb = av_make_q(bmd_tb_num, bmd_tb_den); AVRational 638 libavdevice/decklink_dec.cpp AVRational time_base, int64_t *initial_pts, AVRational 664 libavdevice/decklink_dec.cpp AVRational timebase; AVRational 708 libavdevice/decklink_dec.cpp AVRational remainder = av_make_q(av_gettime() % cctx->timestamp_align, 1000000); AVRational 709 libavdevice/decklink_dec.cpp AVRational frame_duration = av_inv_q(ctx->video_st->r_frame_rate); AVRational 961 libavdevice/dshow.c AVRational time_base; AVRational 965 libavdevice/dshow.c time_base = (AVRational) { v->AvgTimePerFrame, 10000000 }; AVRational 969 libavdevice/dshow.c time_base = (AVRational) { v->AvgTimePerFrame, 10000000 }; AVRational 339 libavdevice/dshow_capture.h AVRational requested_framerate; AVRational 51 libavdevice/fbdev_dec.c AVRational framerate_q; ///< framerate AVRational 45 libavdevice/gdigrab.c AVRational time_base; /**< Time base */ AVRational 50 libavdevice/gdigrab.c AVRational framerate; /**< Capture framerate (private option) */ AVRational 537 libavdevice/gdigrab.c AVRational time_base = gdigrab->time_base; AVRational 65 libavdevice/kmsgrab.c AVRational framerate; AVRational 400 libavdevice/kmsgrab.c ctx->frame_delay = av_rescale_q(1, (AVRational) { ctx->framerate.den, AVRational 317 libavdevice/lavfi.c AVRational time_base = av_buffersink_get_time_base(sink); AVRational 405 libavdevice/lavfi.c AVRational tb = av_buffersink_get_time_base(lavfi->sinks[i]); AVRational 106 libavdevice/libdc1394.c AVRational framerate; AVRational 670 libavdevice/opengl_enc.c AVRational sar, dar; /* sample and display aspect ratios */ AVRational 676 libavdevice/opengl_enc.c sar = st->sample_aspect_ratio.num ? st->sample_aspect_ratio : (AVRational){ 1, 1 }; AVRational 677 libavdevice/opengl_enc.c dar = av_mul_q(sar, (AVRational){ par->width, par->height }); AVRational 681 libavdevice/opengl_enc.c if (av_cmp_q(dar, (AVRational){ opengl->window_width, opengl->window_height }) > 0) { AVRational 640 libavdevice/pulse_audio_enc.c AVRational r = { 1, st->codecpar->sample_rate }; AVRational 99 libavdevice/sdl2.c AVRational sar, dar; /* sample and display aspect ratios */ AVRational 106 libavdevice/sdl2.c sar = st->sample_aspect_ratio.num ? st->sample_aspect_ratio : (AVRational){ 1, 1 }; AVRational 107 libavdevice/sdl2.c dar = av_mul_q(sar, (AVRational){ codecpar->width, codecpar->height }); AVRational 112 libavdevice/sdl2.c if (av_cmp_q(dar, (AVRational){ sdl->window_width, sdl->window_height }) > 0) { AVRational 455 libavdevice/v4l2.c AVRational tb = {AV_TIME_BASE, 1}; AVRational 654 libavdevice/v4l2.c AVRational framerate_q = { 0 }; AVRational 257 libavdevice/vfwcap.c AVRational framerate_q; AVRational 59 libavdevice/xcbgrab.c AVRational time_base; AVRational 579 libavdevice/xcbgrab.c c->time_base = (AVRational){ st->avg_frame_rate.den, AVRational 138 libavdevice/xv.c AVRational sar = par->sample_aspect_ratio; AVRational 229 libavdevice/xv.c AVRational sar, dar; /* sample and display aspect ratios */ AVRational 234 libavdevice/xv.c sar = st->sample_aspect_ratio.num ? st->sample_aspect_ratio : (AVRational){ 1, 1 }; AVRational 235 libavdevice/xv.c dar = av_mul_q(sar, (AVRational){ par->width, par->height }); AVRational 239 libavdevice/xv.c if (av_cmp_q(dar, (AVRational){ xv->dest_w, xv->dest_h }) > 0) { AVRational 228 libavfilter/aeval.c outlink->time_base = (AVRational){1, eval->sample_rate}; AVRational 601 libavfilter/af_adeclick.c s->pts += av_rescale_q(s->hop_size, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 244 libavfilter/af_adelay.c s->next_pts += av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); AVRational 275 libavfilter/af_adelay.c s->next_pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 295 libavfilter/af_aecho.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); AVRational 324 libavfilter/af_aecho.c s->next_pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 288 libavfilter/af_afade.c int64_t cur_sample = av_rescale_q(buf->pts, inlink->time_base, (AVRational){1, inlink->sample_rate}); AVRational 460 libavfilter/af_afade.c (AVRational){ 1, outlink->sample_rate }, outlink->time_base); AVRational 485 libavfilter/af_afade.c (AVRational){ 1, outlink->sample_rate }, outlink->time_base); AVRational 512 libavfilter/af_afade.c (AVRational){ 1, outlink->sample_rate }, outlink->time_base); AVRational 532 libavfilter/af_afade.c (AVRational){ 1, outlink->sample_rate }, outlink->time_base); AVRational 552 libavfilter/af_afade.c (AVRational){ 1, outlink->sample_rate }, outlink->time_base); AVRational 1264 libavfilter/af_afftdn.c s->pts += av_rescale_q(s->sample_advance, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 323 libavfilter/af_afftfilt.c s->pts += av_rescale_q(s->hop_size, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 228 libavfilter/af_afir.c s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 812 libavfilter/af_afir.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 73 libavfilter/af_afir.h AVRational frame_rate; AVRational 321 libavfilter/af_agate.c s->pts += av_rescale_q(nb_samples, (AVRational){1, ctx->outputs[0]->sample_rate}, ctx->outputs[0]->time_base); AVRational 68 libavfilter/af_aiir.c AVRational rate; AVRational 1133 libavfilter/af_aiir.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 246 libavfilter/af_amix.c outlink->time_base = (AVRational){ 1, outlink->sample_rate }; AVRational 181 libavfilter/af_anequalizer.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 739 libavfilter/af_anequalizer.c av_rescale_q(buf->nb_samples, (AVRational){ 1, inlink->sample_rate }, AVRational 301 libavfilter/af_anlmdn.c s->pts += av_rescale_q(s->offset, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 86 libavfilter/af_apad.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); AVRational 129 libavfilter/af_apad.c s->next_pts += av_rescale_q(n_out, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 165 libavfilter/af_aresample.c outlink->time_base = (AVRational) {1, out_rate}; AVRational 63 libavfilter/af_asetrate.c AVRational intb = ctx->inputs[0]->time_base; AVRational 254 libavfilter/af_astats.c static void bit_depth(AudioStatsContext *s, uint64_t mask, uint64_t imask, AVRational *depth) AVRational 424 libavfilter/af_astats.c AVRational depth; AVRational 672 libavfilter/af_astats.c AVRational depth; AVRational 1063 libavfilter/af_atempo.c (AVRational){ 1, outlink->sample_rate }, AVRational 285 libavfilter/af_chorus.c s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); AVRational 317 libavfilter/af_chorus.c s->next_pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 265 libavfilter/af_compand.c (AVRational){ 1, inlink->sample_rate }, AVRational 307 libavfilter/af_compand.c (AVRational){ 1, outlink->sample_rate }, outlink->time_base); AVRational 322 libavfilter/af_ladspa.c outlink->time_base = (AVRational){1, s->sample_rate}; AVRational 298 libavfilter/af_lv2.c outlink->time_base = (AVRational){1, s->sample_rate}; AVRational 168 libavfilter/af_resample.c outlink->time_base = (AVRational){ 1, outlink->sample_rate }; AVRational 144 libavfilter/af_rubberband.c (AVRational){ 1, outlink->sample_rate }, AVRational 274 libavfilter/af_sidechaincompress.c s->pts += av_rescale_q(nb_samples, (AVRational){1, ctx->outputs[0]->sample_rate}, ctx->outputs[0]->time_base); AVRational 46 libavfilter/af_silencedetect.c AVRational time_base; ///< time_base AVRational 50 libavfilter/af_silencedetect.c AVRational time_base); AVRational 80 libavfilter/af_silencedetect.c AVRational time_base) AVRational 88 libavfilter/af_silencedetect.c (AVRational){ 1, s->last_sample_rate }, time_base); AVRational 100 libavfilter/af_silencedetect.c (AVRational){ 1, s->last_sample_rate }, time_base) AVRational 123 libavfilter/af_silencedetect.c AVRational time_base) \ AVRational 190 libavfilter/af_silencedetect.c (AVRational){ 1, s->last_sample_rate }, inlink->time_base); AVRational 277 libavfilter/af_silenceremove.c (AVRational){1, outlink->sample_rate}, AVRational 314 libavfilter/af_silenceremove.c (AVRational){1, outlink->sample_rate}, AVRational 426 libavfilter/af_silenceremove.c (AVRational){1, outlink->sample_rate}, AVRational 530 libavfilter/af_silenceremove.c (AVRational){1, outlink->sample_rate}, AVRational 556 libavfilter/af_silenceremove.c (AVRational){1, outlink->sample_rate}, AVRational 602 libavfilter/af_silenceremove.c (AVRational){1, outlink->sample_rate}, AVRational 1604 libavfilter/af_surround.c s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 234 libavfilter/asrc_flite.c outlink->time_base = (AVRational){1, flite->wave->sample_rate}; AVRational 36 libavfilter/avf_abitscope.c AVRational frame_rate; AVRational 134 libavfilter/avf_abitscope.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 168 libavfilter/avf_abitscope.c outpicref->sample_aspect_ratio = (AVRational){1,1}; AVRational 41 libavfilter/avf_ahistogram.c AVRational frame_rate; AVRational 142 libavfilter/avf_ahistogram.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 42 libavfilter/avf_aphasemeter.c AVRational frame_rate; AVRational 125 libavfilter/avf_aphasemeter.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 72 libavfilter/avf_avectorscope.c AVRational frame_rate; AVRational 225 libavfilter/avf_avectorscope.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 256 libavfilter/avf_avectorscope.c s->outpicref->sample_aspect_ratio = (AVRational){1,1}; AVRational 249 libavfilter/avf_concat.c AVRational rate_tb = { 1, ctx->inputs[in_no]->sample_rate }; AVRational 55 libavfilter/avf_showcqt.h AVRational step_frac; AVRational 98 libavfilter/avf_showcqt.h AVRational rate; AVRational 226 libavfilter/avf_showfreqs.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 428 libavfilter/avf_showfreqs.c out->sample_aspect_ratio = (AVRational){1,1}; AVRational 40 libavfilter/avf_showspatial.c AVRational frame_rate; AVRational 162 libavfilter/avf_showspatial.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 246 libavfilter/avf_showspatial.c outpicref->sample_aspect_ratio = (AVRational){1,1}; AVRational 58 libavfilter/avf_showspectrum.c AVRational auto_frame_rate; AVRational 59 libavfilter/avf_showspectrum.c AVRational frame_rate; AVRational 1009 libavfilter/avf_showspectrum.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 1155 libavfilter/avf_showspectrum.c outpicref->sample_aspect_ratio = (AVRational){1,1}; AVRational 44 libavfilter/avf_showvolume.c AVRational frame_rate; AVRational 211 libavfilter/avf_showvolume.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 68 libavfilter/avf_showwaves.c AVRational rate; AVRational 429 libavfilter/avf_showwaves.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 431 libavfilter/avf_showwaves.c outlink->frame_rate = av_div_q((AVRational){inlink->sample_rate,showwaves->n}, AVRational 432 libavfilter/avf_showwaves.c (AVRational){showwaves->w,1}); AVRational 332 libavfilter/avfilter.c inlink->sample_aspect_ratio : (AVRational){1,1}; AVRational 356 libavfilter/avfilter.c link->time_base = (AVRational) {1, link->sample_rate}; AVRational 432 libavfilter/avfilter.c static int64_t guess_status_pts(AVFilterContext *ctx, int status, AVRational link_time_base) AVRational 451 libavfilter/avfilter.h AVRational sample_aspect_ratio; ///< agreed upon sample aspect ratio AVRational 465 libavfilter/avfilter.h AVRational time_base; AVRational 542 libavfilter/avfilter.h AVRational frame_rate; AVRational 190 libavfilter/buffersink.c MAKE_AVFILTERLINK_ACCESSOR(AVRational , time_base ) AVRational 193 libavfilter/buffersink.c MAKE_AVFILTERLINK_ACCESSOR(AVRational , frame_rate ) AVRational 196 libavfilter/buffersink.c MAKE_AVFILTERLINK_ACCESSOR(AVRational , sample_aspect_ratio) AVRational 114 libavfilter/buffersink.h AVRational av_buffersink_get_time_base (const AVFilterContext *ctx); AVRational 117 libavfilter/buffersink.h AVRational av_buffersink_get_frame_rate (const AVFilterContext *ctx); AVRational 120 libavfilter/buffersink.h AVRational av_buffersink_get_sample_aspect_ratio (const AVFilterContext *ctx); AVRational 46 libavfilter/buffersrc.c AVRational time_base; ///< time_base to set in the output link AVRational 47 libavfilter/buffersrc.c AVRational frame_rate; ///< frame_rate to set in the output link AVRational 53 libavfilter/buffersrc.c AVRational pixel_aspect; AVRational 363 libavfilter/buffersrc.c s->time_base = (AVRational){1, s->sample_rate}; AVRational 82 libavfilter/buffersrc.h AVRational time_base; AVRational 92 libavfilter/buffersrc.h AVRational sample_aspect_ratio; AVRational 100 libavfilter/buffersrc.h AVRational frame_rate; AVRational 43 libavfilter/f_drawgraph.c AVRational frame_rate; AVRational 426 libavfilter/f_drawgraph.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 307 libavfilter/f_ebur128.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 338 libavfilter/f_ebur128.c outpicref->sample_aspect_ratio = (AVRational){1,1}; AVRational 680 libavfilter/f_ebur128.c av_rescale_q(idx_insample, (AVRational){ 1, inlink->sample_rate }, AVRational 42 libavfilter/f_graphmonitor.c AVRational frame_rate; AVRational 359 libavfilter/f_graphmonitor.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 195 libavfilter/f_interleave.c outlink->frame_rate = (AVRational) {1, 0}; AVRational 110 libavfilter/f_loop.c s->pts += av_rescale_q(out->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 149 libavfilter/f_loop.c s->pts += av_rescale_q(s->start - s->ignored_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 162 libavfilter/f_loop.c s->pts += av_rescale_q(ret, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 173 libavfilter/f_loop.c s->pts += av_rescale_q(frame->nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 199 libavfilter/f_loop.c s->pts += av_rescale_q(nb_samples, (AVRational){1, outlink->sample_rate}, outlink->time_base); AVRational 124 libavfilter/fifo.c frame->pts += av_rescale_q(offset, (AVRational){1, link->sample_rate}, AVRational 671 libavfilter/formats.c int ff_parse_time_base(AVRational *ret, const char *arg, void *log_ctx) AVRational 673 libavfilter/formats.c AVRational r; AVRational 126 libavfilter/framequeue.c void ff_framequeue_skip_samples(FFFrameQueue *fq, size_t samples, AVRational time_base) AVRational 176 libavfilter/framequeue.h void ff_framequeue_skip_samples(FFFrameQueue *fq, size_t samples, AVRational time_base); AVRational 38 libavfilter/framerate.h AVRational dest_frame_rate; ///< output frames per second AVRational 48 libavfilter/framerate.h AVRational srce_time_base; ///< timebase of source AVRational 49 libavfilter/framerate.h AVRational dest_time_base; ///< timebase of destination AVRational 96 libavfilter/framesync.h AVRational time_base; AVRational 162 libavfilter/framesync.h AVRational time_base; AVRational 191 libavfilter/internal.h int ff_parse_time_base(AVRational *ret, const char *arg, void *log_ctx); AVRational 77 libavfilter/qsvvpp.c static const AVRational default_tb = { 1, 90000 }; AVRational 76 libavfilter/settb.c AVRational time_base; AVRational 103 libavfilter/signature.h AVRational time_base; AVRational 67 libavfilter/tinterlace.h AVRational preout_time_base; AVRational 86 libavfilter/trim.c AVRational tb = (inlink->type == AVMEDIA_TYPE_VIDEO) ? AVRational 87 libavfilter/trim.c inlink->time_base : (AVRational){ 1, inlink->sample_rate }; AVRational 238 libavfilter/trim.c (AVRational){ 1, inlink->sample_rate }); AVRational 318 libavfilter/trim.c out->pts += av_rescale_q(start_sample, (AVRational){ 1, out->sample_rate }, AVRational 150 libavfilter/vaf_spectrumsynth.c AVRational time_base = ctx->inputs[0]->time_base; AVRational 151 libavfilter/vaf_spectrumsynth.c AVRational frame_rate = ctx->inputs[0]->frame_rate; AVRational 156 libavfilter/vaf_spectrumsynth.c outlink->time_base = (AVRational){1, s->sample_rate}; AVRational 50 libavfilter/vf_addroi.c AVRational qoffset; AVRational 61 libavfilter/vf_aspect.c AVRational dar; AVRational 62 libavfilter/vf_aspect.c AVRational sar; AVRational 78 libavfilter/vf_aspect.c static inline void compute_dar(AVRational *dar, AVRational sar, int w, int h) AVRational 87 libavfilter/vf_aspect.c static int get_aspect_ratio(AVFilterLink *inlink, AVRational *aspect_ratio) AVRational 133 libavfilter/vf_aspect.c AVRational dar; AVRational 134 libavfilter/vf_aspect.c AVRational old_dar; AVRational 135 libavfilter/vf_aspect.c AVRational old_sar = inlink->sample_aspect_ratio; AVRational 148 libavfilter/vf_aspect.c outlink->sample_aspect_ratio = (AVRational){ 1, 1 }; AVRational 149 libavfilter/vf_aspect.c dar = (AVRational){ inlink->w, inlink->h }; AVRational 206 libavfilter/vf_aspect.c AVRational old_sar = inlink->sample_aspect_ratio; AVRational 207 libavfilter/vf_aspect.c AVRational old_dar, dar; AVRational 344 libavfilter/vf_bwdif.c link->frame_rate = av_mul_q(link->src->inputs[0]->frame_rate, (AVRational){2,1}); AVRational 156 libavfilter/vf_ciescope.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 83 libavfilter/vf_crop.c AVRational out_sar; ///< output sample aspect ratio AVRational 204 libavfilter/vf_crop.c AVRational dar = av_mul_q(link->sample_aspect_ratio, AVRational 205 libavfilter/vf_crop.c (AVRational){ link->w, link->h }); AVRational 396 libavfilter/vf_datascope.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 45 libavfilter/vf_decimate.c AVRational ts_unit; ///< timestamp units for the output frames AVRational 228 libavfilter/vf_decimate.c frame->pts = av_rescale_q(outlink->frame_count_in, dm->ts_unit, (AVRational){1,1}) + AVRational 388 libavfilter/vf_decimate.c AVRational fps = inlink->frame_rate; AVRational 395 libavfilter/vf_decimate.c fps = av_mul_q(fps, (AVRational){dm->cycle - 1, dm->cycle}); AVRational 332 libavfilter/vf_deinterlace_qsv.c (AVRational){ 2, 1 }); AVRational 334 libavfilter/vf_deinterlace_qsv.c (AVRational){ 1, 2 }); AVRational 441 libavfilter/vf_deinterlace_qsv.c (AVRational){1, 90000}); AVRational 170 libavfilter/vf_deinterlace_vaapi.c (AVRational) { 1, ctx->field_rate }); AVRational 172 libavfilter/vf_deinterlace_vaapi.c (AVRational) { ctx->field_rate, 1 }); AVRational 101 libavfilter/vf_delogo.c int w, int h, AVRational sar, AVRational 307 libavfilter/vf_delogo.c AVRational sar; AVRational 45 libavfilter/vf_detelecine.c AVRational pts; AVRational 46 libavfilter/vf_detelecine.c AVRational ts_unit; AVRational 176 libavfilter/vf_detelecine.c AVRational fps = inlink->frame_rate; AVRational 197 libavfilter/vf_drawtext.c AVRational tc_rate; ///< frame rate for timecode AVRational 50 libavfilter/vf_fps.c AVRational framerate; ///< target framerate AVRational 86 libavfilter/vf_framepack.c AVRational time_base = ctx->inputs[LEFT]->time_base; AVRational 87 libavfilter/vf_framepack.c AVRational frame_rate = ctx->inputs[LEFT]->frame_rate; AVRational 53 libavfilter/vf_framestep.c av_div_q(inlink->frame_rate, (AVRational){framestep->frame_step, 1}); AVRational 72 libavfilter/vf_frei0r.c AVRational framerate; AVRational 76 libavfilter/vf_frei0r.c AVRational time_base; AVRational 435 libavfilter/vf_frei0r.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 459 libavfilter/vf_frei0r.c frame->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 462 libavfilter/vf_frei0r.c s->update(s->instance, av_rescale_q(frame->pts, s->time_base, (AVRational){1,1000}), AVRational 276 libavfilter/vf_histogram.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 121 libavfilter/vf_mcdeint.c enc_ctx->time_base = (AVRational){1,25}; // meaningless AVRational 169 libavfilter/vf_minterpolate.c AVRational frame_rate; AVRational 223 libavfilter/vf_mix.c AVRational frame_rate = ctx->inputs[0]->frame_rate; AVRational 224 libavfilter/vf_mix.c AVRational sar = ctx->inputs[0]->sample_aspect_ratio; AVRational 179 libavfilter/vf_nnedi.c (AVRational){2, 1}); AVRational 92 libavfilter/vf_pad.c AVRational aspect; AVRational 109 libavfilter/vf_pad.c AVRational adjusted_aspect = s->aspect; AVRational 68 libavfilter/vf_pad_opencl.c AVRational aspect; AVRational 254 libavfilter/vf_pad_opencl.c AVRational adjusted_aspect = ctx->aspect; AVRational 47 libavfilter/vf_program_opencl.c AVRational source_rate; AVRational 78 libavfilter/vf_repeatfields.c if (av_cmp_q(link->frame_rate, (AVRational){30000, 1001}) == 0 && AVRational 79 libavfilter/vf_repeatfields.c av_cmp_q(link->time_base, (AVRational){1001, 60000}) <= 0 AVRational 81 libavfilter/vf_repeatfields.c f->pts = pts + av_rescale_q(fields, (AVRational){1001, 60000}, link->time_base); AVRational 587 libavfilter/vf_scale.c outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h * inlink0->w, outlink->w * inlink0->h}, inlink0->sample_aspect_ratio); AVRational 329 libavfilter/vf_scale_cuda.c outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h*inlink->w, AVRational 371 libavfilter/vf_scale_npp.c outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h*inlink->w, AVRational 535 libavfilter/vf_scale_qsv.c outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h*inlink->w, AVRational 95 libavfilter/vf_scale_vaapi.c outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h * inlink->w, outlink->w * inlink->h}, inlink->sample_aspect_ratio); AVRational 194 libavfilter/vf_stack.c AVRational frame_rate = ctx->inputs[0]->frame_rate; AVRational 195 libavfilter/vf_stack.c AVRational sar = ctx->inputs[0]->sample_aspect_ratio; AVRational 153 libavfilter/vf_stereo3d.c AVRational aspect; AVRational 371 libavfilter/vf_stereo3d.c AVRational fps = inlink->frame_rate; AVRational 372 libavfilter/vf_stereo3d.c AVRational tb = inlink->time_base; AVRational 43 libavfilter/vf_telecine.c AVRational pts; AVRational 44 libavfilter/vf_telecine.c AVRational ts_unit; AVRational 150 libavfilter/vf_telecine.c AVRational fps = inlink->frame_rate; AVRational 46 libavfilter/vf_thumbnail.c AVRational tb; ///< copy of the input timebase to ease access AVRational 58 libavfilter/vf_thumbnail_cuda.c AVRational tb; ///< copy of the input timebase to ease access AVRational 84 libavfilter/vf_tinterlace.c static const AVRational standard_tbs[] = { AVRational 256 libavfilter/vf_tinterlace.c outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){2,1}); AVRational 257 libavfilter/vf_tinterlace.c outlink->time_base = av_mul_q(inlink->time_base , (AVRational){1,2}); AVRational 262 libavfilter/vf_tinterlace.c outlink->frame_rate = av_mul_q(inlink->frame_rate, (AVRational){1,2}); AVRational 263 libavfilter/vf_tinterlace.c outlink->time_base = av_mul_q(inlink->time_base , (AVRational){2,1}); AVRational 215 libavfilter/vf_transpose.c outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 }, AVRational 286 libavfilter/vf_transpose_npp.c outlink->sample_aspect_ratio = (AVRational){inlink->sample_aspect_ratio.den, inlink->sample_aspect_ratio.num}; AVRational 113 libavfilter/vf_transpose_opencl.c outlink->sample_aspect_ratio = av_div_q((AVRational) { 1, 1 }, AVRational 82 libavfilter/vf_untile.c AVRational dt; AVRational 356 libavfilter/vf_uspp.c avctx_enc->time_base = (AVRational){1,25}; // meaningless AVRational 277 libavfilter/vf_vectorscope.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 76 libavfilter/vf_vignette.c AVRational aspect; AVRational 77 libavfilter/vf_vignette.c AVRational scale; AVRational 297 libavfilter/vf_vignette.c AVRational sar = inlink->sample_aspect_ratio; AVRational 70 libavfilter/vf_vpp_qsv.c AVRational framerate; /* target framerate */ AVRational 3368 libavfilter/vf_waveform.c outlink->sample_aspect_ratio = (AVRational){1,1}; AVRational 263 libavfilter/vf_xmedian.c AVRational frame_rate = ctx->inputs[0]->frame_rate; AVRational 264 libavfilter/vf_xmedian.c AVRational sar = ctx->inputs[0]->sample_aspect_ratio; AVRational 303 libavfilter/vf_yadif.c (AVRational){2, 1}); AVRational 307 libavfilter/vf_yadif_cuda.c (AVRational){2, 1}); AVRational 99 libavfilter/vf_zoompan.c AVRational framerate; AVRational 300 libavfilter/vf_zscale.c outlink->sample_aspect_ratio = av_mul_q((AVRational){outlink->h * inlink->w, outlink->w * inlink->h}, inlink->sample_aspect_ratio); AVRational 51 libavfilter/vsrc_cellauto.c AVRational frame_rate; AVRational 294 libavfilter/vsrc_cellauto.c picref->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 38 libavfilter/vsrc_gradients.c AVRational frame_rate; AVRational 226 libavfilter/vsrc_gradients.c inlink->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 263 libavfilter/vsrc_gradients.c frame->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 64 libavfilter/vsrc_life.c AVRational frame_rate; AVRational 404 libavfilter/vsrc_life.c picref->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 63 libavfilter/vsrc_mandelbrot.c AVRational frame_rate; AVRational 405 libavfilter/vsrc_mandelbrot.c picref->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 55 libavfilter/vsrc_mptestsrc.c AVRational frame_rate; AVRational 43 libavfilter/vsrc_sierpinski.c AVRational frame_rate; AVRational 164 libavfilter/vsrc_sierpinski.c inlink->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 208 libavfilter/vsrc_sierpinski.c frame->sample_aspect_ratio = (AVRational) {1, 1}; AVRational 56 libavfilter/vsrc_testsrc.c AVRational time_base, frame_rate; AVRational 59 libavfilter/vsrc_testsrc.c AVRational sar; ///< sample aspect ratio AVRational 83 libavformat/4xm.c AVRational fps; AVRational 220 libavformat/4xm.c fourxm->fps = (AVRational){1,1}; AVRational 272 libavformat/apngdec.c (AVRational){ 1, delay_den }, AVRational 38 libavformat/apngenc.c AVRational last_delay; AVRational 44 libavformat/apngenc.c AVRational prev_delay; AVRational 184 libavformat/apngenc.c AVRational delay; AVRational 37 libavformat/aqtitledec.c AVRational frame_rate; AVRational 79 libavformat/asfdec_f.c AVRational dar[128]; AVRational 775 libavformat/asfdec_f.c avpriv_new_chapter(s, i, (AVRational) { 1, 10000000 }, pres_time, AVRational 1117 libavformat/asfdec_f.c AVRational aspect; AVRational 91 libavformat/asfdec_o.c AVRational aspect_ratio; AVRational 251 libavformat/asfdec_o.c avpriv_new_chapter(s, i, (AVRational) { 1, 10000000 }, pts, AVRational 346 libavformat/asfenc.c AVRational scale = {1, 10000000}; AVRational 550 libavformat/asfenc.c AVRational sar = par->sample_aspect_ratio; AVRational 36 libavformat/av1dec.c AVRational framerate; AVRational 301 libavformat/avc.c static const AVRational avc_sample_aspect_ratio[17] = { AVRational 48 libavformat/avc.h AVRational sar; AVRational 896 libavformat/avformat.h AVRational time_base; AVRational 929 libavformat/avformat.h AVRational sample_aspect_ratio; AVRational 940 libavformat/avformat.h AVRational avg_frame_rate; AVRational 991 libavformat/avformat.h AVRational r_frame_rate; AVRational 1216 libavformat/avformat.h AVRational display_aspect_ratio; AVRational 1231 libavformat/avformat.h AVRational av_stream_get_r_frame_rate(const AVStream *s); AVRational 1233 libavformat/avformat.h void av_stream_set_r_frame_rate(AVStream *s, AVRational r); AVRational 1296 libavformat/avformat.h AVRational time_base; ///< time base in which the start/end timestamps are specified AVRational 3012 libavformat/avformat.h AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, AVFrame *frame); AVRational 3022 libavformat/avformat.h AVRational av_guess_frame_rate(AVFormatContext *ctx, AVStream *stream, AVFrame *frame); AVRational 3087 libavformat/avformat.h AVRational av_stream_get_codec_timebase(const AVStream *st); AVRational 953 libavformat/avidec.c AVRational active, active_aspect; AVRational 1070 libavformat/avidec.c AVRational time_base; AVRational 1355 libavformat/avidec.c (AVRational) { FFMAX(1, ast->sample_size), AVRational 508 libavformat/avienc.c AVRational dar = av_mul_q(st->sample_aspect_ratio, AVRational 509 libavformat/avienc.c (AVRational) { par->width, AVRational 237 libavformat/avisynth.c st->avg_frame_rate = (AVRational) { avs->vi->fps_numerator, AVRational 715 libavformat/avisynth.c AVRational fps, samplerate; AVRational 840 libavformat/avisynth.c AVRational fps, samplerate; AVRational 845 libavformat/avisynth.c fps = (AVRational) { avs->vi->fps_numerator, AVRational 847 libavformat/avisynth.c samplerate = (AVRational) { avs->vi->audio_samples_per_second, 1 }; AVRational 201 libavformat/avs.c avs->st_video->avg_frame_rate = (AVRational){avs->fps, 1}; AVRational 47 libavformat/bintext.c AVRational framerate; /**< frames per second (private option) */ AVRational 91 libavformat/c93.c video->sample_aspect_ratio = (AVRational) { 5, 6 }; AVRational 35 libavformat/cdxl.c AVRational fps; AVRational 652 libavformat/concatdec.c static void rescale_interval(AVRational tb_in, AVRational tb_out, AVRational 92 libavformat/dashdec.c AVRational framerate; AVRational 90 libavformat/dashenc.c AVRational min_frame_rate, max_frame_rate; AVRational 95 libavformat/dashenc.c AVRational par; AVRational 138 libavformat/dashenc.c AVRational sar; AVRational 197 libavformat/dashenc.c AVRational min_playback_rate; AVRational 198 libavformat/dashenc.c AVRational max_playback_rate; AVRational 344 libavformat/dashenc.c AVRational *frame_rate, char *str, int size) { AVRational 359 libavformat/dashenc.c AVRational *frame_rate, char *str, int size) AVRational 1216 libavformat/dashenc.c if (av_cmp_q(c->min_playback_rate, (AVRational) {1, 1}) || AVRational 1217 libavformat/dashenc.c av_cmp_q(c->max_playback_rate, (AVRational) {1, 1})) AVRational 1435 libavformat/dashenc.c c->min_playback_rate = c->max_playback_rate = (AVRational) {1, 1}; AVRational 1648 libavformat/dashenc.c AVRational avg_frame_rate = s->streams[i]->avg_frame_rate; AVRational 1649 libavformat/dashenc.c AVRational par; AVRational 1667 libavformat/dashenc.c os->sar = (AVRational){1,1}; AVRational 1799 libavformat/dashenc.c AVPacket *pkt, AVRational *frame_rate) AVRational 76 libavformat/dfa.c st->sample_aspect_ratio = (AVRational){2, 1}; AVRational 86 libavformat/dump.c int dump_payload, AVRational time_base) AVRational 530 libavformat/dump.c AVRational display_aspect_ratio; AVRational 301 libavformat/dv.c (AVRational) { 8, 1 }, AVRational 442 libavformat/dv.c (AVRational) { 8, c->ast[0]->codecpar->bit_rate }); AVRational 539 libavformat/dv.c (AVRational) { 8, 1 }, AVRational 376 libavformat/dvenc.c AVRational rate; AVRational 71 libavformat/electronicarts.c AVRational time_base; AVRational 323 libavformat/electronicarts.c video->time_base = (AVRational) { 1, 15 }; AVRational 352 libavformat/electronicarts.c video->time_base = (AVRational) { 1, fps }; AVRational 425 libavformat/electronicarts.c ea->video.time_base = (AVRational) { 1, 15 }; AVRational 430 libavformat/electronicarts.c ea->video.time_base = (AVRational) { 1, 15 }; AVRational 436 libavformat/electronicarts.c ea->video.time_base = (AVRational) { avio_rl16(pb), 1000 }; AVRational 103 libavformat/ffmetadec.c AVRational tb = {1, 1e9}; AVRational 167 libavformat/fifo.c AVRational src_tb, dst_tb; AVRational 315 libavformat/fifo.c AVRational tb = avf->streams[pkt->stream_index]->time_base; AVRational 37 libavformat/fitsdec.c AVRational framerate; AVRational 74 libavformat/flvdec.c AVRational framerate; AVRational 372 libavformat/gifdec.c s->streams[0]->r_frame_rate = (AVRational) {100, gdc->last_duration}; AVRational 34 libavformat/gxf.c AVRational frames_per_second; AVRational 219 libavformat/gxf.c static const AVRational frame_rate_tab[] = { AVRational 236 libavformat/gxf.c static AVRational fps_tag2avr(int32_t fps) { AVRational 246 libavformat/gxf.c static AVRational fps_umf2avr(uint32_t flags) { AVRational 247 libavformat/gxf.c static const AVRational map[] = {{50, 1}, {60000, 1001}, {24, 1}, AVRational 259 libavformat/gxf.c si->frames_per_second = (AVRational){0, 0}; AVRational 321 libavformat/gxf.c AVRational main_timebase = {0, 0}; AVRational 406 libavformat/gxf.c AVRational fps; AVRational 435 libavformat/gxf.c main_timebase = (AVRational){1001, 60000}; AVRational 77 libavformat/gxfenc.c AVRational time_base; AVRational 760 libavformat/gxfenc.c gxf->time_base = (AVRational){ 1001, 60000 }; AVRational 766 libavformat/gxfenc.c gxf->time_base = (AVRational){ 1, 50 }; AVRational 48 libavformat/hls.c #define MPEG_TIME_BASE_Q (AVRational){1, MPEG_TIME_BASE} AVRational 2111 libavformat/hls.c static AVRational get_timebase(struct playlist *pls) AVRational 2143 libavformat/hls.c AVRational tb; AVRational 1174 libavformat/id3v2.c AVRational time_base = {1, 1000}; AVRational 293 libavformat/id3v2enc.c const AVRational time_base = {1, 1000}; AVRational 53 libavformat/img2.h AVRational framerate; /**< Set by a private option. */ AVRational 111 libavformat/internal.h AVRational offset_timebase; AVRational 402 libavformat/internal.h AVChapter *avpriv_new_chapter(AVFormatContext *s, int id, AVRational time_base, AVRational 539 libavformat/internal.h AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precision); AVRational 46 libavformat/ircamenc.c avio_wl32(s->pb, av_q2intfloat((AVRational){par->sample_rate, 1})); AVRational 38 libavformat/ivfdec.c AVRational time_base; AVRational 2685 libavformat/matroskadec.c (AVRational){ 1, 1000000000 }, AVRational 2803 libavformat/matroskadec.c (AVRational){1, 1000000000}, AVRational 2804 libavformat/matroskadec.c (AVRational){1, st->codecpar->codec_id == AV_CODEC_ID_OPUS ? AVRational 2809 libavformat/matroskadec.c (AVRational){1, 1000000000}, AVRational 2810 libavformat/matroskadec.c (AVRational){1, st->codecpar->sample_rate}); AVRational 2971 libavformat/matroskadec.c (AVRational) { 1, 1000000000 }, AVRational 3495 libavformat/matroskadec.c (AVRational){1, 1000000000}, AVRational 3496 libavformat/matroskadec.c (AVRational){1, st->codecpar->sample_rate}); AVRational 1276 libavformat/matroskaenc.c AVRational display_aspect_ratio; AVRational 1305 libavformat/matroskaenc.c (AVRational){ 1, 48000 }, AVRational 1306 libavformat/matroskaenc.c (AVRational){ 1, 1000000000 }); AVRational 1618 libavformat/matroskaenc.c AVRational scale = {1, 1E9}; AVRational 2060 libavformat/matroskaenc.c (AVRational){1, par->sample_rate}, AVRational 2061 libavformat/matroskaenc.c (AVRational){1, 1000000000}); AVRational 40 libavformat/mgsts.c AVRational fps; AVRational 35 libavformat/microdvddec.c AVRational frame_rate; AVRational 81 libavformat/microdvddec.c AVRational pts_info = (AVRational){ 2997, 125 }; /* default: 23.976 fps */ AVRational 29 libavformat/microdvdenc.c AVRational framerate = s->streams[0]->avg_frame_rate; AVRational 329 libavformat/mlvdec.c AVRational framerate; AVRational 570 libavformat/mov.c avpriv_new_chapter(c->fc, i, (AVRational){1,10000000}, start, AV_NOPTS_VALUE, str); AVRational 5043 libavformat/mov.c AVRational timescale; AVRational 6760 libavformat/mov.c (AVRational){1, 1000}, AVRational 6761 libavformat/mov.c (AVRational){1, 48000}); AVRational 7266 libavformat/mov.c AVRational rate = st->avg_frame_rate; AVRational 1383 libavformat/movenc.c static AVRational find_fps(AVFormatContext *s, AVStream *st) AVRational 1385 libavformat/movenc.c AVRational rate = st->avg_frame_rate; AVRational 1403 libavformat/movenc.c AVRational rational_framerate = find_fps(s, st); AVRational 1865 libavformat/movenc.c AVRational sar; AVRational 1966 libavformat/movenc.c static inline int64_t rescale_mdcv(AVRational q, int b) AVRational 2462 libavformat/movenc.c (AVRational){1, 1000}, AVRational 2463 libavformat/movenc.c (AVRational){1, 48000}); AVRational 3843 libavformat/movenc.c avio_wb64(pb, av_rescale_q(c->start, c->time_base, (AVRational){1,10000000})); AVRational 6022 libavformat/movenc.c int64_t end = av_rescale_q(c->end, c->time_base, (AVRational){1,MOV_TIMESCALE}); AVRational 6023 libavformat/movenc.c pkt.pts = pkt.dts = av_rescale_q(c->start, c->time_base, (AVRational){1,MOV_TIMESCALE}); AVRational 6064 libavformat/movenc.c AVRational rate = find_fps(s, src_st); AVRational 203 libavformat/mp3dec.c (AVRational){spf, c->sample_rate}, AVRational 265 libavformat/mp3dec.c (AVRational){1, c->sample_rate}, AVRational 352 libavformat/mp3dec.c st->duration = av_rescale_q(mp3->frames, (AVRational){spf, c.sample_rate}, AVRational 1005 libavformat/mpeg.c AVRational time_base = s->streams[0]->time_base; AVRational 94 libavformat/mpsubdec.c AVRational pts_info = (AVRational){ TSBASE, 1 }; // ts based by default AVRational 114 libavformat/mpsubdec.c pts_info = (AVRational){ TSBASE * fps, 1 }; AVRational 89 libavformat/mux.c AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precision) AVRational 91 libavformat/mux.c AVRational q; AVRational 85 libavformat/mvdec.c static AVRational var_read_float(AVIOContext *pb, int size) AVRational 87 libavformat/mvdec.c AVRational v; AVRational 90 libavformat/mvdec.c return (AVRational) { 0, 0 }; AVRational 199 libavformat/mvdec.c AVRational fps = var_read_float(pb, size); AVRational 162 libavformat/mxf.c int ff_mxf_get_content_package_rate(AVRational time_base) AVRational 64 libavformat/mxf.h AVRational tb; AVRational 96 libavformat/mxf.h int ff_mxf_get_content_package_rate(AVRational time_base); AVRational 139 libavformat/mxfdec.c struct AVRational rate; AVRational 172 libavformat/mxfdec.c AVRational edit_rate; AVRational 188 libavformat/mxfdec.c AVRational sample_rate; AVRational 189 libavformat/mxfdec.c AVRational aspect_ratio; AVRational 218 libavformat/mxfdec.c AVRational index_edit_rate; AVRational 943 libavformat/mxfdec.c mxf_timecode->rate = (AVRational){avio_rb16(pb), 1}; AVRational 1566 libavformat/mxfdec.c static int mxf_edit_unit_absolute_offset(MXFContext *mxf, MXFIndexTable *index_table, int64_t edit_unit, AVRational edit_rate, int64_t *edit_unit_out, int64_t *offset_out, MXFPartition **partition_out, int nag) AVRational 2085 libavformat/mxfdec.c physical_track->edit_rate = (AVRational){25, 1}; AVRational 2311 libavformat/mxfdec.c material_track->edit_rate = (AVRational){25, 1}; AVRational 3311 libavformat/mxfdec.c AVRational time_base = av_inv_q(track->edit_rate); AVRational 3312 libavformat/mxfdec.c AVRational sample_rate = av_inv_q(st->time_base); AVRational 95 libavformat/mxfenc.c AVRational aspect_ratio; ///< display aspect ratio AVRational 239 libavformat/mxfenc.c AVRational time_base; AVRational 261 libavformat/mxfenc.c AVRational audio_edit_rate; AVRational 2042 libavformat/mxfenc.c sc->aspect_ratio = (AVRational){ 16, 9 }; AVRational 2097 libavformat/mxfenc.c sc->aspect_ratio = (AVRational){ 16, 9 }; AVRational 2099 libavformat/mxfenc.c sc->aspect_ratio = (AVRational){ 4, 3 }; AVRational 2256 libavformat/mxfenc.c sc->aspect_ratio = (AVRational){ 16, 9 }; // 16:9 is mandatory for broadcast HD AVRational 2350 libavformat/mxfenc.c case 2: sc->aspect_ratio = (AVRational){ 4, 3}; break; AVRational 2351 libavformat/mxfenc.c case 3: sc->aspect_ratio = (AVRational){ 16, 9}; break; AVRational 2352 libavformat/mxfenc.c case 4: sc->aspect_ratio = (AVRational){221,100}; break; AVRational 2408 libavformat/mxfenc.c static int mxf_init_timecode(AVFormatContext *s, AVStream *st, AVRational tbc) AVRational 2466 libavformat/mxfenc.c AVRational tbc = st->time_base; AVRational 2558 libavformat/mxfenc.c AVRational tbc = av_inv_q(mxf->audio_edit_rate); AVRational 177 libavformat/nsvdec.c AVRational framerate; AVRational 379 libavformat/nsvdec.c AVRational framerate; AVRational 393 libavformat/nsvdec.c if(t<16) framerate = (AVRational){1, t+1}; AVRational 394 libavformat/nsvdec.c else framerate = (AVRational){t-15, 1}; AVRational 406 libavformat/nsvdec.c framerate= (AVRational){i, 1}; AVRational 253 libavformat/nut.c void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val) AVRational 80 libavformat/nut.h AVRational *time_base; AVRational 88 libavformat/nut.h AVRational *time_base; AVRational 107 libavformat/nut.h AVRational *time_base; AVRational 112 libavformat/nut.h AVRational *max_pts_tb; AVRational 133 libavformat/nut.h void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val); AVRational 222 libavformat/nutdec.c GET_V(nut->time_base_count, tmp > 0 && tmp < INT_MAX / sizeof(AVRational)); AVRational 223 libavformat/nutdec.c nut->time_base = av_malloc_array(nut->time_base_count, sizeof(AVRational)); AVRational 182 libavformat/nutenc.c AVRational f = av_div_q(av_inv_q(s->streams[stream_id]->avg_frame_rate), *nut->stream[stream_id].time_base); AVRational 306 libavformat/nutenc.c static void put_tt(NUTContext *nut, AVRational *time_base, AVIOContext *bc, uint64_t val) AVRational 724 libavformat/nutenc.c AVRational time_base; AVRational 728 libavformat/nutenc.c time_base = (AVRational) {1, st->codecpar->sample_rate}; AVRational 736 libavformat/nutenc.c if (!memcmp(&time_base, &nut->time_base[j], sizeof(AVRational))) { AVRational 756 libavformat/nutenc.c if (!memcmp(&ch->time_base, &nut->time_base[j], sizeof(AVRational))) AVRational 654 libavformat/oggenc.c (AVRational){ 1, st->codecpar->sample_rate }, AVRational 61 libavformat/oggparsetheora.c AVRational timebase; AVRational 54 libavformat/oggparsevorbis.c avpriv_new_chapter(as, cnum, (AVRational) { 1, 1000 }, AVRational 36 libavformat/oggparsevp8.c AVRational framerate; AVRational 60 libavformat/r3d.c AVRational framerate; AVRational 34 libavformat/rawdec.h AVRational framerate; /**< AVRational describing framerate, set by a private option. */ AVRational 33 libavformat/rawvideodec.c AVRational framerate; /**< AVRational describing framerate, set by a private option. */ AVRational 68 libavformat/rawvideodec.c (AVRational){8,1}, st->time_base); AVRational 32 libavformat/rmenc.c AVRational frame_rate; AVRational 103 libavformat/rmenc.c v = av_rescale_q_rnd(stream->total_frames, (AVRational){1000, 1}, stream->frame_rate, AV_ROUND_ZERO); AVRational 179 libavformat/rmenc.c avio_wb32(s, av_rescale_q_rnd(stream->total_frames, (AVRational){1000, 1}, stream->frame_rate, AV_ROUND_ZERO)); AVRational 307 libavformat/rmenc.c timestamp = av_rescale_q_rnd(stream->nb_frames, (AVRational){1000, 1}, stream->frame_rate, AV_ROUND_ZERO); AVRational 341 libavformat/rmenc.c stream->frame_rate = (AVRational){par->sample_rate, frame_size}; AVRational 95 libavformat/rpl.c static AVRational read_fps(const char* line, int* error) AVRational 98 libavformat/rpl.c AVRational result; AVRational 128 libavformat/rpl.c AVRational fps; AVRational 293 libavformat/rtpenc.c rtp_ts = av_rescale_q(ntp_time - s->first_rtcp_ntp_time, (AVRational){1, 1000000}, AVRational 360 libavformat/segment.c AVRational rate; AVRational 446 libavformat/segment.c AVRational st_rate = s->streams[i]->avg_frame_rate; AVRational 34 libavformat/serdec.c AVRational framerate; AVRational 96 libavformat/serdec.c (AVRational){8,1}, st->time_base); AVRational 47 libavformat/tests/seek.c static void ts_str(char buffer[60], int64_t ts, AVRational base) AVRational 53 libavformat/tests/seek.c ts= av_rescale_q(ts, base, (AVRational){1, 1000000}); AVRational 34 libavformat/thp.c AVRational fps; AVRational 72 libavformat/tmv.c AVRational fps; AVRational 49 libavformat/tty.c AVRational framerate; /**< Set by a private option. */ AVRational 116 libavformat/utils.c MAKE_ACCESSORS(AVStream, stream, AVRational, r_frame_rate) AVRational 954 libavformat/utils.c AVRational codec_framerate = s->iformat ? st->internal->avctx->framerate : AVRational 955 libavformat/utils.c av_mul_q(av_inv_q(st->internal->avctx->time_base), (AVRational){1, st->internal->avctx->ticks_per_frame}); AVRational 961 libavformat/utils.c codec_framerate = av_mul_q(av_inv_q(st->codec->time_base), (AVRational){1, st->codec->ticks_per_frame}); AVRational 1159 libavformat/utils.c st->start_time = av_sat_add64(st->start_time, av_rescale_q(st->skip_samples, (AVRational){1, st->codecpar->sample_rate}, st->time_base)); AVRational 1172 libavformat/utils.c st->start_time = av_sat_add64(st->start_time, av_rescale_q(st->skip_samples, (AVRational){1, st->codecpar->sample_rate}, st->time_base)); AVRational 1238 libavformat/utils.c AVRational duration; AVRational 1306 libavformat/utils.c duration = av_mul_q((AVRational) {pkt->duration, 1}, st->time_base); AVRational 1310 libavformat/utils.c duration = (AVRational) {num, den}; AVRational 1508 libavformat/utils.c (AVRational) { 1, st->internal->avctx->sample_rate }, AVRational 2560 libavformat/utils.c AVRational time_base = s->streams[0]->time_base; AVRational 3433 libavformat/utils.c AVRational ref_rate = st->r_frame_rate.num ? st->r_frame_rate : av_inv_q(st->time_base); AVRational 4033 libavformat/utils.c AVRational codec_frame_rate = avctx->framerate; AVRational 4046 libavformat/utils.c AVRational std_fps = { get_std_framerate(j), 12 * 1001 }; AVRational 4080 libavformat/utils.c AVRational hw_ratio = { avctx->height, avctx->width }; AVRational 4599 libavformat/utils.c st->sample_aspect_ratio = (AVRational) { 0, 1 }; AVRational 4647 libavformat/utils.c AVChapter *avpriv_new_chapter(AVFormatContext *s, int id, AVRational time_base, AVRational 4941 libavformat/utils.c AVRational new_tb; AVRational 5112 libavformat/utils.c AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, AVFrame *frame) AVRational 5114 libavformat/utils.c AVRational undef = {0, 1}; AVRational 5115 libavformat/utils.c AVRational stream_sample_aspect_ratio = stream ? stream->sample_aspect_ratio : undef; AVRational 5116 libavformat/utils.c AVRational codec_sample_aspect_ratio = stream && stream->codecpar ? stream->codecpar->sample_aspect_ratio : undef; AVRational 5117 libavformat/utils.c AVRational frame_sample_aspect_ratio = frame ? frame->sample_aspect_ratio : codec_sample_aspect_ratio; AVRational 5135 libavformat/utils.c AVRational av_guess_frame_rate(AVFormatContext *format, AVStream *st, AVFrame *frame) AVRational 5137 libavformat/utils.c AVRational fr = st->r_frame_rate; AVRational 5138 libavformat/utils.c AVRational codec_fr = st->internal->avctx->framerate; AVRational 5139 libavformat/utils.c AVRational avg_fr = st->avg_frame_rate; AVRational 5833 libavformat/utils.c AVRational av_stream_get_codec_timebase(const AVStream *st) AVRational 32 libavformat/v210.c AVRational framerate; /**< AVRational describing framerate, set by a private option. */ AVRational 63 libavformat/v210.c (AVRational){8,1}, st->time_base); AVRational 123 libavformat/vivo.c AVRational fps = { 1, 25}; AVRational 209 libavformat/vivo.c AVRational tmp; AVRational 71 libavformat/vpcc.c static int get_vp9_level(AVCodecParameters *par, AVRational *frame_rate) { AVRational 117 libavformat/vpcc.c AVRational *frame_rate, VPCC *vpcc) AVRational 56 libavformat/vpcc.h AVRational *frame_rate, VPCC *vpcc); AVRational 229 libavformat/webm_chunk.c (AVRational) {1, 1000}); AVRational 218 libavformat/wtvenc.c AVRational dar = av_mul_q(st->sample_aspect_ratio, (AVRational){st->codecpar->width, st->codecpar->height}); AVRational 91 libavformat/yop.c video_stream->sample_aspect_ratio = (AVRational){1, 2}; AVRational 273 libavformat/yuv4mpegdec.c st->sample_aspect_ratio = (AVRational){ aspectn, aspectd }; AVRational 260 libavutil/avutil.h #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} AVRational 344 libavutil/avutil.h AVRational av_get_time_base_q(void); AVRational 158 libavutil/frame.c frame->sample_aspect_ratio = (AVRational){ 0, 1 }; AVRational 267 libavutil/frame.h AVRational qoffset; AVRational 388 libavutil/frame.h AVRational sample_aspect_ratio; AVRational 52 libavutil/hdr_dynamic_metadata.h AVRational percentile; AVRational 67 libavutil/hdr_dynamic_metadata.h AVRational window_upper_left_corner_x; AVRational 76 libavutil/hdr_dynamic_metadata.h AVRational window_upper_left_corner_y; AVRational 85 libavutil/hdr_dynamic_metadata.h AVRational window_lower_right_corner_x; AVRational 94 libavutil/hdr_dynamic_metadata.h AVRational window_lower_right_corner_y; AVRational 157 libavutil/hdr_dynamic_metadata.h AVRational maxscl[3]; AVRational 164 libavutil/hdr_dynamic_metadata.h AVRational average_maxrgb; AVRational 183 libavutil/hdr_dynamic_metadata.h AVRational fraction_bright_pixels; AVRational 196 libavutil/hdr_dynamic_metadata.h AVRational knee_point_x; AVRational 203 libavutil/hdr_dynamic_metadata.h AVRational knee_point_y; AVRational 216 libavutil/hdr_dynamic_metadata.h AVRational bezier_curve_anchors[15]; AVRational 229 libavutil/hdr_dynamic_metadata.h AVRational color_saturation_weight; AVRational 271 libavutil/hdr_dynamic_metadata.h AVRational targeted_system_display_maximum_luminance; AVRational 297 libavutil/hdr_dynamic_metadata.h AVRational targeted_system_display_actual_peak_luminance[25][25]; AVRational 322 libavutil/hdr_dynamic_metadata.h AVRational mastering_display_actual_peak_luminance[25][25]; AVRational 287 libavutil/imgutils.c int av_image_check_sar(unsigned int w, unsigned int h, AVRational sar) AVRational 243 libavutil/imgutils.h int av_image_check_sar(unsigned int w, unsigned int h, AVRational sar); AVRational 42 libavutil/mastering_display_metadata.h AVRational display_primaries[3][2]; AVRational 47 libavutil/mastering_display_metadata.h AVRational white_point[2]; AVRational 52 libavutil/mastering_display_metadata.h AVRational min_luminance; AVRational 57 libavutil/mastering_display_metadata.h AVRational max_luminance; AVRational 134 libavutil/mathematics.c int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq, AVRational 142 libavutil/mathematics.c int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) AVRational 147 libavutil/mathematics.c int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b) AVRational 168 libavutil/mathematics.c int64_t av_rescale_delta(AVRational in_tb, int64_t in_ts, AVRational fs_tb, int duration, int64_t *last, AVRational out_tb){ AVRational 191 libavutil/mathematics.c int64_t av_add_stable(AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t inc) AVRational 196 libavutil/mathematics.c inc_tb = av_mul_q(inc_tb, (AVRational) {inc, 1}); AVRational 151 libavutil/mathematics.h int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; AVRational 160 libavutil/mathematics.h int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq, AVRational 175 libavutil/mathematics.h int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); AVRational 222 libavutil/mathematics.h int64_t av_rescale_delta(AVRational in_tb, int64_t in_ts, AVRational fs_tb, int duration, int64_t *last, AVRational out_tb); AVRational 235 libavutil/mathematics.h int64_t av_add_stable(AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t inc); AVRational 87 libavutil/opt.c *intnum = ((AVRational *)dst)->num; AVRational 88 libavutil/opt.c *den = ((AVRational *)dst)->den; AVRational 160 libavutil/opt.c *(AVRational *)dst = (AVRational) { num *intnum, den }; AVRational 162 libavutil/opt.c *(AVRational *)dst = av_d2q(num * intnum / den, 1 << 24); AVRational 334 libavutil/opt.c static int set_string_video_rate(void *obj, const AVOption *o, const char *val, AVRational *dst) AVRational 504 libavutil/opt.c AVRational tmp; AVRational 568 libavutil/opt.c OPT_EVAL_NUMBER(q, AV_OPT_TYPE_RATIONAL, AVRational) AVRational 596 libavutil/opt.c int av_opt_set_q(void *obj, const char *name, AVRational val, int search_flags) AVRational 653 libavutil/opt.c int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags) AVRational 820 libavutil/opt.c ret = snprintf(buf, sizeof(buf), "%d/%d", ((AVRational *)dst)->num, ((AVRational *)dst)->den); AVRational 936 libavutil/opt.c int av_opt_get_q(void *obj, const char *name, int search_flags, AVRational *out_val) AVRational 946 libavutil/opt.c *out_val = (AVRational){intnum, den}; AVRational 970 libavutil/opt.c int av_opt_get_video_rate(void *obj, const char *name, int search_flags, AVRational *out_val) AVRational 980 libavutil/opt.c *out_val = (AVRational) { intnum, den }; AVRational 1316 libavutil/opt.c AVRational q = av_d2q(opt->default_val.dbl, INT_MAX); AVRational 1397 libavutil/opt.c AVRational val; AVRational 1753 libavutil/opt.c return sizeof(AVRational); AVRational 1942 libavutil/opt.c AVRational q; AVRational 1983 libavutil/opt.c return !av_cmp_q(*(AVRational*)dst, q); AVRational 2027 libavutil/opt.c q = (AVRational){0, 0}; AVRational 2032 libavutil/opt.c return !av_cmp_q(*(AVRational*)dst, q); AVRational 270 libavutil/opt.h AVRational q; AVRational 553 libavutil/opt.h int av_opt_eval_q (void *obj, const AVOption *o, const char *val, AVRational *q_out); AVRational 689 libavutil/opt.h int av_opt_set_q (void *obj, const char *name, AVRational val, int search_flags); AVRational 694 libavutil/opt.h int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags); AVRational 745 libavutil/opt.h int av_opt_get_q (void *obj, const char *name, int search_flags, AVRational *out_val); AVRational 749 libavutil/opt.h int av_opt_get_video_rate(void *obj, const char *name, int search_flags, AVRational *out_val); AVRational 45 libavutil/parseutils.c int av_parse_ratio(AVRational *q, const char *str, int max, AVRational 73 libavutil/parseutils.c AVRational rate; AVRational 179 libavutil/parseutils.c int av_parse_video_rate(AVRational *rate, const char *arg) AVRational 49 libavutil/parseutils.h int av_parse_ratio(AVRational *q, const char *str, int max, AVRational 77 libavutil/parseutils.h int av_parse_video_rate(AVRational *rate, const char *str); AVRational 38 libavutil/rational.c AVRational a0 = { 0, 1 }, a1 = { 1, 0 }; AVRational 47 libavutil/rational.c a1 = (AVRational) { num, den }; AVRational 62 libavutil/rational.c a1 = (AVRational) { x * a1.num + a0.num, x * a1.den + a0.den }; AVRational 67 libavutil/rational.c a1 = (AVRational) { a2n, a2d }; AVRational 80 libavutil/rational.c AVRational av_mul_q(AVRational b, AVRational c) AVRational 88 libavutil/rational.c AVRational av_div_q(AVRational b, AVRational c) AVRational 90 libavutil/rational.c return av_mul_q(b, (AVRational) { c.den, c.num }); AVRational 93 libavutil/rational.c AVRational av_add_q(AVRational b, AVRational c) { AVRational 101 libavutil/rational.c AVRational av_sub_q(AVRational b, AVRational c) AVRational 103 libavutil/rational.c return av_add_q(b, (AVRational) { -c.num, c.den }); AVRational 106 libavutil/rational.c AVRational av_d2q(double d, int max) AVRational 108 libavutil/rational.c AVRational a; AVRational 112 libavutil/rational.c return (AVRational) { 0,0 }; AVRational 114 libavutil/rational.c return (AVRational) { d < 0 ? -1 : 1, 0 }; AVRational 127 libavutil/rational.c int av_nearer_q(AVRational q, AVRational q1, AVRational q2) AVRational 142 libavutil/rational.c int av_find_nearest_q_idx(AVRational q, const AVRational* q_list) AVRational 152 libavutil/rational.c uint32_t av_q2intfloat(AVRational q) { AVRational 186 libavutil/rational.c AVRational av_gcd_q(AVRational a, AVRational b, int max_den, AVRational def) AVRational 71 libavutil/rational.h static inline AVRational av_make_q(int num, int den) AVRational 73 libavutil/rational.h AVRational r = { num, den }; AVRational 89 libavutil/rational.h static inline int av_cmp_q(AVRational a, AVRational b){ AVRational 104 libavutil/rational.h static inline double av_q2d(AVRational a){ AVRational 128 libavutil/rational.h AVRational av_mul_q(AVRational b, AVRational c) av_const; AVRational 136 libavutil/rational.h AVRational av_div_q(AVRational b, AVRational c) av_const; AVRational 144 libavutil/rational.h AVRational av_add_q(AVRational b, AVRational c) av_const; AVRational 152 libavutil/rational.h AVRational av_sub_q(AVRational b, AVRational c) av_const; AVRational 159 libavutil/rational.h static av_always_inline AVRational av_inv_q(AVRational q) AVRational 161 libavutil/rational.h AVRational r = { q.den, q.num }; AVRational 176 libavutil/rational.h AVRational av_d2q(double d, int max) av_const; AVRational 188 libavutil/rational.h int av_nearer_q(AVRational q, AVRational q1, AVRational q2); AVRational 197 libavutil/rational.h int av_find_nearest_q_idx(AVRational q, const AVRational* q_list); AVRational 208 libavutil/rational.h uint32_t av_q2intfloat(AVRational q); AVRational 214 libavutil/rational.h AVRational av_gcd_q(AVRational a, AVRational b, int max_den, AVRational def); AVRational 37 libavutil/tests/opt.c AVRational rational; AVRational 38 libavutil/tests/opt.c AVRational video_rate; AVRational 69 libavutil/tests/parseutils.c AVRational q = { 0, 0 }; AVRational 27 libavutil/tests/rational.c AVRational a,b,r; AVRational 172 libavutil/timecode.c static int fps_from_frame_rate(AVRational rate) AVRational 179 libavutil/timecode.c int av_timecode_check_frame_rate(AVRational rate) AVRational 184 libavutil/timecode.c int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx) AVRational 194 libavutil/timecode.c int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx) AVRational 44 libavutil/timecode.h AVRational rate; ///< frame rate in rational form AVRational 119 libavutil/timecode.h int av_timecode_init(AVTimecode *tc, AVRational rate, int flags, int frame_start, void *log_ctx); AVRational 131 libavutil/timecode.h int av_timecode_init_from_string(AVTimecode *tc, AVRational rate, const char *str, void *log_ctx); AVRational 138 libavutil/timecode.h int av_timecode_check_frame_rate(AVRational rate); AVRational 65 libavutil/timestamp.h static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb) AVRational 144 libavutil/utils.c AVRational av_get_time_base_q(void) AVRational 146 libavutil/utils.c return (AVRational){1, AV_TIME_BASE}; AVRational 677 libpostproc/postprocess.c ppMode->maxClippedThreshold= (AVRational){1,100}; AVRational 102 libpostproc/postprocess_internal.h AVRational maxClippedThreshold; ///< amount of "black" you are willing to lose to get a brightness-corrected picture AVRational 3369 libpostproc/postprocess_template.c AVRational scale; AVRational 3394 libpostproc/postprocess_template.c scale = (AVRational){c.ppMode.maxAllowedY - c.ppMode.minAllowedY, white - black}; AVRational 84 tools/seek_print.c AVRational *tb = &avf->streams[packet.stream_index]->time_base;