Subversion Repositories Kolibri OS

Rev

Rev 6456 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6456 Rev 6495
1
format coff
1
format coff
2
use32                                   ; Tell compiler to use 32 bit instructions
2
use32                                   ; Tell compiler to use 32 bit instructions
3
 
3
 
4
section '.init' code			; Keep this line before includes or GCC messes up call addresses
4
section '.init' code			; Keep this line before includes or GCC messes up call addresses
5
 
5
 
6
include '../../../programs/proc32.inc'
6
include '../../../programs/proc32.inc'
7
include '../../../programs/macros.inc'
7
include '../../../programs/macros.inc'
8
purge section,mov,add,sub
8
purge section,mov,add,sub
9
	
9
	
10
include '../../../programs/dll.inc'
10
include '../../../programs/dll.inc'
11
	
11
	
12
public init_libimg as '_init_libimg_asm'
12
public init_libimg as '_kolibri_libimg_init'
13
;;; Returns 0 on success. -1 on failure.
13
;;; Returns 0 on success. -1 on failure.
14
 
14
 
15
proc init_libimg
15
proc init_libimg
16
	
16
	mcall 68,11
17
	mcall 68,11
-
 
18
	
17
	stdcall dll.Load, @IMPORT
19
	stdcall dll.Load, @IMPORT
-
 
20
        test    eax, eax
18
	ret
21
        jnz     error
-
 
22
	
-
 
23
	mov eax, 0
-
 
24
	ret
-
 
25
	
-
 
26
error:	
-
 
27
	mov eax, -1
-
 
28
	ret
-
 
29
endp	
19
endp	
30
 
20
 
31
@IMPORT:
21
@IMPORT:
32
library lib_libimg, 	'libimg.obj'
22
library lib_libimg, 	'libimg.obj'
33
 
23
 
34
import lib_libimg, \
24
import lib_libimg, \
35
	libimg_init, 'lib_init' , \
25
	libimg_init, 'lib_init' , \
36
	img_is_img, 'img_is_img' , \
26
	img_is_img, 'img_is_img' , \
37
	img_info, 'img_info' , \
27
	img_info, 'img_info' , \
38
	img_from_file, 'img_from_file', \
28
	img_from_file, 'img_from_file', \
39
	img_to_file, 'img_to_file', \
29
	img_to_file, 'img_to_file', \
40
	img_from_rgb, 'img_from_rgb', \
30
	img_from_rgb, 'img_from_rgb', \
41
	img_to_rgb, 'img_to_rgb', \
31
	img_to_rgb, 'img_to_rgb', \
42
	img_to_rgb2, 'img_to_rgb2', \
32
	img_to_rgb2, 'img_to_rgb2', \
43
	img_decode, 'img_decode', \
33
	img_decode, 'img_decode', \
44
	img_encode, 'img_encode', \
34
	img_encode, 'img_encode', \
45
	img_create, 'img_create', \
35
	img_create, 'img_create', \
46
	img_destroy, 'img_destroy', \
36
	img_destroy, 'img_destroy', \
47
	img_destroy_layer, 'img_destroy_layer', \
37
	img_destroy_layer, 'img_destroy_layer', \
48
	img_count, 'img_count', \
38
	img_count, 'img_count', \
49
	img_lock_bits, 'img_lock_bits', \
39
	img_lock_bits, 'img_lock_bits', \
50
	img_unlock_bits, 'img_unlock_bits', \
40
	img_unlock_bits, 'img_unlock_bits', \
51
	img_flip, 'img_flip', \
41
	img_flip, 'img_flip', \
52
	img_flip_layer, 'img_flip_layer', \
42
	img_flip_layer, 'img_flip_layer', \
53
	img_rotate, 'img_rotate', \
43
	img_rotate, 'img_rotate', \
54
	img_rotate_layer, 'img_rotate_layer', \
44
	img_rotate_layer, 'img_rotate_layer', \
55
	img_draw, 'img_draw'
45
	img_draw, 'img_draw'
56
	
46
	
57
public libimg_init as  '_libimg_init'
47
public libimg_init as  '_libimg_init'
58
;	public img_is_img as  '_img_is_img'
48
;	public img_is_img as  '_img_is_img'
59
;public img_info as  '_img_info'
49
;public img_info as  '_img_info'
60
;public img_from_file as  '_img_from_file'
50
;public img_from_file as  '_img_from_file'
61
;public img_to_file as  '_img_to_file'
51
;public img_to_file as  '_img_to_file'
62
;public img_from_rgb as  '_img_from_rgb'
52
;public img_from_rgb as  '_img_from_rgb'
63
public img_to_rgb as  '_img_to_rgb'
53
public img_to_rgb as  '_img_to_rgb'
64
public img_to_rgb2 as  '_img_to_rgb2'
54
public img_to_rgb2 as  '_img_to_rgb2'
65
public img_decode as  '_img_decode'
55
public img_decode as  '_img_decode'
66
public img_encode as  '_img_encode'
56
public img_encode as  '_img_encode'
67
public img_create as  '_img_create'
57
public img_create as  '_img_create'
68
public img_destroy as  '_img_destroy'
58
public img_destroy as  '_img_destroy'
69
public img_destroy_layer as  '_img_destroy_layer'
59
public img_destroy_layer as  '_img_destroy_layer'
70
public img_count as  '_img_count'
60
public img_count as  '_img_count'
71
;public img_lock_bits as  '_img_lock_bits'
61
;public img_lock_bits as  '_img_lock_bits'
72
;public img_unlock_bits as  '_img_unlock_bits'
62
;public img_unlock_bits as  '_img_unlock_bits'
73
public img_flip as  '_img_flip'
63
public img_flip as  '_img_flip'
74
public img_flip_layer as  '_img_flip_layer'
64
public img_flip_layer as  '_img_flip_layer'
75
public img_rotate as  '_img_rotate'
65
public img_rotate as  '_img_rotate'
76
public img_rotate_layer as  '_img_rotate_layer'
66
public img_rotate_layer as  '_img_rotate_layer'
77
public img_draw as  '_img_draw'
67
public img_draw as  '_img_draw'