KanduAI SDK  1.1
image_api.h
Go to the documentation of this file.
1 #ifndef _IMAGE_API_H_
2 #define _IMAGE_API_H_
3 
4 #include "api_types.h"
5 
6 extern "C" {
7 
17  void *rf_load_image_from_rgb_buffer(uint8_t *buffer, size_t height, size_t width, int rotation, rf_error_type *error);
18 
28  void *rf_load_image_from_rgba_buffer(uint8_t *buffer, size_t height, size_t width, int rotation, rf_error_type *error);
29 
38  void *rf_load_image_from_jpeg_buffer(uint8_t *buffer, size_t size, int rotation, rf_error_type *error);
39 
47  void *rf_load_image_from_file(const char *image_path, int rotation, rf_error_type *error);
48 
56  void rf_get_image_size(void *image_handle, int *out_height, int *out_width, rf_error_type *error);
57 
63  void rf_free_image(void *image_handle, rf_error_type *error);
64 
71  void rf_save_image(void *image_handle, const char *path, rf_error_type *error);
72 
73 }
74 #endif //_IMAGE_API_H_
void * rf_load_image_from_jpeg_buffer(uint8_t *buffer, size_t size, int rotation, rf_error_type *error)
void * rf_load_image_from_rgb_buffer(uint8_t *buffer, size_t height, size_t width, int rotation, rf_error_type *error)
void rf_free_image(void *image_handle, rf_error_type *error)
void * rf_load_image_from_rgba_buffer(uint8_t *buffer, size_t height, size_t width, int rotation, rf_error_type *error)
void rf_save_image(void *image_handle, const char *path, rf_error_type *error)
void * rf_load_image_from_file(const char *image_path, int rotation, rf_error_type *error)
void rf_get_image_size(void *image_handle, int *out_height, int *out_width, rf_error_type *error)
Definition: api_types.h:74