Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
main.c File Reference
#include "darktable.h"
#include "common/nn_model.h"
#include "common/opencl.h"
#include "system/macros.h"
#include "system/mem_alloc.h"
#include "develop/pixelpipe.h"
#include <glib/gstdio.h>
#include <json-glib/json-glib.h>
#include "win/main_wrapper.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+ Include dependency graph for ansel-nn-parity/main.c:

Go to the source code of this file.

Macros

#define NN_PROGRAM   39
 

Functions

static float * read_f32 (const char *dir, const char *name, const size_t count)
 
static int check_model_hash (const char *dir, const char *model_path)
 
static double max_abs_diff (const float *a, const float *b, const size_t n, size_t *where)
 
int main (int argc, char *arg[])
 

Macro Definition Documentation

◆ NN_PROGRAM

#define NN_PROGRAM   39

Definition at line 55 of file ansel-nn-parity/main.c.

Function Documentation

◆ check_model_hash()

static int check_model_hash ( const char *  dir,
const char *  model_path 
)
static

Definition at line 79 of file ansel-nn-parity/main.c.

Referenced by main().

◆ main()

◆ max_abs_diff()

static double max_abs_diff ( const float *  a,
const float *  b,
const size_t  n,
size_t *  where 
)
static

Definition at line 111 of file ansel-nn-parity/main.c.

References d, i, and n.

Referenced by main().

◆ read_f32()

static float * read_f32 ( const char *  dir,
const char *  name,
const size_t  count 
)
static

Definition at line 57 of file ansel-nn-parity/main.c.

References dt_free, f, and name.

Referenced by main().