]> 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@virtualgl.org>
Tue, 31 Jul 2018 21:59:16 +0000 (16:59 -0500)
Found via `codespell -q 3`

Closes #263

jdcolor.c
jdmerge.c
jquant1.c
simd/arm64/jsimd_neon.S
wrjpgcom.c

index fd7f661d5aad7c88bf9b55408c5ede53be2fe60a..dc0e3b6c0e90fe7de7c649673d657458ebc155f9 100644 (file)
--- a/jdcolor.c
+++ b/jdcolor.c
@@ -592,7 +592,7 @@ ycck_cmyk_convert(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
 /* 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 d67faec0366118ca283ce088c8f3323f458135bc..b3fec04f71e59d8f9319ba27694296553564533b 100644 (file)
--- a/jdmerge.c
+++ b/jdmerge.c
@@ -448,7 +448,7 @@ h2v2_merged_upsample(j_decompress_ptr cinfo, JSAMPIMAGE input_buf,
 /* 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 a336abdbbba4e785089fa77bc49832b2cfb98725..40bbb28cc7f653f7ce4c1d41f9cee66829520bd8 100644 (file)
--- a/jquant1.c
+++ b/jquant1.c
@@ -154,7 +154,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 218e1ae73cd9f3802dc4d5c38e09bbb3ae4a0825..93472efcf91d00b152a4de3e3fcb1ad4c5e8aaa5 100644 (file)
@@ -63,7 +63,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 faf77b41be93e31c1f89730a3ba48f85c4521502..8a4e74161e78c51c04cb2600353e9c7db2c8f969 100644 (file)
@@ -580,7 +580,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();