#include "bmepsi.h"
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. |
#define B2TOOL1_C 1 |
Inside the b2tool1.c module.
static void bb_complete | ( | BJ * | bj | ) | [static] |
Complete bounding box calculation.
bj | Bmeps job. |
static void bb_from_paper_size | ( | BJ * | bj | ) | [static] |
Get bounding box from a named paper size.
bj | Bmeps job. |
static void bb_ignore_resolution | ( | BJ * | bj | ) | [static] |
Create bounding box, ignore resolution settings.
bj | Bmeps job. |
static void bb_use_resolution | ( | BJ * | bj | ) | [static] |
Create bounding box using resolution information.
bj | Bmeps job. |
char* bmeps_get_msg_no | ( | BJ * | bj, | |
size_t | n | |||
) |
Get text for a message number.
bj | Bmeps job. | |
n | Index in message array. |
Calculate dimensions (line width, angle) for draft.
bj | Bmeps job. | |
dp1 | Inner lines. | |
dp2 | Outer lines. | |
f1 | Inner lines factor. | |
f2 | Border lines factor. |
void bmeps_tool_calculate_areas | ( | BJ * | bj | ) |
Calculate used areas, shifting and rotation.
bj | Bmeps job. |
void bmeps_tool_correct_bo | ( | BO * | bo | ) |
Correct inconsitencies (if any) in bmeps options set.
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.
b | Bits per component from input file. |
void bmeps_tool_error_memory | ( | BJ * | bj | ) |
Show error message: Not enough memory.
bj | Bmeps job. |
int bmeps_tool_how_to_handle_bb | ( | BJ * | bj | ) |
Find out how to handle image size.
bj | Bmeps job. |
int bmeps_tool_interpolate | ( | BJ * | bj | ) |
Check whether interpolation flag must be enabled.
bj | Bmeps job. |
void bmeps_tool_msg_1 | ( | BJ * | bj, | |
int | ll, | |||
size_t | n | |||
) |
Show simple error message.
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).
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).
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.
b | Bits per component from input file. |
char* bmeps_tool_suffix_for_output_type | ( | int | t | ) |
Find file name suffix for output type.
t | Output type. |
static void initialize_areas | ( | BJ * | bj | ) | [static] |
Initialize areas.
bj | Bmeps job. |
char* b2tool_ot_suffixes[] |
Initial value:
{ ".eps", ".pdf", ".bb", NULL }