Home
last modified time | relevance | path

Searched refs:alloc_ratio (Results 1 – 2 of 2) sorted by relevance

/external/libvpx/libvpx/test/
Dsvc_test.cc93 float alloc_ratio[VPX_MAX_LAYERS] = { 0 }; in AssignLayerBitrates() local
97 alloc_ratio[sl] = in AssignLayerBitrates()
100 total += alloc_ratio[sl]; in AssignLayerBitrates()
105 static_cast<unsigned int>(cfg_.rc_target_bitrate * alloc_ratio[sl] / in AssignLayerBitrates()
/external/libvpx/libvpx/examples/
Dsvc_encodeframe.c309 float alloc_ratio[VPX_MAX_LAYERS] = { 0 }; in assign_layer_bitrates() local
313 alloc_ratio[sl] = (float)(pow(2, sl)); in assign_layer_bitrates()
314 total += alloc_ratio[sl]; in assign_layer_bitrates()
320 (unsigned int)(enc_cfg->rc_target_bitrate * alloc_ratio[sl] / in assign_layer_bitrates()
353 float alloc_ratio[VPX_MAX_LAYERS] = { 0 }; in assign_layer_bitrates() local
357 alloc_ratio[i] = (float)(si->svc_params.scaling_factor_num[i] * 1.0 / in assign_layer_bitrates()
360 alloc_ratio[i] *= alloc_ratio[i]; in assign_layer_bitrates()
361 total += alloc_ratio[i]; in assign_layer_bitrates()
367 (unsigned int)(enc_cfg->rc_target_bitrate * alloc_ratio[i] / in assign_layer_bitrates()