28 switch(rate_params.
rate)
38 count = round(data.size() * rate_params.
rel_rate);
39 std::vector<unsigned char> punc_buff_34(count);
41 for(
int x = 0; x < data.size(); x += 6)
43 punc_buff_34[index++] = data[x + 0];
44 punc_buff_34[index++] = data[x + 1];
45 punc_buff_34[index++] = data[x + 3];
46 punc_buff_34[index++] = data[x + 5];
55 count = round(data.size() * rate_params.
rel_rate);
56 std::vector<unsigned char> punc_buff_23(count);
58 for(
int x = 0; x < data.size(); x += 4)
60 punc_buff_23[index++] = data[x + 0];
61 punc_buff_23[index++] = data[x + 2];
62 punc_buff_23[index++] = data[x + 3];
80 int sym_buffer_index = 0;
82 switch(rate_params.
rate)
92 psc = round(data.size() / rate_params.
rel_rate);
93 std::vector<unsigned char> sym_buffer34(psc);
94 for(
int x = 0; x < data.size(); x += 4)
96 sym_buffer34[sym_buffer_index++] = data[x + 0];
97 sym_buffer34[sym_buffer_index++] = data[x + 1];
98 sym_buffer34[sym_buffer_index++] = 127;
99 sym_buffer34[sym_buffer_index++] = data[x + 2];
100 sym_buffer34[sym_buffer_index++] = 127;
101 sym_buffer34[sym_buffer_index++] = data[x + 3];
110 psc = round(data.size() / rate_params.
rel_rate);
111 std::vector<unsigned char> sym_buffer23(psc);
112 for(
int x = 0; x < data.size(); x += 3)
114 sym_buffer23[sym_buffer_index++] = data[x + 0];
115 sym_buffer23[sym_buffer_index++] = 127;
116 sym_buffer23[sym_buffer_index++] = data[x + 1];
117 sym_buffer23[sym_buffer_index++] = data[x + 2];