about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-01-24 18:46:24 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2018-01-24 18:46:24 +0000
commit264263de478cbf76f01fa8ad3c810242f36d3be7 (patch)
treea852bbf14de624559eb8a01aa00a46ac3f66ce48 /editor
parent174bc9b5bc5ac76cd7ac84feabeeb75e124c0333 (diff)
downloadnetpbm-mirror-264263de478cbf76f01fa8ad3c810242f36d3be7.tar.gz
netpbm-mirror-264263de478cbf76f01fa8ad3c810242f36d3be7.tar.xz
netpbm-mirror-264263de478cbf76f01fa8ad3c810242f36d3be7.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3134 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pnmremap.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/editor/pnmremap.c b/editor/pnmremap.c
index 71423318..59b1e84b 100644
--- a/editor/pnmremap.c
+++ b/editor/pnmremap.c
@@ -366,7 +366,7 @@ computeColorMapFromMap(struct pam *   const mappamP,
 
 #define FS_SCALE 1024
 
-struct fserr {
+struct Fserr {
     unsigned int width;
         /* Width of the image being dithered */
     long ** thiserr;
@@ -436,7 +436,7 @@ zeroError(long **      const err,
 
 
 static void
-fserrSetForward(struct fserr * const fserrP) {
+fserr_setForward(struct Fserr * const fserrP) {
 
     fserrP->fsForward = TRUE;
     fserrP->begCol = 0;
@@ -447,7 +447,7 @@ fserrSetForward(struct fserr * const fserrP) {
 
 
 static void
-fserrSetBackward(struct fserr * const fserrP) {
+fserr_setBackward(struct Fserr * const fserrP) {
 
     fserrP->fsForward = FALSE;
     fserrP->begCol = fserrP->width - 1;
@@ -458,9 +458,9 @@ fserrSetBackward(struct fserr * const fserrP) {
 
 
 static void
-initFserr(struct pam *   const pamP,
-          struct fserr * const fserrP,
-          struct Random  const random) {
+fserr_init(struct pam *   const pamP,
+           struct Fserr * const fserrP,
+           struct Random  const random) {
 /*----------------------------------------------------------------------------
    Initialize the Floyd-Steinberg error vectors
 -----------------------------------------------------------------------------*/
@@ -495,13 +495,13 @@ initFserr(struct pam *   const pamP,
     else
         zeroError(fserrP->thiserr, fserrSize, pamP->depth);
 
-    fserrSetForward(fserrP);
+    fserr_setForward(fserrP);
 }
 
 
 
 static void
-floydInitRow(struct pam * const pamP, struct fserr * const fserrP) {
+floydInitRow(struct pam * const pamP, struct Fserr * const fserrP) {
 
     int col;
 
@@ -518,7 +518,7 @@ static void
 floydAdjustColor(struct pam *   const pamP,
                  tuple          const intuple,
                  tuple          const outtuple,
-                 struct fserr * const fserrP,
+                 struct Fserr * const fserrP,
                  int            const col) {
 /*----------------------------------------------------------------------------
   Use Floyd-Steinberg errors to adjust actual color.
@@ -536,7 +536,7 @@ floydAdjustColor(struct pam *   const pamP,
 
 static void
 floydPropagateErr(struct pam *   const pamP,
-                  struct fserr * const fserrP,
+                  struct Fserr * const fserrP,
                   int            const col,
                   tuple          const oldtuple,
                   tuple          const newtuple) {
@@ -571,7 +571,7 @@ floydPropagateErr(struct pam *   const pamP,
 
 
 static void
-floydSwitchDir(struct pam * const pamP, struct fserr * const fserrP) {
+floydSwitchDir(struct pam * const pamP, struct Fserr * const fserrP) {
 
     unsigned int plane;
 
@@ -582,9 +582,9 @@ floydSwitchDir(struct pam * const pamP, struct fserr * const fserrP) {
     }
 
     if (fserrP->fsForward)
-        fserrSetBackward(fserrP);
+        fserr_setBackward(fserrP);
     else
-        fserrSetForward(fserrP);
+        fserr_setForward(fserrP);
 }
 
 
@@ -897,7 +897,7 @@ convertRowDither(struct pam *            const inpamP,
                  tuplehash               const colorhash,
                  bool *                  const usehashP,
                  tuple                   const defaultColor,
-                 struct fserr *          const fserrP,
+                 struct Fserr *          const fserrP,
                  tuple                         outrow[],
                  unsigned int *          const missingCountP) {
 /*----------------------------------------------------------------------------
@@ -971,7 +971,7 @@ convertRow(struct pam *            const inpamP,
            bool *                  const usehashP,
            bool                    const floyd,
            tuple                   const defaultColor,
-           struct fserr *          const fserrP,
+           struct Fserr *          const fserrP,
            tuple                         outrow[],
            unsigned int *          const missingCountP) {
 /*----------------------------------------------------------------------------
@@ -1030,7 +1030,7 @@ copyRaster(struct pam *   const inpamP,
     depthAdjustment depthAdjustment;
     struct colormapFinder * colorFinderP;
     bool usehash;
-    struct fserr fserr;
+    struct Fserr fserr;
     int row;
 
     workpam = *outpamP;
@@ -1055,7 +1055,7 @@ copyRaster(struct pam *   const inpamP,
     createColormapFinder(outpamP, colormap, colormapSize, &colorFinderP);
 
     if (floyd)
-        initFserr(inpamP, &fserr, random);
+        fserr_init(inpamP, &fserr, random);
 
     *missingCountP = 0;  /* initial value */