[core] add stb_image to read more supported picture formats

This commit is contained in:
Seven Du
2019-03-06 09:48:20 +08:00
committed by Andrey Volk
parent c1fab04095
commit f4b20aa49f
6 changed files with 7619 additions and 0 deletions
+3
View File
@@ -395,6 +395,9 @@ SWITCH_DECLARE(switch_status_t) switch_img_write_png(switch_image_t *img, char *
SWITCH_DECLARE(switch_status_t) switch_png_open(switch_png_t **pngP, const char *file_name);
SWITCH_DECLARE(void) switch_png_free(switch_png_t **pngP);
SWITCH_DECLARE(switch_status_t) switch_img_data_url_png(switch_image_t *img, char **urlP);
/*!\brief Read an image file to switch_image_t */
SWITCH_DECLARE(switch_image_t *) switch_img_read_from_file(const char *file_name, switch_img_fmt_t img_fmt);
/*!\brief put a small img over a big IMG at position x,y, with alpha transparency
*