FS-10140: [core] add switch_img_grey, makes i420 switch_img_t image grey scale

This commit is contained in:
Mike Jerris
2017-03-16 11:09:29 -05:00
parent 0021530faf
commit 8d4e72af16
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -315,6 +315,8 @@ SWITCH_DECLARE(switch_image_t *) switch_img_copy_rect(switch_image_t *img, uint3
*/
SWITCH_DECLARE(void) switch_img_fill(switch_image_t *img, int x, int y, int w, int h, switch_rgb_color_t *color);
SWITCH_DECLARE(void) switch_img_grey(switch_image_t *img, int x, int y, int w, int h);
SWITCH_DECLARE(void) switch_img_fill_noalpha(switch_image_t *img, int x, int y, int w, int h, switch_rgb_color_t *color);
/*!\brief Set RGB color with a string