Subversion Repositories Kolibri OS

Rev

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

Rev 6779 Rev 6881
Line 8... Line 8...
8
; This code is released under the libpng license.
8
; This code is released under the libpng license.
9
; For conditions of distribution and use, see the disclaimer
9
; For conditions of distribution and use, see the disclaimer
10
; and license in png.inc
10
; and license in png.inc
Line 11... Line 11...
11
 
11
 
Line 12... Line 12...
12
crc_table rd 256
12
DEBUG equ 0
13
 
-
 
14
include '../../../../../../KOSfuncs.inc'
13
 
15
include '../../../../../../fs/kfar/trunk/kfar_arc/crc.inc'
14
include '../../../../../../KOSfuncs.inc'
Line 16... Line 15...
16
include '../../../../../../fs/kfar/trunk/zlib/deflate.inc'
15
include '../../../../../../fs/kfar/trunk/zlib/deflate.inc'
17
include 'pngtokos.inc' ;integrate png to kos
16
include 'pngtokos.inc' ;integrate png to kos
Line 1292... Line 1291...
1292
	cmp edi,0
1291
	cmp edi,0
1293
	je @f ;if (..==0) ;reduce code size; check here not in the caller
1292
	je @f ;if (..==0) ;reduce code size; check here not in the caller
1294
		mov ecx,sizeof.png_colorspace
1293
		mov ecx,sizeof.png_colorspace
1295
		mov esi,[png_ptr]
1294
		mov esi,[png_ptr]
1296
		mov esi,[esi+png_struct.colorspace]
1295
		add esi,png_struct.colorspace
1297
		mov edi,[edi+png_info_def.colorspace]
1296
		add edi,png_info_def.colorspace
1298
		rep movsb
1297
		rep movsb
1299
		stdcall png_colorspace_sync_info, [png_ptr], [info_ptr]
1298
		stdcall png_colorspace_sync_info, [png_ptr], [info_ptr]
1300
	@@:
1299
	@@:
1301
	ret
1300
	ret
1302
endp
1301
endp
1303
 
1302