diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-10-11 02:44:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2015-10-11 03:15:44 +0300 |
commit | 6e66ddf5ed29c2593dbd25d4fd48b36c2e68e411 (patch) | |
tree | 227df0cc568ab72f9b350b9cccb1700b727744c4 /source/blender/imbuf/intern/stereoimbuf.c | |
parent | bb580664e6eae0714ec54f1cefeec5c5560150fc (diff) |
Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.
Diffstat (limited to 'source/blender/imbuf/intern/stereoimbuf.c')
-rw-r--r-- | source/blender/imbuf/intern/stereoimbuf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/imbuf/intern/stereoimbuf.c b/source/blender/imbuf/intern/stereoimbuf.c index 3b9da639a86..13a15f101e7 100644 --- a/source/blender/imbuf/intern/stereoimbuf.c +++ b/source/blender/imbuf/intern/stereoimbuf.c @@ -343,7 +343,7 @@ static void imb_stereo3d_write_interlace(Stereo3DData *s3d, enum eStereo3dInterl }; char i = (char) swap; for (x = 0; x < width; x++, from[0] += 3, from[1] += 3, to += 3) { - copy_v3_v3_char((char *)to, (char *)from[i]); + copy_v3_v3_uchar(to, from[i]); i = !i; } } @@ -357,7 +357,7 @@ static void imb_stereo3d_write_interlace(Stereo3DData *s3d, enum eStereo3dInterl }; char i = (char) swap; for (x = 0; x < width; x++, from[0] += 4, from[1] += 4, to += 4) { - copy_v4_v4_char((char *)to, (char *)from[i]); + copy_v4_v4_uchar(to, from[i]); i = !i; } } @@ -392,7 +392,7 @@ static void imb_stereo3d_write_interlace(Stereo3DData *s3d, enum eStereo3dInterl }; char j = i; for (x = 0; x < width; x++, from[0] += 3, from[1] += 3, to += 3) { - copy_v3_v3_char((char *)to, (char *)from[j]); + copy_v3_v3_uchar(to, from[j]); j = !j; } i = !i; @@ -408,7 +408,7 @@ static void imb_stereo3d_write_interlace(Stereo3DData *s3d, enum eStereo3dInterl }; char j = i; for (x = 0; x < width; x++, from[0] += 4, from[1] += 4, to += 4) { - copy_v4_v4_char((char *)to, (char *)from[j]); + copy_v4_v4_uchar(to, from[j]); j = !j; } i = !i; @@ -1035,7 +1035,7 @@ static void imb_stereo3d_read_interlace(Stereo3DData *s3d, enum eStereo3dInterla }; char i = (char) swap; for (x = 0; x < width; x++, from += 3, to[0] += 3, to[1] += 3) { - copy_v3_v3_char((char *)to[i], (char *)from); + copy_v3_v3_uchar(to[i], from); i = !i; } } @@ -1049,7 +1049,7 @@ static void imb_stereo3d_read_interlace(Stereo3DData *s3d, enum eStereo3dInterla }; char i = (char) swap; for (x = 0; x < width; x++, from += 4, to[0] += 4, to[1] += 4) { - copy_v4_v4_char((char *)to[i], (char *)from); + copy_v4_v4_uchar(to[i], from); i = !i; } } @@ -1084,7 +1084,7 @@ static void imb_stereo3d_read_interlace(Stereo3DData *s3d, enum eStereo3dInterla }; char j = i; for (x = 0; x < width; x++, from += 3, to[0] += 3, to[1] += 3) { - copy_v3_v3_char((char *)to[j], (char *)from); + copy_v3_v3_uchar(to[j], from); j = !j; } i = !i; @@ -1100,7 +1100,7 @@ static void imb_stereo3d_read_interlace(Stereo3DData *s3d, enum eStereo3dInterla }; char j = i; for (x = 0; x < width; x++, from += 4, to[0] += 4, to[1] += 4) { - copy_v4_v4_char((char *)to[j], (char *)from); + copy_v4_v4_uchar(to[j], from); j = !j; } i = !i; |