tb 1261 ffmpeg.c AVRational tb = enc->time_base; tb 1262 ffmpeg.c int extra_bits = av_clip(29 - av_log2(tb.den), 0, 16); tb 1264 ffmpeg.c tb.den <<= extra_bits; tb 1266 ffmpeg.c av_rescale_q(filtered_frame->pts, filter->inputs[0]->time_base, tb) - tb 1267 ffmpeg.c av_rescale_q(start_time, AV_TIME_BASE_Q, tb); tb 633 ffmpeg_filter.c AVRational tb = ist->framerate.num ? av_inv_q(ist->framerate) : tb 667 ffmpeg_filter.c tb.num, tb.den, sar.num, sar.den, tb 585 ffplay.c AVRational tb = (AVRational){1, frame->sample_rate}; tb 587 ffplay.c frame->pts = av_rescale_q(frame->pts, d->avctx->time_base, tb); tb 589 ffplay.c frame->pts = av_rescale_q(frame->pkt_pts, av_codec_get_pkt_timebase(d->avctx), tb); tb 591 ffplay.c frame->pts = av_rescale_q(d->next_pts, d->next_pts_tb, tb); tb 594 ffplay.c d->next_pts_tb = tb; tb 2134 ffplay.c AVRational tb; tb 2145 ffplay.c tb = (AVRational){1, frame->sample_rate}; tb 2180 ffplay.c tb = is->out_audio_filter->inputs[0]->time_base; tb 2185 ffplay.c af->pts = (frame->pts == AV_NOPTS_VALUE) ? NAN : frame->pts * av_q2d(tb); tb 2223 ffplay.c AVRational tb = is->video_st->time_base; tb 2295 ffplay.c tb = filt_out->inputs[0]->time_base; tb 2298 ffplay.c pts = (frame->pts == AV_NOPTS_VALUE) ? NAN : frame->pts * av_q2d(tb); tb 1659 ffprobe.c #define print_time(k, v, tb) writer_print_time(w, k, v, tb, 0) tb 1661 ffprobe.c #define print_duration_time(k, v, tb) writer_print_time(w, k, v, tb, 1) tb 1965 ffprobe.c AVRational tb = fmt_ctx->streams[pkt.stream_index]->time_base; tb 1968 ffprobe.c *cur_ts = av_rescale_q(pkt.pts, tb, AV_TIME_BASE_Q); tb 1417 libavcodec/adpcm.c GetByteContext tb; tb 1423 libavcodec/adpcm.c bytestream2_init(&tb, avctx->extradata, avctx->extradata_size); tb 1426 libavcodec/adpcm.c table[i][n] = sign_extend(bytestream2_get_be16u(&tb), 16); tb 44 libavcodec/h264_direct.c int tb = av_clip_int8(poc - poc0); tb 46 libavcodec/h264_direct.c return av_clip_intp2((tb * tx + 32) >> 6, 10); tb 924 libavcodec/h264_slice.c int tb = av_clip_int8(cur_poc - poc0); tb 926 libavcodec/h264_slice.c int dist_scale_factor = (tb * tx + 32) >> 8; tb 114 libavcodec/hevc_mvs.c static av_always_inline void mv_scale(Mv *dst, Mv *src, int td, int tb) tb 119 libavcodec/hevc_mvs.c tb = av_clip_int8(tb); tb 121 libavcodec/hevc_mvs.c scale_factor = av_clip_intp2((tb * tx + 32) >> 6, 12); tb 131 libavcodec/imc.c double freq, bark, prev_bark = 0, tf, tb; tb 139 libavcodec/imc.c tb = bark - prev_bark; tb 140 libavcodec/imc.c q->weights1[i - 1] = pow(10.0, -1.0 * tb); tb 141 libavcodec/imc.c q->weights2[i - 1] = pow(10.0, -2.7 * tb); tb 150 libavcodec/imc.c tb = freq2bark(tf); tb 151 libavcodec/imc.c if (tb > bark + 0.5) tb 159 libavcodec/imc.c tb = freq2bark(tf); tb 160 libavcodec/imc.c if (tb <= bark - 0.5) tb 79 libavcodec/rpza.c uint16_t ta, tb; tb 167 libavcodec/rpza.c tb = (colorB >> 10) & 0x1F; tb 168 libavcodec/rpza.c color4[1] |= ((11 * ta + 21 * tb) >> 5) << 10; tb 169 libavcodec/rpza.c color4[2] |= ((21 * ta + 11 * tb) >> 5) << 10; tb 173 libavcodec/rpza.c tb = (colorB >> 5) & 0x1F; tb 174 libavcodec/rpza.c color4[1] |= ((11 * ta + 21 * tb) >> 5) << 5; tb 175 libavcodec/rpza.c color4[2] |= ((21 * ta + 11 * tb) >> 5) << 5; tb 179 libavcodec/rpza.c tb = colorB & 0x1F; tb 180 libavcodec/rpza.c color4[1] |= ((11 * ta + 21 * tb) >> 5); tb 181 libavcodec/rpza.c color4[2] |= ((21 * ta + 11 * tb) >> 5); tb 1009 libavcodec/snowenc.c BlockNode *tb = mb_y ? &s->block[index-b_stride ] : NULL; tb 1104 libavcodec/snowenc.c if(tb) tb 1147 libavcodec/snowenc.c if(tb ) tb ->type &= ~BLOCK_OPT; tb 1015 libavcodec/wmaprodec.c const int8_t* tb = s->chgroup[i].transform_band; tb 1022 libavcodec/wmaprodec.c if (*tb++ == 1) { tb 399 libavdevice/lavfi.c AVRational tb = lavfi->sinks[i]->inputs[0]->time_base; tb 414 libavdevice/lavfi.c d = av_rescale_q(frame->pts, tb, AV_TIME_BASE_Q); tb 456 libavdevice/v4l2.c AVRational tb = {AV_TIME_BASE, 1}; tb 457 libavdevice/v4l2.c int64_t period = av_rescale_q(1, tb, ctx->streams[0]->avg_frame_rate); tb 396 libavfilter/aeval.c #define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)*av_q2d(tb)) tb 335 libavfilter/af_volume.c #define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)*av_q2d(tb)) tb 142 libavfilter/setpts.c #define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)*av_q2d(tb)) tb 91 libavfilter/trim.c AVRational tb = (inlink->type == AVMEDIA_TYPE_VIDEO) ? tb 102 libavfilter/trim.c int64_t start_pts = av_rescale_q(s->start_time, AV_TIME_BASE_Q, tb); tb 107 libavfilter/trim.c int64_t end_pts = av_rescale_q(s->end_time, AV_TIME_BASE_Q, tb); tb 112 libavfilter/trim.c s->duration_tb = av_rescale_q(s->duration, AV_TIME_BASE_Q, tb); tb 298 libavfilter/vf_hue.c #define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts) * av_q2d(tb)) tb 369 libavfilter/vf_rotate.c #define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts)*av_q2d(tb)) tb 293 libavfilter/vf_stereo3d.c AVRational tb = inlink->time_base; tb 366 libavfilter/vf_stereo3d.c tb.num *= 2; tb 449 libavfilter/vf_stereo3d.c tb.den *= 2; tb 459 libavfilter/vf_stereo3d.c outlink->time_base = tb; tb 46 libavfilter/vf_thumbnail.c AVRational tb; ///< copy of the input timebase to ease access tb 125 libavfilter/vf_thumbnail.c picref->pts * av_q2d(thumb->tb), nb_frames); tb 196 libavfilter/vf_thumbnail.c thumb->tb = inlink->time_base; tb 151 libavfilter/vf_vignette.c #define TS2T(ts, tb) ((ts) == AV_NOPTS_VALUE ? NAN : (double)(ts) * av_q2d(tb)) tb 60 libavformat/ffmetadec.c AVRational tb = {1, 1e9}; tb 64 libavformat/ffmetadec.c if (sscanf(line, "TIMEBASE=%d/%d", &tb.num, &tb.den)) tb 78 libavformat/ffmetadec.c return avpriv_new_chapter(s, s->nb_chapters, tb, start, end, NULL); tb 1535 libavformat/hls.c AVRational tb; tb 1566 libavformat/hls.c tb = get_timebase(pls); tb 1568 libavformat/hls.c tb.den, AV_ROUND_DOWN) - tb 29 libavformat/microdvdenc.c AVRational tb = avctx->time_base; tb 42 libavformat/microdvdenc.c avpriv_set_pts_info(s->streams[0], 64, tb.num, tb.den); tb 456 libavformat/tee.c AVRational tb, tb2; tb 471 libavformat/tee.c tb = avf ->streams[s ]->time_base; tb 473 libavformat/tee.c pkt2.pts = av_rescale_q(pkt->pts, tb, tb2); tb 474 libavformat/tee.c pkt2.dts = av_rescale_q(pkt->dts, tb, tb2); tb 475 libavformat/tee.c pkt2.duration = av_rescale_q(pkt->duration, tb, tb2); tb 65 libavutil/timestamp.h static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb) tb 68 libavutil/timestamp.h else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts); tb 76 libavutil/timestamp.h #define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb) tb 85 tools/seek_print.c AVRational *tb = &avf->streams[packet.stream_index]->time_base; tb 88 tools/seek_print.c av_ts2str(packet.dts), av_ts2timestr(packet.dts, tb), tb 89 tools/seek_print.c av_ts2str(packet.pts), av_ts2timestr(packet.pts, tb));