bmpblk: Allow overriding assets directory and resolution hints.
To support boards with larger screen, we need new options to specify source of
assets and the resolution they were designed for (to prevent resizing images
unnecessarily).
Note this helps creating firmware screens in better quality and also reduces
bitmap block size.
The new options are "assets_dir" and "assets_res".
Example:
assets_dir: assets2x # This will use the double-sized images.
assets_res: [1920, 1080] # Assets will best fit on 1920x1080 screen without
# being resized.
BUG=chrome-os-partner:25057
TEST=manual added assets_dir and assets_res to a 1920x1080 board, seeing assets
and text in correct shape, and still able to fit into standard GBB.
Change-Id: Ic418162086984f5e7a45d56318db5fd505610ff3
Reviewed-on: https://chrome-internal-review.googlesource.com/152108
Tested-by: Hung-Te Lin <[email protected]>
Reviewed-by: Vadim Bendebury <[email protected]>
Commit-Queue: Hung-Te Lin <[email protected]>
3 files changed