#include <ft2build.h>
#include <time.h>
Go to the source code of this file.
Defines | |
#define | XSCALE 65536 |
#define | XX(x) ((FT_Pos)(x*XSCALE)) |
#define | XVEC(x, y) { XX(x), XX(y) } |
#define | XVAL(x) ((x)/(1.0*XSCALE)) |
#define | REPEAT 100000L |
Functions | |
static long | get_time (void) |
static void | dump_outline (FT_Outline *outline) |
static void | profile_outline (FT_Outline *outline, long repeat) |
int | main (int argc, char **argv) |
Variables | |
static FT_Vector | dummy_vec_1 [4] |
static char | dummy_tag_1 [4] |
static short | dummy_contour_1 [1] |
static FT_Outline | dummy_outline_1 |
static FT_Vector | dummy_vec_2 [4] |
static FT_Outline | dummy_outline_2 |
#define REPEAT 100000L |
#define XSCALE 65536 |
Definition at line 26 of file test_bbox.c.
Definition at line 27 of file test_bbox.c.
Referenced by G__G__Physics_146_0_4(), and G__G__Physics_150_0_6().
static void dump_outline | ( | FT_Outline * | outline | ) | [static] |
Definition at line 92 of file test_bbox.c.
References FT_Outline_Get_BBox(), FT_Outline_Get_CBox(), FT_BBox_::xMax, FT_BBox_::xMin, XVAL, FT_BBox_::yMax, and FT_BBox_::yMin.
static long get_time | ( | void | ) | [static] |
Definition at line 16 of file test_bbox.c.
References CLOCKS_PER_SEC, and RooFitShortHand::L().
Referenced by profile_outline().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 151 of file test_bbox.c.
References dummy_outline_1, dummy_outline_2, profile_outline(), and REPEAT.
static void profile_outline | ( | FT_Outline * | outline, | |
long | repeat | |||
) | [static] |
Definition at line 116 of file test_bbox.c.
References FT_Outline_Get_BBox(), FT_Outline_Get_CBox(), get_time(), FT_BBox_::xMax, FT_BBox_::xMin, XVAL, FT_BBox_::yMax, and FT_BBox_::yMin.
Referenced by main().
short dummy_contour_1[1] [static] |
FT_Outline dummy_outline_1 [static] |
Initial value:
{ 1, 4, dummy_vec_1, dummy_tag_1, dummy_contour_1, 0 }
Definition at line 60 of file test_bbox.c.
Referenced by main().
FT_Outline dummy_outline_2 [static] |
Initial value:
{ 1, 4, dummy_vec_2, dummy_tag_1, dummy_contour_1, 0 }
Definition at line 80 of file test_bbox.c.
Referenced by main().
char dummy_tag_1[4] [static] |
Initial value:
{ FT_CURVE_TAG_ON, FT_CURVE_TAG_CUBIC, FT_CURVE_TAG_CUBIC, FT_CURVE_TAG_ON }
Definition at line 47 of file test_bbox.c.
FT_Vector dummy_vec_1[4] [static] |
Initial value:
Definition at line 32 of file test_bbox.c.
FT_Vector dummy_vec_2[4] [static] |
Initial value:
Definition at line 72 of file test_bbox.c.