Home
last modified time | relevance | path

Searched refs:den (Results 1 – 25 of 49) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_prob.h54 static INLINE vp9_prob get_prob(int num, int den) { in get_prob() argument
55 return (den == 0) ? 128u : clip_prob(((int64_t)num * 256 + (den >> 1)) / den); in get_prob()
58 static INLINE vp9_prob get_prob(int num, int den) { in get_prob() argument
59 return (den == 0) ? 128u : clip_prob((num * 256 + (den >> 1)) / den); in get_prob()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Divfdec.c21 static void fix_framerate(int *num, int *den) { in fix_framerate() argument
29 *den *= 2; in fix_framerate()
36 *den = 1; in fix_framerate()
Divfenc.c31 mem_put_le32(header + 16, cfg->g_timebase.den); // rate in ivf_write_file_header()
Dvideo_writer.c29 cfg.g_timebase.den = info->time_base.denominator; in write_header()
Dargs.c179 int den; /**< fraction denominator */ member
201 rat.den = rawval; in arg_parse_rational()
Dvpxenc.c641 if (rat->den < 0) { in validate_positive_rational()
643 rat->den *= -1; in validate_positive_rational()
649 if (!rat->den) in validate_positive_rational()
832 stream->config.cfg.g_timebase.den = 1000; in new_stream()
1081 double framerate = (double)global->framerate.num / global->framerate.den; in set_default_kf_interval()
1112 SHOW(g_timebase.den); in show_stream_config()
1264 frame_start = (cfg->g_timebase.den * (int64_t)(frames_in - 1) in encode_frame()
1265 * global->framerate.den) in encode_frame()
1267 next_frame_start = (cfg->g_timebase.den * (int64_t)(frames_in) in encode_frame()
1268 * global->framerate.den) in encode_frame()
[all …]
Drate_hist.c45 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; in init_rate_histogram()
82 (uint64_t)cfg->g_timebase.den; in update_rate_histogram()
Dwebmenc.c144 frame_time = (uint64_t)1000 * ebml->framerate.den in write_webm_seek_info()
225 * (uint64_t)cfg->g_timebase.num / (uint64_t)cfg->g_timebase.den; in write_webm_block()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/src/
Dsvc_encodeframe.c349 int64_t num, den; in parse_scale_factors() local
360 num = den = 0; in parse_scale_factors()
373 den = strtol(token, &token, 10); in parse_scale_factors()
374 if (den <= 0) { in parse_scale_factors()
385 (int)den; in parse_scale_factors()
614 ((double)enc_cfg->g_timebase.den / enc_cfg->g_timebase.num) / 10.0); in vpx_svc_init()
739 int w, h, index, num, den; in vpx_svc_get_layer_resolution() local
749 den = si->scaling_factor_den[index]; in vpx_svc_get_layer_resolution()
750 if (num == 0 || den == 0) return VPX_CODEC_INVALID_PARAM; in vpx_svc_get_layer_resolution()
752 w = si->width * num / den; in vpx_svc_get_layer_resolution()
[all …]
Dvpx_encoder.c100 if (dsf->num < 1 || dsf->num > 4096 || dsf->den < 1 || in vpx_codec_enc_init_multi_ver()
101 dsf->den > dsf->num) { in vpx_codec_enc_init_multi_ver()
110 mr_cfg.mr_down_sampling_factor.den = dsf->den; in vpx_codec_enc_init_multi_ver()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
Derror_resilience_test.cc157 timebase.den, timebase.num, 0, 30); in TEST_P()
194 timebase.den, timebase.num, 0, 40); in TEST_P()
Daltref_test.cc61 timebase.den, timebase.num, 0, 30); in TEST_P()
Dsvc_test.cc57 codec_enc_.g_timebase.den = 60; in SetUp()
262 codec_enc_.g_timebase.den, in TEST_F()
289 codec_enc_.g_timebase.den, in TEST_F()
379 codec_enc_.g_timebase.den, in TEST_F()
428 codec_enc_.g_timebase.den, in TEST_F()
Dvp9_lossless_test.cc71 timebase.den, timebase.num, 0, 10); in TEST_P()
Dcq_test.cc88 timebase.den, timebase.num, 0, 30); in TEST_P()
Dtile_independence_test.cc93 timebase.den, timebase.num, 0, 30); in TEST_P()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
Dvp8_multi_resolution_encoder.c148 mem_put_le32(header+16, cfg->g_timebase.den); /* rate */ in write_ivf_file_header()
286 cfg[0].g_timebase.den = framerate; in main()
301 unsigned int iw = cfg[i-1].g_w*dsf[i-1].den + dsf[i-1].num - 1; in main()
302 unsigned int ih = cfg[i-1].g_h*dsf[i-1].den + dsf[i-1].num - 1; in main()
Dvp9_spatial_scalable_encoder.c149 enc_cfg->g_timebase.den = default_timebase_den; in parse_command_line()
279 enc_cfg->g_timebase.num, enc_cfg->g_timebase.den, in parse_command_line()
318 info.time_base.denominator = enc_cfg.g_timebase.den; in main()
Dvpx_temporal_scalable_patterns.c68 const double framerate = cfg->g_timebase.den / cfg->g_timebase.num; in set_rate_control_metrics()
503 cfg.g_timebase.den = strtol(argv[7], NULL, 0); in main()
558 info.time_base.denominator = cfg.g_timebase.den; in main()
590 * ((double) cfg.g_timebase.den / cfg.g_timebase.num) / 10.0); in main()
Dvp8cx_set_ref.c150 cfg.g_timebase.den = info.time_base.denominator; in main()
Dsimple_encoder.c219 cfg.g_timebase.den = info.time_base.denominator; in main()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/
Dvp8_cx_iface.c142 RANGE_CHECK(cfg, g_timebase.den, 1, 1000000000); in validate_config()
143 RANGE_CHECK(cfg, g_timebase.num, 1, cfg->g_timebase.den); in validate_config()
391 oxcf->mr_down_sampling_factor.den = mr_cfg->mr_down_sampling_factor.den; in set_vp8e_config()
717 / (uint64_t)ctx->cfg.g_timebase.den; in pick_quickcompress_mode()
846 dst_time_stamp = pts * 10000000 * ctx->cfg.g_timebase.num / ctx->cfg.g_timebase.den; in vp8e_encode()
847 …t_end_time_stamp = (pts + duration) * 10000000 * ctx->cfg.g_timebase.num / ctx->cfg.g_timebase.den; in vp8e_encode()
897 (dst_time_stamp * ctx->cfg.g_timebase.den + round) in vp8e_encode()
900 ((delta * ctx->cfg.g_timebase.den + round) in vp8e_encode()
917 * ctx->cfg.g_timebase.den + round) in vp8e_encode()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/
Dvp9_cx_iface.c147 RANGE_CHECK(cfg, g_timebase.den, 1, 1000000000); in validate_config()
148 RANGE_CHECK(cfg, g_timebase.num, 1, cfg->g_timebase.den); in validate_config()
287 oxcf->framerate = (double)cfg->g_timebase.den / cfg->g_timebase.num; in set_vp9e_config()
595 (uint64_t)ctx->cfg.g_timebase.den; in pick_quickcompress_mode()
740 / ctx->cfg.g_timebase.den; in vp9e_encode()
742 ctx->cfg.g_timebase.den; in vp9e_encode()
800 (dst_time_stamp * ctx->cfg.g_timebase.den + round) in vp9e_encode()
803 ((delta * ctx->cfg.g_timebase.den + round) in vp9e_encode()
818 * ctx->cfg.g_timebase.den + round) in vp9e_encode()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vpx/
Dvpx_encoder.h211 int den; /**< fraction denominator */ member
/hardware/ti/omap4xxx/camera/
DEncoder_libjpeg.cpp212 void ExifElementsTable::stringToRational(const char* str, unsigned int* num, unsigned int* den) { in stringToRational() argument
255 *den = denominator; in stringToRational()

12