2014-07-15 16:57:31 +02:00
|
|
|
|
use32
|
2020-11-27 15:30:47 +01:00
|
|
|
|
org 0
|
2014-07-15 16:57:31 +02:00
|
|
|
|
db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20>ᯮ<EFBFBD><E1AFAE>塞<EFBFBD><EFA5AC><EFBFBD> 䠩<><E4A0A9> <20>ᥣ<EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
|
2016-03-10 00:24:53 +01:00
|
|
|
|
dd 1, start, i_end, mem, stacktop, 0, sys_path
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
include '../../../../macros.inc'
|
|
|
|
|
include '../../../../proc32.inc'
|
2016-03-10 00:24:53 +01:00
|
|
|
|
include '../../../../KOSfuncs.inc'
|
|
|
|
|
include '../../../../load_img.inc'
|
2020-11-27 15:30:47 +01:00
|
|
|
|
include '../../../../load_lib.mac'
|
2014-07-15 16:57:31 +02:00
|
|
|
|
include '../../../../develop/libraries/box_lib/trunk/box_lib.mac'
|
|
|
|
|
|
2020-11-27 15:30:47 +01:00
|
|
|
|
@use_library mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
2016-03-11 17:14:13 +01:00
|
|
|
|
caption db '<27><><EFBFBD>ᬮ<EFBFBD><E1ACAE> <20><><EFBFBD><EFBFBD>ଠ樨 Exif 11.03.16',0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
run_file_70 FileInfoBlock
|
|
|
|
|
|
|
|
|
|
fn_toolbar db 'toolbar.png',0
|
|
|
|
|
IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3
|
|
|
|
|
image_data_toolbar dd 0
|
|
|
|
|
|
|
|
|
|
memory_file_size dd 512*1024 ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD> (<28> <20><>砫<EFBFBD> 512 Kb, <20><> <20><><EFBFBD><EFBFBD><EFBFBD> 㢥<><E3A2A5>稢<EFBFBD><E7A8A2><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
start:
|
|
|
|
|
load_libraries l_libs_start,l_libs_end
|
|
|
|
|
;<3B><EFBFBD>ઠ <20><> <>쪮 㤠筮 <20><><EFBFBD>㧨<EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD>
|
|
|
|
|
mov ebp,lib_0
|
|
|
|
|
cmp dword [ebp+ll_struc_size-4],0
|
|
|
|
|
jz @f
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_TERMINATE_PROCESS
|
2014-07-15 16:57:31 +02:00
|
|
|
|
@@:
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors
|
|
|
|
|
mcall SF_SET_EVENTS_MASK,0xC0000027
|
2014-07-15 16:57:31 +02:00
|
|
|
|
stdcall [OpenDialog_Init],OpenDialog_data ;<3B><><EFBFBD><EFBFBD><EFBFBD>⮢<EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
stdcall [buf2d_create], buf_0 ;ᮧ<><E1AEA7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2016-03-10 00:24:53 +01:00
|
|
|
|
stdcall [buf2d_create], buf_thumb
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
load_image_file 'font8x9.bmp', image_data_toolbar
|
2014-07-15 16:57:31 +02:00
|
|
|
|
stdcall [buf2d_create_f_img], buf_1,[image_data_toolbar] ;ᮧ<><E1AEA7><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall mem.Free,[image_data_toolbar] ;<3B><EFBFBD><E1A2AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [buf2d_conv_24_to_8], buf_1,1 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><E0AEA7>筮<EFBFBD><E7ADAE><EFBFBD> 8 <20><><EFBFBD>
|
|
|
|
|
stdcall [buf2d_convert_text_matrix], buf_1
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
load_image_file fn_toolbar, image_data_toolbar
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
stdcall mem.Alloc,[memory_file_size]
|
|
|
|
|
mov dword[open_file],eax
|
|
|
|
|
|
|
|
|
|
call but_new_file
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
red_win:
|
|
|
|
|
call draw_window
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
still:
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_WAIT_EVENT
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
cmp al,1
|
|
|
|
|
jz red_win
|
|
|
|
|
cmp al,2
|
|
|
|
|
jz key
|
|
|
|
|
cmp al,3
|
|
|
|
|
jz button
|
|
|
|
|
cmp al,6 ;<3B><><EFBFBD><EFBFBD>
|
|
|
|
|
jne @f
|
|
|
|
|
jmp mouse
|
|
|
|
|
@@:
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
draw_window:
|
|
|
|
|
pushad
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_REDRAW,SSF_BEGIN_DRAW
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
; *** <20><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28>믮<EFBFBD><EBAFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 ࠧ <20><><EFBFBD> <20><><EFBFBD><EFBFBD>᪥) ***
|
|
|
|
|
mov edx,[sc.work]
|
2014-07-18 19:43:40 +02:00
|
|
|
|
or edx,(3 shl 24)+0x30000000
|
2014-07-15 16:57:31 +02:00
|
|
|
|
mov edi,caption
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_CREATE_WINDOW, (20 shl 16)+590, (20 shl 16)+540
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
; *** ᮧ<><E1AEA7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ***
|
|
|
|
|
mov esi,[sc.work_button]
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_DEFINE_BUTTON, (5 shl 16)+20, (5 shl 16)+20, 3
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
mov ebx,(30 shl 16)+20
|
|
|
|
|
mov edx,4
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
mov ebx,(55 shl 16)+20
|
|
|
|
|
mov edx,5
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
mov ebx,(85 shl 16)+20
|
|
|
|
|
mov edx,6
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
mov ebx,(110 shl 16)+20
|
|
|
|
|
mov edx,7
|
|
|
|
|
int 0x40
|
|
|
|
|
|
2014-07-18 19:43:40 +02:00
|
|
|
|
mov ebx,(135 shl 16)+20
|
|
|
|
|
mov edx,8
|
|
|
|
|
int 0x40
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mov ebx,(160 shl 16)+20
|
|
|
|
|
mov edx,9
|
2014-07-15 16:57:31 +02:00
|
|
|
|
int 0x40
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
; *** <20><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ***
|
|
|
|
|
mcall SF_PUT_IMAGE, [image_data_toolbar], (16 shl 16)+16, (7 shl 16)+7 ;icon new
|
|
|
|
|
|
2014-07-15 16:57:31 +02:00
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
add edx,(25 shl 16) ;icon open
|
|
|
|
|
int 0x40
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
add edx,(25 shl 16) ;icon save
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
2016-03-10 00:24:53 +01:00
|
|
|
|
add edx,(30 shl 16) ;app1 text
|
|
|
|
|
int 0x40
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
add edx,(25 shl 16) ;app1 gps
|
|
|
|
|
int 0x40
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
add edx,(25 shl 16) ;app2 text
|
2014-07-15 16:57:31 +02:00
|
|
|
|
int 0x40
|
|
|
|
|
add ebx,IMAGE_TOOLBAR_ICON_SIZE
|
2016-03-10 00:24:53 +01:00
|
|
|
|
add edx,(25 shl 16) ;app2 thumbnail
|
2014-07-15 16:57:31 +02:00
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
; *** <20><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ***
|
|
|
|
|
stdcall [buf2d_draw], buf_0
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_REDRAW,SSF_END_DRAW
|
2014-07-15 16:57:31 +02:00
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
key:
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_GET_KEY
|
2014-07-15 16:57:31 +02:00
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
mouse:
|
|
|
|
|
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
button:
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_GET_BUTTON
|
2014-07-15 16:57:31 +02:00
|
|
|
|
cmp ah,3
|
|
|
|
|
jne @f
|
|
|
|
|
call but_new_file
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,4
|
|
|
|
|
jne @f
|
|
|
|
|
call but_open_file
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,5
|
|
|
|
|
jne @f
|
|
|
|
|
call but_save_file
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,6
|
|
|
|
|
jne @f
|
2016-03-10 13:25:30 +01:00
|
|
|
|
call draw_file_1 ;<3B>᭮<EFBFBD><E1ADAE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD>
|
2014-07-15 16:57:31 +02:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,7
|
|
|
|
|
jne @f
|
2016-03-10 13:25:30 +01:00
|
|
|
|
call draw_file_2 ;<3B><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20><> GPS
|
2014-07-15 16:57:31 +02:00
|
|
|
|
@@:
|
2014-07-18 19:43:40 +02:00
|
|
|
|
cmp ah,8
|
|
|
|
|
jne @f
|
2016-03-10 13:25:30 +01:00
|
|
|
|
call draw_file_3 ;<3B><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> app2
|
2014-07-18 19:43:40 +02:00
|
|
|
|
@@:
|
2016-03-10 00:24:53 +01:00
|
|
|
|
cmp ah,9
|
|
|
|
|
jne @f
|
2016-03-10 13:25:30 +01:00
|
|
|
|
call draw_file_4
|
2016-03-10 00:24:53 +01:00
|
|
|
|
@@:
|
2014-07-15 16:57:31 +02:00
|
|
|
|
cmp ah,1
|
|
|
|
|
jne still
|
|
|
|
|
.exit:
|
|
|
|
|
stdcall [buf2d_delete],buf_0
|
|
|
|
|
stdcall [buf2d_delete],buf_1 ;㤠<>塞 <20><><EFBFBD><EFBFBD><EFBFBD>
|
2016-03-10 00:24:53 +01:00
|
|
|
|
stdcall [buf2d_delete],buf_thumb
|
2014-07-15 16:57:31 +02:00
|
|
|
|
stdcall mem.Free,[image_data_toolbar]
|
|
|
|
|
stdcall mem.Free,[open_file]
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_TERMINATE_PROCESS
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_new_file:
|
|
|
|
|
mov dword[open_file_size],0
|
2014-07-18 19:43:40 +02:00
|
|
|
|
call draw_file_1
|
2014-07-15 16:57:31 +02:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
open_file dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD>
|
|
|
|
|
open_file_size dd 0 ;ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>⮣<EFBFBD> 䠩<><E4A0A9> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> memory_file_size)
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
but_open_file:
|
|
|
|
|
pushad
|
|
|
|
|
copy_path open_dialog_name,communication_area_default_path,file_name,0
|
|
|
|
|
mov [OpenDialog_data.type],0
|
|
|
|
|
stdcall [OpenDialog_Start],OpenDialog_data
|
|
|
|
|
cmp [OpenDialog_data.status],2
|
|
|
|
|
je .end_open_file
|
|
|
|
|
;<3B><><EFBFBD> <20><><EFBFBD> 㤠筮<E3A4A0> <20><><EFBFBD><EFBFBD><EFBFBD>⨨ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mov [run_file_70.Function], SSF_GET_INFO
|
2014-07-15 16:57:31 +02:00
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
mov dword[run_file_70.Count], 0
|
|
|
|
|
m2m [run_file_70.Buffer], [open_file]
|
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov dword[run_file_70.FileName], openfile_path
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_FILE,run_file_70
|
2014-07-15 16:57:31 +02:00
|
|
|
|
cmp eax,0
|
|
|
|
|
jne .end_open_file
|
|
|
|
|
|
|
|
|
|
mov eax,[open_file]
|
2016-03-10 13:25:30 +01:00
|
|
|
|
mov ebx,[eax+32] ;dword[eax+32] - ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
mov [open_file_size],ebx ;ebx - ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
2014-07-15 16:57:31 +02:00
|
|
|
|
;memory_file_size - ࠧ<><E0A0A7><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 䠩<><E4A0A9>
|
2016-03-10 13:25:30 +01:00
|
|
|
|
cmp [memory_file_size],ebx
|
2014-07-15 16:57:31 +02:00
|
|
|
|
jge @f
|
|
|
|
|
;㢥<><E3A2A5>稢<EFBFBD><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><> 墠⨫<E5A2A0>
|
2016-03-10 13:25:30 +01:00
|
|
|
|
mov [memory_file_size],ebx
|
|
|
|
|
stdcall mem.ReAlloc, [open_file],ebx
|
|
|
|
|
mov [open_file],eax
|
2014-07-15 16:57:31 +02:00
|
|
|
|
@@:
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mov [run_file_70.Function], SSF_READ_FILE
|
2014-07-15 16:57:31 +02:00
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
|
|
|
|
m2m dword[run_file_70.Count], dword[open_file_size]
|
|
|
|
|
m2m dword[run_file_70.Buffer],dword[open_file]
|
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov dword[run_file_70.FileName], openfile_path
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_FILE,run_file_70 ;<3B><><EFBFBD><EFBFBD>㦠<EFBFBD><E3A6A0> 䠩<> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2014-07-15 16:57:31 +02:00
|
|
|
|
cmp ebx,0xffffffff
|
|
|
|
|
je .end_open_file
|
|
|
|
|
|
|
|
|
|
mov [open_file_size],ebx
|
|
|
|
|
;add ebx,dword[open_file]
|
|
|
|
|
;mov byte[ebx],0 ;<3B><> <20><><EFBFBD>砩 <20> ࠭<><E0A0AD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<> <20><><EFBFBD><EFBFBD>襣<EFBFBD> ࠧ<><E0A0A7><EFBFBD><EFBFBD> <20><><EFBFBD>⨬ <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9><EFBFBD>
|
|
|
|
|
stdcall [exif_get_app1], [open_file],h_app1
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_SET_CAPTION,1,openfile_path
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
2014-07-18 19:43:40 +02:00
|
|
|
|
call draw_file_1
|
2014-07-15 16:57:31 +02:00
|
|
|
|
.end_open_file:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
;description:
|
|
|
|
|
; <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> exif <20><> app1
|
|
|
|
|
; ⥪<>⮢<EFBFBD><E2AEA2> <20> <20><><EFBFBD><E1ABAE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2014-07-15 16:57:31 +02:00
|
|
|
|
align 4
|
2014-07-18 19:43:40 +02:00
|
|
|
|
draw_file_1:
|
2014-07-15 16:57:31 +02:00
|
|
|
|
pushad
|
|
|
|
|
stdcall [buf2d_clear], buf_0, [buf_0.color]
|
|
|
|
|
cmp dword[open_file_size],0
|
|
|
|
|
je .open_file
|
|
|
|
|
|
|
|
|
|
mov eax,1
|
2014-07-17 19:28:35 +02:00
|
|
|
|
mov ebx,1
|
2014-07-15 16:57:31 +02:00
|
|
|
|
.cycle_0:
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_tag], h_app1,eax,txt_buf,80
|
2014-07-17 19:28:35 +02:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb0
|
2014-07-15 16:57:31 +02:00
|
|
|
|
inc eax
|
|
|
|
|
add ebx,10
|
|
|
|
|
cmp byte[txt_buf],0
|
|
|
|
|
jne .cycle_0
|
|
|
|
|
|
2014-07-17 19:28:35 +02:00
|
|
|
|
;<3B><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0> <20><><EFBFBD><EFBFBD>୨<EFBFBD> ⥣<> <20><><EFBFBD> 0x8769
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_child], h_app1,h_child,0x8769
|
2014-07-17 19:28:35 +02:00
|
|
|
|
cmp dword[h_child],0
|
2014-07-18 19:43:40 +02:00
|
|
|
|
je .no_found_child
|
2014-07-17 19:28:35 +02:00
|
|
|
|
|
|
|
|
|
mov eax,1
|
|
|
|
|
sub ebx,5
|
|
|
|
|
.cycle_1:
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_tag], h_child,eax,txt_buf,80
|
2014-07-17 19:28:35 +02:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb00000
|
|
|
|
|
inc eax
|
|
|
|
|
add ebx,10
|
|
|
|
|
cmp byte[txt_buf],0
|
|
|
|
|
jne .cycle_1
|
|
|
|
|
|
2014-07-15 16:57:31 +02:00
|
|
|
|
jmp @f
|
2014-07-18 19:43:40 +02:00
|
|
|
|
.no_found_child:
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_nochild,3,ebx,0xb000
|
|
|
|
|
jmp @f
|
|
|
|
|
.open_file:
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_openfile,3,3,0xb000
|
|
|
|
|
@@:
|
|
|
|
|
stdcall [buf2d_draw], buf_0
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
;description:
|
|
|
|
|
; <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> exif <20><> app1
|
|
|
|
|
; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> gps
|
2014-07-18 19:43:40 +02:00
|
|
|
|
align 4
|
|
|
|
|
draw_file_2:
|
|
|
|
|
pushad
|
|
|
|
|
stdcall [buf2d_clear], buf_0, [buf_0.color]
|
|
|
|
|
cmp dword[open_file_size],0
|
|
|
|
|
je .open_file
|
|
|
|
|
|
|
|
|
|
mov eax,1
|
|
|
|
|
mov ebx,1
|
|
|
|
|
.cycle_0:
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_tag], h_app1,eax,txt_buf,80
|
2014-07-18 19:43:40 +02:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb0
|
|
|
|
|
inc eax
|
|
|
|
|
add ebx,10
|
|
|
|
|
cmp byte[txt_buf],0
|
|
|
|
|
jne .cycle_0
|
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0> <20><><EFBFBD><EFBFBD>୨<EFBFBD> ⥣<> <20><><EFBFBD> 0x8825
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_child], h_app1,h_child,0x8825
|
2014-07-18 19:43:40 +02:00
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .no_found_child
|
|
|
|
|
|
|
|
|
|
mov eax,1
|
|
|
|
|
sub ebx,5
|
|
|
|
|
.cycle_1:
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_tag], h_child,eax,txt_buf,80
|
2014-07-18 19:43:40 +02:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb00000
|
|
|
|
|
inc eax
|
|
|
|
|
add ebx,10
|
|
|
|
|
cmp byte[txt_buf],0
|
|
|
|
|
jne .cycle_1
|
|
|
|
|
|
|
|
|
|
jmp @f
|
|
|
|
|
.no_found_child:
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_nochild,3,ebx,0xb000
|
|
|
|
|
jmp @f
|
|
|
|
|
.open_file:
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_openfile,3,3,0xb000
|
|
|
|
|
@@:
|
|
|
|
|
stdcall [buf2d_draw], buf_0
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
;description:
|
|
|
|
|
; <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> exif <20><> app2
|
|
|
|
|
; ⥪<>⮢<EFBFBD><E2AEA2> <20> <20><><EFBFBD><E1ABAE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2014-07-18 19:43:40 +02:00
|
|
|
|
align 4
|
|
|
|
|
draw_file_3:
|
|
|
|
|
pushad
|
|
|
|
|
stdcall [buf2d_clear], buf_0, [buf_0.color]
|
|
|
|
|
cmp dword[open_file_size],0
|
|
|
|
|
je .open_file
|
|
|
|
|
|
|
|
|
|
mov eax,1
|
|
|
|
|
mov ebx,1
|
|
|
|
|
.cycle_0:
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_tag], h_app1,eax,txt_buf,80
|
2014-07-18 19:43:40 +02:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb0
|
|
|
|
|
inc eax
|
|
|
|
|
add ebx,10
|
|
|
|
|
cmp byte[txt_buf],0
|
|
|
|
|
jne .cycle_0
|
|
|
|
|
|
2014-07-23 20:44:31 +02:00
|
|
|
|
;<3B><>室<EFBFBD><E5AEA4> app2
|
2014-07-22 22:43:05 +02:00
|
|
|
|
stdcall [exif_get_app2], h_app1,h_child
|
2014-07-18 19:43:40 +02:00
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .no_found_child
|
2014-07-23 20:44:31 +02:00
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mov eax,1 ;25
|
2014-07-18 19:43:40 +02:00
|
|
|
|
sub ebx,5
|
|
|
|
|
.cycle_1:
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_tag], h_child,eax,txt_buf,80
|
2014-07-18 19:43:40 +02:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb00000
|
|
|
|
|
inc eax
|
|
|
|
|
add ebx,10
|
|
|
|
|
cmp byte[txt_buf],0
|
|
|
|
|
jne .cycle_1
|
|
|
|
|
|
|
|
|
|
jmp @f
|
|
|
|
|
.no_found_child:
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_nochild,3,ebx,0xb000
|
|
|
|
|
jmp @f
|
2014-07-15 16:57:31 +02:00
|
|
|
|
.open_file:
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_openfile,3,3,0xb000
|
|
|
|
|
@@:
|
|
|
|
|
stdcall [buf2d_draw], buf_0
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
;description:
|
|
|
|
|
; <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> exif <20><> app2
|
|
|
|
|
; <20><><EFBFBD>⨭<EFBFBD><E2A8AD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> Nikon
|
|
|
|
|
align 4
|
|
|
|
|
draw_file_4:
|
|
|
|
|
pushad
|
|
|
|
|
stdcall [buf2d_clear], buf_0, [buf_0.color]
|
|
|
|
|
cmp dword[open_file_size],0
|
|
|
|
|
je .open_file
|
|
|
|
|
|
2016-03-11 17:14:13 +01:00
|
|
|
|
;<3B>뢮<EFBFBD><EBA2AE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20><> ᭨<><E1ADA8><EFBFBD>:
|
|
|
|
|
;0x010f - Manufacturer of digicam
|
|
|
|
|
;0x0110 - Model
|
|
|
|
|
;0x0132 - Modify date
|
|
|
|
|
mov ebx,3
|
|
|
|
|
stdcall [exif_get_tag_id], h_app1,0x010f,txt_buf,80
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb0
|
|
|
|
|
add ebx,10
|
|
|
|
|
stdcall [exif_get_tag_id], h_app1,0x0110,txt_buf,80
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb0
|
|
|
|
|
add ebx,10
|
|
|
|
|
stdcall [exif_get_tag_id], h_app1,0x0132,txt_buf,80
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_buf,3,ebx,0xb0
|
|
|
|
|
add ebx,20
|
2016-03-10 00:24:53 +01:00
|
|
|
|
|
|
|
|
|
;<3B><>室<EFBFBD><E5AEA4> app2
|
|
|
|
|
stdcall [exif_get_app2], h_app1,h_child
|
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .no_found_child
|
2016-03-11 17:14:13 +01:00
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
;<3B><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0> <20><><EFBFBD><EFBFBD>୨<EFBFBD> ⥣<>
|
2016-03-11 17:14:13 +01:00
|
|
|
|
;0x0011 - Preview IFD
|
|
|
|
|
stdcall [exif_get_child], h_child,h_child,0x0011
|
2016-03-10 00:24:53 +01:00
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .no_found_child
|
|
|
|
|
|
2016-03-11 17:14:13 +01:00
|
|
|
|
;0x0202 - Preview Image Length
|
|
|
|
|
stdcall [exif_get_child], h_child,h_child_siz,0x0202
|
2016-03-10 00:24:53 +01:00
|
|
|
|
cmp dword[h_child_siz],0
|
|
|
|
|
je .no_found_child
|
|
|
|
|
|
2016-03-11 17:14:13 +01:00
|
|
|
|
;0x0201 - Preview Image Start
|
|
|
|
|
stdcall [exif_get_child], h_child,h_child,0x0201
|
2016-03-10 00:24:53 +01:00
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .no_found_child
|
|
|
|
|
|
|
|
|
|
stdcall [img_decode],dword[h_child],dword[h_child_siz],0
|
|
|
|
|
cmp dword[eax+4],1
|
|
|
|
|
jl .no_found_child
|
|
|
|
|
cmp dword[eax+8],1
|
|
|
|
|
jl .no_found_child
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
stdcall [buf2d_resize],buf_thumb,[eax+4],[eax+8],1
|
|
|
|
|
;<3B>८<EFBFBD>ࠧ㥬 <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ଠ<EFBFBD><E0ACA0> rgb
|
|
|
|
|
stdcall [img_to_rgb2],ebx,[buf_thumb]
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [img_destroy],ebx ;㤠<>塞 <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ebx
|
2016-03-10 00:24:53 +01:00
|
|
|
|
|
2016-03-11 17:14:13 +01:00
|
|
|
|
mov ebx,43
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_thumb,3,ebx,0xb000
|
|
|
|
|
add ebx,10
|
|
|
|
|
stdcall [buf2d_bit_blt], buf_0, 0,ebx, buf_thumb ;<3B><><EFBFBD>㥬 <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2016-03-10 00:24:53 +01:00
|
|
|
|
jmp @f
|
|
|
|
|
|
|
|
|
|
.no_found_child:
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_nochild,3,ebx,0xb000
|
2016-03-10 00:24:53 +01:00
|
|
|
|
jmp @f
|
|
|
|
|
.open_file:
|
|
|
|
|
stdcall [buf2d_draw_text], buf_0, buf_1,txt_openfile,3,3,0xb000
|
|
|
|
|
@@:
|
|
|
|
|
stdcall [buf2d_draw], buf_0
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
2014-07-15 16:57:31 +02:00
|
|
|
|
align 4
|
|
|
|
|
but_save_file:
|
|
|
|
|
pushad
|
|
|
|
|
copy_path open_dialog_name,communication_area_default_path,file_name,0
|
|
|
|
|
mov [OpenDialog_data.type],1
|
|
|
|
|
stdcall [OpenDialog_Start],OpenDialog_data
|
|
|
|
|
cmp [OpenDialog_data.status],2
|
|
|
|
|
je .end_save_file
|
|
|
|
|
;<3B><><EFBFBD> <20><><EFBFBD> 㤠筮<E3A4A0> <20><><EFBFBD><EFBFBD><EFBFBD>⨨ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mov [run_file_70.Function], SSF_CREATE_FILE
|
2014-07-15 16:57:31 +02:00
|
|
|
|
mov [run_file_70.Position], 0
|
|
|
|
|
mov [run_file_70.Flags], 0
|
2016-03-10 00:24:53 +01:00
|
|
|
|
|
|
|
|
|
if 1 ;<3B>⠢<EFBFBD><E2A0A2> 1 <20> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2014-07-15 16:57:31 +02:00
|
|
|
|
mov ebx, dword[open_file]
|
|
|
|
|
mov [run_file_70.Buffer], ebx
|
|
|
|
|
mov ebx,[open_file_size]
|
2016-03-10 00:24:53 +01:00
|
|
|
|
end if
|
|
|
|
|
if 0 ;<3B>⠢<EFBFBD><E2A0A2> 1 <20> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD><EFBFBD> <20>᪨<EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
;<3B><>室<EFBFBD><E5AEA4> app2
|
|
|
|
|
stdcall [exif_get_app2], h_app1,h_child
|
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .end_save_file
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0> <20><><EFBFBD><EFBFBD>୨<EFBFBD> ⥣<>
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_child], h_child,h_child,0x0011
|
2016-03-10 00:24:53 +01:00
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .end_save_file
|
2016-03-11 17:14:13 +01:00
|
|
|
|
stdcall [exif_get_child], h_child,h_child,0x0201
|
2016-03-10 00:24:53 +01:00
|
|
|
|
cmp dword[h_child],0
|
|
|
|
|
je .end_save_file
|
|
|
|
|
|
|
|
|
|
mov ebx,dword[h_child] ;dword[open_file]
|
|
|
|
|
mov [run_file_70.Buffer], ebx
|
2016-03-10 13:25:30 +01:00
|
|
|
|
mov ebx,dword[h_child_siz] ;ࠧ<><E0A0A7><EFBFBD> <20>᪨<EFBFBD><E1AAA8> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
2016-03-10 00:24:53 +01:00
|
|
|
|
end if
|
2014-07-15 16:57:31 +02:00
|
|
|
|
mov dword[run_file_70.Count], ebx ;ࠧ<><E0A0A7><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
mov byte[run_file_70+20], 0
|
|
|
|
|
mov dword[run_file_70.FileName], openfile_path
|
2016-03-10 00:24:53 +01:00
|
|
|
|
mcall SF_FILE,run_file_70 ;<3B><><EFBFBD>࠭塞 䠩<>
|
2014-07-15 16:57:31 +02:00
|
|
|
|
;cmp ebx,0xffffffff
|
|
|
|
|
;je .end_save_file
|
|
|
|
|
; ... ᮮ<>饭<EFBFBD><E9A5AD> <20> <20><>㤠筮<E3A4A0> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> ...
|
|
|
|
|
|
|
|
|
|
.end_save_file:
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD>
|
|
|
|
|
align 4
|
|
|
|
|
OpenDialog_data:
|
|
|
|
|
.type dd 0 ;0 - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 1 - <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD>, 2 - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>४<EFBFBD><E0A5AA><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.procinfo dd procinfo ;+4
|
|
|
|
|
.com_area_name dd communication_area_name ;+8
|
|
|
|
|
.com_area dd 0 ;+12
|
|
|
|
|
.opendir_path dd plugin_path ;+16
|
|
|
|
|
.dir_default_path dd default_dir ;+20
|
|
|
|
|
.start_path dd file_name ;+24 <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD>
|
|
|
|
|
.draw_window dd draw_window ;+28
|
|
|
|
|
.status dd 0 ;+32
|
|
|
|
|
.openfile_path dd openfile_path ;+36 <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
.filename_area dd filename_area ;+40
|
|
|
|
|
.filter_area dd Filter
|
|
|
|
|
.x:
|
|
|
|
|
.x_size dw 420 ;+48 ; Window X size
|
|
|
|
|
.x_start dw 10 ;+50 ; Window X position
|
|
|
|
|
.y:
|
|
|
|
|
.y_size dw 320 ;+52 ; Window y size
|
|
|
|
|
.y_start dw 10 ;+54 ; Window Y position
|
|
|
|
|
|
2022-01-07 13:42:44 +01:00
|
|
|
|
default_dir db '/sys',0
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
communication_area_name:
|
|
|
|
|
db 'FFFFFFFF_open_dialog',0
|
|
|
|
|
open_dialog_name:
|
|
|
|
|
db 'opendial',0
|
|
|
|
|
communication_area_default_path:
|
2022-01-07 13:42:44 +01:00
|
|
|
|
db '/sys/File managers/',0
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
Filter:
|
|
|
|
|
dd Filter.end - Filter ;.1
|
|
|
|
|
.1:
|
|
|
|
|
db 'JPG',0
|
|
|
|
|
db 'JPEG',0
|
|
|
|
|
.end:
|
|
|
|
|
db 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system_dir_0 db '/sys/lib/'
|
|
|
|
|
lib_name_0 db 'proc_lib.obj',0
|
|
|
|
|
system_dir_1 db '/sys/lib/'
|
|
|
|
|
lib_name_1 db 'libimg.obj',0
|
|
|
|
|
system_dir_2 db '/sys/lib/'
|
|
|
|
|
lib_name_2 db 'buf2d.obj',0
|
|
|
|
|
system_dir_3 db '/sys/lib/'
|
|
|
|
|
lib_name_3 db 'exif.obj',0
|
|
|
|
|
|
|
|
|
|
l_libs_start:
|
2020-11-27 15:30:47 +01:00
|
|
|
|
lib_0 l_libs lib_name_0, file_name, system_dir_0, import_proclib
|
|
|
|
|
lib_1 l_libs lib_name_1, file_name, system_dir_1, import_libimg
|
|
|
|
|
lib_2 l_libs lib_name_2, file_name, system_dir_2, import_buf2d
|
|
|
|
|
lib_3 l_libs lib_name_3, file_name, system_dir_3, import_exif
|
2014-07-15 16:57:31 +02:00
|
|
|
|
l_libs_end:
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
import_libimg:
|
|
|
|
|
dd alib_init1
|
|
|
|
|
img_is_img dd aimg_is_img
|
|
|
|
|
img_info dd aimg_info
|
|
|
|
|
img_from_file dd aimg_from_file
|
|
|
|
|
img_to_file dd aimg_to_file
|
|
|
|
|
img_from_rgb dd aimg_from_rgb
|
|
|
|
|
img_to_rgb dd aimg_to_rgb
|
|
|
|
|
img_to_rgb2 dd aimg_to_rgb2
|
|
|
|
|
img_decode dd aimg_decode
|
|
|
|
|
img_encode dd aimg_encode
|
|
|
|
|
img_create dd aimg_create
|
|
|
|
|
img_destroy dd aimg_destroy
|
|
|
|
|
img_destroy_layer dd aimg_destroy_layer
|
|
|
|
|
img_count dd aimg_count
|
|
|
|
|
img_lock_bits dd aimg_lock_bits
|
|
|
|
|
img_unlock_bits dd aimg_unlock_bits
|
|
|
|
|
img_flip dd aimg_flip
|
|
|
|
|
img_flip_layer dd aimg_flip_layer
|
|
|
|
|
img_rotate dd aimg_rotate
|
|
|
|
|
img_rotate_layer dd aimg_rotate_layer
|
|
|
|
|
img_draw dd aimg_draw
|
|
|
|
|
|
|
|
|
|
dd 0,0
|
|
|
|
|
alib_init1 db 'lib_init',0
|
|
|
|
|
aimg_is_img db 'img_is_img',0 ;<3B><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> ᤥ<><E1A4A5><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
aimg_info db 'img_info',0
|
|
|
|
|
aimg_from_file db 'img_from_file',0
|
|
|
|
|
aimg_to_file db 'img_to_file',0
|
|
|
|
|
aimg_from_rgb db 'img_from_rgb',0
|
|
|
|
|
aimg_to_rgb db 'img_to_rgb',0 ;<3B>८<EFBFBD>ࠧ<EFBFBD><E0A0A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> RGB
|
|
|
|
|
aimg_to_rgb2 db 'img_to_rgb2',0
|
|
|
|
|
aimg_decode db 'img_decode',0 ;<3B><>⮬<EFBFBD><E2AEAC><EFBFBD><EFBFBD><EFBFBD>᪨ <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD> <20><>ଠ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>᪨<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
aimg_encode db 'img_encode',0
|
|
|
|
|
aimg_create db 'img_create',0
|
|
|
|
|
aimg_destroy db 'img_destroy',0
|
|
|
|
|
aimg_destroy_layer db 'img_destroy_layer',0
|
|
|
|
|
aimg_count db 'img_count',0
|
|
|
|
|
aimg_lock_bits db 'img_lock_bits',0
|
|
|
|
|
aimg_unlock_bits db 'img_unlock_bits',0
|
|
|
|
|
aimg_flip db 'img_flip',0
|
|
|
|
|
aimg_flip_layer db 'img_flip_layer',0
|
|
|
|
|
aimg_rotate db 'img_rotate',0
|
|
|
|
|
aimg_rotate_layer db 'img_rotate_layer',0
|
|
|
|
|
aimg_draw db 'img_draw',0
|
|
|
|
|
|
|
|
|
|
align 4
|
2020-11-27 15:30:47 +01:00
|
|
|
|
import_proclib: ;<3B><><EFBFBD>ᠭ<EFBFBD><E1A0AD> <20><>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD>㥬<EFBFBD><E3A5AC> <20>㭪権
|
2014-07-15 16:57:31 +02:00
|
|
|
|
OpenDialog_Init dd aOpenDialog_Init
|
|
|
|
|
OpenDialog_Start dd aOpenDialog_Start
|
|
|
|
|
dd 0,0
|
|
|
|
|
aOpenDialog_Init db 'OpenDialog_init',0
|
|
|
|
|
aOpenDialog_Start db 'OpenDialog_start',0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
import_buf2d:
|
|
|
|
|
init dd sz_init
|
|
|
|
|
buf2d_create dd sz_buf2d_create
|
|
|
|
|
buf2d_create_f_img dd sz_buf2d_create_f_img
|
|
|
|
|
buf2d_clear dd sz_buf2d_clear
|
|
|
|
|
buf2d_draw dd sz_buf2d_draw
|
|
|
|
|
buf2d_delete dd sz_buf2d_delete
|
2016-03-10 00:24:53 +01:00
|
|
|
|
buf2d_resize dd sz_buf2d_resize
|
2014-07-15 16:57:31 +02:00
|
|
|
|
buf2d_conv_24_to_8 dd sz_buf2d_conv_24_to_8
|
2016-03-10 00:24:53 +01:00
|
|
|
|
buf2d_bit_blt dd sz_buf2d_bit_blt
|
2014-07-15 16:57:31 +02:00
|
|
|
|
buf2d_convert_text_matrix dd sz_buf2d_convert_text_matrix
|
|
|
|
|
buf2d_draw_text dd sz_buf2d_draw_text
|
|
|
|
|
dd 0,0
|
|
|
|
|
sz_init db 'lib_init',0
|
|
|
|
|
sz_buf2d_create db 'buf2d_create',0
|
|
|
|
|
sz_buf2d_create_f_img db 'buf2d_create_f_img',0
|
|
|
|
|
sz_buf2d_clear db 'buf2d_clear',0
|
|
|
|
|
sz_buf2d_draw db 'buf2d_draw',0
|
|
|
|
|
sz_buf2d_delete db 'buf2d_delete',0
|
2016-03-10 00:24:53 +01:00
|
|
|
|
sz_buf2d_resize db 'buf2d_resize',0
|
2014-07-15 16:57:31 +02:00
|
|
|
|
sz_buf2d_conv_24_to_8 db 'buf2d_conv_24_to_8',0
|
2016-03-10 00:24:53 +01:00
|
|
|
|
sz_buf2d_bit_blt db 'buf2d_bit_blt',0
|
2014-07-15 16:57:31 +02:00
|
|
|
|
sz_buf2d_convert_text_matrix db 'buf2d_convert_text_matrix',0
|
|
|
|
|
sz_buf2d_draw_text db 'buf2d_draw_text',0
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
import_exif: ;<3B><><EFBFBD>ᠭ<EFBFBD><E1A0AD> <20><>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD>㥬<EFBFBD><E3A5AC> <20>㭪権
|
2014-07-17 19:28:35 +02:00
|
|
|
|
exif_get_app1 dd sz_exif_get_app1
|
2014-07-22 22:43:05 +02:00
|
|
|
|
exif_get_app2 dd sz_exif_get_app2
|
2016-03-11 17:14:13 +01:00
|
|
|
|
exif_get_tag dd sz_exif_get_tag
|
|
|
|
|
exif_get_tag_id dd sz_exif_get_tag_id
|
|
|
|
|
exif_get_child dd sz_exif_get_child
|
|
|
|
|
|
2014-07-15 16:57:31 +02:00
|
|
|
|
dd 0,0
|
2014-07-17 19:28:35 +02:00
|
|
|
|
sz_exif_get_app1 db 'exif_get_app1',0
|
2014-07-22 22:43:05 +02:00
|
|
|
|
sz_exif_get_app2 db 'exif_get_app2',0
|
2016-03-11 17:14:13 +01:00
|
|
|
|
sz_exif_get_tag db 'exif_get_tag',0
|
|
|
|
|
sz_exif_get_tag_id db 'exif_get_tag_id',0
|
|
|
|
|
sz_exif_get_child db 'exif_get_child',0
|
|
|
|
|
|
2014-07-15 16:57:31 +02:00
|
|
|
|
|
|
|
|
|
sc system_colors
|
|
|
|
|
|
|
|
|
|
align 16
|
|
|
|
|
procinfo process_information
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
buf_0: dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
dw 5 ;+4 left
|
|
|
|
|
dw 31 ;+6 top
|
2016-03-10 00:24:53 +01:00
|
|
|
|
.w: dd 570 ;+8 w
|
2014-07-18 19:43:40 +02:00
|
|
|
|
.h: dd 480 ;+12 h
|
2014-07-15 16:57:31 +02:00
|
|
|
|
.color: dd 0xffffd0 ;+16 color
|
|
|
|
|
db 24 ;+20 bit in pixel
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
buf_1:
|
|
|
|
|
dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
dw 25 ;+4 left
|
|
|
|
|
dw 25 ;+6 top
|
|
|
|
|
dd 128 ;+8 w
|
|
|
|
|
dd 144 ;+12 h
|
|
|
|
|
dd 0 ;+16 color
|
|
|
|
|
db 24 ;+20 bit in pixel
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
align 4
|
|
|
|
|
buf_thumb:
|
|
|
|
|
dd 0 ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD>
|
|
|
|
|
dw 0 ;+4 left
|
|
|
|
|
dw 0 ;+6 top
|
|
|
|
|
dd 120 ;+8 w
|
|
|
|
|
dd 100 ;+12 h
|
|
|
|
|
dd 0 ;+16 color
|
|
|
|
|
db 24 ;+20 bit in pixel
|
|
|
|
|
|
|
|
|
|
h_app1 rb 14 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ⥣<><E2A5A3>
|
|
|
|
|
h_child rb 14 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>୨<EFBFBD> ⥣<><E2A5A3>
|
|
|
|
|
h_child_siz rb 14
|
|
|
|
|
|
2014-07-15 16:57:31 +02:00
|
|
|
|
txt_openfile db '<27><><EFBFBD>ன<EFBFBD><E0AEA9> 䠩<> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><>ଠ<EFBFBD><E0ACA0> *.jpg.',0
|
2016-03-10 00:24:53 +01:00
|
|
|
|
txt_thumb db '<27><><EFBFBD> <20>᪨<EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> app2.',0
|
2014-07-18 19:43:40 +02:00
|
|
|
|
txt_nochild db '<27><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20><> <20>⮩ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.',0
|
2014-07-15 16:57:31 +02:00
|
|
|
|
txt_buf rb 80
|
|
|
|
|
|
2016-03-10 00:24:53 +01:00
|
|
|
|
align 16
|
2014-07-15 16:57:31 +02:00
|
|
|
|
i_end:
|
|
|
|
|
rb 2048
|
|
|
|
|
stacktop:
|
|
|
|
|
sys_path rb 1024
|
2016-03-10 00:24:53 +01:00
|
|
|
|
file_name rb 4096
|
2014-07-15 16:57:31 +02:00
|
|
|
|
plugin_path rb 4096
|
|
|
|
|
openfile_path rb 4096
|
|
|
|
|
filename_area rb 256
|
|
|
|
|
mem:
|