- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I am trying to use the IPP ZLIB sample code with reduced memory window.
I changed the MAX_WBITS from 15 to 14 and MAX_MEM_LEVEL from 9 to 8 in zconf.h and recompiled the IPP and i linked with my application. The compressor produced the output but decompressor was giving always "invalid windows size " error.
I looked through the code, i did see a problem in deflate.c line number 714, the code should be header = (Z_DEFLATED+((s->w_bits-8)<<4)) <<8 instead of hardcoded value of (Z_DEFLATED+(7<<4)) <<8. After i changed the compressor and decompressor doesnt complain any errors, but decompressor produced the corrupted image. I am using the recent IPP libraries and sampales. Any idea?
I changed the MAX_WBITS from 15 to 14 and MAX_MEM_LEVEL from 9 to 8 in zconf.h and recompiled the IPP and i linked with my application. The compressor produced the output but decompressor was giving always "invalid windows size " error.
I looked through the code, i did see a problem in deflate.c line number 714, the code should be header = (Z_DEFLATED+((s->w_bits-8)<<4)) <<8 instead of hardcoded value of (Z_DEFLATED+(7<<4)) <<8. After i changed the compressor and decompressor doesnt complain any errors, but decompressor produced the corrupted image. I am using the recent IPP libraries and sampales. Any idea?
Link kopiert
8 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
What version of IPP do you use? I remember there were several bug fixes in IPP ZLIB sample in the latest IPP 6.0 update 1 sample.
Regards,
Vladimir
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Quoting - Vladimir Dudnik (Intel)
What version of IPP do you use? I remember there were several bug fixes in IPP ZLIB sample in the latest IPP 6.0 update 1 sample.
Regards,
Vladimir
Any recent update on samples?. The web site(http://www.intel.com/cd/software/products/asmo-na/eng/219967.htm#download ) has 6.0.0.127 and i am using Intel IPP Library 6.0.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hello,
this is the latest one, thanks. Our experts are diving into this issue. You may help investigate this faster if provide simple test case.
Regards,
Vladimir
this is the latest one, thanks. Our experts are diving into this issue. You may help investigate this faster if provide simple test case.
Regards,
Vladimir
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Change the MAX_MEM_LEVEL to 8 , and MAX_WBITS to 14 then build the ipp_zlib.lib library then my input is simple 4 byte RGB array(made from BMP) give to the deflate and the output (of deflate) to the inflate..
My compression application uses
deflateInit2(&zlibpar, 1, Z_DEFLATED, MAX_WBITS, MAX_MEM_LEVEL, Z_BEST_SPEED); (Initialize only once)
deflate(&zlibpar, Z_ZYNC_FLUSH)
and my decompression application uses
inflateInit2(&decompStream, MAX_WBITS)
inflate(&decompStream, Z_SYNC_FLUSH)
Let me know if you need more info
My compression application uses
deflateInit2(&zlibpar, 1, Z_DEFLATED, MAX_WBITS, MAX_MEM_LEVEL, Z_BEST_SPEED); (Initialize only once)
deflate(&zlibpar, Z_ZYNC_FLUSH)
and my decompression application uses
inflateInit2(&decompStream, MAX_WBITS)
inflate(&decompStream, Z_SYNC_FLUSH)
Let me know if you need more info
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Quoting - nyryder
Change the MAX_MEM_LEVEL to 8 , and MAX_WBITS to 14 then build the ipp_zlib.lib library then my input is simple 4 byte RGB array(made from BMP) give to the deflate and the output (of deflate) to the inflate..
My compression application uses
deflateInit2(&zlibpar, 1, Z_DEFLATED, MAX_WBITS, MAX_MEM_LEVEL, Z_BEST_SPEED); (Initialize only once)
deflate(&zlibpar, Z_ZYNC_FLUSH)
and my decompression application uses
inflateInit2(&decompStream, MAX_WBITS)
inflate(&decompStream, Z_SYNC_FLUSH)
Let me know if you need more info
My compression application uses
deflateInit2(&zlibpar, 1, Z_DEFLATED, MAX_WBITS, MAX_MEM_LEVEL, Z_BEST_SPEED); (Initialize only once)
deflate(&zlibpar, Z_ZYNC_FLUSH)
and my decompression application uses
inflateInit2(&decompStream, MAX_WBITS)
inflate(&decompStream, Z_SYNC_FLUSH)
Let me know if you need more info
Any update on this issue?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Quoting - nyryder
Vladmir,
Any update on this issue?
Any update on this issue?
Let me interprete our internal mailing regarding this issue.
The author of IPP ZLIB functions says that there are two ways
- In our upcoming 6.1 release, IPP ZLIB functions are redesigned and patched ZLIB won't have this issue. So, the first option is to wait for 6.1 release
- The second - workaround - option is to comment out 5 lines (627-631) of inflate.c as follows
// if (len > state->wbits) {
// strm->msg = (char *)"invalid window size";
// state->mode = BAD;
// break;
// }
Please, try this. Luck!
Sergey
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Quoting - sergey_kh
Hi,
Let me interprete our internal mailing regarding this issue.
The author of IPP ZLIB functions says that there are two ways
- In our upcoming 6.1 release, IPP ZLIB functions are redesigned and patched ZLIB won't have this issue. So, the first option is to wait for 6.1 release
- The second - workaround - option is to comment out 5 lines (627-631) of inflate.c as follows
// if (len > state->wbits) {
// strm->msg = (char *)"invalid window size";
// state->mode = BAD;
// break;
// }
Please, try this. Luck!
Sergey
Let me interprete our internal mailing regarding this issue.
The author of IPP ZLIB functions says that there are two ways
- In our upcoming 6.1 release, IPP ZLIB functions are redesigned and patched ZLIB won't have this issue. So, the first option is to wait for 6.1 release
- The second - workaround - option is to comment out 5 lines (627-631) of inflate.c as follows
// if (len > state->wbits) {
// strm->msg = (char *)"invalid window size";
// state->mode = BAD;
// break;
// }
Please, try this. Luck!
Sergey
The issue is corruption. Output of inflate is corrupted.
When do we get the 6.1 release?. Any time soon?. Thanks
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hello,
IPP 6.1 release is expected sometime in Q2'2009
Regards,
Vladimir
IPP 6.1 release is expected sometime in Q2'2009
Regards,
Vladimir

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite