summaryrefslogtreecommitdiffstats
path: root/res/values/arrays.xml
diff options
context:
space:
mode:
authorWilhelm Fitzpatrick <rafial@cyngn.com>2014-11-14 16:31:35 -0800
committerChippa-a <vusal1372@gmail.com>2019-10-25 15:55:25 +0300
commit84b2ffbcf4360332691379a7249a811d3e7c5bb0 (patch)
tree13e3808b2411f560a5c3291f6070f325f8993920 /res/values/arrays.xml
parent5c9ac149ede33a7999ad3a90ef76235ba77e8106 (diff)
downloadandroid_packages_apps_Snap-84b2ffbcf4360332691379a7249a811d3e7c5bb0.tar.gz
android_packages_apps_Snap-84b2ffbcf4360332691379a7249a811d3e7c5bb0.tar.bz2
android_packages_apps_Snap-84b2ffbcf4360332691379a7249a811d3e7c5bb0.zip
CameraNext: dynamically generate available photo resolutions
Instead of depending on a large matching table, generated the list of picture sizes to show to the user directly from the supported list returned by the camera. The list is filtered to remove uselessly small resolutions on modern devices, to group resolutions by aspect ratio, and to filter out fairly similar sizes. Change-Id: I47a67a89786543baec133cf7e71df9819793ebac Signed-off-by: Chippa-a <vusal1372@gmail.com>
Diffstat (limited to 'res/values/arrays.xml')
-rw-r--r--res/values/arrays.xml142
1 files changed, 1 insertions, 141 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index ec7130af6..2a39275d4 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -28,7 +28,7 @@
<item>@string/pref_video_quality_entry_vga</item>
<item>@string/pref_video_quality_entry_cif</item>
<item>@string/pref_video_quality_entry_qvga</item>
- </string-array>
+ </string-array>
<string-array name="pref_video_quality_entryvalues" translatable="false">
<item>4096x2160</item>
<item>3840x2160</item>
@@ -167,146 +167,6 @@
<item>@string/time_lapse_hours</item>
</string-array>
- <!-- Camera Preferences Picture size dialog box entries -->
- <string-array name="pref_camera_picturesize_entries" translatable="false">
- <item>@string/pref_camera_picturesize_entry_24mp</item>
- <item>@string/pref_camera_picturesize_entry_21mp</item>
- <item>@string/pref_camera_picturesize_entry_16mp</item>
- <item>@string/pref_camera_picturesize_entry_16mp_wide</item>
- <item>@string/pref_camera_picturesize_entry_13mp</item>
- <item>@string/pref_camera_picturesize_entry_12mp</item>
- <item>@string/pref_camera_picturesize_entry_8mp</item>
- <item>@string/pref_camera_picturesize_entry_8mp</item>
- <item>@string/pref_camera_picturesize_entry_square</item>
- <item>@string/pref_camera_picturesize_entry_5mp</item>
- <item>@string/pref_camera_picturesize_entry_5mp</item>
- <item>@string/pref_camera_picturesize_entry_5mp</item>
- <item>@string/pref_camera_picturesize_entry_4mp_wide</item>
- <item>@string/pref_camera_picturesize_entry_3mp</item>
- <item>@string/pref_camera_picturesize_entry_3mp</item>
- <item>@string/pref_camera_picturesize_entry_1920x1080</item>
- <item>@string/pref_camera_picturesize_entry_2mp</item>
- <item>@string/pref_camera_picturesize_entry_2mp_wide</item>
- <item>@string/pref_camera_picturesize_entry_1_5mp</item>
- <item>@string/pref_camera_picturesize_entry_1_3mp</item>
- <item>@string/pref_camera_picturesize_entry_1280x768</item>
- <item>@string/pref_camera_picturesize_entry_1280x720</item>
- <item>@string/pref_camera_picturesize_entry_1280x400</item>
- <item>@string/pref_camera_picturesize_entry_1mp</item>
- <item>@string/pref_camera_picturesize_entry_800x600</item>
- <item>@string/pref_camera_picturesize_entry_800x480</item>
- <item>960 x 720</item>
- <item>720 x 480</item>
- <item>@string/pref_camera_picturesize_entry_vga</item>
- <item>@string/pref_camera_picturesize_entry_352x288</item>
- <item>@string/pref_camera_picturesize_entry_qvga</item>
- </string-array>
- <!-- When launching the camera app first time, we will set the picture
- size to the first one in the list that is also supported by the
- driver -->
- <string-array name="pref_camera_picturesize_entryvalues" translatable="false">
- <item>5656x4242</item>
- <item>5344x4008</item>
- <item>4608x3456</item>
- <item>5312x2988</item>
- <item>4160x3120</item>
- <item>4000x3000</item>
- <item>3840x2160</item>
- <item>3264x2448</item>
- <item>2976x2976</item>
- <item>2592x1944</item>
- <item>2592x1936</item>
- <item>2560x1920</item>
- <item>2688x1512</item>
- <item>2048x1536</item>
- <item>2048x1520</item>
- <item>1920x1080</item>
- <item>1600x1200</item>
- <item>1920x1088</item>
- <item>1440x1080</item>
- <item>1280x960</item>
- <item>1280x768</item>
- <item>1280x720</item>
- <item>1280x400</item>
- <item>1024x768</item>
- <item>800x600</item>
- <item>800x480</item>
- <item>960x720</item>
- <item>720x480</item>
- <item>640x480</item>
- <item>352x288</item>
- <item>320x240</item>
- </string-array>
-
- <!-- Camera Preferences video snapshot size dialog box entries -->
- <string-array name="pref_camera_video_snapsize_entries" translatable="false">
- <item>Auto</item>
- <item>@string/pref_camera_picturesize_entry_21mp</item>
- <item>@string/pref_camera_picturesize_entry_16mp</item>
- <item>@string/pref_camera_picturesize_entry_16mp_wide</item>
- <item>@string/pref_camera_picturesize_entry_13mp</item>
- <item>@string/pref_camera_picturesize_entry_12mp</item>
- <item>@string/pref_camera_picturesize_entry_8mp</item>
- <item>@string/pref_camera_picturesize_entry_8mp</item>
- <item>@string/pref_camera_picturesize_entry_square</item>
- <item>@string/pref_camera_picturesize_entry_5mp</item>
- <item>@string/pref_camera_picturesize_entry_5mp</item>
- <item>@string/pref_camera_picturesize_entry_5mp</item>
- <item>@string/pref_camera_picturesize_entry_4mp_wide</item>
- <item>@string/pref_camera_picturesize_entry_3mp</item>
- <item>@string/pref_camera_picturesize_entry_3mp</item>
- <item>@string/pref_camera_picturesize_entry_1920x1080</item>
- <item>@string/pref_camera_picturesize_entry_2mp</item>
- <item>@string/pref_camera_picturesize_entry_2mp_wide</item>
- <item>@string/pref_camera_picturesize_entry_1_5mp</item>
- <item>@string/pref_camera_picturesize_entry_1_3mp</item>
- <item>@string/pref_camera_picturesize_entry_1280x768</item>
- <item>@string/pref_camera_picturesize_entry_1280x720</item>
- <item>@string/pref_camera_picturesize_entry_1mp</item>
- <item>@string/pref_camera_picturesize_entry_800x600</item>
- <item>@string/pref_camera_picturesize_entry_800x480</item>
- <item>960 x 720</item>
- <item>720 x 480</item>
- <item>@string/pref_camera_picturesize_entry_vga</item>
- <item>@string/pref_camera_picturesize_entry_352x288</item>
- <item>@string/pref_camera_picturesize_entry_qvga</item>
- </string-array>
-
- <!-- default is auto, which calculates largest snapshot
- size with same aspect ratio as preview. -->
- <string-array name="pref_camera_video_snapsize_entryvalues" translatable="false">
- <item>auto</item>
- <item>5344x4008</item>
- <item>4608x3456</item>
- <item>5312x2988</item>
- <item>4160x3120</item>
- <item>4000x3000</item>
- <item>3840x2160</item>
- <item>3264x2448</item>
- <item>2976x2976</item>
- <item>2592x1944</item>
- <item>2592x1936</item>
- <item>2560x1920</item>
- <item>2688x1512</item>
- <item>2048x1536</item>
- <item>2048x1520</item>
- <item>1920x1080</item>
- <item>1600x1200</item>
- <item>1920x1088</item>
- <item>1440x1080</item>
- <item>1280x960</item>
- <item>1280x768</item>
- <item>1280x720</item>
- <item>1024x768</item>
- <item>800x600</item>
- <item>800x480</item>
- <item>960x720</item>
- <item>720x480</item>
- <item>640x480</item>
- <item>352x288</item>
- <item>320x240</item>
- </string-array>
-
<!-- Camera Preferences focus mode dialog box entries -->
<string-array name="pref_camera_focusmode_entries" translatable="false">
<item>@string/pref_camera_focusmode_entry_auto</item>