Rev 6870 | Rev 6881 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6870 | Rev 6873 | ||
---|---|---|---|
Line 2939... | Line 2939... | ||
2939 | align 4 |
2939 | align 4 |
2940 | .cycle4: |
2940 | .cycle4: |
2941 | mov dword[edi+png_struct.zstream.avail_out],16*1024 |
2941 | mov dword[edi+png_struct.zstream.avail_out],16*1024 |
2942 | 2942 | ||
Line 2943... | Line 2943... | ||
2943 | stdcall [deflate], esi, Z_NO_FLUSH |
2943 | stdcall [deflate], esi, Z_FINISH ;Z_NO_FLUSH |
2944 | cmp eax,Z_STREAM_ERROR |
2944 | cmp eax,Z_STREAM_ERROR |
2945 | je .end1 |
2945 | je .end1 |
Line 2946... | Line 2946... | ||
2946 | 2946 | ||
2947 | add ecx,16*1024 |
2947 | add ecx,16*1024 |
2948 | sub ecx,[edi+png_struct.zstream.avail_out] |
2948 | sub ecx,[edi+png_struct.zstream.avail_out] |
2949 | cmp dword[edi+png_struct.zstream.avail_out],0 |
2949 | cmp dword[edi+png_struct.zstream.avail_out],0 |
- | 2950 | je .cycle4 ;while (strm.avail_out == 0) |
|
2950 | je .cycle4 ;while (strm.avail_out == 0) |
2951 | if 0 |
2951 | mov dword[edi+png_struct.zstream.avail_out],16*1024 |
2952 | mov dword[edi+png_struct.zstream.avail_out],16*1024 |
2952 | stdcall [deflate], esi, Z_FINISH |
2953 | stdcall [deflate], esi, Z_FINISH |
2953 | add ecx,16*1024 |
2954 | add ecx,16*1024 |
2954 | sub ecx,[edi+png_struct.zstream.avail_out] |
2955 | sub ecx,[edi+png_struct.zstream.avail_out] |
2955 | cmp eax,Z_STREAM_ERROR |
2956 | cmp eax,Z_STREAM_ERROR |
2956 | je .end1 |
2957 | je .end1 |
2957 | 2958 | end if |
|
Line 2958... | Line 2959... | ||
2958 | stdcall [deflateEnd], esi |
2959 | stdcall [deflateEnd], esi |
2959 | 2960 | ||
2960 | if PNG_WRITE_OPTIMIZE_CMF_SUPPORTED eq 1 |
2961 | if PNG_WRITE_OPTIMIZE_CMF_SUPPORTED eq 1 |