![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#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/exif.h"
#include "common/file_location.h"
#include "common/imageio_rawspeed.h"
#include "imageio.h"
#include "common/tags.h"
#include "develop/imageop.h"
#include <stdint.h>
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 |
#define __STDC_LIMIT_MACROS |
#define TYPE_FLOAT32 RawImageType::F32 |
#define TYPE_USHORT16 RawImageType::UINT16 |
|
static |
Referenced by dt_imageio_open_rawspeed().
dt_imageio_retval_t dt_imageio_open_rawspeed | ( | dt_image_t * | img, |
const char * | filename, | ||
dt_mipmap_buffer_t * | mbuf | ||
) |
References _ignore_image(), dt_image_t::adobe_XYZ_to_CAM, dt_image_t::buf_dsc, 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, darktable, dt_iop_buffer_dsc_t::datatype, 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_OK, dt_imageio_open_rawspeed_sraw(), dt_mipmap_cache_alloc(), 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, 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, dt_image_t::raw_black_level, dt_image_t::raw_black_level_separate, dt_image_t::raw_white_point, darktable_t::readFile_mutex, 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().
|
static |
References dt_image_t::buf_dsc, dt_image_t::camera_missing_sample, dt_iop_buffer_dsc_t::channels, dt_iop_buffer_dsc_t::cst, dt_iop_buffer_dsc_t::datatype, DT_IMAGE_MONOCHROME, DT_IMAGE_S_RAW, DT_IMAGEIO_CACHE_FULL, DT_IMAGEIO_FILE_CORRUPTED, DT_IMAGEIO_OK, dt_mipmap_cache_alloc(), dt_image_t::flags, dt_image_t::height, IOP_CS_RAW, IOP_CS_RGB, dt_image_t::loader, LOADER_RAWSPEED, meta, TRUE, TYPE_FLOAT, TYPE_FLOAT32, TYPE_USHORT16, and dt_image_t::width.
Referenced by dt_imageio_open_rawspeed().
uint32_t dt_rawspeed_crop_dcraw_filters | ( | uint32_t | filters, |
uint32_t | crop_x, | ||
uint32_t | crop_y | ||
) |
Referenced by dt_imageio_open_rawspeed(), and process().
|
static |
References darktable, dt_loc_get_datadir(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), meta, PATH_MAX, and darktable_t::plugin_threadsafe.
Referenced by dt_imageio_open_rawspeed(), and 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 | ||
) |
References dt_rawspeed_load_meta(), FALSE, maker, meta, model, and TRUE.
Referenced by dt_imageio_lookup_makermodel().
int rawspeed_get_number_of_processor_cores | ( | ) |
|
static |
Referenced by _apply_preferences(), _display_default(), _get_current_configuration(), _get_metadata_per_index(), _lib_metadata_refill_grid(), _lib_metadata_setup_grid(), _menuitem_preferences(), _prepare_resampling_plan(), dt_imageio_open_rawspeed(), dt_imageio_open_rawspeed_sraw(), dt_rawspeed_load_meta(), dt_rawspeed_lookup_makermodel(), and gui_reset().