| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef IMFDEEPTILEDOUTPUTPART_H_ |
| #define IMFDEEPTILEDOUTPUTPART_H_ |
| |
| #include "ImfForward.h" |
| #include "ImfDeepTiledInputFile.h" |
| #include "ImfNamespace.h" |
| #include "ImfExport.h" |
| |
| |
| OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER |
| |
| |
| class IMF_EXPORT DeepTiledOutputPart |
| { |
| public: |
| |
| DeepTiledOutputPart(MultiPartOutputFile& multiPartFile, int partNumber); |
| |
| |
| |
| |
| |
| const char * fileName () const; |
| |
| |
| |
| |
| |
| |
| const Header & header () const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| void setFrameBuffer (const DeepFrameBuffer &frameBuffer); |
| |
| |
| |
| |
| |
| |
| const DeepFrameBuffer & frameBuffer () const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| unsigned int tileXSize () const; |
| unsigned int tileYSize () const; |
| LevelMode levelMode () const; |
| LevelRoundingMode levelRoundingMode () const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| int numLevels () const; |
| int numXLevels () const; |
| int numYLevels () const; |
| bool isValidLevel (int lx, int ly) const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| int levelWidth (int lx) const; |
| int levelHeight (int ly) const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| int numXTiles (int lx = 0) const; |
| int numYTiles (int ly = 0) const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| IMATH_NAMESPACE::Box2i dataWindowForLevel (int l = 0) const; |
| IMATH_NAMESPACE::Box2i dataWindowForLevel (int lx, int ly) const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| IMATH_NAMESPACE::Box2i dataWindowForTile (int dx, int dy, |
| int l = 0) const; |
| |
| IMATH_NAMESPACE::Box2i dataWindowForTile (int dx, int dy, |
| int lx, int ly) const; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| void writeTile (int dx, int dy, int l = 0); |
| void writeTile (int dx, int dy, int lx, int ly); |
| |
| void writeTiles (int dx1, int dx2, int dy1, int dy2, |
| int lx, int ly); |
| |
| void writeTiles (int dx1, int dx2, int dy1, int dy2, |
| int l = 0); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| void copyPixels (DeepTiledInputFile &in); |
| void copyPixels (DeepTiledInputPart &in); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| void updatePreviewImage (const PreviewRgba newPixels[]); |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| void breakTile (int dx, int dy, |
| int lx, int ly, |
| int offset, |
| int length, |
| char c); |
| |
| private: |
| DeepTiledOutputFile* file; |
| |
| }; |
| |
| OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT |
| |
| #endif |