History

Reindent

Originally committed as revision 18270 to svn://svn.ffmpeg.org/ffmpeg/trunk

Reimar Döffinger committed 17 years ago

Commit 9aaacc21 parent 15488391 file · +33 −33Browse files

Unified · Split

libavcodec/interplayvideo.c+33−33
@@ -389,35 +389,35 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) · 388 unmodified lines
389389 if (P[0] <= P[1]) {
390390 if (P[2] <= P[3]) {
391391
392− /* 1 of 4 colors for each pixel, need 16 more bytes */
393− CHECK_STREAM_PTR(16);
392+ /* 1 of 4 colors for each pixel, need 16 more bytes */
393+ CHECK_STREAM_PTR(16);
394394
395− for (y = 0; y < 8; y++) {
396− /* get the next set of 8 2-bit flags */
397− int flags = bytestream_get_le16(&s->stream_ptr);
398− for (x = 0; x < 8; x++, flags >>= 2) {
399− *s->pixel_ptr++ = P[flags & 0x03];
395+ for (y = 0; y < 8; y++) {
396+ /* get the next set of 8 2-bit flags */
397+ int flags = bytestream_get_le16(&s->stream_ptr);
398+ for (x = 0; x < 8; x++, flags >>= 2) {
399+ *s->pixel_ptr++ = P[flags & 0x03];
400+ }
401+ s->pixel_ptr += s->line_inc;
400402 }
401− s->pixel_ptr += s->line_inc;
402− }
403403
404404 } else {
405− uint32_t flags;
405+ uint32_t flags;
406406
407− /* 1 of 4 colors for each 2x2 block, need 4 more bytes */
408− CHECK_STREAM_PTR(4);
407+ /* 1 of 4 colors for each 2x2 block, need 4 more bytes */
408+ CHECK_STREAM_PTR(4);
409409
410− flags = bytestream_get_le32(&s->stream_ptr);
410+ flags = bytestream_get_le32(&s->stream_ptr);
411411
412− for (y = 0; y < 8; y += 2) {
413− for (x = 0; x < 8; x += 2, flags >>= 2) {
414− s->pixel_ptr[x ] =
415− s->pixel_ptr[x + 1 ] =
416− s->pixel_ptr[x + s->stride] =
417− s->pixel_ptr[x + 1 + s->stride] = P[flags & 0x03];
412+ for (y = 0; y < 8; y += 2) {
413+ for (x = 0; x < 8; x += 2, flags >>= 2) {
414+ s->pixel_ptr[x ] =
415+ s->pixel_ptr[x + 1 ] =
416+ s->pixel_ptr[x + s->stride] =
417+ s->pixel_ptr[x + 1 + s->stride] = P[flags & 0x03];
418+ }
419+ s->pixel_ptr += s->stride * 2;
418420 }
419− s->pixel_ptr += s->stride * 2;
420− }
421421
422422 }
423423 } else {
@@ -428,21 +428,21 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) · 4 unmodified lines
428428
429429 flags = bytestream_get_le64(&s->stream_ptr);
430430 if (P[2] <= P[3]) {
431− for (y = 0; y < 8; y++) {
432− for (x = 0; x < 8; x += 2, flags >>= 2) {
433− s->pixel_ptr[x ] =
434− s->pixel_ptr[x + 1] = P[flags & 0x03];
431+ for (y = 0; y < 8; y++) {
432+ for (x = 0; x < 8; x += 2, flags >>= 2) {
433+ s->pixel_ptr[x ] =
434+ s->pixel_ptr[x + 1] = P[flags & 0x03];
435+ }
436+ s->pixel_ptr += s->stride;
435437 }
436− s->pixel_ptr += s->stride;
437− }
438438 } else {
439− for (y = 0; y < 8; y += 2) {
440− for (x = 0; x < 8; x++, flags >>= 2) {
441− s->pixel_ptr[x ] =
442− s->pixel_ptr[x + s->stride] = P[flags & 0x03];
439+ for (y = 0; y < 8; y += 2) {
440+ for (x = 0; x < 8; x++, flags >>= 2) {
441+ s->pixel_ptr[x ] =
442+ s->pixel_ptr[x + s->stride] = P[flags & 0x03];
443+ }
444+ s->pixel_ptr += s->stride * 2;
443445 }
444− s->pixel_ptr += s->stride * 2;
445− }
446446 }
447447 }
448448

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t