Fix some typos (found by codespell)
authorStefan Weil <sw@weilnetz.de>
Sun, 5 Dec 2021 12:04:30 +0000 (13:04 +0100)
committerStefan Weil <sw@weilnetz.de>
Sun, 5 Dec 2021 12:14:33 +0000 (13:14 +0100)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
26 files changed:
CMakeLists.txt
src/bin/jp2/convertpng.c
src/bin/jp2/opj_decompress.c
src/bin/jp2/windirent.h
src/bin/jpip/README
src/bin/jpip/opj_jpip_addxml.c
src/bin/wx/OPJViewer/source/OPJViewer.cpp
src/lib/openjp2/bench_dwt.c
src/lib/openjp2/cio.h
src/lib/openjp2/dwt.c
src/lib/openjp2/ht_dec.c
src/lib/openjp2/j2k.c
src/lib/openjp2/jp2.c
src/lib/openjp2/openjpeg.h
src/lib/openjp2/opj_intmath.h
src/lib/openjp2/pi.c
src/lib/openjp2/t1.h
src/lib/openjp2/t1_ht_generate_luts.c
src/lib/openjp2/t2.c
src/lib/openjpip/auxtrans_manager.c
src/lib/openjpip/imgsock_manager.h
src/lib/openjpip/index_manager.c
src/lib/openjpip/jpip_parser.c
src/lib/openjpip/metadata_manager.h
src/lib/openjpip/mhixbox_manager.h
thirdparty/README.txt

index 895fd6b0ecfb4e0b6cad50c78897e76281e6f069..52af465acd2b017193287b7a0096599acd761bb4 100644 (file)
@@ -305,7 +305,7 @@ if(BUILD_DOC)
 endif()
 
 #-----------------------------------------------------------------------------
-# Buld Testing
+# Build Testing
 option(BUILD_TESTING "Build the tests." OFF)
 if(BUILD_TESTING)
   if(BUILD_CODEC)
index b8378d35eb0fb2de308538fc148c4f17b1d90f27..385d8856ae0f365681f78e6c5f1844d5b60e133c 100644 (file)
@@ -120,7 +120,7 @@ static opj_image_t * pngtoimage_internal(opj_cparameters_t * params,
         if (png_get_valid(png, info, PNG_INFO_tRNS)) {
             png_set_expand(png);
         }
-        /* We might wan't to expand background */
+        /* We might want to expand background */
         /*
         if(png_get_valid(png, info, PNG_INFO_bKGD)) {
             png_color_16p bgnd;
index 2ce2783acd0e209e695cbbf184fcb967ccd2ae34..fc0012b6367497e4d7eac4470c1be87d844dbe69 100644 (file)
@@ -226,7 +226,7 @@ static void decode_help_display(void)
             "    OPTIONAL\n"
             "    Force the precision (bit depth) of components.\n");
     fprintf(stdout,
-            "    There shall be at least 1 value. Theres no limit on the number of values (comma separated, last values ignored if too much values).\n"
+            "    There shall be at least 1 value. There is no limit on the number of values (comma separated, last values ignored if too much values).\n"
             "    If there are less values than components, the last value is used for remaining components.\n"
             "    If 'C' is specified (default), values are clipped.\n"
             "    If 'S' is specified, values are scaled.\n"
@@ -802,7 +802,7 @@ int parse_cmdline_decoder(int argc, char **argv,
         break;
 
         /* ----------------------------------------------------- */
-        case 'c': { /* Componenets */
+        case 'c': { /* Components */
             const char* iter = opj_optarg;
             while (1) {
                 parameters->numcomps ++;
index 19509822a8f62d9ad0032b66284ce863b562c20f..2f0e4ad2523f4c68d328ad0eb653073b5a9a6e92 100644 (file)
@@ -69,7 +69,7 @@
  * handle inclusion of sys/dir.h in a part that is compiled only in Apollo
  * operating system.  To fix the problem you need to insert DIR.H into
  * SYSINCL.DAT located in MSVC\BIN directory and restart visual C++.
- * Consult manuals for more informaton about the problem.
+ * Consult manuals for more information about the problem.
  *
  * Since many UNIX systems have dirent.h we assume to have one also.
  * However, if your UNIX system does not have dirent.h you can download one
 
 /*
  * See what kind of dirent interface we have unless autoconf has already
- * determinated that.
+ * determined that.
  */
 #if !defined(HAVE_DIRENT_H) && !defined(HAVE_DIRECT_H) && !defined(HAVE_SYS_DIR_H) && !defined(HAVE_NDIR_H) && !defined(HAVE_SYS_NDIR_H) && !defined(HAVE_DIR_H)
 # if defined(_MSC_VER)                         /* Microsoft C/C++ */
 
 #elif defined(MSDOS) || defined(WIN32)
 
-/* figure out type of underlaying directory interface to be used */
+/* figure out type of underlying directory interface to be used */
 # if defined(WIN32)
 #   define DIRENT_WIN32_INTERFACE
 # elif defined(MSDOS)
@@ -254,7 +254,7 @@ typedef struct dirent {
     /*** Operating system specific part ***/
 # if defined(DIRENT_WIN32_INTERFACE)       /*WIN32*/
     WIN32_FIND_DATA data;
-# elif defined(DIRENT_MSDOS_INTERFACE)     /*MSDOS*/
+# elif defined(DIRENT_MSDOS_INTERFACE)     /*MS-DOS*/
 #   if defined(DIRENT_USE_FFBLK)
     struct ffblk data;
 #   else
@@ -592,7 +592,7 @@ rewinddir(DIR *dirp)
     /* re-open previous stream */
     if (_initdir(dirp) == 0) {
         /* initialization failed but we cannot deal with error.  User will notice
-         * error later when she tries to retrieve first directory enty. */
+         * error later when she tries to retrieve first directory entry. */
         /*EMPTY*/;
     }
 }
index 5bcb01faa8d291b152e2f0cb93d9c3c61897236d..f9baff2c0b586cdd4ecdc3f516b8eb582673bc1a 100644 (file)
@@ -92,7 +92,7 @@ Server:
  For shutting down JPIP server:
      %GET http://hostname/myFCGI?quitJPIP
      Notice, http://hostname/myFCGI is the HTTP server URI (myFCGI refers to opj_server by the server setting)
-     Requst message "quitJPIP" can be changed in Makfile, modify -DQUIT_SIGNAL=\"quitJPIP\"
+     Request message "quitJPIP" can be changed in Makefile, modify -DQUIT_SIGNAL=\"quitJPIP\"
 
 Client:
  1. Launch image decoding server, and keep it alive as long as image viewers are open
index 22fdd05b0c231d925602a7b5104b2acd0e3e7c15..78323de5ff18696f82cc5df42f1f455c15be32c4 100644 (file)
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
     long fsize, boxsize;
 
     if (argc < 3) {
-        fprintf(stderr, "USAGE: %s modifing.jp2 adding.xml\n", argv[0]);
+        fprintf(stderr, "USAGE: %s modifying.jp2 adding.xml\n", argv[0]);
         return -1;
     }
 
index bb1ea05da62ede7afceff31f29c9686c66fb5a5b..5fd23ea61381847eb3048d46f71321ae7543243c 100644 (file)
@@ -52,7 +52,7 @@
 // Name:        dialogs.cpp
 // Purpose:     Common dialogs demo
 // Author:      Julian Smart
-// Modified by: ABX (2004) - adjustements for conditional building + new menu
+// Modified by: ABX (2004) - adjustments for conditional building + new menu
 // Created:     04/01/98
 // RCS-ID:      $Id: dialogs.cpp,v 1.163 2006/11/04 10:57:24 VZ Exp $
 // Copyright:   (c) Julian Smart
 // Name:        dialogs.cpp
 // Purpose:     Common dialogs demo
 // Author:      Julian Smart
-// Modified by: ABX (2004) - adjustements for conditional building + new menu
+// Modified by: ABX (2004) - adjustments for conditional building + new menu
 // Created:     04/01/98
 // RCS-ID:      $Id: dialogs.cpp,v 1.163 2006/11/04 10:57:24 VZ Exp $
 // Copyright:   (c) Julian Smart
index 1124cd614a0bdf8981cf38bf21d17ca380a6d4d9..4f2ea9fbd1157d6f6d98e23fd2975b052065a0cd 100644 (file)
@@ -207,7 +207,7 @@ int main(int argc, char** argv)
     }
 
     if (irreversible && check) {
-        /* Due to irreversible inverse DWT not being symetric of forward */
+        /* Due to irreversible inverse DWT not being symmetric of forward */
         /* See BUG_WEIRD_TWO_INVK in dwt.c */
         printf("-I and -check aren't compatible\n");
         exit(1);
index 6996a9a0a1186f0db768caa7f17e6d6b1b423aa5..7caee30af9c7d85dcff04097c50eb04a4cb32e12 100644 (file)
@@ -118,7 +118,7 @@ typedef struct opj_stream_private {
     opj_stream_seek_fn      m_seek_fn;
 
     /**
-     * Actual data stored into the stream if readed from. Data is read by chunk of fixed size.
+     * Actual data stored into the stream if read from. Data is read by chunk of fixed size.
      * you should never access this data directly.
      */
     OPJ_BYTE *                  m_stored_data;
index 824a9fc44888c7303a5c4cf65fff69468d4c3958..2b9b9e9245c5f30dc283d382e8b5a3e63f255a66 100644 (file)
@@ -513,7 +513,7 @@ static void opj_idwt53_h(const opj_dwt_t *dwt,
 
 #if (defined(__SSE2__) || defined(__AVX2__)) && !defined(STANDARD_SLOW_VERSION)
 
-/* Conveniency macros to improve the readabilty of the formulas */
+/* Conveniency macros to improve the readability of the formulas */
 #if __AVX2__
 #define VREG        __m256i
 #define LOAD_CST(x) _mm256_set1_epi32(x)
index 5160ee73a16986b7fc67faca65fcb92f0f9bf188..1eb4d525f1154eb1df201d3a9555591fb101a47a 100644 (file)
@@ -136,7 +136,7 @@ static INLINE OPJ_UINT32 read_le_uint32(const void* dataIn)
   *  Each run represents the number of zero events before a one event.
   */
 typedef struct dec_mel {
-    // data decoding machinary
+    // data decoding machinery
     OPJ_UINT8* data;  //!<the address of data (or bitstream)
     OPJ_UINT64 tmp;   //!<temporary buffer for read data
     int bits;         //!<number of bits stored in tmp
@@ -600,7 +600,7 @@ void rev_read_mrp(rev_struct_t *mrp)
   *         an architecture that read size must be compatible with the
   *         alignment of the read address
   *
-  *  There is another simiar subroutine rev_init.  This subroutine does
+  *  There is another similar subroutine rev_init.  This subroutine does
   *  NOT skip the first 12 bits, and starts with unstuff set to true.
   *
   *  @param [in]  mrp is a pointer to rev_struct structure
@@ -1566,7 +1566,7 @@ OPJ_BOOL opj_t1_ht_decode_cblk(opj_t1_t *t1,
         }
 
         //first quad, starting at first sample in quad and moving on
-        if (qinf[0] & 0x10) { //is it signifcant? (sigma_n)
+        if (qinf[0] & 0x10) { //is it significant? (sigma_n)
             OPJ_UINT32 val;
 
             ms_val = frwd_fetch(&magsgn);         //get 32 bits of magsgn data
@@ -1816,14 +1816,14 @@ OPJ_BOOL opj_t1_ht_decode_cblk(opj_t1_t *t1,
             if ((qinf[0] & 0xF0) & ((qinf[0] & 0xF0) - 1)) { // is \gamma_q 1?
                 OPJ_UINT32 E = (ls0 & 0x7Fu);
                 E = E > (lsp[1] & 0x7Fu) ? E : (lsp[1] & 0x7Fu); //max(E, E^NE, E^NF)
-                //since U_q alread has u_q + 1, we subtract 2 instead of 1
+                //since U_q already has u_q + 1, we subtract 2 instead of 1
                 U_q[0] += E > 2 ? E - 2 : 0;
             }
 
             if ((qinf[1] & 0xF0) & ((qinf[1] & 0xF0) - 1)) { //is \gamma_q 1?
                 OPJ_UINT32 E = (lsp[1] & 0x7Fu);
                 E = E > (lsp[2] & 0x7Fu) ? E : (lsp[2] & 0x7Fu); //max(E, E^NE, E^NF)
-                //since U_q alread has u_q + 1, we subtract 2 instead of 1
+                //since U_q already has u_q + 1, we subtract 2 instead of 1
                 U_q[1] += E > 2 ? E - 2 : 0;
             }
 
@@ -2153,13 +2153,13 @@ OPJ_BOOL opj_t1_ht_decode_cblk(opj_t1_t *t1,
                 nxt_sig = y & 0x4 ? sigma1 : sigma2; //future samples
                 nxt_mbr = y & 0x4 ? mbr1 : mbr2;     //future samples
                 val = 3u << (p - 2); // sample values for newly discovered
-                // signficant samples including the bin center
+                // significant samples including the bin center
                 for (i = 0; i < width;
                         i += 8, cur_sig++, cur_mbr++, nxt_sig++, nxt_mbr++) {
                     OPJ_UINT32 ux, tx;
                     OPJ_UINT32 mbr = *cur_mbr;
                     OPJ_UINT32 new_sig = 0;
-                    if (mbr) { //are there any samples that migt be signficant
+                    if (mbr) { //are there any samples that might be significant
                         OPJ_INT32 n;
                         for (n = 0; n < 8; n += 4) {
                             OPJ_UINT32 col_mask;
@@ -2187,7 +2187,7 @@ OPJ_BOOL opj_t1_ht_decode_cblk(opj_t1_t *t1,
                                     continue;
                                 }
 
-                                //scan mbr to find a new signficant sample
+                                //scan mbr to find a new significant sample
                                 sample_mask = 0x11111111u & col_mask; // LSB
                                 if (mbr & sample_mask) {
                                     assert(dp[0] == 0); // the sample must have been 0
@@ -2196,7 +2196,7 @@ OPJ_BOOL opj_t1_ht_decode_cblk(opj_t1_t *t1,
                                         OPJ_UINT32 t;
                                         new_sig |= sample_mask;  // new significant samples
                                         t = 0x32u << (j * 4);// propagation to neighbors
-                                        mbr |= t & inv_sig; //remove already signifcant samples
+                                        mbr |= t & inv_sig; //remove already significant samples
                                     }
                                     cwd >>= 1;
                                     ++cnt; //consume bit and increment number of
@@ -2254,7 +2254,7 @@ OPJ_BOOL opj_t1_ht_decode_cblk(opj_t1_t *t1,
                                 for (j = n; j < end; ++j, ++dp, col_mask <<= 4) {
                                     OPJ_UINT32 sample_mask;
 
-                                    if ((col_mask & new_sig) == 0) { //if non is signficant
+                                    if ((col_mask & new_sig) == 0) { //if non is significant
                                         continue;
                                     }
 
index 3bfe80203df6cf4998d0383b49590aec8ccbbfbb..1063ab034d7a9cbe8b8928c1311371147cf5e738 100644 (file)
@@ -50,7 +50,7 @@
 /*@{*/
 
 /**
- * Sets up the procedures to do on reading header. Developpers wanting to extend the library can add their own reading procedures.
+ * Sets up the procedures to do on reading header. Developers wanting to extend the library can add their own reading procedures.
  */
 static OPJ_BOOL opj_j2k_setup_header_reading(opj_j2k_t *p_j2k,
         opj_event_mgr_t * p_manager);
@@ -89,22 +89,22 @@ static OPJ_BOOL opj_j2k_decoding_validation(opj_j2k_t * p_j2k,
         opj_event_mgr_t * p_manager);
 
 /**
- * Sets up the validation ,i.e. adds the procedures to lauch to make sure the codec parameters
- * are valid. Developpers wanting to extend the library can add their own validation procedures.
+ * Sets up the validation ,i.e. adds the procedures to launch to make sure the codec parameters
+ * are valid. Developers wanting to extend the library can add their own validation procedures.
  */
 static OPJ_BOOL opj_j2k_setup_encoding_validation(opj_j2k_t *p_j2k,
         opj_event_mgr_t * p_manager);
 
 /**
- * Sets up the validation ,i.e. adds the procedures to lauch to make sure the codec parameters
- * are valid. Developpers wanting to extend the library can add their own validation procedures.
+ * Sets up the validation ,i.e. adds the procedures to launch to make sure the codec parameters
+ * are valid. Developers wanting to extend the library can add their own validation procedures.
  */
 static OPJ_BOOL opj_j2k_setup_decoding_validation(opj_j2k_t *p_j2k,
         opj_event_mgr_t * p_manager);
 
 /**
- * Sets up the validation ,i.e. adds the procedures to lauch to make sure the codec parameters
- * are valid. Developpers wanting to extend the library can add their own validation procedures.
+ * Sets up the validation ,i.e. adds the procedures to launch to make sure the codec parameters
+ * are valid. Developers wanting to extend the library can add their own validation procedures.
  */
 static OPJ_BOOL opj_j2k_setup_end_compress(opj_j2k_t *p_j2k,
         opj_event_mgr_t * p_manager);
@@ -147,7 +147,7 @@ static OPJ_BOOL opj_j2k_create_tcd(opj_j2k_t *p_j2k,
                                    opj_event_mgr_t * p_manager);
 
 /**
- * Excutes the given procedures on the given codec.
+ * Executes the given procedures on the given codec.
  *
  * @param       p_procedure_list        the list of procedures to execute
  * @param       p_j2k                           the jpeg2000 codec to execute the procedures on.
@@ -1430,7 +1430,7 @@ static const opj_dec_memory_marker_handler_t j2k_memory_marker_handler_tab [] =
     {J2K_MS_MCC, J2K_STATE_MH | J2K_STATE_TPH, opj_j2k_read_mcc},
     {J2K_MS_MCO, J2K_STATE_MH | J2K_STATE_TPH, opj_j2k_read_mco},
 #ifdef USE_JPWL
-#ifdef TODO_MS /* remove these functions which are not commpatible with the v2 API */
+#ifdef TODO_MS /* remove these functions which are not compatible with the v2 API */
     {J2K_MS_EPC, J2K_STATE_MH | J2K_STATE_TPH, j2k_read_epc},
     {J2K_MS_EPB, J2K_STATE_MH | J2K_STATE_TPH, j2k_read_epb},
     {J2K_MS_ESD, J2K_STATE_MH | J2K_STATE_TPH, j2k_read_esd},
@@ -1790,7 +1790,7 @@ static OPJ_UINT32 opj_j2k_get_num_tp(opj_cp_t *cp, OPJ_UINT32 pino,
                 tpnum *= l_current_poc->layE;
                 break;
             }
-            /* whould we split here ? */
+            /* would we split here ? */
             if (cp->m_specific_param.m_enc.m_tp_flag == prog[i]) {
                 cp->m_specific_param.m_enc.m_tp_pos = i;
                 break;
@@ -8019,7 +8019,7 @@ OPJ_BOOL opj_j2k_setup_encoder(opj_j2k_t *p_j2k,
     }
 #endif /* USE_JPWL */
 
-    /* initialize the mutiple tiles */
+    /* initialize the multiple tiles */
     /* ---------------------------- */
     cp->tcps = (opj_tcp_t*) opj_calloc(cp->tw * cp->th, sizeof(opj_tcp_t));
     if (!cp->tcps) {
@@ -8829,7 +8829,7 @@ static OPJ_BOOL opj_j2k_read_header_procedure(opj_j2k_t *p_j2k,
         if (l_marker_handler->id == J2K_MS_UNK) {
             if (! opj_j2k_read_unk(p_j2k, p_stream, &l_current_marker, p_manager)) {
                 opj_event_msg(p_manager, EVT_ERROR,
-                              "Unknow marker have been detected and generated error.\n");
+                              "Unknown marker have been detected and generated error.\n");
                 return OPJ_FALSE;
             }
 
@@ -9834,7 +9834,7 @@ OPJ_BOOL opj_j2k_decode_tile(opj_j2k_t * p_j2k,
     /* When using the opj_read_tile_header / opj_decode_tile_data API */
     /* such as in test_tile_decoder, m_output_image is NULL, so fall back */
     /* to the full image dimension. This is a bit surprising that */
-    /* opj_set_decode_area() is only used to determinte intersecting tiles, */
+    /* opj_set_decode_area() is only used to determine intersecting tiles, */
     /* but full tile decoding is done */
     l_image_for_bounds = p_j2k->m_output_image ? p_j2k->m_output_image :
                          p_j2k->m_private_image;
@@ -11725,7 +11725,7 @@ static OPJ_BOOL opj_j2k_decode_tiles(opj_j2k_t *p_j2k,
 }
 
 /**
- * Sets up the procedures to do on decoding data. Developpers wanting to extend the library can add their own reading procedures.
+ * Sets up the procedures to do on decoding data. Developers wanting to extend the library can add their own reading procedures.
  */
 static OPJ_BOOL opj_j2k_setup_decoding(opj_j2k_t *p_j2k,
                                        opj_event_mgr_t * p_manager)
@@ -11857,7 +11857,7 @@ static OPJ_BOOL opj_j2k_decode_one_tile(opj_j2k_t *p_j2k,
 }
 
 /**
- * Sets up the procedures to do on decoding one tile. Developpers wanting to extend the library can add their own reading procedures.
+ * Sets up the procedures to do on decoding one tile. Developers wanting to extend the library can add their own reading procedures.
  */
 static OPJ_BOOL opj_j2k_setup_decoding_tile(opj_j2k_t *p_j2k,
         opj_event_mgr_t * p_manager)
@@ -12083,7 +12083,7 @@ OPJ_BOOL opj_j2k_get_tile(opj_j2k_t *p_j2k,
         opj_image_destroy(p_j2k->m_output_image);
     }
 
-    /* Create the ouput image from the information previously computed*/
+    /* Create the output image from the information previously computed*/
     p_j2k->m_output_image = opj_image_create0();
     if (!(p_j2k->m_output_image)) {
         return OPJ_FALSE;
index 7c065ba742be2bbe60eaa958e5583b1f7fead8d6..63a3a1a2da3d3427310928f1184ef4ae09b21e72 100644 (file)
@@ -331,14 +331,14 @@ static OPJ_BOOL opj_jp2_read_colr(opj_jp2_t *jp2,
 
 /**
  * Sets up the procedures to do on writing header after the codestream.
- * Developpers wanting to extend the library can add their own writing procedures.
+ * Developers wanting to extend the library can add their own writing procedures.
  */
 static OPJ_BOOL opj_jp2_setup_end_header_writing(opj_jp2_t *jp2,
         opj_event_mgr_t * p_manager);
 
 /**
  * Sets up the procedures to do on reading header after the codestream.
- * Developpers wanting to extend the library can add their own writing procedures.
+ * Developers wanting to extend the library can add their own writing procedures.
  */
 static OPJ_BOOL opj_jp2_setup_end_header_reading(opj_jp2_t *jp2,
         opj_event_mgr_t * p_manager);
@@ -388,13 +388,13 @@ static OPJ_BOOL opj_jp2_read_boxhdr(opj_jp2_box_t *box,
 
 /**
  * Sets up the validation ,i.e. adds the procedures to launch to make sure the codec parameters
- * are valid. Developpers wanting to extend the library can add their own validation procedures.
+ * are valid. Developers wanting to extend the library can add their own validation procedures.
  */
 static OPJ_BOOL opj_jp2_setup_encoding_validation(opj_jp2_t *jp2,
         opj_event_mgr_t * p_manager);
 
 /**
- * Sets up the procedures to do on writing header. Developpers wanting to extend the library can add their own writing procedures.
+ * Sets up the procedures to do on writing header. Developers wanting to extend the library can add their own writing procedures.
  */
 static OPJ_BOOL opj_jp2_setup_header_writing(opj_jp2_t *jp2,
         opj_event_mgr_t * p_manager);
@@ -457,14 +457,14 @@ static OPJ_BOOL opj_jp2_read_boxhdr_char(opj_jp2_box_t *box,
 
 /**
  * Sets up the validation ,i.e. adds the procedures to launch to make sure the codec parameters
- * are valid. Developpers wanting to extend the library can add their own validation procedures.
+ * are valid. Developers wanting to extend the library can add their own validation procedures.
  */
 static OPJ_BOOL opj_jp2_setup_decoding_validation(opj_jp2_t *jp2,
         opj_event_mgr_t * p_manager);
 
 /**
  * Sets up the procedures to do on reading header.
- * Developpers wanting to extend the library can add their own writing procedures.
+ * Developers wanting to extend the library can add their own writing procedures.
  */
 static OPJ_BOOL opj_jp2_setup_header_reading(opj_jp2_t *jp2,
         opj_event_mgr_t * p_manager);
index 68e4e7e106233ee58b5a73cb00c23f98f5eafb73..b200a6ac87714ff39e1d762adc28e9ed5f04ff2f 100644 (file)
@@ -455,9 +455,9 @@ typedef struct opj_cparameters {
     char infile[OPJ_PATH_LEN];
     /** output file name */
     char outfile[OPJ_PATH_LEN];
-    /** DEPRECATED. Index generation is now handeld with the opj_encode_with_info() function. Set to NULL */
+    /** DEPRECATED. Index generation is now handled with the opj_encode_with_info() function. Set to NULL */
     int index_on;
-    /** DEPRECATED. Index generation is now handeld with the opj_encode_with_info() function. Set to NULL */
+    /** DEPRECATED. Index generation is now handled with the opj_encode_with_info() function. Set to NULL */
     char index[OPJ_PATH_LEN];
     /** subimage encoding: origin image offset in x direction */
     int image_offset_x0;
@@ -1453,7 +1453,7 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_decode(opj_codec_t *p_decompressor,
  * Get the decoded tile from the codec
  *
  * @param   p_codec         the jpeg2000 codec.
- * @param   p_stream        input streamm
+ * @param   p_stream        input stream
  * @param   p_image         output image
  * @param   tile_index      index of the tile which will be decode
  *
index f8cc6139a11bed063e367e5ecb0ed9f567977bd9..1b0c9d03328379d80ba7f87abfb9739b2edfa2ff 100644 (file)
@@ -277,7 +277,7 @@ static INLINE OPJ_INT32 opj_int_fix_mul_t1(OPJ_INT32 a, OPJ_INT32 b)
 }
 
 /**
-Addtion two signed integers with a wrap-around behaviour.
+Addition two signed integers with a wrap-around behaviour.
 Assumes complement-to-two signed integers.
 @param a
 @param b
index ccc5b75cf563f8c7f10a2c1a81baf880ed50f4e3..38f1ba5a70f357717105d265bccb014cb2606906 100644 (file)
@@ -943,7 +943,7 @@ static void opj_get_all_encoding_parameters(const opj_image_t *p_image,
     *p_dy_min = 0x7fffffff;
 
     for (compno = 0; compno < p_image->numcomps; ++compno) {
-        /* aritmetic variables to calculate*/
+        /* arithmetic variables to calculate*/
         OPJ_UINT32 l_level_no;
         OPJ_UINT32 l_rx0, l_ry0, l_rx1, l_ry1;
         OPJ_UINT32 l_px0, l_py0, l_px1, py1;
@@ -1225,7 +1225,7 @@ static void opj_pi_update_decode_poc(opj_pi_iterator_t * p_pi,
     /* loop*/
     OPJ_UINT32 pino;
 
-    /* encoding prameters to set*/
+    /* encoding parameters to set*/
     OPJ_UINT32 l_bound;
 
     opj_pi_iterator_t * l_current_pi = 00;
@@ -1272,7 +1272,7 @@ static void opj_pi_update_decode_not_poc(opj_pi_iterator_t * p_pi,
     /* loop*/
     OPJ_UINT32 pino;
 
-    /* encoding prameters to set*/
+    /* encoding parameters to set*/
     OPJ_UINT32 l_bound;
 
     opj_pi_iterator_t * l_current_pi = 00;
@@ -1401,11 +1401,11 @@ opj_pi_iterator_t *opj_pi_create_decode(opj_image_t *p_image,
     OPJ_UINT32 pino;
     OPJ_UINT32 compno, resno;
 
-    /* to store w, h, dx and dy fro all components and resolutions */
+    /* to store w, h, dx and dy for all components and resolutions */
     OPJ_UINT32 * l_tmp_data;
     OPJ_UINT32 ** l_tmp_ptr;
 
-    /* encoding prameters to set */
+    /* encoding parameters to set */
     OPJ_UINT32 l_max_res;
     OPJ_UINT32 l_max_prec;
     OPJ_UINT32 l_tx0, l_tx1, l_ty0, l_ty1;
@@ -1624,11 +1624,11 @@ opj_pi_iterator_t *opj_pi_initialise_encode(const opj_image_t *p_image,
     OPJ_UINT32 pino;
     OPJ_UINT32 compno, resno;
 
-    /* to store w, h, dx and dy fro all components and resolutions*/
+    /* to store w, h, dx and dy for all components and resolutions*/
     OPJ_UINT32 * l_tmp_data;
     OPJ_UINT32 ** l_tmp_ptr;
 
-    /* encoding prameters to set*/
+    /* encoding parameters to set*/
     OPJ_UINT32 l_max_res;
     OPJ_UINT32 l_max_prec;
     OPJ_UINT32 l_tx0, l_tx1, l_ty0, l_ty1;
index 81ad0d00f17d11a7a33d6c1a02222d3ab47faf14..ce43658ba383c31c557e6e974be77750d55142d0 100644 (file)
@@ -200,7 +200,7 @@ typedef struct opj_t1 {
     OPJ_UINT32 flagssize;
     OPJ_BOOL   encoder;
 
-    /* Thre 3 variables below are only used by the decoder */
+    /* The 3 variables below are only used by the decoder */
     /* set to TRUE in multithreaded context */
     OPJ_BOOL     mustuse_cblkdatabuffer;
     /* Temporary buffer to concatenate all chunks of a codebock */
index 3fd14eb96bb86c4dbc31d6d4dc4a2b6f0fdfbd67..6876e3fd7f0a5cd2b268cbafec4f323b37fa57e9 100644 (file)
@@ -887,7 +887,7 @@ static vlc_src_table_t tbl1[] = {
   *  \li \c cwd_len : 3bits -> the codeword length of the VLC codeword;
   *                   the VLC cwd is in the LSB of bitstream              \n
   *  \li \c u_off   : 1bit  -> u_offset, which is 1 if u value is not 0   \n
-  *  \li \c rho     : 4bits -> signficant samples within a quad           \n
+  *  \li \c rho     : 4bits -> significant samples within a quad          \n
   *  \li \c e_1     : 4bits -> EMB e_1                                    \n
   *  \li \c e_k     : 4bits -> EMB e_k                                    \n
   *                                                                       \n
@@ -924,7 +924,7 @@ OPJ_BOOL vlc_init_tables()
     }
 
     // this is to convert table entries into values for decoder look up
-    // There can be at most 1024 possibilites, not all of them are valid.
+    // There can be at most 1024 possibilities, not all of them are valid.
     //
     for (int i = 0; i < 1024; ++i) {
         int cwd = i & 0x7F; // from i extract codeword
index 48f8949bfbb2054c802b850cb2da5e1fb1c0632e..0660389268fa23a9580c1e677fa69bdd1121a406 100644 (file)
@@ -1124,7 +1124,7 @@ static OPJ_BOOL opj_t2_read_packet_header(opj_t2_t* p_t2,
 
     /*
     When the marker PPT/PPM is used the packet header are store in PPT/PPM marker
-    This part deal with this caracteristic
+    This part deal with this characteristic
     step 1: Read packet header in the saved structure
     step 2: Return to codestream for decoding
     */
index 8f364b6d55d2bdc5af820d34769b34d070cacc38..1471974d94d86f086ff809dc3a31c5011f593399 100644 (file)
@@ -87,7 +87,7 @@ typedef struct aux_response_param {
     unsigned char *data;  /*!< sending data */
     OPJ_SIZE_T datalen;          /*!< length of data */
     OPJ_SIZE_T maxlenPerFrame;   /*!< maximum data length to send per frame */
-    SOCKET listensock;    /*!< listeing socket */
+    SOCKET listensock;    /*!< listening socket */
 #ifdef _WIN32
     HANDLE hTh;           /*!< thread handle */
 #endif
@@ -131,7 +131,7 @@ void send_responsedata_on_aux(OPJ_BOOL istcp, auxtrans_param_t auxtrans,
         auxresponse->hTh = (HANDLE)_beginthreadex(NULL, 0, &aux_streaming, auxresponse,
                            0, &threadId);
         if (auxresponse->hTh == 0) {
-            fprintf(FCGI_stderr, "ERRO: pthread_create() %s",
+            fprintf(FCGI_stderr, "ERROR: pthread_create() %s",
                     strerror((int)auxresponse->hTh));
         }
 #else
index 3f5b18f5d110c5f200a67e139af7a17e70e8f7c6..1343120a7d41befee8e6790fa3ce2aa5d0d955eb 100644 (file)
@@ -77,7 +77,7 @@ void send_PNMstream(SOCKET connected_socket, Byte_t *pnmstream,
  *
  * @param [in]  connected_socket file descriptor of the connected socket
  * @param [in]  xmlstream        xml data stream
- * @param [in]  length           legnth of the xml data stream
+ * @param [in]  length           length of the xml data stream
  */
 void send_XMLstream(SOCKET connected_socket, Byte_t *xmlstream,
                     OPJ_SIZE_T length);
@@ -87,7 +87,7 @@ void send_XMLstream(SOCKET connected_socket, Byte_t *xmlstream,
  *
  * @param [in]  connected_socket file descriptor of the connected socket
  * @param [in]  tid              tid string
- * @param [in]  tidlen           legnth of the tid string
+ * @param [in]  tidlen           length of the tid string
  */
 void send_TIDstream(SOCKET connected_socket, const char *tid,
                     OPJ_SIZE_T tidlen);
@@ -97,7 +97,7 @@ void send_TIDstream(SOCKET connected_socket, const char *tid,
  *
  * @param [in]  connected_socket file descriptor of the connected socket
  * @param [in]  cid              cid string
- * @param [in]  cidlen           legnth of the cid string
+ * @param [in]  cidlen           length of the cid string
  */
 void send_CIDstream(SOCKET connected_socket, const char *cid,
                     OPJ_SIZE_T cidlen);
index 8975375273b423f9783b49691ab81ae2aba9f6bf..64e760d772a843030031ec3bd920871efea03f89 100644 (file)
@@ -53,7 +53,7 @@
 #endif /*SERVER*/
 
 /**
- * chekc JP2 box indexing
+ * check JP2 box indexing
  *
  * @param[in] toplev_boxlist top level box list
  * @return                   if correct (true) or wrong (false)
index 6d8f9500f4308a8afe1ced727fe3c1de72eaeadf..5cea13fe7c54cbbd89ad0dec298857e396469cf5 100644 (file)
@@ -140,7 +140,7 @@ OPJ_BOOL close_channel(query_param_t query_param,
 #ifndef SERVER
         fprintf(logstream, "local log: close all\n");
 #endif
-        /* all channels associatd with the session will be closed */
+        /* all channels associated with the session will be closed */
         if (!delete_session(cursession, sessionlist)) {
             return OPJ_FALSE;
         }
index 6cf00306961a7f4d383e6176c10c335dedc46a17..1a38973652365f8ed201fa4fac508962d619f463 100644 (file)
@@ -45,7 +45,7 @@ typedef struct metadata_param {
     boxlist_param_t *boxlist;                 /**< box list*/
     placeholderlist_param_t *placeholderlist; /**< placeholder box list*/
     boxcontents_param_t
-    *boxcontents;         /**< box contens in case of no boxlist and placeholderlist*/
+    *boxcontents;         /**< box contents in case of no boxlist and placeholderlist*/
     struct metadata_param
         *next;              /**< pointer to the next metadata-bin*/
 } metadata_param_t;
index 8b39e58dc4d8794cc7359fc29959ad32d608f7e6..40a0f6f18b4e17e871c5f4ad0eb07b26037951dc 100644 (file)
@@ -37,7 +37,7 @@
 /** Marker index parameters*/
 typedef struct markeridx_param {
     Byte2_t code;                 /**< marker code*/
-    Byte2_t num_remain;           /**< remining number of the same marker index segments listed immediately*/
+    Byte2_t num_remain;           /**< remaining number of the same marker index segments listed immediately*/
     OPJ_OFF_T offset;               /**< offset relative to the start of the*/
     /**codestream ( including the length*/
     /**parameter but not the marker itself)*/
index 85c95b55efeb3507b80ca138c1c60fc418f3e2ff..8c4f0bcc6ec9c06ef7e3555000fad971d8a4db92 100644 (file)
@@ -1,6 +1,6 @@
 This directory contains 3rd party libs (PNG, ZLIB)...
 
-They are convinient copy of code from people outside of the OpenJPEG community.
+They are convenient copy of code from people outside of the OpenJPEG community.
 They are solely provided for ease of build of OpenJPEG on system where those
 3rd party libs are not easily accessible (typically non-UNIX).