b2tool1.c File Reference

Tool functions. More...

#include "bmepsi.h"

Include dependency graph for b2tool1.c:


Defines

#define B2TOOL1_C   1
 Inside the b2tool1.c module.

Functions

int bmeps_tool_how_to_handle_bb (BJ *bj)
 Find out how to handle image size.
static void initialize_areas (BJ *bj)
 Initialize areas.
static void bb_from_paper_size (BJ *bj)
 Get bounding box from a named paper size.
static void bb_complete (BJ *bj)
 Complete bounding box calculation.
static void bb_ignore_resolution (BJ *bj)
 Create bounding box, ignore resolution settings.
static void bb_use_resolution (BJ *bj)
 Create bounding box using resolution information.
void bmeps_tool_calculate_areas (BJ *bj)
 Calculate used areas, shifting and rotation.
unsigned short bmeps_tool_pdf_output_bits (unsigned short b)
 Get number of PDF bits per component for a specified input number of bits per component.
unsigned short bmeps_tool_eps_output_bits (unsigned short b)
 Get number of EPS bits per component for a specified input number of bits per component.
void bmeps_tool_correct_bo (BO *bo)
 Correct inconsitencies (if any) in bmeps options set.
int bmeps_tool_interpolate (BJ *bj)
 Check whether interpolation flag must be enabled.
char * bmeps_tool_suffix_for_output_type (int t)
 Find file name suffix for output type.
int bmeps_tool_calc_di (BJ *bj, DI *dp1, DI *dp2, double f1, double f2)
 Calculate dimensions (line width, angle) for draft.
char * bmeps_get_msg_no (BJ *bj, size_t n)
 Get text for a message number.
void bmeps_tool_msg_1 (BJ *bj, int ll, size_t n)
 Show simple error message.
void bmeps_tool_msg_3 (BJ *bj, int ll, size_t n1, size_t n2, char *s)
 Show error message, one custom string: bmeps_str_get(n1) s bmeps_str_get(n2).
void bmeps_tool_msg_5 (BJ *bj, int ll, size_t n1, size_t n2, size_t n3, char *s1, char *s2)
 Show error message, two custom strings: bmeps_str_get(n1) s1 bmeps_str_get(n2) s2 bmeps_str_get(n3).
void bmeps_tool_error_memory (BJ *bj)
 Show error message: Not enough memory.

Variables

char * b2tool_ot_suffixes []
 File name suffixes for output types.
static char sccs_id [] = { "@(#)b2tool1.ctr 1.14 04/14/09" }
 SCCIS ID.

Detailed Description

Tool functions.


Define Documentation

#define B2TOOL1_C   1

Inside the b2tool1.c module.


Function Documentation

static void bb_complete ( BJ bj  )  [static]

Complete bounding box calculation.

Parameters:
bj Bmeps job.

static void bb_from_paper_size ( BJ bj  )  [static]

Get bounding box from a named paper size.

Parameters:
bj Bmeps job.

static void bb_ignore_resolution ( BJ bj  )  [static]

Create bounding box, ignore resolution settings.

Parameters:
bj Bmeps job.

static void bb_use_resolution ( BJ bj  )  [static]

Create bounding box using resolution information.

Parameters:
bj Bmeps job.

char* bmeps_get_msg_no ( BJ bj,
size_t  n 
)

Get text for a message number.

Parameters:
bj Bmeps job.
n Index in message array.
Returns:
The message text.

int bmeps_tool_calc_di ( BJ bj,
DI dp1,
DI dp2,
double  f1,
double  f2 
)

Calculate dimensions (line width, angle) for draft.

Parameters:
bj Bmeps job.
dp1 Inner lines.
dp2 Outer lines.
f1 Inner lines factor.
f2 Border lines factor.
Returns:
1 on success, 0 on error.

void bmeps_tool_calculate_areas ( BJ bj  ) 

Calculate used areas, shifting and rotation.

Parameters:
bj Bmeps job.

void bmeps_tool_correct_bo ( BO bo  ) 

Correct inconsitencies (if any) in bmeps options set.

Parameters:
bo Bmeps options set.

unsigned short bmeps_tool_eps_output_bits ( unsigned short  b  ) 

Get number of EPS bits per component for a specified input number of bits per component.

Parameters:
b Bits per component from input file.
Returns:
Bits per component for PS/EPS output.

void bmeps_tool_error_memory ( BJ bj  ) 

Show error message: Not enough memory.

Parameters:
bj Bmeps job.

int bmeps_tool_how_to_handle_bb ( BJ bj  ) 

Find out how to handle image size.

Parameters:
bj Bmeps job.
Returns:
0= use width and height as is, 1= use pHY chunk (resolution chunk) in image, 2= use specified media size.

int bmeps_tool_interpolate ( BJ bj  ) 

Check whether interpolation flag must be enabled.

Parameters:
bj Bmeps job.
Returns:
Value of interpolation flag.

void bmeps_tool_msg_1 ( BJ bj,
int  ll,
size_t  n 
)

Show simple error message.

Parameters:
bj Bmeps job.
ll Log level (DK_LOG_xxx).
n Index in string array.

void bmeps_tool_msg_3 ( BJ bj,
int  ll,
size_t  n1,
size_t  n2,
char *  s 
)

Show error message, one custom string: bmeps_str_get(n1) s bmeps_str_get(n2).

Parameters:
bj Bmeps job.
ll Log level (DK_LOG_xxx).
n1 Index in string array.
n2 Index in string array.
s Customized string.

void bmeps_tool_msg_5 ( BJ bj,
int  ll,
size_t  n1,
size_t  n2,
size_t  n3,
char *  s1,
char *  s2 
)

Show error message, two custom strings: bmeps_str_get(n1) s1 bmeps_str_get(n2) s2 bmeps_str_get(n3).

Parameters:
bj Bmeps job.
ll Log level (DK_LOG_xxx).
n1 Index in string array.
n2 Index in string array.
n3 Index in string array.
s1 1st customized string.
s2 2nd customized string.

unsigned short bmeps_tool_pdf_output_bits ( unsigned short  b  ) 

Get number of PDF bits per component for a specified input number of bits per component.

Parameters:
b Bits per component from input file.
Returns:
Bits per component for PDF output.

char* bmeps_tool_suffix_for_output_type ( int  t  ) 

Find file name suffix for output type.

Parameters:
t Output type.
Returns:
File name suffix.

static void initialize_areas ( BJ bj  )  [static]

Initialize areas.

Parameters:
bj Bmeps job.


Variable Documentation

Initial value:

 {
  ".eps", ".pdf", ".bb", NULL
}
File name suffixes for output types.


Generated on Wed Apr 15 11:57:15 2009 for bmeps by  doxygen 1.5.8