Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
imageio_rawspeed.cc File Reference
#include "RawSpeed-API.h"
#include "io/FileIOException.h"
#include "metadata/CameraMetadataException.h"
#include "parsers/RawParserException.h"
#include "parsers/FiffParserException.h"
#include <memory>
#include "glib.h"
#include "common/colorspaces.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/exif.h"
#include "common/file_location.h"
#include "common/imageio.h"
#include "common/imageio_rawspeed.h"
#include "common/tags.h"
#include "control/conf.h"
#include "develop/imageop.h"
#include <stdint.h>
+ Include dependency graph for imageio_rawspeed.cc:

Macros

#define TYPE_FLOAT32   RawImageType::F32
 
#define TYPE_USHORT16   RawImageType::UINT16
 
#define __STDC_LIMIT_MACROS
 

Functions

int rawspeed_get_number_of_processor_cores ()
 
static dt_imageio_retval_t dt_imageio_open_rawspeed_sraw (dt_image_t *img, const RawImage r, dt_mipmap_buffer_t *buf)
 
static void dt_rawspeed_load_meta ()
 
gboolean dt_rawspeed_lookup_makermodel (const char *maker, const char *model, char *mk, int mk_len, char *md, int md_len, char *al, int al_len)
 
uint32_t dt_rawspeed_crop_dcraw_filters (uint32_t filters, uint32_t crop_x, uint32_t crop_y)
 
static gboolean _ignore_image (const gchar *filename)
 
dt_imageio_retval_t dt_imageio_open_rawspeed (dt_image_t *img, const char *filename, dt_mipmap_buffer_t *mbuf)
 

Variables

static CameraMetaData * meta = NULL
 

Macro Definition Documentation

◆ __STDC_LIMIT_MACROS

#define __STDC_LIMIT_MACROS

◆ TYPE_FLOAT32

#define TYPE_FLOAT32   RawImageType::F32

◆ TYPE_USHORT16

#define TYPE_USHORT16   RawImageType::UINT16

Function Documentation

◆ _ignore_image()

static gboolean _ignore_image ( const gchar *  filename)
static

References FALSE, i, and TRUE.

Referenced by dt_imageio_open_rawspeed().

◆ dt_imageio_open_rawspeed()

dt_imageio_retval_t dt_imageio_open_rawspeed ( dt_image_t img,
const char *  filename,
dt_mipmap_buffer_t mbuf 
)
Todo:

References _ignore_image(), dt_image_t::adobe_XYZ_to_CAM, dt_iop_buffer_dsc_t::bpp, dt_image_t::camera_alias, dt_image_t::camera_legacy_makermodel, dt_image_t::camera_maker, dt_image_t::camera_missing_sample, dt_image_t::camera_model, dt_iop_buffer_dsc_t::channels, dt_image_t::crop_height, dt_image_t::crop_width, dt_image_t::crop_x, dt_image_t::crop_y, dt_iop_buffer_dsc_t::cst, d, darktable, dt_iop_buffer_dsc_t::datatype, dt_image_t::dsc, DT_DEBUG_ALWAYS, dt_exif_img_check_additional_tags(), dt_exif_read(), DT_IMAGE_4BAYER, DT_IMAGE_HDR, DT_IMAGE_RAW, dt_image_refresh_makermodel(), DT_IMAGEIO_CACHE_FULL, DT_IMAGEIO_FILE_CORRUPTED, dt_imageio_flip_buffers(), DT_IMAGEIO_IOERROR, DT_IMAGEIO_LOAD_FAILED, DT_IMAGEIO_OK, dt_imageio_open_rawspeed_sraw(), DT_IMAGEIO_UNSUPPORTED_CAMERA, DT_IMAGEIO_UNSUPPORTED_FEATURE, DT_IMAGEIO_UNSUPPORTED_FORMAT, dt_mipmap_cache_alloc(), dt_print(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_rawspeed_crop_dcraw_filters(), dt_rawspeed_load_meta(), error(), dt_image_t::exif_inited, f, dt_image_t::filename, dt_iop_buffer_dsc_t::filters, FILTERS_ARE_4BAYER, dt_image_t::flags, dt_image_t::fuji_rotation_pos, dt_image_t::height, i, IOP_CS_RAW, dt_image_t::loader, LOADER_RAWSPEED, meta, ORIENTATION_NONE, dt_image_t::p_height, dt_image_t::p_width, PATH_MAX, dt_image_t::pixel_aspect_ratio, dt_iop_buffer_dsc_t::processed_maximum, r, dt_image_t::raw_black_level, dt_image_t::raw_black_level_separate, dt_image_t::raw_white_point, darktable_t::readFile_mutex, t, TRUE, TYPE_FLOAT, TYPE_FLOAT32, TYPE_UINT16, TYPE_USHORT16, void(), dt_image_t::wb_coeffs, dt_image_t::width, and dt_iop_buffer_dsc_t::xtrans.

Referenced by dt_imageio_open_raw().

◆ dt_imageio_open_rawspeed_sraw()

◆ dt_rawspeed_crop_dcraw_filters()

uint32_t dt_rawspeed_crop_dcraw_filters ( uint32_t  filters,
uint32_t  crop_x,
uint32_t  crop_y 
)

◆ dt_rawspeed_load_meta()

◆ dt_rawspeed_lookup_makermodel()

gboolean dt_rawspeed_lookup_makermodel ( const char *  maker,
const char *  model,
char *  mk,
int  mk_len,
char *  md,
int  md_len,
char *  al,
int  al_len 
)

◆ rawspeed_get_number_of_processor_cores()

int rawspeed_get_number_of_processor_cores ( )

Variable Documentation

◆ meta