Subversion Repositories Kolibri OS

Rev

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

Rev 1102 Rev 1152
Line 223... Line 223...
223
.bpp8:
223
.bpp8:
224
; 8 BPP -> 24 BPP
224
; 8 BPP -> 24 BPP
225
	push	ebx
225
	push	ebx
226
	mov	ebx, [esi + Image.Palette]
226
	mov	ebx, [esi + Image.Palette]
227
	mov	esi, [esi + Image.Data]
227
	mov	esi, [esi + Image.Data]
-
 
228
	sub	ecx, 1
-
 
229
	jz	.bpp8.last
228
@@:
230
@@:
229
	movzx	eax, byte [esi]
231
	movzx	eax, byte [esi]
230
	add	esi, 1
232
	add	esi, 1
231
	mov	eax, [ebx + eax*4]
233
	mov	eax, [ebx + eax*4]
232
	mov	[edi], eax
234
	mov	[edi], eax
233
	add	edi, 3
235
	add	edi, 3
234
	sub	ecx, 1
236
	sub	ecx, 1
235
	jnz	@b
237
	jnz	@b
-
 
238
.bpp8.last:
-
 
239
	movzx	eax, byte [esi]
-
 
240
	mov	eax, [ebx + eax*4]
-
 
241
	mov	[edi], ax
-
 
242
	shr	eax, 16
-
 
243
	mov	[edi+2], al
236
	pop	ebx
244
	pop	ebx
237
	ret
245
	ret
Line 238... Line 246...
238
 
246
 
239
; 15 BPP -> 24 BPP
247
; 15 BPP -> 24 BPP
Line 1707... Line 1715...
1707
align 4
1715
align 4
1708
@EXPORT:
1716
@EXPORT:
Line 1709... Line 1717...
1709
 
1717
 
1710
export					      \
1718
export					      \
1711
	lib_init	, 'lib_init'	    , \
1719
	lib_init	, 'lib_init'	    , \
1712
	0x00050005	, 'version'	    , \
1720
	0x00050006	, 'version'	    , \
1713
	img.is_img	, 'img_is_img'	    , \
1721
	img.is_img	, 'img_is_img'	    , \
1714
	img.info	, 'img_info'	    , \
1722
	img.info	, 'img_info'	    , \
1715
	img.from_file	, 'img_from_file'   , \
1723
	img.from_file	, 'img_from_file'   , \
1716
	img.to_file	, 'img_to_file'     , \
1724
	img.to_file	, 'img_to_file'     , \