diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-15 12:37:17 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-01-15 12:37:17 +0400 |
commit | 0ce2d278b7a895a96c673f2c74020543b94413a3 (patch) | |
tree | 7f4bb96666c5cf26ca218c0bc53b6ec0d6edf06b /source/blender/imbuf/intern/png.c | |
parent | 4f7465cac13262ca47e1196fe1cd585b79bcfe1f (diff) |
Follow general mathutils rules for naming straight<->premul functions
Diffstat (limited to 'source/blender/imbuf/intern/png.c')
-rw-r--r-- | source/blender/imbuf/intern/png.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/png.c b/source/blender/imbuf/intern/png.c index 02aea4b9965..cc73f688e70 100644 --- a/source/blender/imbuf/intern/png.c +++ b/source/blender/imbuf/intern/png.c @@ -204,7 +204,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags) if (is_16bit) { if (has_float) { for (i = ibuf->x * ibuf->y; i > 0; i--) { - premul_to_straight_v4(from_straight, from_float); + premul_to_straight_v4_v4(from_straight, from_float); to16[0] = ftoshort(chanel_colormanage_cb(from_straight[0])); to16[1] = ftoshort(chanel_colormanage_cb(from_straight[1])); to16[2] = ftoshort(chanel_colormanage_cb(from_straight[2])); @@ -237,7 +237,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags) if (is_16bit) { if (has_float) { for (i = ibuf->x * ibuf->y; i > 0; i--) { - premul_to_straight_v4(from_straight, from_float); + premul_to_straight_v4_v4(from_straight, from_float); to16[0] = ftoshort(chanel_colormanage_cb(from_straight[0])); to16[1] = ftoshort(chanel_colormanage_cb(from_straight[1])); to16[2] = ftoshort(chanel_colormanage_cb(from_straight[2])); @@ -267,7 +267,7 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags) if (is_16bit) { if (has_float) { for (i = ibuf->x * ibuf->y; i > 0; i--) { - premul_to_straight_v4(from_straight, from_float); + premul_to_straight_v4_v4(from_straight, from_float); to16[0] = ftoshort(chanel_colormanage_cb(from_straight[0])); to16++; from_float += 4; } |