Subversion Repositories Kolibri OS

Rev

Rev 6881 | Rev 6888 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6881 Rev 6883
Line 172... Line 172...
172
	mov dword[edi+png_struct.io_state], PNG_IO_WRITING or PNG_IO_CHUNK_CRC
172
	mov dword[edi+png_struct.io_state], PNG_IO_WRITING or PNG_IO_CHUNK_CRC
173
end if
173
end if
Line 174... Line 174...
174
 
174
 
175
	; Write the crc in a single operation
175
	; Write the crc in a single operation
176
	mov ebx,ebp
-
 
177
	sub ebx,4
176
	lea ebx,[ebp-4]
Line 178... Line 177...
178
	stdcall png_save_uint_32, ebx, [edi+png_struct.crc]
177
	stdcall png_save_uint_32, ebx, [edi+png_struct.crc]
179
 
178
 
180
	stdcall png_write_data, edi, ebx, 4
179
	stdcall png_write_data, edi, ebx, 4
Line 3058... Line 3057...
3058
endl
3057
endl
3059
pushad
3058
pushad
3060
	mov edi,[png_ptr]
3059
	mov edi,[png_ptr]
3061
if PNG_WRITE_FILTER_SUPPORTED eq 0
3060
if PNG_WRITE_FILTER_SUPPORTED eq 0
3062
mov eax,[edi+png_struct.row_number]
3061
	mov eax,[edi+png_struct.rowbytes]
3063
png_debug1 2, '  (3)= %d', eax
-
 
3064
	mov eax,[edi+png_struct.rowbytes]
-
 
3065
	inc eax
3062
	inc eax
3066
	stdcall png_write_filtered_row, edi, [edi+png_struct.row_buf], eax
3063
	stdcall png_write_filtered_row, edi, [edi+png_struct.row_buf], eax
3067
mov eax,[edi+png_struct.row_number]
3064
else
3068
png_debug1 2, '  (4)= %d', eax
-
 
3069
else
-
 
3070
	mov esi,[row_info]
3065
	mov esi,[row_info]
3071
	movzx eax,byte[edi+png_struct.do_filter]
3066
	movzx eax,byte[edi+png_struct.do_filter]
3072
	mov [filter_to_do],eax
3067
	mov [filter_to_do],eax
3073
	mov eax,[esi+png_row_info.rowbytes]
3068
	mov eax,[esi+png_row_info.rowbytes]
3074
	mov [row_bytes],eax
3069
	mov [row_bytes],eax
3075
 
3070
 
Line 3076... Line 3071...
3076
	png_debug 1, 'in png_write_find_filter'
3071
	png_debug 1, 'in png_write_find_filter'
Line 3077... Line -...
3077
 
-
 
3078
 
3072
 
3079
	; Find out how many bytes offset each pixel is
3073
	; Find out how many bytes offset each pixel is
3080
	movzx eax,byte[edi+png_struct.pixel_depth]
3074
	movzx eax,byte[edi+png_struct.pixel_depth]
3081
	add eax,7
3075
	add eax,7
3082
	shr eax,3
3076
	shr eax,3