diff options
| author | Stefan Weil <sw@weilnetz.de> | 2015-09-29 05:55:43 +0200 |
|---|---|---|
| committer | Stefan Weil <sw@weilnetz.de> | 2015-09-29 05:55:43 +0200 |
| commit | 99fc1ab306f9db0085adf648369404ce8aae22a9 (patch) | |
| tree | e578bd00dd5fe582d12ecf14d35f09f0d937f3b2 /src/bin | |
| parent | 838dfb8058df62af44905e1fa3936d989844effc (diff) | |
Fix typos in comments and string
Most typos were found by codespell.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jp2/convert.c | 2 | ||||
| -rw-r--r-- | src/bin/jp2/opj_decompress.c | 6 | ||||
| -rw-r--r-- | src/bin/jp2/windirent.h | 6 | ||||
| -rw-r--r-- | src/bin/jp3d/windirent.h | 6 | ||||
| -rw-r--r-- | src/bin/jpwl/convert.c | 2 | ||||
| -rw-r--r-- | src/bin/jpwl/opj_jpwl_compress.c | 2 | ||||
| -rw-r--r-- | src/bin/jpwl/windirent.h | 6 | ||||
| -rw-r--r-- | src/bin/mj2/meta_out.c | 4 | ||||
| -rw-r--r-- | src/bin/mj2/mj2_to_metadata.c | 2 | ||||
| -rw-r--r-- | src/bin/mj2/opj_mj2_wrap.c | 2 | ||||
| -rw-r--r-- | src/bin/wx/OPJViewer/source/readmebefore.txt | 2 |
11 files changed, 20 insertions, 20 deletions
diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 1fd64ee7..1a18711c 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -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) { diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c index 3db36ebe..04803e0e 100644 --- a/src/bin/jp2/opj_decompress.c +++ b/src/bin/jp2/opj_decompress.c @@ -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) { diff --git a/src/bin/jp2/windirent.h b/src/bin/jp2/windirent.h index 944b7d71..bef28194 100644 --- a/src/bin/jp2/windirent.h +++ b/src/bin/jp2/windirent.h @@ -243,7 +243,7 @@ * 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; diff --git a/src/bin/jp3d/windirent.h b/src/bin/jp3d/windirent.h index 72b38cea..2494cd4e 100644 --- a/src/bin/jp3d/windirent.h +++ b/src/bin/jp3d/windirent.h @@ -242,7 +242,7 @@ * 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; diff --git a/src/bin/jpwl/convert.c b/src/bin/jpwl/convert.c index de04e22f..bf7b5641 100644 --- a/src/bin/jpwl/convert.c +++ b/src/bin/jpwl/convert.c @@ -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); } diff --git a/src/bin/jpwl/opj_jpwl_compress.c b/src/bin/jpwl/opj_jpwl_compress.c index 7537b61d..7410486e 100644 --- a/src/bin/jpwl/opj_jpwl_compress.c +++ b/src/bin/jpwl/opj_jpwl_compress.c @@ -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"); diff --git a/src/bin/jpwl/windirent.h b/src/bin/jpwl/windirent.h index 944b7d71..bef28194 100644 --- a/src/bin/jpwl/windirent.h +++ b/src/bin/jpwl/windirent.h @@ -243,7 +243,7 @@ * 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; diff --git a/src/bin/mj2/meta_out.c b/src/bin/mj2/meta_out.c index b6795045..f5ca0be8 100644 --- a/src/bin/mj2/meta_out.c +++ b/src/bin/mj2/meta_out.c @@ -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 */ diff --git a/src/bin/mj2/mj2_to_metadata.c b/src/bin/mj2/mj2_to_metadata.c index 489f19cb..2ec2829d 100644 --- a/src/bin/mj2/mj2_to_metadata.c +++ b/src/bin/mj2/mj2_to_metadata.c @@ -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"); diff --git a/src/bin/mj2/opj_mj2_wrap.c b/src/bin/mj2/opj_mj2_wrap.c index 7daa147f..59fb871d 100644 --- a/src/bin/mj2/opj_mj2_wrap.c +++ b/src/bin/mj2/opj_mj2_wrap.c @@ -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[]) { diff --git a/src/bin/wx/OPJViewer/source/readmebefore.txt b/src/bin/wx/OPJViewer/source/readmebefore.txt index a59b0e87..c945d291 100644 --- a/src/bin/wx/OPJViewer/source/readmebefore.txt +++ b/src/bin/wx/OPJViewer/source/readmebefore.txt @@ -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. |
