Fix indentation with astyle
This commit is contained in:
parent
5b54ae7e51
commit
798ea0c035
|
@ -658,9 +658,9 @@ static int parse_cmdline_encoder(int argc, char **argv,
|
|||
sprintf(outformat, ".%s", of);
|
||||
img_fol->set_out_format = 1;
|
||||
parameters->cod_format = get_file_format(outformat);
|
||||
} else {
|
||||
parameters->cod_format = -1;
|
||||
}
|
||||
} else {
|
||||
parameters->cod_format = -1;
|
||||
}
|
||||
switch (parameters->cod_format) {
|
||||
case J2K_CFMT:
|
||||
case JP2_CFMT:
|
||||
|
|
|
@ -663,12 +663,12 @@ int parse_cmdline_decoder(int argc, char **argv,
|
|||
char outformat[50];
|
||||
char *of = opj_optarg;
|
||||
if (strlen(opj_optarg) < sizeof(outformat)) {
|
||||
sprintf(outformat, ".%s", of);
|
||||
img_fol->set_out_format = 1;
|
||||
parameters->cod_format = get_file_format(outformat);
|
||||
} else {
|
||||
parameters->cod_format = -1;
|
||||
}
|
||||
sprintf(outformat, ".%s", of);
|
||||
img_fol->set_out_format = 1;
|
||||
parameters->cod_format = get_file_format(outformat);
|
||||
} else {
|
||||
parameters->cod_format = -1;
|
||||
}
|
||||
switch (parameters->cod_format) {
|
||||
case PGX_DFMT:
|
||||
img_fol->out_format = "pgx";
|
||||
|
|
|
@ -768,12 +768,12 @@ static int parse_cmdline_encoder(int argc, char **argv,
|
|||
case 'O': { /* output format */
|
||||
char outformat[50];
|
||||
char *of = opj_optarg;
|
||||
if (strlen(opj_optarg) < sizeof(outformat)) {
|
||||
sprintf(outformat, ".%s", of);
|
||||
img_fol->set_out_format = 1;
|
||||
parameters->cod_format = get_file_format(outformat);
|
||||
if (strlen(opj_optarg) < sizeof(outformat)) {
|
||||
sprintf(outformat, ".%s", of);
|
||||
img_fol->set_out_format = 1;
|
||||
parameters->cod_format = get_file_format(outformat);
|
||||
} else {
|
||||
parameters->cod_format = -1;
|
||||
parameters->cod_format = -1;
|
||||
}
|
||||
switch (parameters->cod_format) {
|
||||
case J2K_CFMT:
|
||||
|
|
|
@ -346,11 +346,11 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters,
|
|||
char outformat[50];
|
||||
char *of = opj_optarg;
|
||||
if (strlen(opj_optarg) < sizeof(outformat)) {
|
||||
sprintf(outformat, ".%s", of);
|
||||
img_fol->set_out_format = 1;
|
||||
parameters->cod_format = get_file_format(outformat);
|
||||
sprintf(outformat, ".%s", of);
|
||||
img_fol->set_out_format = 1;
|
||||
parameters->cod_format = get_file_format(outformat);
|
||||
} else {
|
||||
parameters->cod_format = -1;
|
||||
parameters->cod_format = -1;
|
||||
}
|
||||
switch (parameters->cod_format) {
|
||||
case PGX_DFMT:
|
||||
|
|
Loading…
Reference in New Issue