Fix typos in comments and string
authorStefan Weil <sw@weilnetz.de>
Tue, 29 Sep 2015 03:55:43 +0000 (05:55 +0200)
committerStefan Weil <sw@weilnetz.de>
Tue, 29 Sep 2015 03:55:43 +0000 (05:55 +0200)
Most typos were found by codespell.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
47 files changed:
cmake/CTestCustom.cmake.in
doc/openjpip.dox.in
src/bin/jp2/convert.c
src/bin/jp2/opj_decompress.c
src/bin/jp2/windirent.h
src/bin/jp3d/windirent.h
src/bin/jpwl/convert.c
src/bin/jpwl/opj_jpwl_compress.c
src/bin/jpwl/windirent.h
src/bin/mj2/meta_out.c
src/bin/mj2/mj2_to_metadata.c
src/bin/mj2/opj_mj2_wrap.c
src/bin/wx/OPJViewer/source/readmebefore.txt
src/lib/openjp2/cio.h
src/lib/openjp2/dwt.h
src/lib/openjp2/indexbox_manager.h
src/lib/openjp2/invert.c
src/lib/openjp2/j2k.c
src/lib/openjp2/jp2.c
src/lib/openjp2/jp2.h
src/lib/openjp2/mct.c
src/lib/openjp2/openjpeg.h
src/lib/openjp2/opj_malloc.h
src/lib/openjp2/pi.h
src/lib/openjp2/tcd.h
src/lib/openjp3d/cio.h
src/lib/openjp3d/dwt.c
src/lib/openjp3d/dwt.h
src/lib/openjp3d/mct.c
src/lib/openjp3d/openjp3d.h
src/lib/openjp3d/pi.h
src/lib/openjpip/cachemodel_manager.h
src/lib/openjpip/jpip_parser.c
src/lib/openjpip/target_manager.h
src/lib/openjpwl/jpwl.h
src/lib/openjpwl/rs.c
src/lib/openmj2/cio.h
src/lib/openmj2/dwt.h
src/lib/openmj2/jp2.h
src/lib/openmj2/mct.c
src/lib/openmj2/openjpeg.h
src/lib/openmj2/opj_malloc.h
src/lib/openmj2/pi.h
tests/nonregression/CMakeLists.txt
tests/nonregression/test_suite.ctest.in
wrapping/java/openjp2/JavaOpenJPEG.c
wrapping/java/openjp2/JavaOpenJPEGDecoder.c

index a8cb57ae960ef588eb64f93b0bf9db2c2bdb95d7..70e045dab8065064a0593c61b2374809cdf1e173 100644 (file)
@@ -30,7 +30,7 @@ set(CTEST_CUSTOM_WARNING_EXCEPTION
   # java also warns about deprecated API
   ".*java.*deprecation"
   ".*deprecation.*"
-  # supress warnings caused by 3rd party libs:
+  # suppress warnings caused by 3rd party libs:
   ".*thirdparty.*"
   "libtiff.*has no symbols"
   "libpng.*has no symbols"
index e54ca75d8f056cdb39a398c0abd0892e22bb403c..09ed9073c645b7ab7e8cff6bcbf4bbcce3803e4b 100644 (file)
@@ -64,7 +64,7 @@
  *
  * 
  * \section sysarchtect System Architecture
- * JPIP protocol is implimented between the JPIP server program (opj_server) and the JPIP client java program (opj_viewer).\n
+ * JPIP protocol is implemented between the JPIP server program (opj_server) and the JPIP client java program (opj_viewer).\n
  * Figure below represents the overview of our system architecture.\n
  * The JPIP server parses JPIP query and sends corresponding JPT/JPP-stream.
  * The JPIP client viewer is an image viewer with GUI to publish JPIP requests and receive JPT/JPP-stream.\n
index 1fd64ee7ef93ffe935441258bd6611d92108647c..1a18711caf0096fde67b054438dc9b85091ccde9 100644 (file)
@@ -1256,7 +1256,7 @@ int imagetopgx(opj_image_t * image, const char *outfile)
     strncpy(name, outfile, dotpos);
     sprintf(name+dotpos, "_%d.pgx", compno);
     fdest = fopen(name, "wb");
-    /* dont need name anymore */
+    /* don't need name anymore */
                        
     if (!fdest) 
                {
index 3db36ebe6d53f7c35699ecba9a367a7378e6ddd4..04803e0ed96dd4496f6cebc6a51c55623c9dda52 100644 (file)
@@ -1108,7 +1108,7 @@ static opj_image_t* upsample_image_components(opj_image_t* original)
                                l_dst += l_new_cmp->w;
                        }
                        
-                       if(l_new_cmp->h > (l_org_cmp->dy - 1U)) { /* check substraction overflow for really small images */
+                       if(l_new_cmp->h > (l_org_cmp->dy - 1U)) { /* check subtraction overflow for really small images */
                                for (; y < l_new_cmp->h - (l_org_cmp->dy - 1U); y += l_org_cmp->dy) {
                                        OPJ_UINT32 x, dy;
                                        OPJ_UINT32 xorg;
@@ -1117,7 +1117,7 @@ static opj_image_t* upsample_image_components(opj_image_t* original)
                                        for (x = 0U; x < xoff; ++x) {
                                                l_dst[x] = 0;
                                        }
-                                       if (l_new_cmp->w > (l_org_cmp->dx - 1U)) { /* check substraction overflow for really small images */
+                                       if (l_new_cmp->w > (l_org_cmp->dx - 1U)) { /* check subtraction overflow for really small images */
                                                for (; x < l_new_cmp->w - (l_org_cmp->dx - 1U); x += l_org_cmp->dx, ++xorg) {
                                                        OPJ_UINT32 dx;
                                                        for (dx = 0U; dx < l_org_cmp->dx; ++dx) {
@@ -1145,7 +1145,7 @@ static opj_image_t* upsample_image_components(opj_image_t* original)
                                for (x = 0U; x < xoff; ++x) {
                                        l_dst[x] = 0;
                                }
-                               if (l_new_cmp->w > (l_org_cmp->dx - 1U)) { /* check substraction overflow for really small images */
+                               if (l_new_cmp->w > (l_org_cmp->dx - 1U)) { /* check subtraction overflow for really small images */
                                        for (; x < l_new_cmp->w - (l_org_cmp->dx - 1U); x += l_org_cmp->dx, ++xorg) {
                                                OPJ_UINT32 dx;
                                                for (dx = 0U; dx < l_org_cmp->dx; ++dx) {
index 944b7d719b9c848f7f3b2d41b2c7a3ea740bed4d..bef28194f19ff0afb822d0199896220514905b74 100644 (file)
    * Substitute for real dirent structure.  Note that `d_name' field is a
    * true character array although we have it copied in the implementation
    * dependent data.  We could save some memory if we had declared `d_name'
-   * as a pointer refering the name within implementation dependent data.
+   * as a pointer referring the name within implementation dependent data.
    * We have not done that since some code may rely on sizeof(d_name) to be
    * something other than four.  Besides, directory entries are typically so
    * small that it takes virtually no time to copy them from place to place.
@@ -411,7 +411,7 @@ static DIR *opendir(const char *dirname)
  * capacity of d_name with different macros and some systems do not define
  * capacity at all (besides actual declaration of the field). If you really
  * need to find out storage capacity of d_name then you might want to try
- * NAME_MAX macro. The NAME_MAX is defined in POSIX standard althought
+ * NAME_MAX macro. The NAME_MAX is defined in POSIX standard although
  * there are many MS-DOS and MS-Windows implementations those do not define
  * it.  There are also systems that declare d_name as "char d_name[1]" and
  * then allocate suitable amount of memory at run-time.  Thanks to Alain
@@ -466,7 +466,7 @@ readdir (DIR *dirp)
     /* fill in entry and return that */
 #if defined(DIRENT_WIN32_INTERFACE)
     if (FindNextFile (dirp->search_handle, &dirp->current.data) == FALSE) {
-      /* Last file has been processed or an error occured */
+      /* Last file has been processed or an error occurred */
       FindClose (dirp->search_handle);
       dirp->search_handle = INVALID_HANDLE_VALUE;
       errno = ENOENT;
index 72b38cea1c0a930219a7a62b36ec1618bd60f7f2..2494cd4eab6c21fc384a6984b28cd9d43f1f6451 100644 (file)
    * Substitute for real dirent structure.  Note that `d_name' field is a
    * true character array although we have it copied in the implementation
    * dependent data.  We could save some memory if we had declared `d_name'
-   * as a pointer refering the name within implementation dependent data.
+   * as a pointer referring the name within implementation dependent data.
    * We have not done that since some code may rely on sizeof(d_name) to be
    * something other than four.  Besides, directory entries are typically so
    * small that it takes virtually no time to copy them from place to place.
@@ -410,7 +410,7 @@ static DIR *opendir(const char *dirname)
  * capacity of d_name with different macros and some systems do not define
  * capacity at all (besides actual declaration of the field). If you really
  * need to find out storage capacity of d_name then you might want to try
- * NAME_MAX macro. The NAME_MAX is defined in POSIX standard althought
+ * NAME_MAX macro. The NAME_MAX is defined in POSIX standard although
  * there are many MS-DOS and MS-Windows implementations those do not define
  * it.  There are also systems that declare d_name as "char d_name[1]" and
  * then allocate suitable amount of memory at run-time.  Thanks to Alain
@@ -465,7 +465,7 @@ readdir (DIR *dirp)
     /* fill in entry and return that */
 #if defined(DIRENT_WIN32_INTERFACE)
     if (FindNextFile (dirp->search_handle, &dirp->current.data) == FALSE) {
-      /* Last file has been processed or an error occured */
+      /* Last file has been processed or an error occurred */
       FindClose (dirp->search_handle);
       dirp->search_handle = INVALID_HANDLE_VALUE;
       errno = ENOENT;
index de04e22fce101901962f34b6deeae29968a7ed83..bf7b564159528d39c4bc9c37457c582e859484c2 100644 (file)
@@ -1436,7 +1436,7 @@ int imagetopgx(opj_image_t * image, const char *outfile) {
                        fprintf(stderr, "ERROR -> failed to open %s for writing\n", name);
                        return 1;
                }
-    /* dont need name anymore */
+    /* don't need name anymore */
     if( total > 256 ) {
       free(name);
       }
index 7537b61de54f1aba4cbb053f14953d2010fdff9a..7410486e8510aee441661ea70bee7083100fa9ec 100644 (file)
@@ -199,7 +199,7 @@ static void encode_help_display(void) {
        fprintf(stdout,"                 Indicate multiple modes by adding their values. \n");
        fprintf(stdout,"                 ex: RESTART(4) + RESET(2) + SEGMARK(32) = -M 38\n");
        fprintf(stdout,"\n");
-       fprintf(stdout,"-TP          : devide packets of every tile into tile-parts (-TP R) [R, L, C]\n");
+       fprintf(stdout,"-TP          : divide packets of every tile into tile-parts (-TP R) [R, L, C]\n");
        fprintf(stdout,"\n");
        fprintf(stdout,"-x           : create an index file *.Idx (-x index_name.Idx) \n");
        fprintf(stdout,"\n");
index 944b7d719b9c848f7f3b2d41b2c7a3ea740bed4d..bef28194f19ff0afb822d0199896220514905b74 100644 (file)
    * Substitute for real dirent structure.  Note that `d_name' field is a
    * true character array although we have it copied in the implementation
    * dependent data.  We could save some memory if we had declared `d_name'
-   * as a pointer refering the name within implementation dependent data.
+   * as a pointer referring the name within implementation dependent data.
    * We have not done that since some code may rely on sizeof(d_name) to be
    * something other than four.  Besides, directory entries are typically so
    * small that it takes virtually no time to copy them from place to place.
@@ -411,7 +411,7 @@ static DIR *opendir(const char *dirname)
  * capacity of d_name with different macros and some systems do not define
  * capacity at all (besides actual declaration of the field). If you really
  * need to find out storage capacity of d_name then you might want to try
- * NAME_MAX macro. The NAME_MAX is defined in POSIX standard althought
+ * NAME_MAX macro. The NAME_MAX is defined in POSIX standard although
  * there are many MS-DOS and MS-Windows implementations those do not define
  * it.  There are also systems that declare d_name as "char d_name[1]" and
  * then allocate suitable amount of memory at run-time.  Thanks to Alain
@@ -466,7 +466,7 @@ readdir (DIR *dirp)
     /* fill in entry and return that */
 #if defined(DIRENT_WIN32_INTERFACE)
     if (FindNextFile (dirp->search_handle, &dirp->current.data) == FALSE) {
-      /* Last file has been processed or an error occured */
+      /* Last file has been processed or an error occurred */
       FindClose (dirp->search_handle);
       dirp->search_handle = INVALID_HANDLE_VALUE;
       errno = ENOENT;
index b679504529673a539747d75e23abf92a2ac801b8..f5ca0be862a88fa496c4e69c4fde438a2d1bd674 100644 (file)
@@ -375,7 +375,7 @@ void xml_write_free_and_skip(FILE* xmlout, opj_mj2_t * movie) {
 }
 
 void xml_write_uuid(FILE* xmlout, opj_mj2_t * movie) {
-/* Univeral Unique IDs of 16 bytes.  */
+/* Universal Unique IDs of 16 bytes.  */
 #ifdef NOTYET
   /* NO-OP so far.  There can be zero or more instances of private uuid boxes in a file.
      This function supports the top level of the file, but uuid may be elsewhere [not yet supported].
@@ -962,7 +962,7 @@ int xml_out_frame(FILE* file, FILE* xmlout, mj2_sample_t *sample, unsigned int s
   fprintf(xmlout,      "      <JP2_Frame Num=\"%d\">\n", snum+1);
   fprintf(xmlout,      "        <MainHeader>\n");
   /* There can be multiple codestreams; a particular image is entirely within a single codestream */
-  /* TO DO:  A frame can be represented by two I-guess-contigious codestreams if its interleaved. */
+  /* TO DO:  A frame can be represented by two I-guess-contiguous codestreams if its interleaved. */
   fprintf(xmlout,      "          <StartOfCodestream Marker=\"SOC\" />\n");
   /* "cp" stands for "coding parameter"; "tcp" is tile coding parameters, "tccp" is tile-component coding parameters */
   xml_out_frame_siz(xmlout, img, cp); /* reqd in main */
index 489f19cb4855ce3fae1cb3132c622a06c272bf9d..2ec2829d9713d946668215c8d9a58f89a0aef02e 100644 (file)
@@ -64,7 +64,7 @@ void help_display()
   fprintf(stdout,"----------\n");
   fprintf(stdout,"The metadata includes the jp2 image and tile headers of the first frame.\n");
   fprintf(stdout,"\n");
-  fprintf(stdout,"Metadata values are shown in 'raw' form (e.g., hexidecimal) as stored in the\n");
+  fprintf(stdout,"Metadata values are shown in 'raw' form (e.g., hexadecimal) as stored in the\n");
   fprintf(stdout,"file, and, if apt, in a 'derived' form that is more quickly grasped.\n");
   fprintf(stdout,"\n");
   fprintf(stdout,"Notes explaining the XML are embedded as terse comments.  These include\n");
index 7daa147f3c36b747ac7b4a8003c54dc4caaf3ce6..59fb871dc9926859c8825d93f0b763ccc1e57ab3 100644 (file)
@@ -356,7 +356,7 @@ static void setparams(opj_mj2_t *movie, opj_image_t *image) {
      movie->tk[0].jp2_struct.enumcs = 18;  /* YUV */
   
   else
-    movie->tk[0].jp2_struct.enumcs = 0;        /* Unkown profile */
+    movie->tk[0].jp2_struct.enumcs = 0;        /* Unknown profile */
 }
 
 int main(int argc, char *argv[]) {
index a59b0e8702281d405d8e4f702d7798e162fa8893..c945d29118fbfaf2478486ba39ea8fb68de6680d 100644 (file)
@@ -8,4 +8,4 @@ Anybody. As the OpenJPEG library is released under the BSD license, anybody can
 
 Who is developing the library ?
 ===============================
-The library is developed by the Communications and Remote Sensing Lab (TELE), in the Universit� Catholique de Louvain (UCL). The JPWL module is developped and maintained by the Digital Signal Processing Lab (DSPLab) of the University of Perugia, Italy (UNIPG). As our purpose is to make OpenJPEG really useful for those interested in the image compression field, any feedback/advices are obviously welcome ! We will do our best to handle them quickly. 
\ No newline at end of file
+The library is developed by the Communications and Remote Sensing Lab (TELE), in the Universit� Catholique de Louvain (UCL). The JPWL module is developed and maintained by the Digital Signal Processing Lab (DSPLab) of the University of Perugia, Italy (UNIPG). As our purpose is to make OpenJPEG really useful for those interested in the image compression field, any feedback/advices are obviously welcome ! We will do our best to handle them quickly.
index 6dfa5bb847b338f2c2a3d45fae8feb178184b598..1b684ef881356f64de55b2c9e5cc971d943db766 100644 (file)
@@ -184,7 +184,7 @@ void opj_write_bytes_BE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_n
  * @param p_buffer             pointer the data buffer to read data from.
  * @param p_value              pointer to the value that will store the data.
  * @param p_nb_bytes   the nb bytes to read.
- * @return                             the number of bytes read or -1 if an error occured.
+ * @return                             the number of bytes read or -1 if an error occurred.
  */
 void opj_read_bytes_BE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT32 p_nb_bytes);
 
@@ -193,7 +193,7 @@ void opj_read_bytes_BE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT
  * @param p_buffer             pointer the data buffer to write data to.
  * @param p_value              the value to write
  * @param p_nb_bytes   the number of bytes to write
- * @return                             the number of bytes written or -1 if an error occured
+ * @return                             the number of bytes written or -1 if an error occurred
 */
 void opj_write_bytes_LE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes);
 
@@ -202,7 +202,7 @@ void opj_write_bytes_LE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_n
  * @param p_buffer             pointer the data buffer to read data from.
  * @param p_value              pointer to the value that will store the data.
  * @param p_nb_bytes   the nb bytes to read.
- * @return                             the number of bytes read or -1 if an error occured.
+ * @return                             the number of bytes read or -1 if an error occurred.
  */
 void opj_read_bytes_LE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT32 p_nb_bytes);
 
@@ -269,7 +269,7 @@ void opj_write_float_BE(OPJ_BYTE * p_buffer, OPJ_FLOAT32 p_value);
  * @param              p_buffer        pointer to the data buffer that will receive the data.
  * @param              p_size          number of bytes to read.
  * @param              p_event_mgr     the user event manager to be notified of special events.
- * @return             the number of bytes read, or -1 if an error occured or if the stream is at the end.
+ * @return             the number of bytes read, or -1 if an error occurred or if the stream is at the end.
  */
 OPJ_SIZE_T opj_stream_read_data (opj_stream_private_t * p_stream,OPJ_BYTE * p_buffer, OPJ_SIZE_T p_size, struct opj_event_mgr * p_event_mgr);
 
@@ -279,7 +279,7 @@ OPJ_SIZE_T opj_stream_read_data (opj_stream_private_t * p_stream,OPJ_BYTE * p_bu
  * @param              p_buffer        pointer to the data buffer holds the data to be writtent.
  * @param              p_size          number of bytes to write.
  * @param              p_event_mgr     the user event manager to be notified of special events.
- * @return             the number of bytes writtent, or -1 if an error occured.
+ * @return             the number of bytes writtent, or -1 if an error occurred.
  */
 OPJ_SIZE_T opj_stream_write_data (opj_stream_private_t * p_stream,const OPJ_BYTE * p_buffer, OPJ_SIZE_T p_size, struct opj_event_mgr * p_event_mgr);
 
@@ -296,7 +296,7 @@ OPJ_BOOL opj_stream_flush (opj_stream_private_t * p_stream, struct opj_event_mgr
  * @param              p_stream        the stream to skip data from.
  * @param              p_size          the number of bytes to skip.
  * @param              p_event_mgr     the user event manager to be notified of special events.
- * @return             the number of bytes skipped, or -1 if an error occured.
+ * @return             the number of bytes skipped, or -1 if an error occurred.
  */
 OPJ_OFF_T opj_stream_skip (opj_stream_private_t * p_stream,OPJ_OFF_T p_size, struct opj_event_mgr * p_event_mgr);
 
@@ -324,7 +324,7 @@ OPJ_OFF_T opj_stream_get_number_byte_left (const opj_stream_private_t * p_stream
  * @param              p_stream        the stream to skip data from.
  * @param              p_size          the number of bytes to skip.
  * @param              p_event_mgr     the user event manager to be notified of special events.
- * @return             the number of bytes skipped, or -1 if an error occured.
+ * @return             the number of bytes skipped, or -1 if an error occurred.
  */
 OPJ_OFF_T opj_stream_write_skip (opj_stream_private_t * p_stream, OPJ_OFF_T p_size, struct opj_event_mgr * p_event_mgr);
 
@@ -333,7 +333,7 @@ OPJ_OFF_T opj_stream_write_skip (opj_stream_private_t * p_stream, OPJ_OFF_T p_si
  * @param              p_stream        the stream to skip data from.
  * @param              p_size          the number of bytes to skip.
  * @param              p_event_mgr     the user event manager to be notified of special events.
- * @return             the number of bytes skipped, or -1 if an error occured.
+ * @return             the number of bytes skipped, or -1 if an error occurred.
  */
 OPJ_OFF_T opj_stream_read_skip (opj_stream_private_t * p_stream, OPJ_OFF_T p_size, struct opj_event_mgr * p_event_mgr);
 
@@ -342,7 +342,7 @@ OPJ_OFF_T opj_stream_read_skip (opj_stream_private_t * p_stream, OPJ_OFF_T p_siz
  * @param              p_stream        the stream to skip data from.
  * @param              p_size          the number of bytes to skip.
  * @param              p_event_mgr     the user event manager to be notified of special events.
- * @return             OPJ_TRUE if success, or OPJ_FALSE if an error occured.
+ * @return             OPJ_TRUE if success, or OPJ_FALSE if an error occurred.
  */
 OPJ_BOOL opj_stream_read_seek (opj_stream_private_t * p_stream, OPJ_OFF_T p_size, struct opj_event_mgr * p_event_mgr);
 
@@ -351,7 +351,7 @@ OPJ_BOOL opj_stream_read_seek (opj_stream_private_t * p_stream, OPJ_OFF_T p_size
  * @param              p_stream        the stream to skip data from.
  * @param              p_size          the number of bytes to skip.
  * @param              p_event_mgr     the user event manager to be notified of special events.
- * @return             the number of bytes skipped, or -1 if an error occured.
+ * @return             the number of bytes skipped, or -1 if an error occurred.
  */
 OPJ_BOOL opj_stream_write_seek (opj_stream_private_t * p_stream, OPJ_OFF_T p_size, struct opj_event_mgr * p_event_mgr);
 
index f8b57bc0c76e2df85234f0061f3efd0570d37b22..21fe942a984e5c3b6568025fa1051f3bec677757 100644 (file)
@@ -54,14 +54,14 @@ DWT.C are used by some function in TCD.C.
 /*@{*/
 /* ----------------------------------------------------------------------- */
 /**
-Forward 5-3 wavelet tranform in 2-D. 
+Forward 5-3 wavelet transform in 2-D.
 Apply a reversible DWT transform to a component of an image.
 @param tilec Tile component information (current tile)
 */
 OPJ_BOOL opj_dwt_encode(opj_tcd_tilecomp_t * tilec);
 
 /**
-Inverse 5-3 wavelet tranform in 2-D.
+Inverse 5-3 wavelet transform in 2-D.
 Apply a reversible inverse DWT transform to a component of an image.
 @param tilec Tile component information (current tile)
 @param numres Number of resolution levels to decode
index ec5525f530b3ab4734fc4c9034e2557f3dccf31b..ebcde8fec4c580fa9c2907a13905c1d4444bdc52 100644 (file)
@@ -108,7 +108,7 @@ int opj_write_phix( int coff, opj_codestream_info_t cstr_info, OPJ_BOOL EPHused,
               opj_event_mgr_t * p_manager );
 
 /* 
- * Wriet manifest box (box)
+ * Write manifest box (box)
  *
  * @param[in] second number to be visited
  * @param[in] v      number of boxes
index dd4998a905c288a6945ed922d0557bb07ffeef60..7efaf6eca24f2e7c7680dea7a6f69a50eb5386d6 100644 (file)
@@ -125,7 +125,7 @@ static OPJ_BOOL opj_lupDecompose(OPJ_FLOAT32 * matrix,OPJ_UINT32 * permutations,
        {
        *tmpPermutations++ = i;
        }
-       /* now make a pivot with colum switch */
+       /* now make a pivot with column switch */
        tmpPermutations = permutations;
        for (k = 0; k < lLastColum; ++k) {
                p = 0.0;
index f7a1d764e3babd4e9da8312d7b968bedf44093a1..e612d06eead345141b83af98dbeb7e122bdc1df8 100644 (file)
@@ -4351,7 +4351,7 @@ static OPJ_BOOL opj_j2k_read_sod (opj_j2k_t *p_j2k,
             }
             if (! *l_current_data) {
                 /* LH: oddly enough, in this path, l_tile_len!=0.
-                 * TODO: If this was consistant, we could simplify the code to only use realloc(), as realloc(0,...) default to malloc(0,...).
+                 * TODO: If this was consistent, we could simplify the code to only use realloc(), as realloc(0,...) default to malloc(0,...).
                  */
                 *l_current_data = (OPJ_BYTE*) opj_malloc(p_j2k->m_specific_param.m_decoder.m_sot_length);
             }
@@ -5583,7 +5583,7 @@ static OPJ_BOOL opj_j2k_write_mco(     opj_j2k_t *p_j2k,
         opj_write_bytes(l_current_data,l_mco_size-2,2);                 /* Lmco */
         l_current_data += 2;
 
-        opj_write_bytes(l_current_data,l_tcp->m_nb_mcc_records,1);      /* Nmco : only one tranform stage*/
+        opj_write_bytes(l_current_data,l_tcp->m_nb_mcc_records,1);      /* Nmco : only one transform stage*/
         ++l_current_data;
 
         l_mcc_record = l_tcp->m_mcc_records;
@@ -5635,7 +5635,7 @@ static OPJ_BOOL opj_j2k_read_mco (      opj_j2k_t *p_j2k,
                 return OPJ_FALSE;
         }
 
-        opj_read_bytes(p_header_data,&l_nb_stages,1);                           /* Nmco : only one tranform stage*/
+        opj_read_bytes(p_header_data,&l_nb_stages,1);                           /* Nmco : only one transform stage*/
         ++p_header_data;
 
         if (l_nb_stages > 1) {
index af692d59a3f0f696a58d92cf2a366d19e7cec748..8bf60f62ac0e0a135ce4894e28b8fcf00ba465aa 100644 (file)
@@ -170,7 +170,7 @@ static OPJ_BOOL opj_jp2_skip_jp2c(  opj_jp2_t *jp2,
  * @param      p_header_size   the size of the data contained in the file header box.
  * @param      p_manager               the user event manager.
  *
- * @return true if the JP2 Header box was successfully reconized.
+ * @return true if the JP2 Header box was successfully recognized.
 */
 static OPJ_BOOL opj_jp2_read_jp2h(  opj_jp2_t *jp2,
                                     OPJ_BYTE *p_header_data,
@@ -370,7 +370,7 @@ static OPJ_BOOL opj_jp2_exec (  opj_jp2_t * jp2,
  * @param      p_number_bytes_read             pointer to an int that will store the number of bytes read from the stream (shoul usually be 2).
  * @param      p_manager                               user event manager.
  *
- * @return     true if the box is reconized, false otherwise
+ * @return     true if the box is recognized, false otherwise
 */
 static OPJ_BOOL opj_jp2_read_boxhdr(opj_jp2_box_t *box,
                                     OPJ_UINT32 * p_number_bytes_read,
@@ -437,7 +437,7 @@ static const opj_jp2_header_handler_t jp2_img_header [] =
  * @param      p_box_max_size                  the maximum number of bytes in the box.
  * @param      p_manager         FIXME DOC
  *
- * @return     true if the box is reconized, false otherwise
+ * @return     true if the box is recognized, false otherwise
 */
 static OPJ_BOOL opj_jp2_read_boxhdr_char(   opj_jp2_box_t *box,
                                             OPJ_BYTE * p_data,
@@ -2474,7 +2474,7 @@ static OPJ_BOOL opj_jpip_skip_iptr(       opj_jp2_t *jp2,
  * @param      p_header_size   the size of the data contained in the file header box.
  * @param      p_manager               the user event manager.
  *
- * @return true if the JP2 Header box was successfully reconized.
+ * @return true if the JP2 Header box was successfully recognized.
 */
 static OPJ_BOOL opj_jp2_read_jp2h(  opj_jp2_t *jp2,
                                     OPJ_BYTE *p_header_data,
index 914c47f9cf2b8bc2b7d48170c311623b8232ac0f..94138832ac329b5edf01478ea96c4e0c61c5c214 100644 (file)
@@ -90,7 +90,7 @@ typedef enum
 JP2_IMG_STATE;
 
 /** 
-Channel description: channel index, type, assocation
+Channel description: channel index, type, association
 */
 typedef struct opj_jp2_cdef_info
 {
index a0da0996604048f26e9740596eb8001280c7045c..8b0276f32d847c52f95c8650bff5432e80c3d289 100644 (file)
@@ -70,7 +70,7 @@ const OPJ_FLOAT64 * opj_mct_get_mct_norms_real ()
 }
 
 /* <summary> */
-/* Foward reversible MCT. */
+/* Forward reversible MCT. */
 /* </summary> */
 #ifdef __SSE2__
 void opj_mct_encode(
@@ -202,7 +202,7 @@ OPJ_FLOAT64 opj_mct_getnorm(OPJ_UINT32 compno) {
 }
 
 /* <summary> */
-/* Foward irreversible MCT. */
+/* Forward irreversible MCT. */
 /* </summary> */
 #ifdef __SSE4_1__
 void opj_mct_encode_real(
index 4a8e75ce5a7f3025c2593e33633c084cd8fca9c8..c07e9c84b347b51ade0db0e880a0d9bed4b2b63e 100644 (file)
@@ -97,7 +97,7 @@ The following ifdef block is the standard way of creating macros which make expo
 from a DLL simpler. All files within this DLL are compiled with the OPJ_EXPORTS
 symbol defined on the command line. this symbol should not be defined on any project
 that uses this DLL. This way any other project whose source files include this file see 
-OPJ_API functions as being imported from a DLL, wheras this DLL sees symbols
+OPJ_API functions as being imported from a DLL, whereas this DLL sees symbols
 defined with this macro as being exported.
 */
 #      if defined(OPJ_EXPORTS) || defined(DLL_EXPORT)
@@ -850,7 +850,7 @@ typedef struct opj_codestream_info {
 } opj_codestream_info_t;
 
 /* <----------------------------------------------------------- */
-/* new output managment of the codestream information and index */
+/* new output management of the codestream information and index */
 
 /**
  * Tile-component coding parameters information
@@ -1347,7 +1347,7 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_write_tile (    opj_codec_t *p_codec,
                                                                                                opj_stream_t *p_stream );
 
 /**
- * Reads a tile header. This function is compulsory and allows one to know the size of the tile thta will be decoded.
+ * Reads a tile header. This function is compulsory and allows one to know the size of the tile that will be decoded.
  * The user may need to refer to the image got by opj_read_header to understand the size being taken by the tile.
  *
  * @param      p_codec                 the jpeg2000 codec.
index 5007b0c9e237afc82c158bc50af622ac7964f978..517707f94cf8c24ab82e747676ad663717570b97 100644 (file)
@@ -79,7 +79,7 @@ void * OPJ_CALLCONV opj_calloc(size_t _NumOfElements, size_t _SizeOfElements);
 #endif
 
 /**
-Allocate memory aligned to a 16 byte boundry
+Allocate memory aligned to a 16 byte boundary
 @param size Bytes to allocate
 @return Returns a void pointer to the allocated space, or NULL if there is insufficient memory available
 */
index f239679f5bd387fb013fe68263b78d189d94cd53..265d5b1e24c90ced9293b4db60d1562edf2a9508 100644 (file)
@@ -73,7 +73,7 @@ Packet iterator
 typedef struct opj_pi_iterator {
   /** Enabling Tile part generation*/
   OPJ_BYTE tp_on;
-  /** precise if the packet has been already used (usefull for progression order change) */
+  /** precise if the packet has been already used (useful for progression order change) */
   OPJ_INT16 *include;
   /** layer step used to localize the packet in the include vector */
   OPJ_UINT32 step_l;
index bb9a6205f9ea86f0f761b5cda4ee21442b4add4b..07f8379afd48cf307051fe2f7cb2fb0ac282d849 100644 (file)
@@ -296,7 +296,7 @@ OPJ_UINT32 opj_tcd_get_decoded_tile_size (opj_tcd_t *p_tcd );
  * @param      p_data_written  pointer to an int that is incremented by the number of bytes really written on p_dest
  * @param      p_len                   Maximum length of the destination buffer
  * @param      p_cstr_info             Codestream information structure
- * @return  true if the coding is successfull.
+ * @return  true if the coding is successful.
 */
 OPJ_BOOL opj_tcd_encode_tile(   opj_tcd_t *p_tcd,
                                                            OPJ_UINT32 p_tile_no,
index 3617dad7e918d9d59474e7e8c5521fceec22ef80..3cfa6fcb61fa8d68c87135f42771b77c89394d67 100644 (file)
@@ -65,7 +65,7 @@ Write some bytes
 @param cio CIO handle
 @param v Value to write
 @param n Number of bytes to write
-@return Returns the number of bytes written or 0 if an error occured
+@return Returns the number of bytes written or 0 if an error occurred
 */
 unsigned int cio_write(opj_cio_t *cio, unsigned int v, int n);
 /**
@@ -86,7 +86,7 @@ Write some bytes
 @param cio CIO handle
 @param v Signed integer value to write
 @param n Number of bytes to write
-@return Returns the number of bytes written or 0 if an error occured
+@return Returns the number of bytes written or 0 if an error occurred
 */
 int cio_write_int(opj_cio_t *cio, int v, int n);
 /**
index 1558cc3f7ee6f3e4b61ab46d315025ffa972fc64..a1e4e1046dec9d115877fdf1a7eff944190e032d 100644 (file)
@@ -89,12 +89,12 @@ Inverse lazy transform (axial)
 */
 static void dwt_interleave_z(int *a, int *b, int dn, int sn, int xy, int cas);
 /**
-Forward 5-3 wavelet tranform in 1-D
+Forward 5-3 wavelet transform in 1-D
 */
 static void dwt_encode_53(int *a, int dn, int sn, int cas);
 static void dwt_encode_97(int *a, int dn, int sn, int cas);
 /**
-Inverse 5-3 wavelet tranform in 1-D
+Inverse 5-3 wavelet transform in 1-D
 */
 static void dwt_decode_53(int *a, int dn, int sn, int cas);
 static void dwt_decode_97(int *a, int dn, int sn, int cas);
@@ -333,7 +333,7 @@ static void dwt_interleave_z(int *a, int *b, int dn, int sn, int xy, int cas) {
 
 
 /* <summary>                            */
-/* Forward 5-3 or 9-7 wavelet tranform in 1-D. */
+/* Forward 5-3 or 9-7 wavelet transform in 1-D. */
 /* </summary>                           */
 static void dwt_encode_53(int *a, int dn, int sn, int cas) {
        int i;
@@ -409,7 +409,7 @@ static void dwt_encode_97(int *a, int dn, int sn, int cas) {
                }
 }
 /* <summary>                            */
-/* Inverse 5-3 or 9-7 wavelet tranform in 1-D. */
+/* Inverse 5-3 or 9-7 wavelet transform in 1-D. */
 /* </summary>                           */ 
 static void dwt_decode_53(int *a, int dn, int sn, int cas) {
        int i;
@@ -661,7 +661,7 @@ static void dwt_encode_stepsize(int stepsize, int numbps, opj_stepsize_t *bandno
 ==========================================================
 */
 /* <summary>                            */
-/* Forward 5-3 wavelet tranform in 3-D. */
+/* Forward 5-3 wavelet transform in 3-D. */
 /* </summary>                           */
 void dwt_encode(opj_tcd_tilecomp_t * tilec, int dwtid[3]) {
        int i, j, k;
@@ -792,7 +792,7 @@ void dwt_encode(opj_tcd_tilecomp_t * tilec, int dwtid[3]) {
 
 
 /* <summary>                            */
-/* Inverse 5-3 wavelet tranform in 3-D. */
+/* Inverse 5-3 wavelet transform in 3-D. */
 /* </summary>                           */
 void dwt_decode(opj_tcd_tilecomp_t * tilec, int stops[3], int dwtid[3]) {
        int i, j, k;
index 5c3f6847528270bf55ab403297fce849793d7f41..00082900f969a8bc9c34a774b8ceb154554c9240 100644 (file)
@@ -63,14 +63,14 @@ typedef struct opj_wtfilt {
 /*@{*/
 /* ----------------------------------------------------------------------- */
 /**
-Forward 5-3 wavelet tranform in 3-D. 
+Forward 5-3 wavelet transform in 3-D.
 Apply a reversible DWT transform to a component of an volume.
 @param tilec Tile component information (current tile)
 @param dwtid Number of identification of wavelet kernel(s) used in DWT in each direction
 */
 void dwt_encode(opj_tcd_tilecomp_t * tilec, int dwtid[3]);
 /**
-Inverse 5-3 wavelet tranform in 3-D.
+Inverse 5-3 wavelet transform in 3-D.
 Apply a reversible inverse DWT transform to a component of an volume.
 @param tilec Tile component information (current tile)
 @param stops Number of decoded resolution levels in each dimension
index 5759047b61d9e3d8f61d153d53737fabdd4b2d1d..685a9f888435a9953b76eb5e884ae6f6797c7d92 100644 (file)
@@ -46,7 +46,7 @@ static const double mct_norms[3] = { 1.732, .8292, .8292 };
 static const double mct_norms_real[3] = { 1.732, 1.805, 1.573 };
 
 /* <summary> */
-/* Foward reversible MCT. */
+/* Forward reversible MCT. */
 /* </summary> */
 void mct_encode(int *c0, int *c1, int *c2, int n) {
        int i;
@@ -91,7 +91,7 @@ double mct_getnorm(int compno) {
 }
 
 /* <summary> */
-/* Foward irreversible MCT. */
+/* Forward irreversible MCT. */
 /* </summary> */
 void mct_encode_real(int *c0, int *c1, int *c2, int n) {
        int i;
index ae2507c0cb96c775329161341cc5eafdf67ea139..a720bd377e9cebb94348cd1bc82f85908ba2b26e 100644 (file)
@@ -60,7 +60,7 @@ The following ifdef block is the standard way of creating macros which make expo
 from a DLL simpler. All files within this DLL are compiled with the OPJ_EXPORTS
 symbol defined on the command line. this symbol should not be defined on any project
 that uses this DLL. This way any other project whose source files include this file see 
-OPJ_API functions as being imported from a DLL, wheras this DLL sees symbols
+OPJ_API functions as being imported from a DLL, whereas this DLL sees symbols
 defined with this macro as being exported.
 */
 #if defined(OPJ_EXPORTS) || defined(DLL_EXPORT)
index b3f287a3c0c371077955202068953e49305ad1d6..c81f9ef083d0049b4a8a89b8e701758e35e93419 100644 (file)
@@ -82,7 +82,7 @@ typedef struct opj_pi_comp {
 Packet iterator 
 */
 typedef struct opj_pi_iterator {
-/** precise if the packet has been already used (usefull for progression order change) */
+/** precise if the packet has been already used (useful for progression order change) */
        short int *include;             
 /** layer step used to localize the packet in the include vector */
        int step_l;             
index ac54026d2cfdd7bc4ac24da780a5967580e7aa40..041f1ad9ddcda5905aee8c71f5a55c17d94fdd36 100644 (file)
@@ -80,7 +80,7 @@ void print_cachemodel( cachemodel_param_t cachemodel);
 /**
  * search a cache model of a target
  *
- * @param[in] target         refering target
+ * @param[in] target         referring target
  * @param[in] cachemodellist cache model list
  * @return                   found cache model pointer
  */
index c206662d507c774bdc0bfe29a2ec99267b5954f4..d44c84c83f55e55076503c984852db024e38c137 100644 (file)
@@ -357,7 +357,7 @@ void enqueue_precincts( int xmin, int xmax, int ymin, int ymax, int tile_id, int
   Byte4_t xminP, xmaxP, yminP, ymaxP;
 
   codeidx  = msgqueue->cachemodel->target->codeidx;
-  /* MM: shouldnt xmin/xmax be Byte4_t instead ? */
+  /* MM: shouldn't xmin/xmax be Byte4_t instead ? */
   if( xmin < 0 || xmax < 0 || ymin < 0 || ymax < 0)
     return;
   /* MM: I think the API should not really be int should it ? */
index 4ed99a796d1dde083b5cc292aa7bd31456790077..561510f5d9199fdce34982c141469f47c8ad1b8b 100644 (file)
@@ -46,7 +46,7 @@ typedef struct target_param{
 #endif
   int csn;                        /**< codestream number                                  */
   index_param_t *codeidx;         /**< index information of codestream                    */
-  int num_of_use;                 /**< numbers of sessions refering to this target        */
+  int num_of_use;                 /**< numbers of sessions referring to this target       */
   OPJ_BOOL jppstream;                 /**< if this target can return JPP-stream               */
   OPJ_BOOL jptstream;                 /**< if this target can return JPP-stream               */
   struct target_param *next;      /**< pointer to the next target                         */
index 748a6b38ce8240e43a7c60030f6814f6f8507bdc..ca0ee0a134cac24abd7692799223de5659bb68d0 100644 (file)
@@ -357,7 +357,7 @@ opj_bool jpwl_correct(opj_j2k_t *j2k);
 @param post_len length of post_data
 @param conn is a pointer to the length of all connected (packed) EPBs
 @param L4_bufp is a pointer to the buffer pointer of redundancy data
-@return returns true if correction could be succesfully performed
+@return returns true if correction could be successfully performed
 */
 opj_bool jpwl_epb_correct(opj_j2k_t *j2k, unsigned char *buffer, int type, int pre_len, int post_len, int *conn,
                                          unsigned char **L4_bufp);
index e35781f63fa2dfb5bf8db280962da54930eb611a..a0bd7c715c41bf322a665208eab02c704f118fba 100644 (file)
@@ -225,7 +225,7 @@ void init_rs(int k)
    of the integer "alpha_to[i]" with a(0) being the LSB and a(m-1) the MSB. Thus for
    example the polynomial representation of @^5 would be given by the binary
    representation of the integer "alpha_to[5]".
-                   Similarily, index_of[] can be used as follows:
+                   Similarly, index_of[] can be used as follows:
         As above, let @ represent the primitive element of GF(2^m) that is
    the root of the primitive polynomial p(x). In order to find the power
    of @ (alpha) that has the polynomial representation
@@ -237,7 +237,7 @@ void init_rs(int k)
    NOTE:
         The element alpha_to[2^m-1] = 0 always signifying that the
    representation of "@^infinity" = 0 is (0,0,0,...,0).
-        Similarily, the element index_of[0] = A0 always signifying
+        Similarly, the element index_of[0] = A0 always signifying
    that the power of alpha which has the polynomial representation
    (0,0,...,0) is "infinity".
  
index f389d4e2b82d64f4b57ad932be1e87b9eb15a1eb..3cae708e028a90e283ade54b46404fe34a99390b 100644 (file)
@@ -74,7 +74,7 @@ Write some bytes
 @param cio CIO handle
 @param v Value to write
 @param n Number of bytes to write
-@return Returns the number of bytes written or 0 if an error occured
+@return Returns the number of bytes written or 0 if an error occurred
 */
 OPJ_API unsigned int OPJ_CALLCONV cio_write(opj_cio_t *cio, unsigned int64 v, int n);
 /**
index 3cb3b209b7abc842cdf4e1ace7ba135bfd2fcbfe..5b9645bf7df2c7a04a706fe3afc1aaa766510dfd 100644 (file)
@@ -54,13 +54,13 @@ DWT.C are used by some function in TCD.C.
 /*@{*/
 /* ----------------------------------------------------------------------- */
 /**
-Forward 5-3 wavelet tranform in 2-D. 
+Forward 5-3 wavelet transform in 2-D.
 Apply a reversible DWT transform to a component of an image.
 @param tilec Tile component information (current tile)
 */
 void dwt_encode(opj_tcd_tilecomp_t * tilec);
 /**
-Inverse 5-3 wavelet tranform in 2-D.
+Inverse 5-3 wavelet transform in 2-D.
 Apply a reversible inverse DWT transform to a component of an image.
 @param tilec Tile component information (current tile)
 @param numres Number of resolution levels to decode
index f1b9c0d3c10b14acea6de5b91b659cfbfbedf6ea..fbd17a4d53e1d083c4e1bd1b9c9f9f0ef991a294 100644 (file)
@@ -58,7 +58,7 @@
 
 /* ----------------------------------------------------------------------- */
 /** 
-Channel description: channel index, type, assocation
+Channel description: channel index, type, association
 */
 typedef struct opj_jp2_cdef_info
 {
index e507a781128de0b7382281e926a937158165280c..0f926194ead8afff6507f5ddbb60a4cf4cf35030 100644 (file)
@@ -52,7 +52,7 @@ static const double mct_norms[3] = { 1.732, .8292, .8292 };
 static const double mct_norms_real[3] = { 1.732, 1.805, 1.573 };
 
 /* <summary> */
-/* Foward reversible MCT. */
+/* Forward reversible MCT. */
 /* </summary> */
 void mct_encode(
                int* restrict c0,
@@ -105,7 +105,7 @@ double mct_getnorm(int compno) {
 }
 
 /* <summary> */
-/* Foward irreversible MCT. */
+/* Forward irreversible MCT. */
 /* </summary> */
 void mct_encode_real(
                int* restrict c0,
index f765fc2cba8c201d5ee0873933aa4f26fad0d301..132ec2fd7f4288798d6d537cc49505d4e6f710c3 100644 (file)
@@ -62,7 +62,7 @@ The following ifdef block is the standard way of creating macros which make expo
 from a DLL simpler. All files within this DLL are compiled with the OPJ_EXPORTS
 symbol defined on the command line. this symbol should not be defined on any project
 that uses this DLL. This way any other project whose source files include this file see 
-OPJ_API functions as being imported from a DLL, wheras this DLL sees symbols
+OPJ_API functions as being imported from a DLL, whereas this DLL sees symbols
 defined with this macro as being exported.
 */
 #if defined(OPJ_EXPORTS) || defined(DLL_EXPORT)
index 9e4af2349e19962f7b4a9f74c732fd2f5aaf93d2..1b62ab02905d155c40d6242d559c1ac791c9f9d7 100644 (file)
@@ -64,7 +64,7 @@ void * OPJ_CALLCONV opj_calloc(size_t _NumOfElements, size_t _SizeOfElements);
 #endif\r
 \r
 /**\r
-Allocate memory aligned to a 16 byte boundry\r
+Allocate memory aligned to a 16 byte boundary\r
 @param size Bytes to allocate\r
 @return Returns a void pointer to the allocated space, or NULL if there is insufficient memory available\r
 */\r
index fa0d08ab5b8ee9e85aaaf6408c844cf568ab65f5..7f2fe3ef903c8a0fe4b54016e20f6b43b6f2e1a2 100644 (file)
@@ -73,7 +73,7 @@ Packet iterator
 typedef struct opj_pi_iterator {
        /** Enabling Tile part generation*/
        char tp_on;
-       /** precise if the packet has been already used (usefull for progression order change) */
+       /** precise if the packet has been already used (useful for progression order change) */
        short int *include;
        /** layer step used to localize the packet in the include vector */
        int step_l;
index 5ce37c81575d845827521b7e9a11a60560cd924d..ce95af8791c4d49ed567da5fd495a081b6f1d2c5 100644 (file)
@@ -405,7 +405,7 @@ foreach(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST})
         )
 
 # FIXME: add a compare2base function base on raw which
-# can output png diff files if necesary
+# can output png diff files if necessary
 #  add_test(NR-${filename}-compare2base
 #      ${EXECUTABLE_OUTPUT_PATH}/compare_images
 #     -b ${BASELINE_NR}/opj_${filenameRef}
index 7e3a35a874e33d2696f725af47531f0794c0d5bb..25201c8fa174d4b9b2a2c794f420730f489ca8df 100644 (file)
@@ -1,7 +1,7 @@
 # This file list all the input commands of the tests run by the ctest command which 
 # are not related to the conformance files.
 #
-# For each line of this file (exept line which begin with #) an opj_compress test or a 
+# For each line of this file (except line which begin with #) an opj_compress test or a
 # opj_decompress is run and its related tests.
 #   + For encoder related tests = dump, compare dump to base, decode the encoded file with 
 #     reference and compare the decoded file with the baseline decoded previously with 
index c0a877d609a68ecaef73f0cada573f979417ed92..368cbfdb6ce712af358011c8ac9f0b5daf92dd87 100644 (file)
@@ -206,7 +206,7 @@ static void encode_help_display() {
        fprintf(stdout,"                 Indicate multiple modes by adding their values. \n");\r
        fprintf(stdout,"                 ex: RESTART(4) + RESET(2) + SEGMARK(32) = -M 38\n");\r
        fprintf(stdout,"\n");\r
-       fprintf(stdout,"-TP          : devide packets of every tile into tile-parts (-TP R) [R, L, C]\n");\r
+       fprintf(stdout,"-TP          : divide packets of every tile into tile-parts (-TP R) [R, L, C]\n");\r
        fprintf(stdout,"\n");\r
        fprintf(stdout,"-x           : create an index file *.Idx (-x index_name.Idx) \n");\r
        fprintf(stdout,"\n");\r
@@ -1696,7 +1696,7 @@ static opj_image_t* loadImage(opj_cparameters_t *parameters, JNIEnv *env, jobjec
                        len = (*env)->GetArrayLength(env, jba);\r
                        \r
                        jbBody = (*env)->GetPrimitiveArrayCritical(env, jba, &isCopy);\r
-                       /*printf("C: before transfering 8 bpp image\n");*/\r
+                       /*printf("C: before transferring 8 bpp image\n");*/\r
                        if (comp->sgnd) {\r
                                for(i=0; i< len;i++) {\r
                                        comp->data[i] = (char) jbBody[i];\r
@@ -1715,7 +1715,7 @@ static opj_image_t* loadImage(opj_cparameters_t *parameters, JNIEnv *env, jobjec
                        len = (*env)->GetArrayLength(env, jsa);\r
                        \r
                        jsBody = (*env)->GetPrimitiveArrayCritical(env, jsa, &isCopy);\r
-                       /*printf("C: before transfering 16 bpp image\n");*/\r
+                       /*printf("C: before transferring 16 bpp image\n");*/\r
                        if (comp->sgnd) {       /* Special behaviour to deal with signed elements ??*/\r
                                comp->data[i] = (short) jsBody[i];\r
                                for(i=0; i< len;i++) {\r
@@ -1735,7 +1735,7 @@ static opj_image_t* loadImage(opj_cparameters_t *parameters, JNIEnv *env, jobjec
                        shift = compno*8;\r
 \r
                        jiBody = (*env)->GetPrimitiveArrayCritical(env, jia, &isCopy);\r
-                       /*printf("C: before transfering 24 bpp image (component %d, signed = %d)\n", compno, comp->sgnd);*/\r
+                       /*printf("C: before transferring 24 bpp image (component %d, signed = %d)\n", compno, comp->sgnd);*/\r
                        if (comp->sgnd) {       /* Special behaviour to deal with signed elements ?? XXXXX*/\r
                                for(i=0; i< len;i++) {\r
                                        comp->data[i] = ( ((int) jiBody[i]) & (0xFF << shift) ) >> shift;\r
index 80e09c3912b71a195018f2a4fde831f7411ac42e..f91267fcf73e688154b7b06e1e32c193bdb44ca0 100644 (file)
@@ -604,7 +604,7 @@ JNIEXPORT jint JNICALL Java_org_openJpeg_OpenJPEGJavaDecoder_internalDecodeJ2Kto
                        /*printf("C: %d bytes read from file\n",file_length);*/\r
                } else {\r
                        /* Preparing the transfer of the codestream from Java to C*/\r
-                       /*printf("C: before transfering codestream\n");*/\r
+                       /*printf("C: before transferring codestream\n");*/\r
                        fid = (*env)->GetFieldID(env, cls,"compressedStream", "[B");\r
                        jba = (*env)->GetObjectField(env, obj, fid);\r
                        file_length = (*env)->GetArrayLength(env, jba);\r
@@ -782,7 +782,7 @@ JNIEXPORT jint JNICALL Java_org_openJpeg_OpenJPEGJavaDecoder_internalDecodeJ2Kto
                        jia = (*env)->GetObjectField(env, obj, fid);\r
                        jiBody = (*env)->GetIntArrayElements(env, jia, 0);\r
                        ptrIBody = jiBody;\r
-                       printf("C: transfering image24: %d int to Java pointer=%d\n",image->numcomps*w*h, ptrIBody);\r
+                       printf("C: transferring image24: %d int to Java pointer=%d\n",image->numcomps*w*h, ptrIBody);\r
 \r
                        for (i=0; i<w*h; i++) {\r
                                tempUC = (unsigned char)(ptr[i]);\r
@@ -808,7 +808,7 @@ JNIEXPORT jint JNICALL Java_org_openJpeg_OpenJPEGJavaDecoder_internalDecodeJ2Kto
 \r
                } else {        /* 1 component 8 or 16 bpp image*/\r
                        ptr = image->comps[0].data;\r
-                       printf("C: before transfering a %d bpp image to java (length = %d)\n",image->comps[0].prec ,w*h);\r
+                       printf("C: before transferring a %d bpp image to java (length = %d)\n",image->comps[0].prec ,w*h);\r
                        if (image->comps[0].prec<=8) {\r
                                fid = (*env)->GetFieldID(env, cls,"image8", "[B");\r
                                jba = (*env)->GetObjectField(env, obj, fid);\r
@@ -823,7 +823,7 @@ JNIEXPORT jint JNICALL Java_org_openJpeg_OpenJPEGJavaDecoder_internalDecodeJ2Kto
                                        max_value = 255;\r
                                }\r
 #endif                                                         \r
-                               /*printf("C: transfering %d shorts to Java image8 pointer = %d\n", wr*hr,ptrSBody);*/\r
+                               /*printf("C: transferring %d shorts to Java image8 pointer = %d\n", wr*hr,ptrSBody);*/\r
                                for (i=0; i<w*h; i++) {\r
                                        tempUC = (unsigned char) (ptr[i]);\r
 #ifdef CHECK_THRESHOLDS\r
@@ -835,7 +835,7 @@ JNIEXPORT jint JNICALL Java_org_openJpeg_OpenJPEGJavaDecoder_internalDecodeJ2Kto
                                        *(ptrBBody++) = tempUC;\r
                                }\r
                                (*env)->ReleaseByteArrayElements(env, jba, jbBody, 0);\r
-                               printf("C: image8 transfered to Java\n");\r
+                               printf("C: image8 transferred to Java\n");\r
                        } else {\r
                                fid = (*env)->GetFieldID(env, cls,"image16", "[S");\r
                                jsa = (*env)->GetObjectField(env, obj, fid);\r
@@ -851,7 +851,7 @@ JNIEXPORT jint JNICALL Java_org_openJpeg_OpenJPEGJavaDecoder_internalDecodeJ2Kto
                                }\r
                                printf("C: minValue = %d, maxValue = %d\n", min_value, max_value);\r
 #endif                         \r
-                               printf("C: transfering %d shorts to Java image16 pointer = %d\n", w*h,ptrSBody);\r
+                               printf("C: transferring %d shorts to Java image16 pointer = %d\n", w*h,ptrSBody);\r
                                for (i=0; i<w*h; i++) {\r
                                        tempS = (short) (ptr[i]);\r
 #ifdef CHECK_THRESHOLDS\r