Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
main.c File Reference
#include "common/collection.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/exif.h"
#include "common/film.h"
#include "common/file_location.h"
#include "common/history.h"
#include "common/image.h"
#include "common/image_cache.h"
#include "common/imageio.h"
#include "common/imageio_jpeg.h"
#include "common/imageio_module.h"
#include "common/points.h"
#include "control/conf.h"
#include "develop/imageop.h"
#include <inttypes.h>
#include <libintl.h>
#include <sys/time.h>
#include <unistd.h>
+ Include dependency graph for cli/main.c:

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

◆ 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

◆ ICC_FROM_STR

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

◆ ICC_INTENT_FROM_STR

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

Function Documentation

◆ get_icc_intent()

static dt_iop_color_intent_t get_icc_intent ( const char *  option)
static

References DT_INTENT_LAST, and ICC_INTENT_FROM_STR.

Referenced by main().

◆ get_icc_type()

static dt_colorspaces_color_profile_type_t get_icc_type ( const char *  option)
static

References DT_COLORSPACE_LAST, ICC_FROM_STR, and NONE.

Referenced by main().

◆ icc_intents()

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

Referenced by main().

◆ icc_types()

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

Referenced by main().

◆ main()

◆ usage()

static void usage ( const char *  progname)
static

Referenced by getrusage(), and main().