diff options
Diffstat (limited to 'converter/ppm/ppmtoeyuv.c')
-rw-r--r-- | converter/ppm/ppmtoeyuv.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/converter/ppm/ppmtoeyuv.c b/converter/ppm/ppmtoeyuv.c index c4cedcdf..0cfe9b13 100644 --- a/converter/ppm/ppmtoeyuv.c +++ b/converter/ppm/ppmtoeyuv.c @@ -66,7 +66,7 @@ #include "ppm.h" #include "mallocvar.h" -typedef unsigned char uint8; +typedef unsigned char uint8; /* Multiplication tables */ @@ -92,6 +92,8 @@ luminance(pixel const p) { ; } + + static __inline__ float chrominanceRed(pixel const p) { return mult5[PPM_GETR(p)] @@ -100,6 +102,8 @@ chrominanceRed(pixel const p) { ; } + + static __inline__ float chrominanceBlue(pixel const p) { return mult16874[PPM_GETR(p)] @@ -171,10 +175,10 @@ freeMultiplicationTables(void) { * * PPMtoYUV * - * convert PPM data into YUV data - * assumes that ydivisor = 1 + * convert PPM data into YUV data + * assumes that ydivisor = 1 * - * RETURNS: nothing + * RETURNS: nothing * * SIDE EFFECTS: none * @@ -362,8 +366,8 @@ main(int argc, const char **argv) { eof = false; /* EOF not yet encountered */ lastMaxval = 0; /* No previous maxval */ - lastWidth = 0; /* No previous width */ - lastHeight = 0; /* No previous height */ + lastWidth = 0; /* No previous width */ + lastHeight = 0; /* No previous height */ orig_y = orig_cr = orig_cb = 0; while (!eof) { |