Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.
[blender.git] / source / blender / imbuf / intern / stereoimbuf.c
index 3b9da639a863b9a86c371d81d9e2ea0806f07bd5..13a15f101e7b9654086697cce65fb7d1047404ef 100644 (file)
@@ -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;