Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
basebuffer.c File Reference
#include "develop/imageop_gui.h"
#include "system/openmp.h"
#include "system/target_clones.h"
#include "system/mem_alloc.h"
#include "common/module_versioning.h"
#include "caches/mipmap_cache.h"
#include "develop/develop.h"
#include "develop/geometry/geometry.h"
#include "develop/imageop.h"
#include "iop/iop_api.h"
#include <string.h>
+ Include dependency graph for basebuffer.c:

Go to the source code of this file.

Data Structures

struct  dt_iop_basebuffer_params_t
 

Typedefs

typedef struct dt_iop_basebuffer_params_t dt_iop_basebuffer_params_t
 
typedef dt_iop_basebuffer_params_t dt_iop_basebuffer_data_t
 

Functions

const char * name ()
 
int default_group ()
 
int flags ()
 
int default_colorspace (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece)
 
void modify_roi_in (dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, const dt_iop_roi_t *const roi_out, dt_iop_roi_t *roi_in)
 
void modify_roi_out (dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_roi_t *roi_out, const dt_iop_roi_t *const roi_in)
 
static void _basebuffer_geometry_map_size (const void *data, const dt_iop_roi_t *const in, dt_iop_roi_t *out)
 
gboolean geometry_record (dt_iop_module_t *self, const void *params, dt_geometry_record_t *record)
 
void output_format (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_buffer_dsc_t *dsc)
 
void input_format (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece, dt_iop_buffer_dsc_t *dsc)
 
__DT_CLONE_TARGETS__ int process (dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, const void *const ivoid, void *const ovoid)
 
int process_cl (struct dt_iop_module_t *self, const dt_dev_pixelpipe_t *pipe, const dt_dev_pixelpipe_iop_t *piece, cl_mem dev_in, cl_mem dev_out)
 
void init_pipe (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
void cleanup_pipe (dt_iop_module_t *self, dt_dev_pixelpipe_t *pipe, dt_dev_pixelpipe_iop_t *piece)
 
void init (dt_iop_module_t *self)
 
void cleanup (dt_iop_module_t *self)
 

Variables

static const dt_geometry_vtable_t _basebuffer_geometry_vtable
 

Typedef Documentation

◆ dt_iop_basebuffer_data_t

◆ dt_iop_basebuffer_params_t

Function Documentation

◆ _basebuffer_geometry_map_size()

static void _basebuffer_geometry_map_size ( const void data,
const dt_iop_roi_t *const  in,
dt_iop_roi_t out 
)
static

Definition at line 86 of file basebuffer.c.

References dt_iop_roi_t::height, out, and dt_iop_roi_t::width.

◆ cleanup()

void cleanup ( dt_iop_module_t self)

Definition at line 227 of file basebuffer.c.

References dt_iop_module_t::default_params, dt_free, and dt_iop_module_t::params.

◆ cleanup_pipe()

void cleanup_pipe ( dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

Definition at line 212 of file basebuffer.c.

References dt_dev_pixelpipe_iop_t::data, and dt_free_align.

◆ default_colorspace()

int default_colorspace ( dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
const dt_dev_pixelpipe_iop_t piece 
)

◆ default_group()

int default_group ( )

Definition at line 50 of file basebuffer.c.

References IOP_GROUP_TECHNICAL.

◆ flags()

◆ geometry_record()

gboolean geometry_record ( dt_iop_module_t self,
const void params,
dt_geometry_record_t record 
)

Definition at line 97 of file basebuffer.c.

References _basebuffer_geometry_vtable, TRUE, and dt_geometry_record_t::vtable.

◆ init()

◆ init_pipe()

void init_pipe ( dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece 
)

◆ input_format()

void input_format ( dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece,
dt_iop_buffer_dsc_t dsc 
)

◆ modify_roi_in()

void modify_roi_in ( dt_iop_module_t self,
const dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece,
const dt_iop_roi_t *const  roi_out,
dt_iop_roi_t roi_in 
)

Definition at line 66 of file basebuffer.c.

References dt_dev_pixelpipe_t::iheight, and dt_dev_pixelpipe_t::iwidth.

◆ modify_roi_out()

void modify_roi_out ( dt_iop_module_t self,
const dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece,
dt_iop_roi_t roi_out,
const dt_iop_roi_t *const  roi_in 
)

Definition at line 72 of file basebuffer.c.

References dt_dev_pixelpipe_t::iheight, and dt_dev_pixelpipe_t::iwidth.

◆ name()

const char * name ( )

Definition at line 45 of file basebuffer.c.

◆ output_format()

void output_format ( dt_iop_module_t self,
dt_dev_pixelpipe_t pipe,
dt_dev_pixelpipe_iop_t piece,
dt_iop_buffer_dsc_t dsc 
)

◆ process()

◆ process_cl()

Variable Documentation

◆ _basebuffer_geometry_vtable

const dt_geometry_vtable_t _basebuffer_geometry_vtable
static
Initial value:
= {
.transform = NULL,
.backtransform = NULL,
}
static void _basebuffer_geometry_map_size(const void *data, const dt_iop_roi_t *const in, dt_iop_roi_t *out)
Definition basebuffer.c:86

Definition at line 91 of file basebuffer.c.

Referenced by geometry_record().