/third_party/ffmpeg/libavfilter/ |
H A D | scale_eval.c | 143 w = av_rescale(h, inlink->w, inlink->h * factor_w) * factor_w; in ff_scale_adjust_dimensions() 145 h = av_rescale(w, inlink->h, inlink->w * factor_h) * factor_h; in ff_scale_adjust_dimensions() 151 int tmp_w = av_rescale(h, inlink->w, inlink->h); in ff_scale_adjust_dimensions() 152 int tmp_h = av_rescale(w, inlink->h, inlink->w); in ff_scale_adjust_dimensions()
|
H A D | af_apad.c | 142 s->pad_len = av_rescale(s->pad_dur, outlink->sample_rate, AV_TIME_BASE); in config_output() 144 s->whole_len = av_rescale(s->whole_dur, outlink->sample_rate, AV_TIME_BASE); in config_output()
|
H A D | src_avsynctest.c | 139 s->beep_duration = av_rescale(s->sample_rate, s->frame_rate.den, s->frame_rate.num); in aconfig_props() 140 s->duration = av_rescale(s->duration, s->sample_rate, AV_TIME_BASE); in aconfig_props() 343 for (int i = av_rescale(s->delay_min.num, 1, s->delay_min.den); in video_frame() 344 i < av_rescale(s->delay_max.num, 1, s->delay_max.den); i++) { in video_frame()
|
H A D | vf_idet.c | 68 value = av_rescale(value, print_precision, PRECISION); in av_dict_set_fxp() 196 idet->repeats[i] = av_rescale(idet->repeats [i], idet->decay_coefficient, PRECISION); in filter() 199 idet->prestat [i] = av_rescale(idet->prestat [i], idet->decay_coefficient, PRECISION); in filter() 200 idet->poststat[i] = av_rescale(idet->poststat[i], idet->decay_coefficient, PRECISION); in filter()
|
H A D | vf_pad_opencl.c | 291 if (ctx->h < av_rescale(ctx->w, adjusted_aspect.den, adjusted_aspect.num)) { in pad_opencl_config_output() 292 ctx->h = var_values[VAR_OUT_H] = var_values[VAR_OH] = av_rescale(ctx->w, adjusted_aspect.den, adjusted_aspect.num); in pad_opencl_config_output() 294 ctx->w = var_values[VAR_OUT_W] = var_values[VAR_OW] = av_rescale(ctx->h, adjusted_aspect.num, adjusted_aspect.den); in pad_opencl_config_output()
|
H A D | vf_pad.c | 152 if (s->h < av_rescale(s->w, adjusted_aspect.den, adjusted_aspect.num)) { in config_input() 153 s->h = var_values[VAR_OUT_H] = var_values[VAR_OH] = av_rescale(s->w, adjusted_aspect.den, adjusted_aspect.num); in config_input() 155 s->w = var_values[VAR_OUT_W] = var_values[VAR_OW] = av_rescale(s->h, adjusted_aspect.num, adjusted_aspect.den); in config_input()
|
H A D | asrc_anullsrc.c | 101 null->duration = av_rescale(null->duration, null->sample_rate, AV_TIME_BASE); in config_props()
|
H A D | af_asetrate.c | 86 frame->pts = av_rescale(frame->pts, inlink->sample_rate, in filter_frame()
|
H A D | af_silenceremove.c | 438 s->window_duration = av_rescale(s->window_duration_opt, inlink->sample_rate, in config_input() 447 s->start_duration = av_rescale(s->start_duration_opt, inlink->sample_rate, in config_input() 449 s->start_silence = av_rescale(s->start_silence_opt, inlink->sample_rate, in config_input() 451 s->stop_duration = av_rescale(s->stop_duration_opt, inlink->sample_rate, in config_input() 453 s->stop_silence = av_rescale(s->stop_silence_opt, inlink->sample_rate, in config_input()
|
/third_party/ffmpeg/libavformat/ |
H A D | mp3dec.c | 148 av_rescale(b, filesize, 256), in read_xing_toc() 149 av_rescale(i, duration, XING_TOC_COUNT), in read_xing_toc() 222 peak = av_rescale(v, 100000, 1 << 23); in mp3_parse_info_tag() 356 st->codecpar->bit_rate = av_rescale(mp3->header_filesize, 8 * c.sample_rate, mp3->frames * (int64_t)spf); in mp3_parse_vbr_tags() 585 ie->pos = av_rescale(timestamp, filesize, st->duration) + si->data_offset; in mp3_seek() 595 int frame_duration = av_rescale(st->duration, 1, mp3->frames); in mp3_seek() 596 ie1.timestamp = frame_duration * av_rescale(best_pos - si->data_offset, mp3->frames, mp3->header_filesize); in mp3_seek()
|
H A D | rtp.h | 115 #define NTP_TO_RTP_FORMAT(x) av_rescale((x), INT64_C(1) << 32, 1000000)
|
H A D | mca.c | 93 av_rescale(loop_start, AV_TIME_BASE, in read_header() 97 av_rescale(loop_end, AV_TIME_BASE, in read_header()
|
H A D | mpegtsenc.c | 969 return av_rescale(ts->total_size + 11, 8 * PCR_TIME_BASE, ts->mux_rate) + in get_pcr() 1045 ts_st->pcr_period = av_rescale(pcr_period_ms, PCR_TIME_BASE, 1000); in enable_pcr_generation_for_stream() 1093 service->sid, service->pcr_pid, av_rescale(ts_st->pcr_period, 1000, PCR_TIME_BASE)); in select_pcr_streams() 1278 ts->first_pcr = av_rescale(s->max_delay, PCR_TIME_BASE, AV_TIME_BASE); in mpegts_init() 1285 ts->pat_period = av_rescale(ts->pat_period_us, PCR_TIME_BASE, AV_TIME_BASE); in mpegts_init() 1286 ts->sdt_period = av_rescale(ts->sdt_period_us, PCR_TIME_BASE, AV_TIME_BASE); in mpegts_init() 1287 ts->nit_period = av_rescale(ts->nit_period_us, PCR_TIME_BASE, AV_TIME_BASE); in mpegts_init() 1303 av_rescale(ts->sdt_period, 1000, PCR_TIME_BASE), in mpegts_init() 1304 av_rescale(ts->pat_period, 1000, PCR_TIME_BASE)); in mpegts_init() 1306 av_log(s, AV_LOG_VERBOSE, ", nit every %"PRId64" ms", av_rescale(t in mpegts_init() [all...] |
H A D | amvenc.c | 127 amv->us_per_frame = av_rescale(AV_TIME_BASE, vst->time_base.num, vst->time_base.den); in amv_init() 128 amv->aframe_size = av_rescale(ast->codecpar->sample_rate, amv->us_per_frame, AV_TIME_BASE); in amv_init() 178 int32_t aus = av_rescale(AV_TIME_BASE, ast->time_base.num, ast->time_base.den); in amv_init()
|
H A D | pcm.c | 82 ffstream(st)->cur_dts = av_rescale(pos, st->time_base.den, byte_rate * (int64_t)st->time_base.num); in ff_pcm_read_seek()
|
H A D | vorbiscomment.c | 98 s = av_rescale(chp->start, chp->time_base.num, chp->time_base.den); in ff_vorbiscomment_write()
|
/third_party/ffmpeg/libavcodec/ |
H A D | ttmlenc.c | 201 *origin_left = av_rescale(style.margin_l, 100, script_info.play_res_x); in ttml_get_origin() 203 av_rescale((style.alignment >= 7) ? style.margin_v : 0, in ttml_get_origin() 210 *width = av_rescale(script_info.play_res_x - style.margin_r, in ttml_get_extent() 212 *height = av_rescale((style.alignment <= 3) ? in ttml_get_extent()
|
H A D | libaribb24.c | 254 av_rescale(region->i_fontwidth, 100, in libaribb24_handle_regions() 256 av_rescale(region->i_fontheight, 100, in libaribb24_handle_regions()
|
H A D | h264_parser.c | 648 p->reference_dts = av_sat_sub64(s->dts, av_rescale(s->dts_ref_dts_delta, num, den)); in h264_parse() 651 s->dts = av_sat_add64(p->reference_dts, av_rescale(s->dts_ref_dts_delta, num, den)); in h264_parse() 655 s->pts = s->dts + av_rescale(s->pts_dts_delta, num, den); in h264_parse()
|
/third_party/ffmpeg/libavdevice/ |
H A D | sdl2.c | 115 texture_rect->h = av_rescale(texture_rect->w, dar.den, dar.num); in compute_texture_rect() 119 texture_rect->w = av_rescale(texture_rect->h, dar.num, dar.den); in compute_texture_rect() 124 texture_rect->h = av_rescale(texture_rect->w, dar.den, dar.num); in compute_texture_rect() 127 texture_rect->w = av_rescale(texture_rect->h, dar.num, dar.den); in compute_texture_rect()
|
H A D | xv.c | 143 xv->window_width = av_rescale(xv->window_width, sar.num, sar.den); in xv_write_header() 145 xv->window_height = av_rescale(xv->window_height, sar.den, sar.num); in xv_write_header() 243 xv->dest_h = av_rescale(xv->dest_w, dar.den, dar.num); in compute_display_area() 250 xv->dest_w = av_rescale(xv->dest_h, dar.num, dar.den); in compute_display_area()
|
H A D | libdc1394.c | 123 dc1394->frame_rate = av_rescale(1000, framerate.num, framerate.den); in dc1394_read_common() 159 vst->codecpar->bit_rate = av_rescale(dc1394->size * 8, in dc1394_read_common()
|
H A D | alsa_dec.c | 134 dts -= av_rescale(delay + res, 1000000, s->sample_rate); in audio_read_packet()
|
/third_party/ffmpeg/libavutil/ |
H A D | rational.c | 171 if (shift >= 0) n = av_rescale(q.num, 1LL<<shift, q.den); in av_q2intfloat() 172 else n = av_rescale(q.num, 1, ((int64_t)q.den) << -shift); in av_q2intfloat() 177 if (shift >= 0) n = av_rescale(q.num, 1LL<<shift, q.den); in av_q2intfloat() 178 else n = av_rescale(q.num, 1, ((int64_t)q.den) << -shift); in av_q2intfloat()
|
H A D | mathematics.h | 130 int64_t av_rescale(int64_t a, int64_t b, int64_t c) av_const; 139 * @see av_rescale(), av_rescale_q(), av_rescale_q_rnd() 150 * @see av_rescale(), av_rescale_rnd(), av_rescale_q_rnd() 159 * @see av_rescale(), av_rescale_rnd(), av_rescale_q()
|