Updated the WARNING messages to fit the layout of the verbose command line tool output.
This commit is contained in:
parent
d979950626
commit
6716a2b1d4
1 changed files with 75 additions and 84 deletions
|
@ -2490,15 +2490,14 @@ set_quant_step_size(bwc_codec *const codec, double delta)
|
||||||
\*--------------------------------------------------------*/
|
\*--------------------------------------------------------*/
|
||||||
if((delta <= 0) || (delta >= 2))
|
if((delta <= 0) || (delta >= 2))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "o==========================================================o\n"\
|
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid quantization step size |\n"\
|
" WARNING: Invalid quantization step size \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| The quantization step size does not lie within |\n"\
|
" The quantization step size does not lie within \n"\
|
||||||
"| the acceptable range of: |\n"\
|
" the acceptable range of: \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| 0 < step size < 2 |\n"\
|
" 0 < step size < 2 \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2782,14 +2781,13 @@ bwc_set_decomp(bwc_codec *const codec, uint8 decompX, uint8 decompY, uint8 decom
|
||||||
if((control->decompX > 63) || (control->decompY > 63) ||
|
if((control->decompX > 63) || (control->decompY > 63) ||
|
||||||
(control->decompZ > 63) || (control->decompTS > 31))
|
(control->decompZ > 63) || (control->decompTS > 31))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "o==========================================================o\n"\
|
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid decomposition level value |\n"\
|
" WARNING: Invalid decomposition level value \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| The maximum acceptable decomposition level is |\n"\
|
" The maximum acceptable decomposition level is \n"\
|
||||||
"| 63 for all spatial and 31 for the temporal |\n"\
|
" 63 for all spatial and 31 for the temporal \n"\
|
||||||
"| dimensions. |\n"\
|
" dimensions. \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
/*--------------------------------------------------------*\
|
/*--------------------------------------------------------*\
|
||||||
! Reset the decomposition levels to their standard values. !
|
! Reset the decomposition levels to their standard values. !
|
||||||
|
@ -2924,13 +2922,12 @@ bwc_set_precincts(bwc_codec *const codec, uint8 pX, uint8 pY, uint8 pZ, uint8 pT
|
||||||
((control->precSizeTS < 1) && (info->nTS >> 1)) ||
|
((control->precSizeTS < 1) && (info->nTS >> 1)) ||
|
||||||
(control->precSizeX > 15) || (control->precSizeY > 15) || (control->precSizeZ > 15) || (control->precSizeTS > 15))
|
(control->precSizeX > 15) || (control->precSizeY > 15) || (control->precSizeZ > 15) || (control->precSizeTS > 15))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "o==========================================================o\n"\
|
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid precinct size |\n"\
|
" WARNING: Invalid precinct size \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| The maximum acceptable precinct size is 2^15, |\n"\
|
" The maximum acceptable precinct size is 2^15, \n"\
|
||||||
"| the smallest valid precinct size is 2^1. |\n"\
|
" the smallest valid precinct size is 2^1. \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
/*--------------------------------------------------------*\
|
/*--------------------------------------------------------*\
|
||||||
! Reset the codeblock sizes to their standard values. !
|
! Reset the codeblock sizes to their standard values. !
|
||||||
|
@ -3023,15 +3020,14 @@ bwc_set_codeblocks(bwc_codec *const codec, uint8 cbX, uint8 cbY, uint8 cbZ, uint
|
||||||
((control->cbX + control->cbY + control->cbZ + control->cbTS) < 4) ||
|
((control->cbX + control->cbY + control->cbZ + control->cbTS) < 4) ||
|
||||||
((control->cbX + control->cbY + control->cbZ + control->cbTS) > 20))
|
((control->cbX + control->cbY + control->cbZ + control->cbTS) > 20))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "o==========================================================o\n"\
|
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid codeblock size |\n"\
|
" WARNING: Invalid codeblock size \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| The maximum acceptable codeblock size is 2^20 |\n"\
|
" The maximum acceptable codeblock size is 2^20 \n"\
|
||||||
"| with a maximum allowable number of datapoints |\n"\
|
" with a maximum allowable number of datapoints \n"\
|
||||||
"| in each dimension of 2^10. The smallest valid |\n"\
|
" in each dimension of 2^10. The smallest valid \n"\
|
||||||
"| codeblock size is 2^4. |\n"\
|
" codeblock size is 2^4. \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
/*--------------------------------------------------------*\
|
/*--------------------------------------------------------*\
|
||||||
! Reset the codeblock sizes to their standard values. !
|
! Reset the codeblock sizes to their standard values. !
|
||||||
|
@ -3106,19 +3102,18 @@ bwc_set_qm(bwc_codec *const codec, uint8 Qm)
|
||||||
! Check if the Q number formate range is valid and amend !
|
! Check if the Q number formate range is valid and amend !
|
||||||
! the bwc_codec structure accordingly. !
|
! the bwc_codec structure accordingly. !
|
||||||
\*--------------------------------------------------------*/
|
\*--------------------------------------------------------*/
|
||||||
if((int8)(PREC_BIT - Qm) < 2)
|
if((int8)(PREC_BIT - Qm) < 1)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "o==========================================================o\n"\
|
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid Q number formate range |\n"\
|
" WARNING: Invalid Q number formate range \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| The specified Q number formate range is larger |\n");
|
" The specified Q number formate range is larger \n");
|
||||||
#ifdef BWC_SINGLE_PRECISION
|
#ifdef BWC_SINGLE_PRECISION
|
||||||
fprintf(stderr, "| than the permitted 30 bits. |\n");
|
fprintf(stderr, " than the permitted 30 bits. \n");
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "| than the permitted 62 bits. |\n");
|
fprintf(stderr, " than the permitted 62 bits. \n");
|
||||||
#endif
|
#endif
|
||||||
fprintf(stderr, "| |\n"\
|
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3213,17 +3208,16 @@ bwc_set_tiles(bwc_codec *const codec, uint64 tilesX, uint64 tilesY, uint64 tiles
|
||||||
(control->tileSizeZ < 16 && control->tileSizeZ > info->nZ)||
|
(control->tileSizeZ < 16 && control->tileSizeZ > info->nZ)||
|
||||||
(control->tileSizeTS < 16 && control->tileSizeTS > info->nTS))
|
(control->tileSizeTS < 16 && control->tileSizeTS > info->nTS))
|
||||||
{
|
{
|
||||||
fprintf(stderr,"o==========================================================o\n"\
|
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid Tile Dimensions |\n"\
|
" WARNING: Invalid Tile Dimensions \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| One or more of the specified tile dimensions |\n"\
|
" One or more of the specified tile dimensions \n"\
|
||||||
"| has a value that falls outside of its valid |\n"\
|
" has a value that falls outside of its valid \n"\
|
||||||
"| range. Please verify that all tile dimension |\n"\
|
" range. Please verify that all tile dimension \n"\
|
||||||
"| are within the range of: |\n"\
|
" are within the range of: \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi |\n"\
|
" 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3255,16 +3249,15 @@ bwc_set_tiles(bwc_codec *const codec, uint64 tilesX, uint64 tilesY, uint64 tiles
|
||||||
\*--------------------------------------------------------*/
|
\*--------------------------------------------------------*/
|
||||||
if(((double)num_tiles_X * num_tiles_Y * num_tiles_Z * num_tiles_TS) > 0xFFFFFFFFFFFFFFFF)
|
if(((double)num_tiles_X * num_tiles_Y * num_tiles_Z * num_tiles_TS) > 0xFFFFFFFFFFFFFFFF)
|
||||||
{
|
{
|
||||||
fprintf(stderr,"o==========================================================o\n"\
|
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid Tile Dimensions |\n"\
|
" WARNING: Invalid Tile Dimensions \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| The number of tiles exceeds its maxmum allowa- |\n"\
|
" The number of tiles exceeds its maxmum allowa- \n"\
|
||||||
"| ble value. Please adjust all tile dimension so |\n"\
|
" ble value. Please adjust all tile dimension so \n"\
|
||||||
"| that the number of tiles falls within the range |\n"\
|
" that the number of tiles falls within the range \n"\
|
||||||
"| of: |\n"\
|
" of: \n"\
|
||||||
"| Number_of_Tiles < 2^64 |\n"\
|
" Number_of_Tiles < 2^64 \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
/*--------------------------------------------------------*\
|
/*--------------------------------------------------------*\
|
||||||
! Reset the tile sizes to their standard values. !
|
! Reset the tile sizes to their standard values. !
|
||||||
|
@ -3285,15 +3278,14 @@ bwc_set_tiles(bwc_codec *const codec, uint64 tilesX, uint64 tilesY, uint64 tiles
|
||||||
\*--------------------------------------------------------*/
|
\*--------------------------------------------------------*/
|
||||||
if(((double)tilesX * tilesY * tilesZ * tilesTS) > 0xFFFFFFFFFFFFFFFF)
|
if(((double)tilesX * tilesY * tilesZ * tilesTS) > 0xFFFFFFFFFFFFFFFF)
|
||||||
{
|
{
|
||||||
fprintf(stderr,"o==========================================================o\n"\
|
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid Number Of Tiles |\n"\
|
" WARNING: Invalid Number Of Tiles \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| The number of tiles exceeds its maxmum allowa- |\n"\
|
" The number of tiles exceeds its maxmum allowa- \n"\
|
||||||
"| ble value of: |\n"\
|
" ble value of: \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| Number_of_Tiles < 2^64 |\n"\
|
" Number_of_Tiles < 2^64 \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -3318,18 +3310,17 @@ bwc_set_tiles(bwc_codec *const codec, uint64 tilesX, uint64 tilesY, uint64 tiles
|
||||||
(control->tileSizeZ < 16 && control->tileSizeZ > info->nZ)||
|
(control->tileSizeZ < 16 && control->tileSizeZ > info->nZ)||
|
||||||
(control->tileSizeTS < 16 && control->tileSizeTS > info->nTS))
|
(control->tileSizeTS < 16 && control->tileSizeTS > info->nTS))
|
||||||
{
|
{
|
||||||
fprintf(stderr,"o==========================================================o\n"\
|
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||||
"| WARNING: Invalid Number Of Tiles |\n"\
|
" WARNING: Invalid Number Of Tiles \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| One or more of the tile dimensions has a value |\n"\
|
" One or more of the tile dimensions has a value \n"\
|
||||||
"| that falls outside of its valid range. Please |\n"\
|
" that falls outside of its valid range. Please \n"\
|
||||||
"| verify that the number of tiles for all dimen- |\n"\
|
" verify that the number of tiles for all dimen- \n"\
|
||||||
"| sions are set so that the corresponding tile |\n"\
|
" sions are set so that the corresponding tile \n"\
|
||||||
"| sizes fall within the range of: |\n"\
|
" sizes fall within the range of: \n"\
|
||||||
"| |\n"\
|
" \n"\
|
||||||
"| 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi |\n"\
|
" 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi \n"\
|
||||||
"| |\n"\
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||||
"o==========================================================o\n");
|
|
||||||
|
|
||||||
/*--------------------------------------------------------*\
|
/*--------------------------------------------------------*\
|
||||||
! Reset the tile sizes to their standard values. !
|
! Reset the tile sizes to their standard values. !
|
||||||
|
|
Loading…
Reference in a new issue