coreboot-kgpe-d16/payloads/libpayload/include
Yu-Ping Wu 7b54c15a67 libpayload: cbgfx: Add color mapping functionality
Similar to set_blend(), add set_color_map() for mapping background and
foreground colors of a bitmap. Also add clear_color_map() for clearing
the saved color mappings.

Note that when drawing a bitmap, the color mapping will be applied
before blending.

Also remove unnecessary initialization for static variable 'blend'.

BRANCH=puff
BUG=b:146399181, b:162357639
TEST=emerge-puff libpayload

Change-Id: I640ff3e8455cd4aaa5a41d03a0183dff282648a5
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44375
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Joel Kitching <kitching@google.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2020-08-13 22:25:18 +00:00
..
arm/arch treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
arm64/arch treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
arpa treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pci treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
storage treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sys treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
udc treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
usb libpayload: drivers/usb: add a USB pre-poll hook 2020-06-06 01:49:52 +00:00
x86/arch libpayload: allow nonblocking delay and more than one delay 2020-07-16 16:48:42 +00:00
archive.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
assert.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cbfs.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cbfs_core.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cbfs_ram.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cbgfx.h libpayload: cbgfx: Add color mapping functionality 2020-08-13 22:25:18 +00:00
compiler.h libpayload: Replace include/compiler.h with commonlib/bsd's version 2020-07-28 16:16:21 +00:00
coreboot_tables.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ctype.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
die.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
endian.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
errno.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
exception.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
fmap_serialized.h
fpmath.h libpayload: Add simple 32.32 fixed-point math API 2020-07-09 00:32:11 +00:00
gdb.h
getopt.h
inttypes.h
ipchksum.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
kconfig.h
keycodes.h
libpayload.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
limits.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
lz4.h
lzma.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
malloc.h
multiboot_tables.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
panel.h
pci.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
queue.h
stdarg.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
stddef.h
stdint.h libpayload: Fix definitions of minimum integer values 2020-05-18 07:34:55 +00:00
stdio.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
stdlib.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
string.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
strings.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sysinfo.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
term.h
time.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
unistd.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
video_console.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00