Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
cache.c File Reference
#include "common/cache.h"
#include "common/cache.c"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
+ Include dependency graph for tests/cache.c:

Macros

#define DT_UNIT_TEST
 
#define dt_alloc_align(B)   malloc(B)
 
#define MAX(a, b)   ((a) > (b) ? (a) : (b))
 

Functions

int32_t alloc_dummy (void *data, const uint32_t key, int32_t *cost, void **buf)
 
int main (int argc, char *arg[])
 

Macro Definition Documentation

◆ dt_alloc_align

#define dt_alloc_align (   B)    malloc(B)

◆ DT_UNIT_TEST

#define DT_UNIT_TEST

◆ MAX

#define MAX (   a,
 
)    ((a) > (b) ? (a) : (b))

Function Documentation

◆ alloc_dummy()

int32_t alloc_dummy ( void data,
const uint32_t  key,
int32_t *  cost,
void **  buf 
)

References key.

Referenced by main().

◆ main()

int main ( int  argc,
char *  arg[] 
)
Todo:
: test if file with replaced ext exists
Todo:
: add a callback to set the bpp without going through the config
Todo:
: have a parameter in command line to get the export presets

References alloc_dummy(), dt_cache_cleanup(), dt_cache_contains(), dt_cache_init(), dt_cache_set_allocate_callback(), and size.