19 #include "scm-item.hpp"
An scm_item is a reference to a specific page in a specific SCM file.
Definition: scm-item.hpp:24
GLuint scm_external_type(uint16 c, uint16 b)
Select an OpenGL data type.
Definition: scm-task.cpp:171
int c
Page channel per pixel.
Definition: scm-task.hpp:46
void make_page(int, int)
Upload the pixel buffer to the OpenGL texture object.
Definition: scm-task.cpp:65
An scm_task represents a page load task, as executed by a loader thread.
Definition: scm-task.hpp:34
GLuint scm_internal_form(uint16 c, uint16 b)
Select an OpenGL internal texture format.
Definition: scm-task.cpp:113
GLuint u
Pixel unpack buffer object.
Definition: scm-task.hpp:48
bool load_page(const char *, TIFF *)
Load a page. On success, mark the buffer as dirty.
Definition: scm-task.cpp:101
An scm_file encapsulates an open SCM data file.
Definition: scm-file.hpp:37
scm_cache * C
Destination cache.
Definition: scm-task.hpp:51
int n
Page size.
Definition: scm-task.hpp:45
void dump_page()
Discard the pixel buffer.
Definition: scm-task.cpp:84
int b
Page bits per channel.
Definition: scm-task.hpp:47
GLsizei scm_pixel_size(uint16 c, uint16 b)
Return the storage size for an OpenGL pixel.
Definition: scm-task.cpp:184
uint64 o
SCM TIFF file offset of this page.
Definition: scm-task.hpp:44
bool d
Pixel unpack buffer dirty flag.
Definition: scm-task.hpp:49
GLuint scm_external_form(uint16 c, uint16 b)
Select an OpenGL external texture format.
Definition: scm-task.cpp:146
void * p
Pixel unpack buffer map address.
Definition: scm-task.hpp:50
An scm_cache is a virtual texture, demand-paged with threaded data access, represented as a single la...
Definition: scm-cache.hpp:35