Home
last modified time | relevance | path

Searched refs:av_reduce (Results 1 – 25 of 72) sorted by relevance

123

/third_party/ffmpeg/libavutil/
Drational.c35 int av_reduce(int *dst_num, int *dst_den, in av_reduce() function
82 av_reduce(&b.num, &b.den, in av_mul_q()
94 av_reduce(&b.num, &b.den, in av_add_q()
120 av_reduce(&a.num, &a.den, floor(d * den + 0.5), den, max); in av_d2q()
122 av_reduce(&a.num, &a.den, floor(d * den + 0.5), den, INT_MAX); in av_d2q()
Drational.h120 int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max);
Dparseutils.c60 av_reduce(&q->num, &q->den, q->num, q->den, max); in av_parse_ratio()
/third_party/ffmpeg/libavfilter/
Dvf_aspect.c81 av_reduce(&dar->num, &dar->den, sar.num * (int64_t)w, sar.den * (int64_t)h, INT_MAX); in compute_dar()
83 av_reduce(&dar->num, &dar->den, w, h, INT_MAX); in compute_dar()
142 av_reduce(&s->sar.num, &s->sar.den, in setdar_config_props()
/third_party/ffmpeg/libavcodec/
Dcanopus.c43 av_reduce(&avctx->sample_aspect_ratio.num, in ff_canopus_parse_info_tag()
Dh265_metadata_bsf.c166 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den, in h265_metadata_update_vps()
206 av_reduce(&num, &den, ctx->sample_aspect_ratio.num, in h265_metadata_update_sps()
280 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den, in h265_metadata_update_sps()
Dpcxenc.c156 av_reduce(&sw, &sh, sw, sh, 0xFFFFu); in pcx_encode_frame()
Dmpeg2_metadata_bsf.c88 av_reduce(&num, &den, ctx->display_aspect_ratio.num, in mpeg2_metadata_update_fragment()
Dav1_metadata_bsf.c90 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den, in av1_metadata_update_sequence_header()
Dh264_metadata_bsf.c155 av_reduce(&num, &den, ctx->sample_aspect_ratio.num, in h264_metadata_update_sps()
221 av_reduce(&num, &den, ctx->tick_rate.num, ctx->tick_rate.den, in h264_metadata_update_sps()
Dlibaomdec.c201 av_reduce(&picture->sample_aspect_ratio.num, in aom_decode()
Dlibdav1d.c288 av_reduce(&frame->sample_aspect_ratio.num, in libdav1d_receive_frame()
322 av_reduce(&c->framerate.den, &c->framerate.num, in libdav1d_receive_frame()
Dhevc_parser.c110 av_reduce(&avctx->framerate.den, &avctx->framerate.num, in hevc_parse_slice_header()
Dmjpegenc_common.c146 …if (!av_reduce(&sar.num, &sar.den, avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den,… in jpeg_put_comments()
/third_party/ffmpeg/libavformat/
Doggparseskeleton.c68 av_reduce(&start_time, &base_den, start_num, start_den, INT_MAX); in skeleton_header()
Dapngenc.c95 av_reduce(&apng->last_delay.num, &apng->last_delay.den, in apng_write_header()
194 … if (!av_reduce(&delay.num, &delay.den, delay_num_raw, delay_den_raw, USHRT_MAX) && in flush_packet()
Dtmv.c130 av_reduce(&fps.num, &fps.den, fps.num, fps.den, 0xFFFFFFFFLL); in tmv_read_header()
Dmccdec.c130 av_reduce(&num, &den, num * 1000LL, 1001, INT_MAX); in mcc_read_header()
Dyuv4mpegenc.c44 av_reduce(&raten, &rated, st->time_base.den, in yuv4_write_header()
Ddxa.c134 av_reduce(&den, &num, den, num, (1UL<<31)-1); in dxa_read_header()
Dyuv4mpegdec.c267 av_reduce(&raten, &rated, raten, rated, (1UL << 31) - 1); in yuv4_read_header()
Dsierravmd.c172 av_reduce(&num, &den, num, den, (1UL<<31)-1); in vmd_read_header()
Drpl.c111 av_reduce(&result.num, &result.den, num, den, 0x7FFFFFFF); in read_fps()
Dsmacker.c141 av_reduce(&tbase, &pts_inc, tbase, pts_inc, (1UL << 31) - 1); in smacker_read_header()
/third_party/ffmpeg/libswresample/
Dresample.c303 av_reduce(&phase_count_exact, &phase_count_exact_den, out_rate, in_rate, INT_MAX); in resample_init()
361 … if(!av_reduce(&c->src_incr, &c->dst_incr, out_rate, in_rate * (int64_t)phase_count, INT32_MAX/2)) in resample_init()
408 if (!av_reduce(&new_src_incr, &new_dst_incr, c->src_incr, in rebuild_filter_bank_with_compensation()

123