Subversion Repositories Kolibri OS

Rev

Rev 6535 | Blame | Compare with Previous | Last modification | View Log | RSS feed

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