Chromium Code Reviews
DescriptionDisable adaptive resolution support for MediaCodec use by AVDA.
There are several devices out there that can't create more than one
MediaCodec when these keys are set. Specifically the N4 and N7
devices will fail while creating the second MediaCodec. Looking
through the AOSP source code this appears to be because setting
max width/max height to 1080p allocates all available decoder
resources on these devices: https://goo.gl/rH7iht
More importantly, configuration changes as sent by MSE within the
Spitzer pipeline always trigger a flush(), so regardless of the
adaptative support setting we're taking the "slow" path per the
MediaCodec documentation.
For files with implicit mid-stream configuration changes (which are
rare), there seems to be no issue on a variety of devices with this
setting disabled. In fact, it doesn't seem any faster or slower even
on very old (4.3) devices w/ or w/o this setting.
Further, at least for mobile devices, I'm not sure we ever want to
set a max height or width even if the functionality did what's on
the label due to such a value being unknown to Chrome. Always using
the largest value works, but as found above allocates far more
resources than are ever realistically used in mobile playbacks.
Note: This is slightly different than general adapative playback as
supported by MSE, since that may just adapt the bitrate while keeping
the resolution the same.
BUG=none
TEST=http://storage.googleapis.com/dalecurtis-shared/buck_multi.html
http://storage.googleapis.com/dalecurtis-shared/frame_size_change.webm
http://storage.googleapis.com/dalecurtis-shared/frame_size_change.mp4
N4 (4.4), N7 (2012, 4.3), N4 (5.1), N5 (6.0), S4 (5.1)
Committed: https://crrev.com/f3b596f026ece5ca021f547d41193f9bbbeec604
Cr-Commit-Position: refs/heads/master@{#377170}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rename to allow. #
Total comments: 2
Patch Set 3 : Comment. #
Messages
Total messages: 17 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||