Commit 32eea24e authored by Reimar Döffinger's avatar Reimar Döffinger

Prettify some assignments

Originally committed as revision 18261 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e3114eb1
...@@ -231,15 +231,15 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s) ...@@ -231,15 +231,15 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s)
for (y = 0; y < 8; y += 2) { for (y = 0; y < 8; y += 2) {
for (x = 0; x < 8; x += 2, flags >>= 1) { for (x = 0; x < 8; x += 2, flags >>= 1) {
if (flags & 1) { if (flags & 1) {
*(s->pixel_ptr + x) = P1; s->pixel_ptr[x ] =
*(s->pixel_ptr + x + 1) = P1; s->pixel_ptr[x + 1 ] =
*(s->pixel_ptr + s->stride + x) = P1; s->pixel_ptr[x + s->stride] =
*(s->pixel_ptr + s->stride + x + 1) = P1; s->pixel_ptr[x + 1 + s->stride] = P1;
} else { } else {
*(s->pixel_ptr + x) = P0; s->pixel_ptr[x ] =
*(s->pixel_ptr + x + 1) = P0; s->pixel_ptr[x + 1 ] =
*(s->pixel_ptr + s->stride + x) = P0; s->pixel_ptr[x + s->stride] =
*(s->pixel_ptr + s->stride + x + 1) = P0; s->pixel_ptr[x + 1 + s->stride] = P0;
} }
} }
s->pixel_ptr += s->stride * 2; s->pixel_ptr += s->stride * 2;
...@@ -433,10 +433,10 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) ...@@ -433,10 +433,10 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s)
for (y = 0; y < 8; y += 2) { for (y = 0; y < 8; y += 2) {
for (x = 0; x < 8; x += 2, flags >>= 2) { for (x = 0; x < 8; x += 2, flags >>= 2) {
pix = P[flags & 0x03]; pix = P[flags & 0x03];
*(s->pixel_ptr + x) = pix; s->pixel_ptr[x ] =
*(s->pixel_ptr + x + 1) = pix; s->pixel_ptr[x + 1 ] =
*(s->pixel_ptr + s->stride + x) = pix; s->pixel_ptr[x + s->stride] =
*(s->pixel_ptr + s->stride + x + 1) = pix; s->pixel_ptr[x + 1 + s->stride] = pix;
} }
s->pixel_ptr += s->stride * 2; s->pixel_ptr += s->stride * 2;
} }
...@@ -453,8 +453,8 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) ...@@ -453,8 +453,8 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s)
} }
for (x = 0; x < 8; x += 2, flags >>= 2) { for (x = 0; x < 8; x += 2, flags >>= 2) {
pix = P[flags & 0x03]; pix = P[flags & 0x03];
*(s->pixel_ptr + x) = pix; s->pixel_ptr[x ] =
*(s->pixel_ptr + x + 1) = pix; s->pixel_ptr[x + 1] = pix;
} }
s->pixel_ptr += s->stride; s->pixel_ptr += s->stride;
} }
...@@ -471,8 +471,8 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) ...@@ -471,8 +471,8 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s)
} }
for (x = 0; x < 8; x++, flags >>= 2) { for (x = 0; x < 8; x++, flags >>= 2) {
pix = P[flags & 0x03]; pix = P[flags & 0x03];
*(s->pixel_ptr + x) = pix; s->pixel_ptr[x ] =
*(s->pixel_ptr + s->stride + x) = pix; s->pixel_ptr[x + s->stride] = pix;
} }
s->pixel_ptr += s->stride * 2; s->pixel_ptr += s->stride * 2;
} }
...@@ -607,10 +607,10 @@ static int ipvideo_decode_block_opcode_0xC(IpvideoContext *s) ...@@ -607,10 +607,10 @@ static int ipvideo_decode_block_opcode_0xC(IpvideoContext *s)
for (y = 0; y < 8; y += 2) { for (y = 0; y < 8; y += 2) {
for (x = 0; x < 8; x += 2) { for (x = 0; x < 8; x += 2) {
pix = *s->stream_ptr++; pix = *s->stream_ptr++;
*(s->pixel_ptr + x) = pix; s->pixel_ptr[x ] =
*(s->pixel_ptr + x + 1) = pix; s->pixel_ptr[x + 1 ] =
*(s->pixel_ptr + s->stride + x) = pix; s->pixel_ptr[x + s->stride] =
*(s->pixel_ptr + s->stride + x + 1) = pix; s->pixel_ptr[x + 1 + s->stride] = pix;
} }
s->pixel_ptr += s->stride * 2; s->pixel_ptr += s->stride * 2;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment