35 lines
714 B
C
35 lines
714 B
C
/**
|
|
* @file img_utils.h
|
|
* @author TsMax (QinYUN575@Foxmail.com)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2024-01-02
|
|
*
|
|
* @copyright Copyright (c) 2021 - 2024 shenzhen listenai co., ltd.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#ifndef __IMG_UTILS_H__
|
|
#define __IMG_UTILS_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
uint32_t width;
|
|
uint32_t height;
|
|
uint32_t img_size;
|
|
} img_header_t;
|
|
|
|
int img_png_get_info(const uint8_t * src, int size, img_header_t * header);
|
|
int img_gif_get_info(const uint8_t * src, int size, img_header_t * header);
|
|
int img_jpg_get_info(const uint8_t * src, int size, img_header_t * header);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __IMG_UTILS_H__
|