31#ifndef OPENSLIDE_OPENSLIDE_H_
32#define OPENSLIDE_OPENSLIDE_H_
34#include "openslide-features.h"
145 int64_t *w, int64_t *h);
200 int64_t x, int64_t y,
202 int64_t w, int64_t h);
302#define OPENSLIDE_PROPERTY_NAME_BACKGROUND_COLOR "openslide.background-color"
310#define OPENSLIDE_PROPERTY_NAME_BOUNDS_HEIGHT "openslide.bounds-height"
318#define OPENSLIDE_PROPERTY_NAME_BOUNDS_WIDTH "openslide.bounds-width"
326#define OPENSLIDE_PROPERTY_NAME_BOUNDS_X "openslide.bounds-x"
334#define OPENSLIDE_PROPERTY_NAME_BOUNDS_Y "openslide.bounds-y"
341#define OPENSLIDE_PROPERTY_NAME_COMMENT "openslide.comment"
349#define OPENSLIDE_PROPERTY_NAME_ICC_SIZE "openslide.icc-size"
357#define OPENSLIDE_PROPERTY_NAME_MPP_X "openslide.mpp-x"
365#define OPENSLIDE_PROPERTY_NAME_MPP_Y "openslide.mpp-y"
372#define OPENSLIDE_PROPERTY_NAME_OBJECTIVE_POWER "openslide.objective-power"
379#define OPENSLIDE_PROPERTY_NAME_QUICKHASH1 "openslide.quickhash-1"
386#define OPENSLIDE_PROPERTY_NAME_VENDOR "openslide.vendor"
475 int64_t *w, int64_t *h);
const char * openslide_get_version(void)
Get the version of the OpenSlide library.
const char *const * openslide_get_associated_image_names(openslide_t *osr)
Get the NULL-terminated array of associated image names.
void openslide_read_region(openslide_t *osr, uint32_t *dest, int64_t x, int64_t y, int32_t level, int64_t w, int64_t h)
Copy pre-multiplied ARGB data from a whole slide image.
void openslide_set_cache(openslide_t *osr, openslide_cache_t *cache)
Attach a cache to the specified OpenSlide object, replacing the current cache.
int32_t openslide_get_level_count(openslide_t *osr)
Get the number of levels in the whole slide image.
const char * openslide_detect_vendor(const char *filename)
Quickly determine whether a whole slide image is recognized.
const char * openslide_get_property_value(openslide_t *osr, const char *name)
Get the value of a single property.
void openslide_read_associated_image_icc_profile(openslide_t *osr, const char *name, void *dest)
Copy the ICC color profile from an associated image.
void openslide_get_associated_image_dimensions(openslide_t *osr, const char *name, int64_t *w, int64_t *h)
Get the dimensions of an associated image.
int64_t openslide_get_icc_profile_size(openslide_t *osr)
Get the size in bytes of the ICC color profile for the whole slide image.
void openslide_close(openslide_t *osr)
Close an OpenSlide object.
int64_t openslide_get_associated_image_icc_profile_size(openslide_t *osr, const char *name)
Get the size in bytes of the ICC color profile for an associated image.
void openslide_get_level_dimensions(openslide_t *osr, int32_t level, int64_t *w, int64_t *h)
Get the dimensions of a level.
double openslide_get_level_downsample(openslide_t *osr, int32_t level)
Get the downsampling factor of a given level.
openslide_cache_t * openslide_cache_create(size_t capacity)
Create a new tile cache, unconnected to any OpenSlide object.
void openslide_read_associated_image(openslide_t *osr, const char *name, uint32_t *dest)
Copy pre-multiplied ARGB data from an associated image.
struct _openslide_cache openslide_cache_t
An OpenSlide tile cache.
Definition: openslide.h:60
void openslide_cache_release(openslide_cache_t *cache)
Release the cache.
struct _openslide openslide_t
The main OpenSlide type.
Definition: openslide.h:51
const char * openslide_get_error(openslide_t *osr)
Get the current error string.
int32_t openslide_get_best_level_for_downsample(openslide_t *osr, double downsample)
Get the best level to use for displaying the given downsample.
void openslide_read_icc_profile(openslide_t *osr, void *dest)
Copy the ICC color profile from a whole slide image.
openslide_t * openslide_open(const char *filename)
Open a whole slide image.
void openslide_get_level0_dimensions(openslide_t *osr, int64_t *w, int64_t *h)
Get the dimensions of level 0 (the largest level).
const char *const * openslide_get_property_names(openslide_t *osr)
Get the NULL-terminated array of property names.