mirror of
https://github.com/schnaader/precomp-cpp
synced 2026-08-23 00:23:04 -04:00
Undo packJPG change
- The change succeeded in compressing the sample file from https://github.com/packjpg/packJPG/issues/4 , but lead to crashes on other files (see https://github.com/schnaader/precomp-cpp/pull/58 for two examples)
This commit is contained in:
parent
14ab46353b
commit
e44733f5e0
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ packJPG by Matthias Stirner, 01/2016
|
|||
// #define DEV_INFOS // uncomment to include developer information
|
||||
|
||||
#define QUANT(cm,bp) ( cmpnfo[cm].qtable[ bp ] )
|
||||
#define MAX_V(cm,bp) ( ( QUANT(cm,bp) > 0 ) ? ( ( freqmax[bp] + QUANT(cm,bp) - 1 ) / QUANT(cm,bp) + 1 ) : 0 )
|
||||
#define MAX_V(cm,bp) ( ( QUANT(cm,bp) > 0 ) ? ( ( freqmax[bp] + QUANT(cm,bp) - 1 ) / QUANT(cm,bp) ) : 0 )
|
||||
// #define QUN_V(v,cm,bp) ( ( QUANT(cm,bp) > 0 ) ? ( ( v > 0 ) ? ( v + (QUANT(cm,bp)/2) ) / QUANT(cm,bp) : ( v - (QUANT(cm,bp)/2) ) / QUANT(cm,bp) ) : 0 )
|
||||
|
||||
#define ENVLI(s,v) ( ( v > 0 ) ? v : ( v - 1 ) + ( 1 << s ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue