67 #ifndef TIVX_UTILS_FILE_RD_WR_H 68 #define TIVX_UTILS_FILE_RD_WR_H 70 #include <tivx_utils.h> 71 #include <tivx_utils_bmp.h> 106 void **png_file_context);
205 const char *filename,
207 tivx_utils_bmp_image_params_t *imageParams);
220 tivx_utils_bmp_image_params_t *imageParams);
240 const char *filename,
struct _vx_image * vx_image
vx_status tivx_utils_bmp_file_read(const char *filename, vx_bool convert_to_gray_scale, tivx_utils_bmp_image_params_t *imageParams)
Read data from BMP file.
vx_status tivx_utils_load_vximage_from_bmpfile(vx_image image, char *filename, vx_bool convert_to_gray_scale)
Load data from BMP file into a previously created vx_image object.
struct _vx_context * vx_context
vx_status tivx_utils_save_vximage_to_pngfile(char *filename, vx_image image)
Save data from image object to PNG file.
int32_t tivx_utils_bmp_file_write(const char *filename, uint32_t width, uint32_t height, uint32_t stride, vx_df_image df, void *data_ptr)
Write data into BMP file.
vx_status tivx_utils_bmp_file_read_from_memory(const void *buf, uint32_t buf_size, vx_bool convert_to_gray_scale, tivx_utils_bmp_image_params_t *imageParams)
Read data from BMP file.
void tivx_utils_bmp_file_read_release(void *png_file_context)
Free memory allocated during bmp file read.
vx_image tivx_utils_create_vximage_from_bmpfile(vx_context context, const char *filename, vx_bool convert_to_gray_scale)
Create a image data object given BMP filename as input.
vx_status tivx_utils_load_vximage_from_pngfile(vx_image image, char *filename, vx_bool convert_to_gray_scale)
Load data from PNG file into a previously created vx_image object.
void tivx_utils_png_file_read_release(void *png_file_context)
Free memory allocated during png_file_read.
vx_status tivx_utils_png_file_read(char *filename, vx_bool convert_to_gray_scale, uint32_t *width, uint32_t *height, uint32_t *stride, vx_df_image *df, void **data_ptr, void **png_file_context)
Read data from PNG file.
vx_image tivx_utils_create_vximage_from_pngfile(vx_context context, char *filename, vx_bool convert_to_gray_scale)
Create a image data object given PNG filename as input.
vx_status tivx_utils_save_vximage_to_bmpfile(const char *filename, vx_image image)
Save data from image object to PNG file.
int32_t tivx_utils_png_file_write(char *filename, uint32_t width, uint32_t height, uint32_t stride, vx_df_image df, void *data_ptr)
Write data into PNG file.