Max video resolutions consistent with supported
Four very similar tests in android.media.cts.MediaPlayerTest had been
failing. It turns out that the camera reports certain available
resolutions, but a separate specification of the max width and height
is given in a certain XML file, and has values less than those of the
max reported resolution. Updating that specification to the
width/height of the max reported resolution made the tests work.
This CL is the same as the mnc-emu-dev CL
https://googleplex-android-review.git.corp.google.com/#/c/1231696
Change-Id: I9057212b05a8da6b984d857f3045ec602bd167cd
diff --git a/camera/media_profiles.xml b/camera/media_profiles.xml
index cd99857..57d68ab 100644
--- a/camera/media_profiles.xml
+++ b/camera/media_profiles.xml
@@ -325,20 +325,20 @@
-->
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="192000"
- minFrameWidth="176" maxFrameWidth="320"
- minFrameHeight="144" maxFrameHeight="240"
+ minFrameWidth="176" maxFrameWidth="640"
+ minFrameHeight="144" maxFrameHeight="480"
minFrameRate="15" maxFrameRate="30" />
<VideoEncoderCap name="h263" enabled="true"
minBitRate="64000" maxBitRate="192000"
- minFrameWidth="176" maxFrameWidth="320"
- minFrameHeight="144" maxFrameHeight="240"
+ minFrameWidth="176" maxFrameWidth="640"
+ minFrameHeight="144" maxFrameHeight="480"
minFrameRate="15" maxFrameRate="30" />
<VideoEncoderCap name="m4v" enabled="true"
minBitRate="64000" maxBitRate="192000"
- minFrameWidth="176" maxFrameWidth="320"
- minFrameHeight="144" maxFrameHeight="240"
+ minFrameWidth="176" maxFrameWidth="640"
+ minFrameHeight="144" maxFrameHeight="480"
minFrameRate="15" maxFrameRate="30" />
<AudioEncoderCap name="aac" enabled="true"