Commit 8241ad06 authored by Ken MacKay's avatar Ken MacKay Committed by Commit Bot

[Chromecast] Reduce CPU cost of conversion to interleaved

Avoid clamping the sample range for each filter group. We still clamp in
StreamMixer::WriteMixedPcm() before sending to output.

Bug: internal b/142504553
Change-Id: I5a7376c229e9146ea25ebed40f8da1a46cc40c96
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856462Reviewed-by: default avatarAlex Sakhartchouk <alexst@chromium.org>
Reviewed-by: default avatarYuchen Liu <yucliu@chromium.org>
Commit-Queue: Kenneth MacKay <kmackay@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705360}
parent 7d747bc7
...@@ -144,7 +144,7 @@ float FilterGroup::MixAndFilter( ...@@ -144,7 +144,7 @@ float FilterGroup::MixAndFilter(
} }
} }
mixed_->ToInterleaved<::media::FloatSampleTypeTraits<float>>( mixed_->ToInterleaved<::media::FloatSampleTypeTraitsNoClip<float>>(
input_frames_per_write_, interleaved_.data()); input_frames_per_write_, interleaved_.data());
// Mix FilterGroups // Mix FilterGroups
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment