Skip to content

Commit 7a69145

Browse files
committed
Better messaging. Tested on Windows.
1 parent 4d904d2 commit 7a69145

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/core/codestream/ojph_codestream.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ namespace ojph {
454454
if (cd.get_log_block_dims().w != 5 || cd.get_log_block_dims().h != 5)
455455
OJPH_ERROR(0x000300C8,
456456
"For IMF profile, codeblock dimensions are restricted."
457-
" Use -block_size {32,32} at the commandline");
457+
" Use \"-block_size {32,32}\" at the commandline");
458458

459459
int num_decomps = cd.get_num_decompositions();
460460
bool test_pz = cd.get_log_precinct_size(0).w == 7
@@ -465,11 +465,12 @@ namespace ojph {
465465
if (!test_pz)
466466
OJPH_ERROR(0x000300C9,
467467
"For IMF profile, precinct sizes are restricted."
468-
" Use -precincts {128,128},{256,256} at the commandline");
468+
" Use \"-precincts {128,128},{256,256}\" at the commandline");
469469

470470
if (cd.get_progression_order() != OJPH_PO_CPRL)
471471
OJPH_ERROR(0x000300CA,
472-
"For IMF profile, the CPRL progression order must be used.");
472+
"For IMF profile, the CPRL progression order must be used."
473+
" Use \"-prog_order CPRL\".");
473474

474475
imf2k &= num_decomps <= 5;
475476
imf2kls &= num_decomps <= 5;
@@ -592,11 +593,12 @@ namespace ojph {
592593
if (!test_pz)
593594
OJPH_ERROR(0x000300B9,
594595
"For broadcast profile, precinct sizes are restricted."
595-
" Use -precincts {128,128},{256,256} at the commandline");
596+
" Use \"-precincts {128,128},{256,256}\" at the commandline");
596597

597598
if (cd.get_progression_order() != OJPH_PO_CPRL)
598599
OJPH_ERROR(0x000300BA,
599-
"For broadcast profile, the CPRL progression order must be used.");
600+
"For broadcast profile, the CPRL progression order must be used."
601+
" Use \"-prog_order CPRL\".");
600602

601603
int tiles_w = sz.get_image_extent().x;
602604
tiles_w = ojph_div_ceil(tiles_w, sz.get_tile_size().w);

0 commit comments

Comments
 (0)