Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/filter.c
| Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | for (x = 0; x < rowlen; x++) { | ||||
| row3++; | row3++; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| MEM_freeN(temprect); | MEM_freeN(temprect); | ||||
| } | } | ||||
| void IMB_mask_clear(ImBuf *ibuf, char *mask, int val) | void IMB_mask_clear(ImBuf *ibuf, const char *mask, int val) | ||||
| { | { | ||||
| int x, y; | int x, y; | ||||
| if (ibuf->rect_float) { | if (ibuf->rect_float) { | ||||
| for (x = 0; x < ibuf->x; x++) { | for (x = 0; x < ibuf->x; x++) { | ||||
| for (y = 0; y < ibuf->y; y++) { | for (y = 0; y < ibuf->y; y++) { | ||||
| if (mask[ibuf->x * y + x] == val) { | if (mask[ibuf->x * y + x] == val) { | ||||
| float *col = ibuf->rect_float + 4 * (ibuf->x * y + x); | float *col = ibuf->rect_float + 4 * (ibuf->x * y + x); | ||||
| col[0] = col[1] = col[2] = col[3] = 0.0f; | col[0] = col[1] = col[2] = col[3] = 0.0f; | ||||
| ▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines | |||||