]> granicus.if.org Git - libjpeg-turbo/commitdiff
Use 2-space indentation for the enums, to be consistent with the structs
authorDRC <dcommander@users.sourceforge.net>
Mon, 12 May 2014 00:34:08 +0000 (00:34 +0000)
committerDRC <dcommander@users.sourceforge.net>
Mon, 12 May 2014 00:34:08 +0000 (00:34 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.3.x@1291 632fc199-4ca6-4c93-a231-07263d6284db

jpegint.h
jpeglib.h
transupp.h

index fcacef39c17aa55ab5a2d91290e338a344f7962b..44a330d07164097a8e002ab5a383c5f80f955fd9 100644 (file)
--- a/jpegint.h
+++ b/jpegint.h
 
 /* Declarations for both compression & decompression */
 
-typedef enum {                  /* Operating modes for buffer controllers */
-        JBUF_PASS_THRU,         /* Plain stripwise operation */
-        /* Remaining modes require a full-image buffer to have been created */
-        JBUF_SAVE_SOURCE,       /* Run source subobject only, save output */
-        JBUF_CRANK_DEST,        /* Run dest subobject only, using saved data */
-        JBUF_SAVE_AND_PASS      /* Run both subobjects, save output */
+typedef enum {            /* Operating modes for buffer controllers */
+  JBUF_PASS_THRU,         /* Plain stripwise operation */
+  /* Remaining modes require a full-image buffer to have been created */
+  JBUF_SAVE_SOURCE,       /* Run source subobject only, save output */
+  JBUF_CRANK_DEST,        /* Run dest subobject only, using saved data */
+  JBUF_SAVE_AND_PASS      /* Run both subobjects, save output */
 } J_BUF_MODE;
 
 /* Values of global_state field (jdapi.c has some dependencies on ordering!) */
index e5329cff3791c74126e274628fc636dc36cc92a0..55c6abcf2f09f32291e2b0894ecd54f79d42b9e8 100644 (file)
--- a/jpeglib.h
+++ b/jpeglib.h
@@ -215,38 +215,37 @@ struct jpeg_marker_struct {
 #define JCS_ALPHA_EXTENSIONS 1
 
 typedef enum {
-        JCS_UNKNOWN,            /* error/unspecified */
-        JCS_GRAYSCALE,          /* monochrome */
-        JCS_RGB,                /* red/green/blue as specified by the RGB_RED, RGB_GREEN,
-                                   RGB_BLUE, and RGB_PIXELSIZE macros */
-        JCS_YCbCr,              /* Y/Cb/Cr (also known as YUV) */
-        JCS_CMYK,               /* C/M/Y/K */
-        JCS_YCCK,               /* Y/Cb/Cr/K */
-        JCS_EXT_RGB,            /* red/green/blue */
-        JCS_EXT_RGBX,           /* red/green/blue/x */
-        JCS_EXT_BGR,            /* blue/green/red */
-        JCS_EXT_BGRX,           /* blue/green/red/x */
-        JCS_EXT_XBGR,           /* x/blue/green/red */
-        JCS_EXT_XRGB,           /* x/red/green/blue */
-        /* When out_color_space it set to JCS_EXT_RGBX, JCS_EXT_BGRX,
-           JCS_EXT_XBGR, or JCS_EXT_XRGB during decompression, the X byte is
-           undefined, and in order to ensure the best performance,
-           libjpeg-turbo can set that byte to whatever value it wishes.  Use
-           the following colorspace constants to ensure that the X byte is set
-           to 0xFF, so that it can be interpreted as an opaque alpha
-           channel. */
-        JCS_EXT_RGBA,           /* red/green/blue/alpha */
-        JCS_EXT_BGRA,           /* blue/green/red/alpha */
-        JCS_EXT_ABGR,           /* alpha/blue/green/red */
-        JCS_EXT_ARGB            /* alpha/red/green/blue */
+  JCS_UNKNOWN,            /* error/unspecified */
+  JCS_GRAYSCALE,          /* monochrome */
+  JCS_RGB,                /* red/green/blue as specified by the RGB_RED,
+                             RGB_GREEN, RGB_BLUE, and RGB_PIXELSIZE macros */
+  JCS_YCbCr,              /* Y/Cb/Cr (also known as YUV) */
+  JCS_CMYK,               /* C/M/Y/K */
+  JCS_YCCK,               /* Y/Cb/Cr/K */
+  JCS_EXT_RGB,            /* red/green/blue */
+  JCS_EXT_RGBX,           /* red/green/blue/x */
+  JCS_EXT_BGR,            /* blue/green/red */
+  JCS_EXT_BGRX,           /* blue/green/red/x */
+  JCS_EXT_XBGR,           /* x/blue/green/red */
+  JCS_EXT_XRGB,           /* x/red/green/blue */
+  /* When out_color_space it set to JCS_EXT_RGBX, JCS_EXT_BGRX, JCS_EXT_XBGR,
+     or JCS_EXT_XRGB during decompression, the X byte is undefined, and in
+     order to ensure the best performance, libjpeg-turbo can set that byte to
+     whatever value it wishes.  Use the following colorspace constants to
+     ensure that the X byte is set to 0xFF, so that it can be interpreted as an
+     opaque alpha channel. */
+  JCS_EXT_RGBA,           /* red/green/blue/alpha */
+  JCS_EXT_BGRA,           /* blue/green/red/alpha */
+  JCS_EXT_ABGR,           /* alpha/blue/green/red */
+  JCS_EXT_ARGB            /* alpha/red/green/blue */
 } J_COLOR_SPACE;
 
 /* DCT/IDCT algorithm options. */
 
 typedef enum {
-        JDCT_ISLOW,             /* slow but accurate integer algorithm */
-        JDCT_IFAST,             /* faster, less accurate integer method */
-        JDCT_FLOAT              /* floating-point: accurate, fast on fast HW */
+  JDCT_ISLOW,             /* slow but accurate integer algorithm */
+  JDCT_IFAST,             /* faster, less accurate integer method */
+  JDCT_FLOAT              /* floating-point: accurate, fast on fast HW */
 } J_DCT_METHOD;
 
 #ifndef JDCT_DEFAULT            /* may be overridden in jconfig.h */
@@ -259,9 +258,9 @@ typedef enum {
 /* Dithering options for decompression. */
 
 typedef enum {
-        JDITHER_NONE,           /* no dithering */
-        JDITHER_ORDERED,        /* simple ordered dither */
-        JDITHER_FS              /* Floyd-Steinberg error diffusion dither */
+  JDITHER_NONE,           /* no dithering */
+  JDITHER_ORDERED,        /* simple ordered dither */
+  JDITHER_FS              /* Floyd-Steinberg error diffusion dither */
 } J_DITHER_MODE;
 
 
index 710b345b06d0bd6c9c5e28cf046848fce14a9956..5b0e1bbc9a263f8a93639dd1b07a11f5ef7cac47 100644 (file)
  */
 
 typedef enum {
-        JXFORM_NONE,            /* no transformation */
-        JXFORM_FLIP_H,          /* horizontal flip */
-        JXFORM_FLIP_V,          /* vertical flip */
-        JXFORM_TRANSPOSE,       /* transpose across UL-to-LR axis */
-        JXFORM_TRANSVERSE,      /* transpose across UR-to-LL axis */
-        JXFORM_ROT_90,          /* 90-degree clockwise rotation */
-        JXFORM_ROT_180,         /* 180-degree rotation */
-        JXFORM_ROT_270          /* 270-degree clockwise (or 90 ccw) */
+  JXFORM_NONE,            /* no transformation */
+  JXFORM_FLIP_H,          /* horizontal flip */
+  JXFORM_FLIP_V,          /* vertical flip */
+  JXFORM_TRANSPOSE,       /* transpose across UL-to-LR axis */
+  JXFORM_TRANSVERSE,      /* transpose across UR-to-LL axis */
+  JXFORM_ROT_90,          /* 90-degree clockwise rotation */
+  JXFORM_ROT_180,         /* 180-degree rotation */
+  JXFORM_ROT_270          /* 270-degree clockwise (or 90 ccw) */
 } JXFORM_CODE;
 
 /*
@@ -112,10 +112,10 @@ typedef enum {
  */
 
 typedef enum {
-        JCROP_UNSET,
-        JCROP_POS,
-        JCROP_NEG,
-        JCROP_FORCE
+  JCROP_UNSET,
+  JCROP_POS,
+  JCROP_NEG,
+  JCROP_FORCE
 } JCROP_CODE;
 
 /*
@@ -204,9 +204,9 @@ EXTERN(boolean) jtransform_perfect_transform
  */
 
 typedef enum {
-        JCOPYOPT_NONE,          /* copy no optional markers */
-        JCOPYOPT_COMMENTS,      /* copy only comment (COM) markers */
-        JCOPYOPT_ALL            /* copy all optional markers */
+  JCOPYOPT_NONE,          /* copy no optional markers */
+  JCOPYOPT_COMMENTS,      /* copy only comment (COM) markers */
+  JCOPYOPT_ALL            /* copy all optional markers */
 } JCOPY_OPTION;
 
 #define JCOPYOPT_DEFAULT  JCOPYOPT_COMMENTS     /* recommended default */