Home
last modified time | relevance | path

Searched refs:av_d2q (Results 1 – 20 of 20) sorted by relevance

/third_party/ffmpeg/libavutil/
Drational.h176 AVRational av_d2q(double d, int max) av_const;
Drational.c106 AVRational av_d2q(double d, int max) in av_d2q() function
Dopt.c162 *(AVRational *)dst = av_d2q(num * intnum / den, 1 << 24); in write_number()
948 *out_val = av_d2q(num*intnum/den, 1<<24); in av_opt_get_q()
982 *out_val = av_d2q(num * intnum / den, 1 << 24); in av_opt_get_video_rate()
1317 AVRational q = av_d2q(opt->default_val.dbl, INT_MAX); in opt_list()
1399 val = av_d2q(opt->default_val.dbl, INT_MAX); in av_opt_set_defaults2()
2003 q = av_d2q(o->default_val.dbl, INT_MAX); in av_opt_is_set_to_default()
Dparseutils.c58 *q = av_d2q(d, max); in av_parse_ratio()
/third_party/ffmpeg/libavformat/
Dmgsts.c57 fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX); in read_header()
Dnuv.c211 vst->sample_aspect_ratio = av_d2q(aspect * height / width, in nuv_header()
216 vst->avg_frame_rate = av_d2q(fps, 60000); in nuv_header()
Dmicrodvddec.c116 pts_info = av_d2q(fps, 100000); in microdvd_read_header()
Dthp.c77 thp->fps = av_d2q(av_int2float(avio_rb32(pb)), INT_MAX); in thp_read_header()
Dmatroskadec.c2197 metadata->display_primaries[0][0] = av_d2q(mastering_meta->r_x, INT_MAX); in mkv_parse_video_color()
2198 metadata->display_primaries[0][1] = av_d2q(mastering_meta->r_y, INT_MAX); in mkv_parse_video_color()
2199 metadata->display_primaries[1][0] = av_d2q(mastering_meta->g_x, INT_MAX); in mkv_parse_video_color()
2200 metadata->display_primaries[1][1] = av_d2q(mastering_meta->g_y, INT_MAX); in mkv_parse_video_color()
2201 metadata->display_primaries[2][0] = av_d2q(mastering_meta->b_x, INT_MAX); in mkv_parse_video_color()
2202 metadata->display_primaries[2][1] = av_d2q(mastering_meta->b_y, INT_MAX); in mkv_parse_video_color()
2203 metadata->white_point[0] = av_d2q(mastering_meta->white_x, INT_MAX); in mkv_parse_video_color()
2204 metadata->white_point[1] = av_d2q(mastering_meta->white_y, INT_MAX); in mkv_parse_video_color()
2208 metadata->max_luminance = av_d2q(mastering_meta->max_luminance, INT_MAX); in mkv_parse_video_color()
2209 metadata->min_luminance = av_d2q(mastering_meta->min_luminance.el.f, INT_MAX); in mkv_parse_video_color()
D4xm.c257 fourxm->fps = av_d2q(av_int2float(AV_RL32(&header[i + 12])), 10000); in fourxm_read_header()
Dmvdec.c91 v = av_d2q(av_strtod(s, NULL), INT_MAX); in var_read_float()
Dflvdec.c612 flv->framerate = av_d2q(num_val, 1000); in amf_parse_object()
Dmov.c4317 st->sample_aspect_ratio = av_d2q(((double)st->codecpar->height * sc->width) / in mov_read_trak()
4640 st->sample_aspect_ratio = av_d2q( in mov_read_tkhd()
/third_party/ffmpeg/libavfilter/
Dsettb.c92 time_base = av_d2q(res, INT_MAX); in config_output_props()
Dcolorspace.c206 metadata->max_luminance = av_d2q(peak * REFERENCE_WHITE, 10000); in ff_update_hdr_metadata()
Dvf_aspect.c111 *aspect_ratio = av_d2q(res, s->max); in get_aspect_ratio()
/third_party/ffmpeg/libavcodec/
Dlibdavs2.c81 avctx->framerate = av_d2q(headerset->frame_rate,4096); in davs2_dump_frames()
Ddpx.c263 AVRational q = av_d2q(av_int2float(i), 4096); in decode_frame()
275 AVRational q = av_d2q(av_int2float(i), 4096); in decode_frame()
Dexr.c2127 ff_set_sar(s->avctx, av_d2q(av_int2float(s->sar), 255)); in decode_frame()
Dmpeg12dec.c1212 AVRational aspect_inv = av_d2q(ff_mpeg1_aspect[s->aspect_ratio_info], 255); in mpeg_decode_postinit()