TIOVX User Guide
tivx_utils_file_rd_wr.h File Reference
#include <tivx_utils.h>
#include <tivx_utils_bmp.h>

Go to the source code of this file.

Functions

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. More...
 
void tivx_utils_png_file_read_release (void *png_file_context)
 Free memory allocated during png_file_read. More...
 
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. More...
 
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. More...
 
vx_status tivx_utils_save_vximage_to_pngfile (char *filename, vx_image image)
 Save data from image object to PNG file. More...
 
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. More...
 
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. More...
 
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. More...
 
void tivx_utils_bmp_file_read_release (void *png_file_context)
 Free memory allocated during bmp file read. More...
 
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. More...
 
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. More...
 
vx_status tivx_utils_save_vximage_to_bmpfile (const char *filename, vx_image image)
 Save data from image object to PNG file. More...
 
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. More...
 

Detailed Description

Utility APIs to read and write .PNG, .BMP files

Definition in file tivx_utils_file_rd_wr.h.