[vlc-commits] transform: cosmetic fixes

Rémi Denis-Courmont git at videolan.org
Sun Mar 18 22:17:50 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 18 20:35:47 2012 +0200| [bb0ee530d3621a139574531a1d2a5d925cdc6dac] | committer: Rémi Denis-Courmont

transform: cosmetic fixes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb0ee530d3621a139574531a1d2a5d925cdc6dac
---

 modules/video_filter/transform.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/modules/video_filter/transform.c b/modules/video_filter/transform.c
index ab88b74..1f1650d 100644
--- a/modules/video_filter/transform.c
+++ b/modules/video_filter/transform.c
@@ -129,16 +129,16 @@ static void Plane16_##f(plane_t *restrict dst, const plane_t *restrict src) \
 { \
     const uint16_t *src_pixels = (const uint16_t *)src->p_pixels; \
     uint16_t *restrict dst_pixels = (uint16_t *)dst->p_pixels; \
-    unsigned src_pitch = src->i_pitch / 2; \
-    unsigned dst_pitch = dst->i_pitch / 2; \
+    unsigned src_width = src->i_pitch / 2; \
+    unsigned dst_width = dst->i_pitch / 2; \
     unsigned dst_visible_width = dst->i_visible_pitch / 2; \
  \
     for (int y = 0; y < dst->i_visible_lines; y++) { \
         for (unsigned x = 0; x < dst_visible_width; x++) { \
             int sx, sy; \
-            (f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y);\
-            dst_pixels[y * dst_pitch + x] = \
-                src_pixels[sy * src_pitch + sx]; \
+            (f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y); \
+            dst_pixels[y * dst_width + x] = \
+                src_pixels[sy * src_width + sx]; \
         } \
     } \
 } \
@@ -147,16 +147,16 @@ static void Plane32_##f(plane_t *restrict dst, const plane_t *restrict src) \
 { \
     const uint32_t *src_pixels = (const uint32_t *)src->p_pixels; \
     uint32_t *restrict dst_pixels = (uint32_t *)dst->p_pixels; \
-    unsigned src_pitch = src->i_pitch / 4; \
-    unsigned dst_pitch = dst->i_pitch / 4; \
+    unsigned src_width = src->i_pitch / 4; \
+    unsigned dst_width = dst->i_pitch / 4; \
     unsigned dst_visible_width = dst->i_visible_pitch / 4; \
  \
     for (int y = 0; y < dst->i_visible_lines; y++) { \
         for (unsigned x = 0; x < dst_visible_width; x++) { \
             int sx, sy; \
-            (f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y);\
-            dst_pixels[y * dst_pitch + x] = \
-                src_pixels[sy * src_pitch + sx]; \
+            (f)(&sx, &sy, dst_visible_width, dst->i_visible_lines, x, y); \
+            dst_pixels[y * dst_width + x] = \
+                src_pixels[sy * src_width + sx]; \
         } \
     } \
 }



More information about the vlc-commits mailing list