]> git.baikalelectronics.ru Git - arm-tf.git/commit
image_decompress: add APIs for decompressing images
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 26 Jan 2018 02:42:01 +0000 (11:42 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 1 Feb 2018 15:19:08 +0000 (00:19 +0900)
commit2e379d2f1b9e63492ed80a352dbbae7acb4e3a20
tree0258cccae9e5bb47d43c33998cf1bbd7c4215300
parent11f001cb7f26e9c50e688038ebdc9627ea5c4300
image_decompress: add APIs for decompressing images

These APIs are used by platforms that need to decompress images.

image_decompress_init():
  This registers a temporary buffer and a decompressor callback.
  This should be called from platform init code.

image_decompress_prepare():
  This should be called before each compressed image is loaded.  The
  best location to call this will be bl*_plat_handle_pre_image_load().

image_decompress():
  This should be called after each compressed image is loaded.  The
  best location to call this will be bl*_plat_handle_post_image_load().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
common/image_decompress.c [new file with mode: 0644]
include/common/image_decompress.h [new file with mode: 0644]