]> granicus.if.org Git - libjpeg-turbo/commitdiff
Correct various typos in code comments
authorluzpaz <luzpaz@users.noreply.github.com>
Tue, 31 Jul 2018 21:59:16 +0000 (21:59 +0000)
committerDRC <information@libjpeg-turbo.org>
Tue, 31 Jul 2018 22:00:48 +0000 (17:00 -0500)
Found via `codespell -q 3`

Closes #263

jdcolor.c
jdmerge.c
jquant1.c
simd/jsimd_arm64_neon.S
wrjpgcom.c

index 05cbf4df1fa8a296169289feaf1db820ea1ed067..cd13100022a7a25613b9aacd8e86ee07ecd1d8ba 100644 (file)
--- a/jdcolor.c
+++ b/jdcolor.c
@@ -600,7 +600,7 @@ ycck_cmyk_convert (j_decompress_ptr cinfo,
 /* Declarations for ordered dithering
  *
  * We use a 4x4 ordered dither array packed into 32 bits.  This array is
- * sufficent for dithering RGB888 to RGB565.
+ * sufficient for dithering RGB888 to RGB565.
  */
 
 #define DITHER_MASK       0x3
index ca6f16c252501891be4283556f0a0d1634cadcb0..55b3cbf949ad11710c79d9f0f7cb025713b56362 100644 (file)
--- a/jdmerge.c
+++ b/jdmerge.c
@@ -452,7 +452,7 @@ h2v2_merged_upsample (j_decompress_ptr cinfo,
 /* Declarations for ordered dithering
  *
  * We use a 4x4 ordered dither array packed into 32 bits.  This array is
- * sufficent for dithering RGB888 to RGB565.
+ * sufficient for dithering RGB888 to RGB565.
  */
 
 #define DITHER_MASK       0x3
index e7814815efe89733de962bde2be87ef573d1acea..0917ac096ec20dec3f7cf75c8ef4041a4efc903a 100644 (file)
--- a/jquant1.c
+++ b/jquant1.c
@@ -153,7 +153,7 @@ typedef struct {
    */
   boolean is_padded;            /* is the colorindex padded for odither? */
 
-  int Ncolors[MAX_Q_COMPS];     /* # of values alloced to each component */
+  int Ncolors[MAX_Q_COMPS];     /* # of values allocated to each component */
 
   /* Variables for ordered dithering */
   int row_index;                /* cur row's vertical index in dither matrix */
index 3309858241f2b0d01eb42babe0a8e44d15ef30f3..34f7f7d3c88df00363c2282bae3eca7679b36991 100644 (file)
@@ -62,7 +62,7 @@ _\fname:
     trn2            \x1\literal, \xi\literal, \x1\literal
 .endm
 
-/* Transpose elements of 2 differnet registers */
+/* Transpose elements of 2 different registers */
 .macro transpose x0, x1, xi, xilen, literal
     mov             \xi\xilen, \x0\xilen
     trn1            \x0\literal, \x0\literal, \x1\literal
index 531c15282588d5c3265ebff7205d2a60dc7e50bc..2d898ab25fd3c67865257e57539bbd6612327dc2 100644 (file)
@@ -581,7 +581,7 @@ main (int argc, char **argv)
     }
   }
   /* Duplicate the remainder of the source file.
-   * Note that any COM markers occuring after SOF will not be touched.
+   * Note that any COM markers occurring after SOF will not be touched.
    */
   write_marker(marker);
   copy_rest_of_file();