Import files tiff and yuv(raw)
This commit is contained in:
parent
c7447cf0de
commit
9a7bcf4430
|
@ -179,8 +179,8 @@ static int load_images(dircnt_t *dirptr, char *imgdirpath)
|
||||||
static int get_file_format(const char *filename)
|
static int get_file_format(const char *filename)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
static const char *extension[] = {"pgx", "pnm", "pgm", "ppm", "bmp", "tif", "raw", "tga", "png", "j2k", "jp2", "jpt", "j2c", "jpc" };
|
static const char *extension[] = {"pgx", "pnm", "pgm", "ppm", "bmp", "tif", "tiff", "raw", "yuv", "tga", "png", "j2k", "jp2", "jpt", "j2c", "jpc" };
|
||||||
static const int format[] = { PGX_DFMT, PXM_DFMT, PXM_DFMT, PXM_DFMT, BMP_DFMT, TIF_DFMT, RAW_DFMT, TGA_DFMT, PNG_DFMT, J2K_CFMT, JP2_CFMT, JPT_CFMT, J2K_CFMT, J2K_CFMT };
|
static const int format[] = { PGX_DFMT, PXM_DFMT, PXM_DFMT, PXM_DFMT, BMP_DFMT, TIF_DFMT, TIF_DFMT, RAW_DFMT, RAW_DFMT, TGA_DFMT, PNG_DFMT, J2K_CFMT, JP2_CFMT, JPT_CFMT, J2K_CFMT, J2K_CFMT };
|
||||||
const char *ext = strrchr(filename, '.');
|
const char *ext = strrchr(filename, '.');
|
||||||
if (ext == NULL) {
|
if (ext == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -395,7 +395,7 @@ static int parse_cmdline_decoder(int argc, char **argv,
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"[ERROR] When -ImgDir is used, -OutFor <FORMAT> must be used.\n");
|
"[ERROR] When -ImgDir is used, -OutFor <FORMAT> must be used.\n");
|
||||||
fprintf(stderr, "Only one format allowed.\n"
|
fprintf(stderr, "Only one format allowed.\n"
|
||||||
"Valid format are PGM, PPM, PNM, PGX, BMP, TIF, RAW and TGA.\n");
|
"Valid format are PGM, PPM, PNM, PGX, BMP, TIF, TIFF, RAW, YUV and TGA.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (!(parameters->outfile[0] == 0)) {
|
if (!(parameters->outfile[0] == 0)) {
|
||||||
|
|
Loading…
Reference in New Issue