Displaying 1 result from an estimated 1 matches for "rate_ratio_den".
2018 Aug 30
0
[PATCH] Apply equal bit allocation to ambisonic channels
...c
+++ b/src/opus_multistream_encoder.c
@@ -742,20 +742,9 @@ static void ambisonics_rate_allocation(
{
int i;
opus_int32 total_rate;
- opus_int32 directional_rate;
- opus_int32 nondirectional_rate;
- opus_int32 leftover_bits;
-
- /* Each nondirectional channel gets (rate_ratio_num / rate_ratio_den) times
- * as many bits as all other ambisonics channels.
- */
- const int rate_ratio_num = 4;
- const int rate_ratio_den = 3;
+ opus_int32 per_stream_rate;
+
const int nb_channels = st->layout.nb_streams + st->layout.nb_coupled_streams;
- /* The omnidirectional ambisonics a...