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))
|
||||
{
|
||||
fprintf(stderr, "o==========================================================o\n"\
|
||||
"| WARNING: Invalid quantization step size |\n"\
|
||||
"| |\n"\
|
||||
"| The quantization step size does not lie within |\n"\
|
||||
"| the acceptable range of: |\n"\
|
||||
"| |\n"\
|
||||
"| 0 < step size < 2 |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid quantization step size \n"\
|
||||
" \n"\
|
||||
" The quantization step size does not lie within \n"\
|
||||
" the acceptable range of: \n"\
|
||||
" \n"\
|
||||
" 0 < step size < 2 \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
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) ||
|
||||
(control->decompZ > 63) || (control->decompTS > 31))
|
||||
{
|
||||
fprintf(stderr, "o==========================================================o\n"\
|
||||
"| WARNING: Invalid decomposition level value |\n"\
|
||||
"| |\n"\
|
||||
"| The maximum acceptable decomposition level is |\n"\
|
||||
"| 63 for all spatial and 31 for the temporal |\n"\
|
||||
"| dimensions. |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid decomposition level value \n"\
|
||||
" \n"\
|
||||
" The maximum acceptable decomposition level is \n"\
|
||||
" 63 for all spatial and 31 for the temporal \n"\
|
||||
" dimensions. \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
/*--------------------------------------------------------*\
|
||||
! 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->precSizeX > 15) || (control->precSizeY > 15) || (control->precSizeZ > 15) || (control->precSizeTS > 15))
|
||||
{
|
||||
fprintf(stderr, "o==========================================================o\n"\
|
||||
"| WARNING: Invalid precinct size |\n"\
|
||||
"| |\n"\
|
||||
"| The maximum acceptable precinct size is 2^15, |\n"\
|
||||
"| the smallest valid precinct size is 2^1. |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid precinct size \n"\
|
||||
" \n"\
|
||||
" The maximum acceptable precinct size is 2^15, \n"\
|
||||
" the smallest valid precinct size is 2^1. \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
/*--------------------------------------------------------*\
|
||||
! 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) > 20))
|
||||
{
|
||||
fprintf(stderr, "o==========================================================o\n"\
|
||||
"| WARNING: Invalid codeblock size |\n"\
|
||||
"| |\n"\
|
||||
"| The maximum acceptable codeblock size is 2^20 |\n"\
|
||||
"| with a maximum allowable number of datapoints |\n"\
|
||||
"| in each dimension of 2^10. The smallest valid |\n"\
|
||||
"| codeblock size is 2^4. |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid codeblock size \n"\
|
||||
" \n"\
|
||||
" The maximum acceptable codeblock size is 2^20 \n"\
|
||||
" with a maximum allowable number of datapoints \n"\
|
||||
" in each dimension of 2^10. The smallest valid \n"\
|
||||
" codeblock size is 2^4. \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
/*--------------------------------------------------------*\
|
||||
! 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 !
|
||||
! the bwc_codec structure accordingly. !
|
||||
\*--------------------------------------------------------*/
|
||||
if((int8)(PREC_BIT - Qm) < 2)
|
||||
if((int8)(PREC_BIT - Qm) < 1)
|
||||
{
|
||||
fprintf(stderr, "o==========================================================o\n"\
|
||||
"| WARNING: Invalid Q number formate range |\n"\
|
||||
"| |\n"\
|
||||
"| The specified Q number formate range is larger |\n");
|
||||
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid Q number formate range \n"\
|
||||
" \n"\
|
||||
" The specified Q number formate range is larger \n");
|
||||
#ifdef BWC_SINGLE_PRECISION
|
||||
fprintf(stderr, "| than the permitted 30 bits. |\n");
|
||||
fprintf(stderr, " than the permitted 30 bits. \n");
|
||||
#else
|
||||
fprintf(stderr, "| than the permitted 62 bits. |\n");
|
||||
fprintf(stderr, " than the permitted 62 bits. \n");
|
||||
#endif
|
||||
fprintf(stderr, "| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr, ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
}
|
||||
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->tileSizeTS < 16 && control->tileSizeTS > info->nTS))
|
||||
{
|
||||
fprintf(stderr,"o==========================================================o\n"\
|
||||
"| WARNING: Invalid Tile Dimensions |\n"\
|
||||
"| |\n"\
|
||||
"| One or more of the specified tile dimensions |\n"\
|
||||
"| has a value that falls outside of its valid |\n"\
|
||||
"| range. Please verify that all tile dimension |\n"\
|
||||
"| are within the range of: |\n"\
|
||||
"| |\n"\
|
||||
"| 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid Tile Dimensions \n"\
|
||||
" \n"\
|
||||
" One or more of the specified tile dimensions \n"\
|
||||
" has a value that falls outside of its valid \n"\
|
||||
" range. Please verify that all tile dimension \n"\
|
||||
" are within the range of: \n"\
|
||||
" \n"\
|
||||
" 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
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)
|
||||
{
|
||||
fprintf(stderr,"o==========================================================o\n"\
|
||||
"| WARNING: Invalid Tile Dimensions |\n"\
|
||||
"| |\n"\
|
||||
"| The number of tiles exceeds its maxmum allowa- |\n"\
|
||||
"| ble value. Please adjust all tile dimension so |\n"\
|
||||
"| that the number of tiles falls within the range |\n"\
|
||||
"| of: |\n"\
|
||||
"| Number_of_Tiles < 2^64 |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid Tile Dimensions \n"\
|
||||
" \n"\
|
||||
" The number of tiles exceeds its maxmum allowa- \n"\
|
||||
" ble value. Please adjust all tile dimension so \n"\
|
||||
" that the number of tiles falls within the range \n"\
|
||||
" of: \n"\
|
||||
" Number_of_Tiles < 2^64 \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
/*--------------------------------------------------------*\
|
||||
! 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)
|
||||
{
|
||||
fprintf(stderr,"o==========================================================o\n"\
|
||||
"| WARNING: Invalid Number Of Tiles |\n"\
|
||||
"| |\n"\
|
||||
"| The number of tiles exceeds its maxmum allowa- |\n"\
|
||||
"| ble value of: |\n"\
|
||||
"| |\n"\
|
||||
"| Number_of_Tiles < 2^64 |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid Number Of Tiles \n"\
|
||||
" \n"\
|
||||
" The number of tiles exceeds its maxmum allowa- \n"\
|
||||
" ble value of: \n"\
|
||||
" \n"\
|
||||
" Number_of_Tiles < 2^64 \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
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->tileSizeTS < 16 && control->tileSizeTS > info->nTS))
|
||||
{
|
||||
fprintf(stderr,"o==========================================================o\n"\
|
||||
"| WARNING: Invalid Number Of Tiles |\n"\
|
||||
"| |\n"\
|
||||
"| One or more of the tile dimensions has a value |\n"\
|
||||
"| that falls outside of its valid range. Please |\n"\
|
||||
"| verify that the number of tiles for all dimen- |\n"\
|
||||
"| sions are set so that the corresponding tile |\n"\
|
||||
"| sizes fall within the range of: |\n"\
|
||||
"| |\n"\
|
||||
"| 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi |\n"\
|
||||
"| |\n"\
|
||||
"o==========================================================o\n");
|
||||
fprintf(stderr,">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n"\
|
||||
" WARNING: Invalid Number Of Tiles \n"\
|
||||
" \n"\
|
||||
" One or more of the tile dimensions has a value \n"\
|
||||
" that falls outside of its valid range. Please \n"\
|
||||
" verify that the number of tiles for all dimen- \n"\
|
||||
" sions are set so that the corresponding tile \n"\
|
||||
" sizes fall within the range of: \n"\
|
||||
" \n"\
|
||||
" 16 ≤ Tile_Size_Xi ≤ Grid_Points_Xi \n"\
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n");
|
||||
|
||||
/*--------------------------------------------------------*\
|
||||
! Reset the tile sizes to their standard values. !
|
||||
|
|
Loading…
Reference in a new issue