Changeset 9ee2ce3 for thirdparty/SZ/sz/src/callZlib.c
- Timestamp:
- 09/28/18 16:32:55 (6 years ago)
- Branches:
- master, pympi
- Children:
- e6aa0eb
- Parents:
- abca157
- git-author:
- Hal Finkel <hfinkel@…> (09/28/18 16:32:55)
- git-committer:
- Hal Finkel <hfinkel@…> (09/28/18 16:32:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
thirdparty/SZ/sz/src/callZlib.c
r2c47b73 r9ee2ce3 26 26 return SZ_NSCS; \ 27 27 } \ 28 } 29 30 int isZlibFormat(unsigned char magic1, unsigned char magic2) 31 { 32 if(magic1==104&&magic2==5) //DC+BS 33 return 1; 34 if(magic1==104&&magic2==129) //DC+DC 35 return 1; 36 if(magic1==104&&magic2==222) //DC+BC 37 return 1; 38 if(magic1==120&&magic2==1) //BC+BS 39 return 1; 40 if(magic1==120&&magic2==94) //BC+? 41 return 1; 42 if(magic1==120&&magic2==156) //BC+DC 43 return 1; 44 if(magic1==120&&magic2==218) //BC+BS 45 return 1; 46 return 0; 28 47 } 29 48 … … 196 215 strm.opaque = Z_NULL; 197 216 ret = deflateInit(&strm, level); 217 //int windowBits = 15; 218 //ret = deflateInit2(&strm, level, Z_DEFLATED, windowBits, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);//Z_FIXED); //Z_DEFAULT_STRATEGY 219 198 220 if (ret != Z_OK) 199 221 return ret;
Note: See TracChangeset
for help on using the changeset viewer.