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>
1 parent 11f001c commit 2e379d2f1b9e63492ed80a352dbbae7acb4e3a20
@Masahiro Yamada Masahiro Yamada authored on 25 Jan 2018
Showing 2 changed files
View
common/image_decompress.c 0 → 100644
View
include/common/image_decompress.h 0 → 100644