Mercurial > hg > octave-terminal
changeset 10298:2be9b7e71f32
__magick_read__.cc: style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 10 Feb 2010 12:38:16 -0500 |
parents | ed88ea036716 |
children | c992efc0c2fa |
files | src/DLD-FUNCTIONS/__magick_read__.cc |
diffstat | 1 files changed, 10 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/__magick_read__.cc +++ b/src/DLD-FUNCTIONS/__magick_read__.cc @@ -222,8 +222,7 @@ const Magick::PixelPacket *pix = imvec[frameidx(frame)].getConstPixels (0, 0, columns, rows); - P *rbuf; - rbuf = vec; + P *rbuf = vec; for (int y = 0; y < rows; y++) { for (int x = 0; x < columns; x++) @@ -252,9 +251,8 @@ const Magick::PixelPacket *pix = imvec[frameidx(frame)].getConstPixels (0, 0, columns, rows); - P *rbuf, *obuf; - rbuf = vec; - obuf = vec + rows * columns; + P *rbuf = vec; + P *obuf = vec + rows * columns; for (int y = 0; y < rows; y++) { for (int x = 0; x < columns; x++) @@ -287,10 +285,9 @@ const Magick::PixelPacket *pix = imvec[frameidx(frame)].getConstPixels (0, 0, columns, rows); - P *rbuf, *gbuf, *bbuf; - rbuf = vec; - gbuf = vec + rows * columns; - bbuf = vec + rows * columns * 2; + P *rbuf = vec; + P *gbuf = vec + rows * columns; + P *bbuf = vec + rows * columns * 2; for (int y = 0; y < rows; y++) { for (int x = 0; x < columns; x++) @@ -327,11 +324,10 @@ const Magick::PixelPacket *pix = imvec[frameidx(frame)].getConstPixels (0, 0, columns, rows); - P *rbuf, *gbuf, *bbuf, *obuf; - rbuf = vec; - gbuf = vec + rows * columns; - bbuf = vec + rows * columns * 2; - obuf = vec + rows * columns * 3; + P *rbuf = vec; + P *gbuf = vec + rows * columns; + P *bbuf = vec + rows * columns * 2; + P *obuf = vec + rows * columns * 3; for (int y = 0; y < rows; y++) { for (int x = 0; x < columns; x++)