Lines Matching defs:img
32 * mlib_status mlib_ImageClear(mlib_image *img,
36 * img Pointer to an image.
40 * img can have 1, 2, 3 or 4 channels of MLIB_BIT, MLIB_BYTE,
71 mlib_status __mlib_ImageClear(mlib_image *img,
74 MLIB_IMAGE_CHECK(img);
76 switch (mlib_ImageGetType(img)) {
79 switch (mlib_ImageGetChannels(img)) {
82 mlib_v_ImageClear_BIT_1(img, color);
86 mlib_v_ImageClear_BIT_2(img, color);
90 mlib_v_ImageClear_BIT_3(img, color);
94 mlib_v_ImageClear_BIT_4(img, color);
104 switch (mlib_ImageGetChannels(img)) {
107 mlib_v_ImageClear_U8_1(img, color);
111 mlib_v_ImageClear_U8_2(img, color);
115 mlib_v_ImageClear_U8_3(img, color);
119 mlib_v_ImageClear_U8_4(img, color);
129 switch (mlib_ImageGetChannels(img)) {
132 mlib_v_ImageClear_S16_1(img, color);
136 mlib_v_ImageClear_S16_2(img, color);
140 mlib_v_ImageClear_S16_3(img, color);
144 mlib_v_ImageClear_S16_4(img, color);
154 switch (mlib_ImageGetChannels(img)) {
157 mlib_v_ImageClear_S32_1(img, color);
161 mlib_v_ImageClear_S32_2(img, color);
165 mlib_v_ImageClear_S32_3(img, color);
169 mlib_v_ImageClear_S32_4(img, color);