Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_dev_locked_surface_t Struct Reference

#include <dev_backbuf.h>

+ Collaboration diagram for dt_dev_locked_surface_t:

Data Fields

uint64_t hash
 
int width
 
int height
 
voiddata
 
struct dt_pixel_cache_entry_tentry
 
cairo_surface_t * surface
 

Detailed Description

A GUI-side view onto one pipe's currently published backbuffer: wraps the pipe cache's own memory, never an independent copy (pixelpipe_hb.c owns the keepalive ref). Callers declare and own their own instance(s) - darkroom keeps one for dev->pipe and one for dev->preview_pipe, Studio Capture owns exactly one, for its main pipe only. Initialize .hash to DT_PIXELPIPE_CACHE_HASH_INVALID before first use - a zero-initialized (calloc'd) instance looks like a valid hash of 0, not the sentinel.

Definition at line 37 of file dev_backbuf.h.

Field Documentation

◆ data

void* dt_dev_locked_surface_t::data

Definition at line 42 of file dev_backbuf.h.

Referenced by dt_dev_lock_pipe_surface(), and dt_dev_release_locked_surface().

◆ entry

◆ hash

◆ height

int dt_dev_locked_surface_t::height

◆ surface

◆ width

int dt_dev_locked_surface_t::width

The documentation for this struct was generated from the following file: