27 class ISubBlockRepository;
63 static int CalcMd5SumHash(
const void* ptrData,
size_t sizeData, std::uint8_t* ptrHash,
int hashSize);
73 static std::vector<std::uint8_t> Create8BitLookUpTableFromSplines(
int tableElementCnt,
float blackPoint,
float whitePoint,
const std::vector<libCZI::IDisplaySettings::SplineData>& splineData);
84 static std::vector<std::uint8_t> Create8BitLookUpTableFromGamma(
int tableElementCnt,
float blackPoint,
float whitePoint,
float gamma);
90 static std::vector<libCZI::IDisplaySettings::SplineData> CalcSplineDataFromPoints(
int pointCnt, std::function< std::tuple<double, double>(
int idx)> getPoint);
97 static std::shared_ptr<libCZI::IBitmapData > NearestNeighborResize(
libCZI::IBitmapData* bmSrc,
int dstWidth,
int dstHeight);
106 static std::shared_ptr<libCZI::IBitmapData > NearestNeighborResize(
libCZI::IBitmapData* bmSrc,
int dstWidth,
int dstHeight,
const DblRect& roiSrc,
const DblRect& roiDest);
116 if (physicalSize.
w > physicalSize.
h)
118 return float(physicalSize.
w) / logigalRect.
w;
122 return float(physicalSize.
h) / logigalRect.
h;
145 static std::shared_ptr<libCZI::IIndexSet> IndexSetFromString(
const std::wstring& s);
PixelType
An enum representing a pixel-type.
Definition: libCZI_Pixels.h:126
A rectangle (with double coordinates).
Definition: libCZI_Pixels.h:91
Definition: libCZI_Pixels.h:166
int w
The width of the rectangle.
Definition: libCZI_Pixels.h:36
std::uint32_t h
The height.
Definition: libCZI_Pixels.h:106
int h
The height of the rectangle.
Definition: libCZI_Pixels.h:37
A bunch of utility functions.
Definition: libCZI_Utilities.h:30
Interface used to represent a coordinate (in the space of the dimensions identified by DimensionIndex...
Definition: libCZI_DimCoordinate.h:54
A rectangle (with integer coordinates).
Definition: libCZI_Pixels.h:32
External interfaces, classes, functions and structs are found in the namespace "libCZI".
Definition: libCZI.h:44
DimensionIndex
Values that represent dimension indexes.
Definition: libCZI_DimCoordinate.h:34
A structure representing a size (width and height) in integers.
Definition: libCZI_Pixels.h:103
static float CalcZoom(const libCZI::IntRect &logigalRect, const libCZI::IntSize &physicalSize)
Definition: libCZI_Utilities.h:114
Interface for sub-block repository. This interface is used to access the sub-blocks in a CZI-file...
Definition: libCZI.h:391
std::uint32_t w
The width.
Definition: libCZI_Pixels.h:105