/[public]/psiconv/trunk/lib/psiconv/data.h
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/data.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 162 Revision 163
392typedef struct psiconv_mbm_f_s 392typedef struct psiconv_mbm_f_s
393{ 393{
394 psiconv_pictures sections; 394 psiconv_pictures sections;
395} *psiconv_mbm_f; 395} *psiconv_mbm_f;
396 396
397/* This is a little intricated. A picture may be embedded in a larger form. 397/* Read the Psiconv file format documentation for a complete discription.
398 A form is empty, except for the picture. The form has size form_{x,y}size, 398 Basic idea: a picture has a certain display size. Within it, the pixel
399 and the picture is at offset picture_{x,y}_offset within the form. The 399 data begins at a certain offset. Around it, there is an empty form.
400 picture itself has size picture_{x,y}size. 400 The first eight values are before magnification and cuts.
401 Cuts are always <= 1.0; a cut of 0.0 cuts nothing away, a cut of 1.0 401 Cuts are always <= 1.0; a cut of 0.0 cuts nothing away, a cut of 1.0
402 cuts everything away. */ 402 cuts everything away. */
403typedef struct psiconv_sketch_section_s 403typedef struct psiconv_sketch_section_s
404{ 404{
405 psiconv_u16 displayed_xsize;
406 psiconv_u16 displayed_ysize;
407 psiconv_u16 picture_data_x_offset;
408 psiconv_u16 picture_data_y_offset;
405 psiconv_u16 form_xsize; 409 psiconv_u16 form_xsize;
406 psiconv_u16 form_ysize; 410 psiconv_u16 form_ysize;
407 psiconv_u16 picture_x_offset; 411 psiconv_u16 displayed_size_x_offset;
408 psiconv_u16 picture_y_offset; 412 psiconv_u16 displayed_size_y_offset;
409 psiconv_u16 picture_xsize;
410 psiconv_u16 picture_ysize;
411 float magnification_x; /* computed relative to first six values */ 413 float magnification_x; /* computed relative to first eight values */
412 float magnification_y; /* computed relative to first six values */ 414 float magnification_y; /* computed relative to first eight values */
413 float cut_left; /* computed relative to first six values */ 415 float cut_left; /* computed relative to first eight values */
414 float cut_right; /* computed relative to first six values */ 416 float cut_right; /* computed relative to first eight values */
415 float cut_top; /* computed relative to first six values */ 417 float cut_top; /* computed relative to first eight values */
416 float cut_bottom; /* computed relative to first six values */ 418 float cut_bottom; /* computed relative to first eight values */
417 psiconv_paint_data_section picture; 419 psiconv_paint_data_section picture;
418} *psiconv_sketch_section; 420} *psiconv_sketch_section;
419 421
420typedef struct psiconv_sketch_f_s 422typedef struct psiconv_sketch_f_s
421{ 423{

Legend:
Removed from v.162  
changed lines
  Added in v.163

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26