Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
main.c File Reference
#include "darktable.h"
#include "common/xmp_sidecar.h"
#include "common/film.h"
#include "common/file_location.h"
#include "history/history.h"
#include "common/image.h"
#include "caches/image_cache.h"
#include "imageio/imageio_module.h"
#include "common/l10n.h"
#include <inttypes.h>
#include <libintl.h>
#include "osx/osx.h"
#include "win/main_wrapper.h"
+ Include dependency graph for ansel-cli/main.c:

Go to the source code of this file.

Macros

#define DT_MAX_STYLE_NAME_LENGTH   128
 
#define DT_MAX_OUTPUT_EXT_LENGTH   5
 
#define ICC_FROM_STR(name)   if(!strcmp(option, #name)) return DT_COLORSPACE_ ## name;
 
#define ICC_INTENT_FROM_STR(name)   if(!strcmp(option, #name)) return DT_INTENT_ ## name;
 

Functions

static void usage (const char *progname)
 
static void icc_types ()
 
static dt_colorspaces_color_profile_type_t get_icc_type (const char *option)
 
static void icc_intents ()
 
static dt_iop_color_intent_t get_icc_intent (const char *option)
 
int main (int argc, char *arg[])
 

Macro Definition Documentation

◆ DT_MAX_OUTPUT_EXT_LENGTH

#define DT_MAX_OUTPUT_EXT_LENGTH   5

Definition at line 76 of file ansel-cli/main.c.

◆ DT_MAX_STYLE_NAME_LENGTH

#define DT_MAX_STYLE_NAME_LENGTH   128

TODO:

  • make –bpp work
  • add options for interpolator
  • make these settings work
  • ???
  • profit

Definition at line 73 of file ansel-cli/main.c.

◆ ICC_FROM_STR

#define ICC_FROM_STR (   name)    if(!strcmp(option, #name)) return DT_COLORSPACE_ ## name;

Definition at line 144 of file ansel-cli/main.c.

◆ ICC_INTENT_FROM_STR

#define ICC_INTENT_FROM_STR (   name)    if(!strcmp(option, #name)) return DT_INTENT_ ## name;

Definition at line 187 of file ansel-cli/main.c.

Function Documentation

◆ get_icc_intent()

static dt_iop_color_intent_t get_icc_intent ( const char *  option)
static

Definition at line 188 of file ansel-cli/main.c.

References DT_INTENT_LAST, ICC_INTENT_FROM_STR, and L.

Referenced by main().

◆ get_icc_type()

static dt_colorspaces_color_profile_type_t get_icc_type ( const char *  option)
static

Definition at line 145 of file ansel-cli/main.c.

References DT_COLORSPACE_LAST, ICC_FROM_STR, L, NONE, and XYZ.

Referenced by main().

◆ icc_intents()

static void icc_intents ( )
static
Todo:
: Can this be automated to keep in sync with colorspaces.h?

Definition at line 178 of file ansel-cli/main.c.

References L.

Referenced by main().

◆ icc_types()

static void icc_types ( )
static
Todo:
: Can this be automated to keep in sync with colorspaces.h?

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

References L.

Referenced by main().

◆ main()

◆ usage()

static void usage ( const char *  progname)
static

Definition at line 78 of file ansel-cli/main.c.

References L.

Referenced by getrusage(), and main().