… | |
… | |
32 | |
32 | |
33 | typedef enum psiconv_file_type { |
33 | typedef enum psiconv_file_type { |
34 | psiconv_unknown_file, |
34 | psiconv_unknown_file, |
35 | psiconv_word_file, |
35 | psiconv_word_file, |
36 | psiconv_texted_file, |
36 | psiconv_texted_file, |
37 | psiconv_mfm_file, |
37 | psiconv_mbm_file, |
38 | psiconv_sketch_file |
38 | psiconv_sketch_file |
39 | } psiconv_file_type_t; |
39 | } psiconv_file_type_t; |
40 | |
40 | |
41 | /* Length indicators */ |
41 | /* Length indicators */ |
42 | typedef psiconv_u32 psiconv_S_t; |
42 | typedef psiconv_u32 psiconv_S_t; |
… | |
… | |
314 | typedef struct psiconv_texted_f { |
314 | typedef struct psiconv_texted_f { |
315 | psiconv_page_layout_section page_sec; |
315 | psiconv_page_layout_section page_sec; |
316 | psiconv_texted_section texted_sec; |
316 | psiconv_texted_section texted_sec; |
317 | } *psiconv_texted_f; |
317 | } *psiconv_texted_f; |
318 | |
318 | |
|
|
319 | typedef psiconv_list psiconv_mbm_jumptable_section; /* of psiconv_u32 */ |
|
|
320 | |
319 | /* Normalized values [0..1] for each component |
321 | /* Normalized values [0..1] for each component |
320 | Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */ |
322 | Origin is (x,y)=(0,0), to get pixel at (X,Y) use index [Y*xsize+X] */ |
321 | typedef struct psiconv_paint_data_section { |
323 | typedef struct psiconv_paint_data_section { |
322 | psiconv_u32 xsize; |
324 | psiconv_u32 xsize; |
323 | psiconv_u32 ysize; |
325 | psiconv_u32 ysize; |
324 | float *red; |
326 | float *red; |
325 | float *green; |
327 | float *green; |
326 | float *blue; |
328 | float *blue; |
327 | } *psiconv_paint_data_section; |
329 | } *psiconv_paint_data_section; |
328 | |
330 | |
|
|
331 | typedef psiconv_list psiconv_pictures; |
|
|
332 | /* of struct psiconv_paint_data_section */ |
|
|
333 | |
|
|
334 | typedef struct psiconv_mbm_f { |
|
|
335 | psiconv_pictures sections; |
|
|
336 | } *psiconv_mbm_f; |
|
|
337 | |
329 | typedef struct psiconv_file { |
338 | typedef struct psiconv_file { |
330 | psiconv_file_type_t type; |
339 | psiconv_file_type_t type; |
331 | void *file; |
340 | void *file; |
332 | } *psiconv_file; |
341 | } *psiconv_file; |
333 | |
342 | |
334 | |
343 | |
335 | /* UID1 */ |
344 | /* UID1 */ |
336 | #define PSICONV_ID_PSION5 0x10000037 |
345 | #define PSICONV_ID_PSION5 0x10000037 |
337 | /* UID2 */ |
346 | /* UID2 */ |
338 | #define PSICONV_ID_DATA_FILE 0x1000006D |
347 | #define PSICONV_ID_DATA_FILE 0x1000006D |
|
|
348 | #define PSICONV_ID_MBM_FILE 0x10000042 |
339 | /* UID3 */ |
349 | /* UID3 */ |
340 | #define PSICONV_ID_WORD 0x1000007F |
350 | #define PSICONV_ID_WORD 0x1000007F |
341 | #define PSICONV_ID_TEXTED 0x10000085 |
351 | #define PSICONV_ID_TEXTED 0x10000085 |
342 | |
352 | |
343 | /* Section table ids */ |
353 | /* Section table ids */ |
… | |
… | |
405 | extern void psiconv_free_page_layout_section |
415 | extern void psiconv_free_page_layout_section |
406 | (psiconv_page_layout_section section); |
416 | (psiconv_page_layout_section section); |
407 | extern void psiconv_free_word_status_section |
417 | extern void psiconv_free_word_status_section |
408 | (psiconv_word_status_section section); |
418 | (psiconv_word_status_section section); |
409 | extern void psiconv_free_word_f(psiconv_word_f file); |
419 | extern void psiconv_free_word_f(psiconv_word_f file); |
|
|
420 | extern void psiconv_free_texted_f(psiconv_texted_f file); |
|
|
421 | extern void psiconv_free_paint_data_section(psiconv_paint_data_section section); |
|
|
422 | extern void psiconv_free_pictures(psiconv_pictures section); |
|
|
423 | extern void psiconv_free_mbm_jumptable_section |
|
|
424 | (psiconv_mbm_jumptable_section section); |
|
|
425 | extern void psiconv_free_mbm_f(psiconv_mbm_f file); |
410 | extern void psiconv_free_file(psiconv_file file); |
426 | extern void psiconv_free_file(psiconv_file file); |
411 | |
427 | |
412 | |
428 | |
413 | #endif /* def PSICONV_DATA_H */ |
429 | #endif /* def PSICONV_DATA_H */ |