[Chromecast] Correct libcast_governor behavior.
libcast_governor was using FMAC instead of FMUL
(out = in + in * multiplier instead of out = in * multiplier),
resulting in ~doubling the output volume.
Also added unit tests for Governor and SlewVolume.
BUG=internal/37788000
TEST=libcast_governor_unittests
Change-Id: Ifd5c914bf035bfd8101b2c5827d68164683adc78
Review-Url: https://codereview.chromium.org/2860673003
Cr-Commit-Position: refs/heads/master@{#469886}
Committed: https://chromium.googlesource.com/chromium/src/+/6ccec431840b7d8ed164cf13567a052bda3940b8
Description was changed from ========== [Chromecast] Correct libcast_governor behavior. libcast_governor was using FMAC instead of ...
3 years, 7 months ago
(2017-05-04 02:57:07 UTC)
#6
Description was changed from
==========
[Chromecast] Correct libcast_governor behavior.
libcast_governor was using FMAC instead of FMUL
(out = in + in * multiplier instead of out = in * multiplier),
resulting in ~doubling the output volume.
Also added a unittest for libcast_governor.
BUG=internal/37788000
TEST=libcast_governor_unittests
Change-Id: Ifd5c914bf035bfd8101b2c5827d68164683adc78
==========
to
==========
[Chromecast] Correct libcast_governor behavior.
libcast_governor was using FMAC instead of FMUL
(out = in + in * multiplier instead of out = in * multiplier),
resulting in ~doubling the output volume.
Also added unit tests for Governor and SlewVolume.
BUG=internal/37788000
TEST=libcast_governor_unittests
Change-Id: Ifd5c914bf035bfd8101b2c5827d68164683adc78
==========
3 years, 7 months ago
(2017-05-04 03:01:18 UTC)
#7
https://codereview.chromium.org/2860673003/diff/20001/chromecast/media/cma/ba...
File chromecast/media/cma/backend/alsa/post_processors/governor_unittest.cc
(right):
https://codereview.chromium.org/2860673003/diff/20001/chromecast/media/cma/ba...
chromecast/media/cma/backend/alsa/post_processors/governor_unittest.cc:26: const
double kPi = 3.1415;
On 2017/05/03 18:07:09, bcf wrote:
> On 2017/05/03 16:51:55, bshaya wrote:
> > On 2017/05/03 06:14:07, bcf wrote:
> > > Use M_PI from <cmath>
> >
> > Done.
>
> Need to include <cmath>
Done.
https://codereview.chromium.org/2860673003/diff/20001/chromecast/media/cma/ba...
File chromecast/media/cma/backend/alsa/slew_volume.cc (right):
https://codereview.chromium.org/2860673003/diff/20001/chromecast/media/cma/ba...
chromecast/media/cma/backend/alsa/slew_volume.cc:113: while (frames &&
((original_frames - frames) % 4) != 0) {
On 2017/05/03 18:07:09, bcf wrote:
> On 2017/05/03 16:51:56, bshaya wrote:
> > On 2017/05/03 06:14:07, bcf wrote:
> > > I think this would be more explict as:
> > >
> > > while (frames && (static_cast<uintptr_t>(src) %
> > > media::vector_math::kRequiredAlignment) != 0) {
> >
> > Done.
>
> This LGTM, but FYI the compiler will realize kRequiredAlignment is a power of
> two and perform an optimization like this automatically.
That's fine. This is the same code that vector_math.cc uses to DCHECK, so it
makes sense to be consistent.
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/286801)
3 years, 7 months ago
(2017-05-05 20:04:38 UTC)
#20
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/286926)
3 years, 7 months ago
(2017-05-05 23:31:42 UTC)
#25
CQ is committing da patch. Bot data: {"patchset_id": 180001, "attempt_start_ts": 1494027960944870, "parent_rev": "6dc6477fbfd23d601d72dc1ad941699c65a47353", "commit_rev": "6ccec431840b7d8ed164cf13567a052bda3940b8"}
3 years, 7 months ago
(2017-05-06 19:24:18 UTC)
#28
CQ is committing da patch.
Bot data: {"patchset_id": 180001, "attempt_start_ts": 1494027960944870,
"parent_rev": "6dc6477fbfd23d601d72dc1ad941699c65a47353", "commit_rev":
"6ccec431840b7d8ed164cf13567a052bda3940b8"}
commit-bot: I haz the power
Description was changed from ========== [Chromecast] Correct libcast_governor behavior. libcast_governor was using FMAC instead of ...
3 years, 7 months ago
(2017-05-06 19:24:30 UTC)
#29
Message was sent while issue was closed.
Description was changed from
==========
[Chromecast] Correct libcast_governor behavior.
libcast_governor was using FMAC instead of FMUL
(out = in + in * multiplier instead of out = in * multiplier),
resulting in ~doubling the output volume.
Also added unit tests for Governor and SlewVolume.
BUG=internal/37788000
TEST=libcast_governor_unittests
Change-Id: Ifd5c914bf035bfd8101b2c5827d68164683adc78
==========
to
==========
[Chromecast] Correct libcast_governor behavior.
libcast_governor was using FMAC instead of FMUL
(out = in + in * multiplier instead of out = in * multiplier),
resulting in ~doubling the output volume.
Also added unit tests for Governor and SlewVolume.
BUG=internal/37788000
TEST=libcast_governor_unittests
Change-Id: Ifd5c914bf035bfd8101b2c5827d68164683adc78
Review-Url: https://codereview.chromium.org/2860673003
Cr-Commit-Position: refs/heads/master@{#469886}
Committed:
https://chromium.googlesource.com/chromium/src/+/6ccec431840b7d8ed164cf13567a...
==========
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/6ccec431840b7d8ed164cf13567a052bda3940b8
3 years, 7 months ago
(2017-05-06 19:24:32 UTC)
#30
Issue 2860673003: [Chromecast] Correct libcast_governor behavior.
(Closed)
Created 3 years, 7 months ago by bshaya
Modified 3 years, 7 months ago
Reviewers: wzhong, bcf, jyw, kmackay, halliwell
Base URL:
Comments: 45