| line |
true |
false |
branch |
|
17
|
0 |
19 |
if (!fp) |
|
19
|
0 |
19 |
if (fseek(fp, 0, SEEK_END) != 0) { fclose(fp); croak("PDF::Make::Image: seek failed"); } |
|
21
|
0 |
19 |
if (file_len < 0) { fclose(fp); croak("PDF::Make::Image: tell failed"); } |
|
24
|
0 |
19 |
if (!buf) { fclose(fp); croak("PDF::Make::Image: malloc failed"); } |
|
27
|
0 |
19 |
if ((long)nread != file_len) { free(buf); croak("PDF::Make::Image: short read"); } |
|
32
|
0 |
19 |
if (!img) |
|
53
|
0 |
0 |
if (!img) |
|
65
|
12 |
6 |
RETVAL = self->width; |
|
73
|
12 |
6 |
RETVAL = self->height; |
|
81
|
0 |
2 |
RETVAL = self->format; |
|
89
|
0 |
1 |
RETVAL = self->components; |
|
97
|
0 |
0 |
RETVAL = self->has_alpha; |
|
107
|
0 |
17 |
if (RETVAL == 0) |
|
121
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "width", pdfmake_image_t, width, PDFMAKE_FIELD_INT); |
|
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "width", pdfmake_image_t, width, PDFMAKE_FIELD_INT); |
|
122
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "height", pdfmake_image_t, height, PDFMAKE_FIELD_INT); |
|
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "height", pdfmake_image_t, height, PDFMAKE_FIELD_INT); |
|
123
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "format", pdfmake_image_t, format, PDFMAKE_FIELD_INT); |
|
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "format", pdfmake_image_t, format, PDFMAKE_FIELD_INT); |
|
124
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "components", pdfmake_image_t, components, PDFMAKE_FIELD_INT); |
|
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "components", pdfmake_image_t, components, PDFMAKE_FIELD_INT); |
|
125
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "has_alpha", pdfmake_image_t, has_alpha, PDFMAKE_FIELD_INT); |
|
|
90 |
0 |
PDFMAKE_REGISTER_GETTER(stash, "has_alpha", pdfmake_image_t, has_alpha, PDFMAKE_FIELD_INT); |