30 #ifndef OPENSLIDE_OPENSLIDE_H_
31 #define OPENSLIDE_OPENSLIDE_H_
33 #include "openslide-features.h"
129 int64_t *w, int64_t *h);
177 int64_t x, int64_t y,
179 int64_t w, int64_t h);
247 #define OPENSLIDE_PROPERTY_NAME_COMMENT "openslide.comment"
252 #define OPENSLIDE_PROPERTY_NAME_VENDOR "openslide.vendor"
257 #define OPENSLIDE_PROPERTY_NAME_QUICKHASH1 "openslide.quickhash-1"
265 #define OPENSLIDE_PROPERTY_NAME_BACKGROUND_COLOR "openslide.background-color"
272 #define OPENSLIDE_PROPERTY_NAME_OBJECTIVE_POWER "openslide.objective-power"
280 #define OPENSLIDE_PROPERTY_NAME_MPP_X "openslide.mpp-x"
288 #define OPENSLIDE_PROPERTY_NAME_MPP_Y "openslide.mpp-y"
296 #define OPENSLIDE_PROPERTY_NAME_BOUNDS_X "openslide.bounds-x"
304 #define OPENSLIDE_PROPERTY_NAME_BOUNDS_Y "openslide.bounds-y"
312 #define OPENSLIDE_PROPERTY_NAME_BOUNDS_WIDTH "openslide.bounds-width"
320 #define OPENSLIDE_PROPERTY_NAME_BOUNDS_HEIGHT "openslide.bounds-height"
403 int64_t *w, int64_t *h);
517 int64_t *w, int64_t *h);
562 #ifndef OPENSLIDE_SIMPLIFY_HEADERS
565 int _openslide_give_prefetch_hint_UNIMPLEMENTED(
void);
566 void _openslide_cancel_prefetch_hint_UNIMPLEMENTED(
void);
567 #define openslide_give_prefetch_hint(osr, x, y, level, w, h) \
568 _openslide_give_prefetch_hint_UNIMPLEMENTED(-1);
569 #define openslide_cancel_prefetch_hint(osr, prefetch_id) \
570 _openslide_cancel_prefetch_hint_UNIMPLEMENTED(-1)
int32_t openslide_get_best_layer_for_downsample(openslide_t *osr, double downsample)
Get the best level to use for displaying the given downsample.
int32_t openslide_get_best_level_for_downsample(openslide_t *osr, double downsample)
Get the best level to use for displaying the given downsample.
const char * openslide_get_property_value(openslide_t *osr, const char *name)
Get the value of a single property.
const char * openslide_get_comment(openslide_t *osr)
Get the comment (if any) for this image.
void openslide_get_layer0_dimensions(openslide_t *osr, int64_t *w, int64_t *h)
Get the dimensions of level 0 (the largest level).
struct _openslide openslide_t
The main OpenSlide type.
Definition: openslide.h:44
#define OPENSLIDE_PROPERTY_NAME_COMMENT
The name of the property containing a slide's comment, if any.
Definition: openslide.h:247
const char * openslide_get_error(openslide_t *osr)
Get the current error string.
void openslide_read_associated_image(openslide_t *osr, const char *name, uint32_t *dest)
Copy pre-multiplied ARGB data from an associated image.
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.
bool openslide_can_open(const char *filename)
Return whether openslide_open() will succeed.
int32_t openslide_get_layer_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 *const * openslide_get_associated_image_names(openslide_t *osr)
Get the NULL-terminated array of associated image names.
void openslide_get_level_dimensions(openslide_t *osr, int32_t level, int64_t *w, int64_t *h)
Get the dimensions of a level.
void openslide_get_layer_dimensions(openslide_t *osr, int32_t level, int64_t *w, int64_t *h)
Get the dimensions of a level.
void openslide_get_level0_dimensions(openslide_t *osr, int64_t *w, int64_t *h)
Get the dimensions of level 0 (the largest level).
double openslide_get_level_downsample(openslide_t *osr, int32_t level)
Get the downsampling factor of a given level.
const char * openslide_get_version(void)
Get the version of the OpenSlide library.
int32_t openslide_get_level_count(openslide_t *osr)
Get the number of levels in the whole slide image.
openslide_t * openslide_open(const char *filename)
Open a whole slide image.
const char *const * openslide_get_property_names(openslide_t *osr)
Get the NULL-terminated array of property names.
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.
void openslide_close(openslide_t *osr)
Close an OpenSlide object.
double openslide_get_layer_downsample(openslide_t *osr, int32_t level)
Get the downsampling factor of a given level.