diff options
author | Simon Glass <sjg@chromium.org> | 2022-10-06 08:36:17 -0600 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2022-10-30 20:01:40 +0100 |
commit | e90322f87c97a4829c44fe77435c9faca87cbfc8 (patch) | |
tree | 818962ae3039336c7e0f65db8272cb3c6c2765b7 /include | |
parent | 430e1676a76bf8b7112c64e19cf64b988c281ee0 (diff) | |
download | u-boot-e90322f87c97a4829c44fe77435c9faca87cbfc8.zip u-boot-e90322f87c97a4829c44fe77435c9faca87cbfc8.tar.gz u-boot-e90322f87c97a4829c44fe77435c9faca87cbfc8.tar.bz2 |
video: Add a function to get the dimensions of a BMP image
This is useful for some other users, so break this out into a function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/video.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h index 2e68dd7..32afb26 100644 --- a/include/video.h +++ b/include/video.h @@ -224,6 +224,17 @@ int video_sync(struct udevice *vid, bool force); void video_sync_all(void); /** + * video_bmp_get_info() - Get information about a bitmap image + * + * @bmp_image: Pointer to BMP image to check + * @widthp: Returns width in pixels + * @heightp: Returns height in pixels + * @bpixp: Returns log2 of bits per pixel + */ +void video_bmp_get_info(void *bmp_image, ulong *widthp, ulong *heightp, + uint *bpixp); + +/** * video_bmp_display() - Display a BMP file * * @dev: Device to display the bitmap on |