aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/jpg/readyuv.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/jpg/readyuv.c
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/jpg/readyuv.c')
-rw-r--r--src/cmd/jpg/readyuv.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/jpg/readyuv.c b/src/cmd/jpg/readyuv.c
index eae2764e..f90bc237 100644
--- a/src/cmd/jpg/readyuv.c
+++ b/src/cmd/jpg/readyuv.c
@@ -76,19 +76,19 @@ Breadyuv(Biobuf *bp, int colourspace)
}
switch (sz) {
- case 720 * PAL * 2: // 625 x 8bit
+ case 720 * PAL * 2: /* 625 x 8bit */
bits = 8;
lines = PAL;
break;
- case 720 * NTSC * 2: // 525 x 8bit
+ case 720 * NTSC * 2: /* 525 x 8bit */
bits = 8;
lines = NTSC;
break;
- case 720 * PAL * 2 + (720 * PAL / 2) : // 625 x 10bit
+ case 720 * PAL * 2 + (720 * PAL / 2) : /* 625 x 10bit */
bits = 10;
lines = PAL;
break;
- case 720 * NTSC * 2 + (720 * NTSC / 2) : // 525 x 10bit
+ case 720 * NTSC * 2 + (720 * NTSC / 2) : /* 525 x 10bit */
bits = 10;
lines = NTSC;
break;
@@ -97,8 +97,8 @@ Breadyuv(Biobuf *bp, int colourspace)
goto Error;
}
- // print("bits=%d pixels=%d lines=%d\n", bits, 720, lines);
- //
+ /* print("bits=%d pixels=%d lines=%d\n", bits, 720, lines); */
+ /* */
a->nchans = 3;
a->chandesc = CRGB;
a->chanlen = 720 * lines;