newbitmaps: Add 1280x* with AR=8x5 profiles

For larger panels, we want to support 1280x* profiles.

BRANCH=none
BUG=chrome-os-partner:12896
TEST=make # all profiles generated.

Change-Id: I5b6729e4335bc0ade3948151e766c02ab937435d
Reviewed-on: https://gerrit.chromium.org/gerrit/32892
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Dave Parker <dparker@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
Hung-Te Lin
2012-09-11 10:41:02 +08:00
committed by Gerrit
parent 599565b4dd
commit 4b193b7f5c
2 changed files with 15 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
# this occasional need.
TARGETS=std n1366usb n1366usb2 s800 s1024 s1024usb s1024usb2
TARGETS+=s1280a8x5 s1280x850a8x5
# To generate all locales, make from top level.
LOCALES=en

View File

@@ -66,6 +66,8 @@ main() {
local scale_param="" background_scale_param="" replace_files=""
local base locale X
# TODO(hungte) Derive and calculate profile params automatically.
# Currently we use image resources originally designed for 1366x768, and
# re-scale to different aspects on demand.
case "$profile" in
@@ -124,7 +126,18 @@ main() {
replace_files="insert=insert_sd_usb2"
;;
# TODO(hungte) Add 1280x1024 (0x11A) profiles.
s1280a8x5 )
# Similar to s1024, using VESA graphics mode 1280x1024 (0x011A), and
# adjusted for aspect ratio 8x5 panels.
background_scale_param="-scale 1280x1024!"
scale_param="-scale 94%x119%" # 119% = 133% * (1.6 / 1.78)
;;
s1280x850a8x5 )
# Similar to s1280a8x5, using graphics mode 1280x850.
background_scale_param="-scale 1280x850!"
scale_param="-scale 94%x99%" # 99% = 110% * (1.6 / 1.78)
;;
* )
die "Sorry, unknown profile $profile."