#define MIN(a, b) (((a) > (b)) ? (b) : (a))
#endif
-
typedef struct GcContext {
long time;
} GcContext;
static int max_path_length (void);
static int debug_conversions = 0;
-int _babl_instrument = 0;
double
_babl_legal_error (void)
else
debug_conversions = 0;
- env = getenv ("BABL_INSTRUMENT");
- if (env && env[0] != '\0')
- _babl_instrument = 1;
- else
- _babl_instrument = 0;
-
return error;
}
{
Babl *babl = (void*)cbabl;
babl->fish.dispatch (babl, source, destination, n, *babl->fish.data);
- if (_babl_instrument)
- babl->fish.pixels += n;
return n;
}
if (n <= 0)
return 0;
- if (_babl_instrument)
- babl->fish.pixels += n * rows;
for (row = 0; row < rows; row++)
{
babl->fish.dispatch (babl, (void*)src, (void*)dst, n, *babl->fish.data);
return ret;
}
+int show_details = 0;
+
static int
test (int set_no)
{
babl_format_with_space("RGBA float", babl_space(space)), \
babl_format_with_space("RaGaBaA float", babl_space(space)), \
babl_format_with_space("R'G'B'A float", babl_space(space)), \
- babl_format_with_space("R'G'B'A float", babl_space(out_space)), \
babl_format_with_space("R'G'B'A u8", babl_space(out_space))
const Babl **formats=NULL;
double mbps[50 * 50] = {0,};
long n;
- int show_details = 0;
int set_iter = 0;
int first_run = 1;
float max_throughput = 0;
{
//if (argv[1]) ITERATIONS = atoi (argv[1]);
babl_init ();
+ if (argv[1] && argv[2]) show_details = 1;
if (argv[1])
{
if (test (atoi(argv[1])))