summaryrefslogtreecommitdiff
path: root/codec/j2k_to_image.c
diff options
context:
space:
mode:
authorParvatha Elangovan <p.elangovan@intopix.com>2007-04-10 16:23:48 +0000
committerParvatha Elangovan <p.elangovan@intopix.com>2007-04-10 16:23:48 +0000
commitdbd132dca8f87a75c5d5addb1e6324da7c089c09 (patch)
treecae685a5ba2f7ac9fc6273543e7a3ca4f3bbd614 /codec/j2k_to_image.c
parent0930d9886b52a4d4f46162cc0c7c292cfd393ebd (diff)
Accepting "j2c" as format for Encoding and Decoding. Modification in image_to_j2k.c.
Modified imagetotif() to read images with signed data. Modification in convert.c.
Diffstat (limited to 'codec/j2k_to_image.c')
-rw-r--r--codec/j2k_to_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/codec/j2k_to_image.c b/codec/j2k_to_image.c
index bdf6de74..1cf9dbcc 100644
--- a/codec/j2k_to_image.c
+++ b/codec/j2k_to_image.c
@@ -181,8 +181,8 @@ int load_images(dircnt_t *dirptr, char *imgdirpath){
int get_file_format(char *filename) {
unsigned int i;
- static const char *extension[] = {"pgx", "pnm", "pgm", "ppm", "bmp","tif", "j2k", "jp2", "jpt" };
- static const int format[] = { PGX_DFMT, PXM_DFMT, PXM_DFMT, PXM_DFMT, BMP_DFMT, TIF_DFMT, J2K_CFMT, JP2_CFMT, JPT_CFMT };
+ static const char *extension[] = {"pgx", "pnm", "pgm", "ppm", "bmp","tif", "j2k", "jp2", "jpt", "j2c" };
+ static const int format[] = { PGX_DFMT, PXM_DFMT, PXM_DFMT, PXM_DFMT, BMP_DFMT, TIF_DFMT, J2K_CFMT, JP2_CFMT, JPT_CFMT, J2K_CFMT };
char * ext = strrchr(filename, '.');
if (ext == NULL)
return -1;