Home | History | Annotate | Download | only in base

Lines Matching full:channels

20 // Default scale factor for mixing two channels together.  We use a different
64 // Special case for 5.0, 5.1 with back channels when upmixed to 7.0, 7.1,
77 // Create the transformation matrix of input channels to output channels.
79 // if the transformation is just a remapping of channels (no mixing).
83 // Result transformation of input channels to output channels
94 std::vector<Channels> unaccounted_inputs_;
96 // Helper methods for managing unaccounted input channels.
97 void AccountFor(Channels ch);
98 bool IsUnaccounted(Channels ch);
102 bool HasInputChannel(Channels ch);
103 bool HasOutputChannel(Channels ch);
108 void Mix(Channels input_ch, Channels output_ch, float scale);
109 void MixWithoutAccounting(Channels input_ch, Channels output_ch,
126 input.channels(),
128 output.channels());
161 // If the number of input channels is more than output channels, then
162 // copy as many as we can then drop the remaining input channels.
163 // If the number of input channels is less than output channels, then
164 // copy them all, then zero out the remaining output channels.
172 // Route matching channels and figure out which ones aren't accounted for.
173 for (Channels ch = LEFT; ch < CHANNELS_MAX;
174 ch = static_cast<Channels>(ch + 1)) {
191 // If all input channels are accounted for, there's nothing left to do.
193 // Since all output channels map directly to inputs we can optimize.
311 // All channels should now be accounted for.
334 CHECK_EQ(matrix_.size(), static_cast<size_t>(output->channels()));
335 CHECK_EQ(matrix_[0].size(), static_cast<size_t>(input->channels()));
343 for (int output_ch = 0; output_ch < output->channels(); ++output_ch) {
344 for (int input_ch = 0; input_ch < input->channels(); ++input_ch) {
357 for (int output_ch = 0; output_ch < output->channels(); ++output_ch) {
358 for (int input_ch = 0; input_ch < input->channels(); ++input_ch) {
370 void MatrixBuilder::AccountFor(Channels ch) {
375 bool MatrixBuilder::IsUnaccounted(Channels ch) {
380 bool MatrixBuilder::HasInputChannel(Channels ch) {
384 bool MatrixBuilder::HasOutputChannel(Channels ch) {
388 void MatrixBuilder::Mix(Channels input_ch, Channels output_ch, float scale) {
393 void MatrixBuilder::MixWithoutAccounting(Channels input_ch, Channels output_ch,