6 #ifndef INCLUDED_IMF_MISC_H
7 #define INCLUDED_IMF_MISC_H
64 char*
ptr = base + y * ptrdiff_t (yStride) + x * ptrdiff_t (xStride);
65 int* intPtr = (
int*) ptr;
73 const char*
ptr = base + y * ptrdiff_t (yStride) + x * ptrdiff_t (xStride);
74 int* intPtr = (
int*) ptr;
94 std::vector<size_t>& bytesPerLine);
109 std::vector<size_t>& bytesPerLine);
126 const std::vector<size_t>& bytesPerLine,
129 int linesInLineBuffer,
130 std::vector<size_t>& offsetInLineBuffer);
134 const std::vector<size_t>& bytesPerLine,
135 int linesInLineBuffer,
136 std::vector<size_t>& offsetInLineBuffer);
191 const char*& readPtr,
243 const char*& readPtr,
245 const char* sampleCountBase,
246 ptrdiff_t sampleCountXStride,
247 ptrdiff_t sampleCountYStride,
251 int xOffsetForSampleCount,
252 int yOffsetForSampleCount,
256 ptrdiff_t xPointerStride,
257 ptrdiff_t yPointerStride,
296 char*& toPtr,
const char*& fromPtr,
PixelType type,
size_t numPixels);
327 const char*& readPtr,
383 char* sampleCountBase,
384 ptrdiff_t sampleCountXStride,
385 ptrdiff_t sampleCountYStride,
389 int xOffsetForSampleCount,
390 int yOffsetForSampleCount,
393 ptrdiff_t sampleStride,
394 ptrdiff_t xStrideForData,
395 ptrdiff_t yStrideForData,
IMF_EXPORT int lineBufferMaxY(int y, int minY, int linesInLineBuffer)
GT_API const UT_StringHolder filename
IMF_EXPORT void copyFromDeepFrameBuffer(char *&writePtr, const char *base, char *sampleCountBase, ptrdiff_t sampleCountXStride, ptrdiff_t sampleCountYStride, int y, int xMin, int xMax, int xOffsetForSampleCount, int yOffsetForSampleCount, int xOffsetForData, int yOffsetForData, ptrdiff_t sampleStride, ptrdiff_t xStrideForData, ptrdiff_t yStrideForData, Compressor::Format format, PixelType type)
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
IMF_EXPORT int getChunkOffsetTableSize(const Header &header)
GLboolean GLboolean GLboolean GLboolean a
IMF_EXPORT std::wstring WidenFilename(const char *filename)
IMF_EXPORT bool usesLongNames(const Header &header)
IMF_EXPORT void copyFromFrameBuffer(char *&writePtr, const char *&readPtr, const char *endPtr, size_t xStride, Compressor::Format format, PixelType type)
IMF_EXPORT const char * getLibraryVersion()
IMF_EXPORT void fillChannelWithZeroes(char *&writePtr, Compressor::Format format, PixelType type, size_t xSize)
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER IMF_EXPORT int pixelTypeSize(PixelType type)
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMF_EXPORT_ENUM PixelType
IMF_EXPORT void offsetInLineBufferTable(const std::vector< size_t > &bytesPerLine, int scanline1, int scanline2, int linesInLineBuffer, std::vector< size_t > &offsetInLineBuffer)
int & sampleCount(char *base, int xStride, int yStride, int x, int y)
GLint GLint GLsizei GLint GLenum format
GLboolean GLboolean GLboolean b
IMF_EXPORT Compressor::Format defaultFormat(Compressor *compressor)
IMF_EXPORT void convertInPlace(char *&toPtr, const char *&fromPtr, PixelType type, size_t numPixels)
IMF_EXPORT size_t bytesPerDeepLineTable(const Header &header, int minY, int maxY, const char *base, int xStride, int yStride, std::vector< size_t > &bytesPerLine)
IMF_EXPORT void copyIntoDeepFrameBuffer(const char *&readPtr, char *base, const char *sampleCountBase, ptrdiff_t sampleCountXStride, ptrdiff_t sampleCountYStride, int y, int minX, int maxX, int xOffsetForSampleCount, int yOffsetForSampleCount, int xOffsetForData, int yOffsetForData, ptrdiff_t xStride, ptrdiff_t xPointerStride, ptrdiff_t yPointerStride, bool fill, double fillValue, Compressor::Format format, PixelType typeInFrameBuffer, PixelType typeInFile)
IMF_EXPORT int lineBufferMinY(int y, int minY, int linesInLineBuffer)
IMF_EXPORT void copyIntoFrameBuffer(const char *&readPtr, char *writePtr, char *endPtr, size_t xStride, bool fill, double fillValue, Compressor::Format format, PixelType typeInFrameBuffer, PixelType typeInFile)
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
IMF_EXPORT void skipChannel(const char *&readPtr, PixelType typeInFile, size_t xSize)
IMF_EXPORT int numSamples(int s, int a, int b)
IMF_EXPORT int numLinesInBuffer(Compressor *compressor)
IMF_EXPORT size_t bytesPerLineTable(const Header &header, std::vector< size_t > &bytesPerLine)