Home
last modified time | relevance | path

Searched refs:av_rescale (Results 1 - 25 of 97) sorted by relevance

1234

/third_party/ffmpeg/libavfilter/
H A Dscale_eval.c143 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 Daf_apad.c142 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 Dsrc_avsynctest.c139 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 Dvf_idet.c68 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 Dvf_pad_opencl.c291 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 Dvf_pad.c152 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 Dasrc_anullsrc.c101 null->duration = av_rescale(null->duration, null->sample_rate, AV_TIME_BASE); in config_props()
H A Daf_asetrate.c86 frame->pts = av_rescale(frame->pts, inlink->sample_rate, in filter_frame()
H A Daf_silenceremove.c438 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 Dmp3dec.c148 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 Drtp.h115 #define NTP_TO_RTP_FORMAT(x) av_rescale((x), INT64_C(1) << 32, 1000000)
H A Dmca.c93 av_rescale(loop_start, AV_TIME_BASE, in read_header()
97 av_rescale(loop_end, AV_TIME_BASE, in read_header()
H A Dmpegtsenc.c969 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 Damvenc.c127 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 Dpcm.c82 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 Dvorbiscomment.c98 s = av_rescale(chp->start, chp->time_base.num, chp->time_base.den); in ff_vorbiscomment_write()
/third_party/ffmpeg/libavcodec/
H A Dttmlenc.c201 *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 Dlibaribb24.c254 av_rescale(region->i_fontwidth, 100, in libaribb24_handle_regions()
256 av_rescale(region->i_fontheight, 100, in libaribb24_handle_regions()
H A Dh264_parser.c648 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 Dsdl2.c115 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 Dxv.c143 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 Dlibdc1394.c123 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 Dalsa_dec.c134 dts -= av_rescale(delay + res, 1000000, s->sample_rate); in audio_read_packet()
/third_party/ffmpeg/libavutil/
H A Drational.c171 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 Dmathematics.h130 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()

Completed in 17 milliseconds

1234