Blame IlmImf/ImfDeepTiledInputFile.h

Packit Service 6754ca
///////////////////////////////////////////////////////////////////////////
Packit Service 6754ca
//
Packit Service 6754ca
// Copyright (c) 2011, Industrial Light & Magic, a division of Lucas
Packit Service 6754ca
// Digital Ltd. LLC
Packit Service 6754ca
//
Packit Service 6754ca
// All rights reserved.
Packit Service 6754ca
//
Packit Service 6754ca
// Redistribution and use in source and binary forms, with or without
Packit Service 6754ca
// modification, are permitted provided that the following conditions are
Packit Service 6754ca
// met:
Packit Service 6754ca
// *       Redistributions of source code must retain the above copyright
Packit Service 6754ca
// notice, this list of conditions and the following disclaimer.
Packit Service 6754ca
// *       Redistributions in binary form must reproduce the above
Packit Service 6754ca
// copyright notice, this list of conditions and the following disclaimer
Packit Service 6754ca
// in the documentation and/or other materials provided with the
Packit Service 6754ca
// distribution.
Packit Service 6754ca
// *       Neither the name of Industrial Light & Magic nor the names of
Packit Service 6754ca
// its contributors may be used to endorse or promote products derived
Packit Service 6754ca
// from this software without specific prior written permission.
Packit Service 6754ca
//
Packit Service 6754ca
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit Service 6754ca
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit Service 6754ca
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit Service 6754ca
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit Service 6754ca
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit Service 6754ca
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit Service 6754ca
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit Service 6754ca
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit Service 6754ca
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit Service 6754ca
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit Service 6754ca
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit Service 6754ca
//
Packit Service 6754ca
///////////////////////////////////////////////////////////////////////////
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
#ifndef INCLUDED_IMF_DEEP_TILED_INPUT_FILE_H
Packit Service 6754ca
#define INCLUDED_IMF_DEEP_TILED_INPUT_FILE_H
Packit Service 6754ca
Packit Service 6754ca
//-----------------------------------------------------------------------------
Packit Service 6754ca
//
Packit Service 6754ca
//      class DeepTiledInputFile
Packit Service 6754ca
//
Packit Service 6754ca
//-----------------------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
#include "ImfHeader.h"
Packit Service 6754ca
#include "ImfFrameBuffer.h"
Packit Service 6754ca
#include "ImathBox.h"
Packit Service 6754ca
#include "ImfTileDescription.h"
Packit Service 6754ca
#include "ImfThreading.h"
Packit Service 6754ca
#include "ImfGenericInputFile.h"
Packit Service 6754ca
#include "ImfDeepFrameBuffer.h"
Packit Service 6754ca
#include "ImfDeepTiledOutputFile.h"
Packit Service 6754ca
#include "ImfForward.h"
Packit Service 6754ca
#include "ImfNamespace.h"
Packit Service 6754ca
#include "ImfExport.h"
Packit Service 6754ca
Packit Service 6754ca
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Packit Service 6754ca
Packit Service 6754ca
class IMF_EXPORT DeepTiledInputFile : public GenericInputFile
Packit Service 6754ca
{
Packit Service 6754ca
  public:
Packit Service 6754ca
Packit Service 6754ca
    //--------------------------------------------------------------------
Packit Service 6754ca
    // A constructor that opens the file with the specified name, and
Packit Service 6754ca
    // reads the file header.  The constructor throws an IEX_NAMESPACE::ArgExc
Packit Service 6754ca
    // exception if the file is not tiled.
Packit Service 6754ca
    // The numThreads parameter specifies how many worker threads this
Packit Service 6754ca
    // file will try to keep busy when decompressing individual tiles.
Packit Service 6754ca
    // Destroying TiledInputFile objects constructed with this constructor
Packit Service 6754ca
    // automatically closes the corresponding files.
Packit Service 6754ca
    //--------------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    DeepTiledInputFile (const char fileName[],
Packit Service 6754ca
                    int numThreads = globalThreadCount ());
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    // ----------------------------------------------------------
Packit Service 6754ca
    // A constructor that attaches the new TiledInputFile object
Packit Service 6754ca
    // to a file that has already been opened.
Packit Service 6754ca
    // Destroying TiledInputFile objects constructed with this
Packit Service 6754ca
    // constructor does not automatically close the corresponding
Packit Service 6754ca
    // files.
Packit Service 6754ca
    // ----------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    DeepTiledInputFile (OPENEXR_IMF_INTERNAL_NAMESPACE::IStream &is, int numThreads = globalThreadCount ());
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //-----------
Packit Service 6754ca
    // Destructor
Packit Service 6754ca
    //-----------
Packit Service 6754ca
Packit Service 6754ca
    virtual ~DeepTiledInputFile ();
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //------------------------
Packit Service 6754ca
    // Access to the file name
Packit Service 6754ca
    //------------------------
Packit Service 6754ca
Packit Service 6754ca
    const char *        fileName () const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //--------------------------
Packit Service 6754ca
    // Access to the file header
Packit Service 6754ca
    //--------------------------
Packit Service 6754ca
Packit Service 6754ca
    const Header &      header () const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //----------------------------------
Packit Service 6754ca
    // Access to the file format version
Packit Service 6754ca
    //----------------------------------
Packit Service 6754ca
Packit Service 6754ca
    int                 version () const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //-----------------------------------------------------------
Packit Service 6754ca
    // Set the current frame buffer -- copies the FrameBuffer
Packit Service 6754ca
    // object into the TiledInputFile object.
Packit Service 6754ca
    //
Packit Service 6754ca
    // The current frame buffer is the destination for the pixel
Packit Service 6754ca
    // data read from the file.  The current frame buffer must be
Packit Service 6754ca
    // set at least once before readTile() is called.
Packit Service 6754ca
    // The current frame buffer can be changed after each call
Packit Service 6754ca
    // to readTile().
Packit Service 6754ca
    //-----------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    void                setFrameBuffer (const DeepFrameBuffer &frameBuffer);
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //-----------------------------------
Packit Service 6754ca
    // Access to the current frame buffer
Packit Service 6754ca
    //-----------------------------------
Packit Service 6754ca
Packit Service 6754ca
    const DeepFrameBuffer & frameBuffer () const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //------------------------------------------------------------
Packit Service 6754ca
    // Check if the file is complete:
Packit Service 6754ca
    //
Packit Service 6754ca
    // isComplete() returns true if all pixels in the data window
Packit Service 6754ca
    // (in all levels) are present in the input file, or false if
Packit Service 6754ca
    // any pixels are missing.  (Another program may still be busy
Packit Service 6754ca
    // writing the file, or file writing may have been aborted
Packit Service 6754ca
    // prematurely.)
Packit Service 6754ca
    //------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    bool                isComplete () const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //--------------------------------------------------
Packit Service 6754ca
    // Utility functions:
Packit Service 6754ca
    //--------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    //---------------------------------------------------------
Packit Service 6754ca
    // Multiresolution mode and tile size:
Packit Service 6754ca
    // The following functions return the xSize, ySize and mode
Packit Service 6754ca
    // fields of the file header's TileDescriptionAttribute.
Packit Service 6754ca
    //---------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    unsigned int        tileXSize () const;
Packit Service 6754ca
    unsigned int        tileYSize () const;
Packit Service 6754ca
    LevelMode           levelMode () const;
Packit Service 6754ca
    LevelRoundingMode   levelRoundingMode () const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //--------------------------------------------------------------------
Packit Service 6754ca
    // Number of levels:
Packit Service 6754ca
    //
Packit Service 6754ca
    // numXLevels() returns the file's number of levels in x direction.
Packit Service 6754ca
    //
Packit Service 6754ca
    //  if levelMode() == ONE_LEVEL:
Packit Service 6754ca
    //      return value is: 1
Packit Service 6754ca
    //
Packit Service 6754ca
    //  if levelMode() == MIPMAP_LEVELS:
Packit Service 6754ca
    //      return value is: rfunc (log (max (w, h)) / log (2)) + 1
Packit Service 6754ca
    //
Packit Service 6754ca
    //  if levelMode() == RIPMAP_LEVELS:
Packit Service 6754ca
    //      return value is: rfunc (log (w) / log (2)) + 1
Packit Service 6754ca
    //
Packit Service 6754ca
    //  where
Packit Service 6754ca
    //      w is the width of the image's data window,  max.x - min.x + 1,
Packit Service 6754ca
    //      y is the height of the image's data window, max.y - min.y + 1,
Packit Service 6754ca
    //      and rfunc(x) is either floor(x), or ceil(x), depending on
Packit Service 6754ca
    //      whether levelRoundingMode() returns ROUND_DOWN or ROUND_UP.
Packit Service 6754ca
    //
Packit Service 6754ca
    // numYLevels() returns the file's number of levels in y direction.
Packit Service 6754ca
    //
Packit Service 6754ca
    //  if levelMode() == ONE_LEVEL or levelMode() == MIPMAP_LEVELS:
Packit Service 6754ca
    //      return value is the same as for numXLevels()
Packit Service 6754ca
    //
Packit Service 6754ca
    //  if levelMode() == RIPMAP_LEVELS:
Packit Service 6754ca
    //      return value is: rfunc (log (h) / log (2)) + 1
Packit Service 6754ca
    //
Packit Service 6754ca
    //
Packit Service 6754ca
    // numLevels() is a convenience function for use with
Packit Service 6754ca
    // MIPMAP_LEVELS files.
Packit Service 6754ca
    //
Packit Service 6754ca
    //  if levelMode() == ONE_LEVEL or levelMode() == MIPMAP_LEVELS:
Packit Service 6754ca
    //      return value is the same as for numXLevels()
Packit Service 6754ca
    //
Packit Service 6754ca
    //  if levelMode() == RIPMAP_LEVELS:
Packit Service 6754ca
    //      an IEX_NAMESPACE::LogicExc exception is thrown
Packit Service 6754ca
    //
Packit Service 6754ca
    // isValidLevel(lx, ly) returns true if the file contains
Packit Service 6754ca
    // a level with level number (lx, ly), false if not.
Packit Service 6754ca
    //
Packit Service 6754ca
    // totalTiles() returns the total number of tiles in the image
Packit Service 6754ca
    //
Packit Service 6754ca
    //--------------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    int                 numLevels () const;
Packit Service 6754ca
    int                 numXLevels () const;
Packit Service 6754ca
    int                 numYLevels () const;
Packit Service 6754ca
    bool                isValidLevel (int lx, int ly) const;
Packit Service 6754ca
    size_t              totalTiles() const;
Packit Service 6754ca
Packit Service 6754ca
    //----------------------------------------------------------
Packit Service 6754ca
    // Dimensions of a level:
Packit Service 6754ca
    //
Packit Service 6754ca
    // levelWidth(lx) returns the width of a level with level
Packit Service 6754ca
    // number (lx, *), where * is any number.
Packit Service 6754ca
    //
Packit Service 6754ca
    //  return value is:
Packit Service 6754ca
    //      max (1, rfunc (w / pow (2, lx)))
Packit Service 6754ca
    //
Packit Service 6754ca
    //
Packit Service 6754ca
    // levelHeight(ly) returns the height of a level with level
Packit Service 6754ca
    // number (*, ly), where * is any number.
Packit Service 6754ca
    //
Packit Service 6754ca
    //  return value is:
Packit Service 6754ca
    //      max (1, rfunc (h / pow (2, ly)))
Packit Service 6754ca
    //
Packit Service 6754ca
    //----------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    int                 levelWidth  (int lx) const;
Packit Service 6754ca
    int                 levelHeight (int ly) const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //--------------------------------------------------------------
Packit Service 6754ca
    // Number of tiles:
Packit Service 6754ca
    //
Packit Service 6754ca
    // numXTiles(lx) returns the number of tiles in x direction
Packit Service 6754ca
    // that cover a level with level number (lx, *), where * is
Packit Service 6754ca
    // any number.
Packit Service 6754ca
    //
Packit Service 6754ca
    //  return value is:
Packit Service 6754ca
    //      (levelWidth(lx) + tileXSize() - 1) / tileXSize()
Packit Service 6754ca
    //
Packit Service 6754ca
    //
Packit Service 6754ca
    // numYTiles(ly) returns the number of tiles in y direction
Packit Service 6754ca
    // that cover a level with level number (*, ly), where * is
Packit Service 6754ca
    // any number.
Packit Service 6754ca
    //
Packit Service 6754ca
    //  return value is:
Packit Service 6754ca
    //      (levelHeight(ly) + tileXSize() - 1) / tileXSize()
Packit Service 6754ca
    //
Packit Service 6754ca
    //--------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    int                 numXTiles (int lx = 0) const;
Packit Service 6754ca
    int                 numYTiles (int ly = 0) const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //---------------------------------------------------------------
Packit Service 6754ca
    // Level pixel ranges:
Packit Service 6754ca
    //
Packit Service 6754ca
    // dataWindowForLevel(lx, ly) returns a 2-dimensional region of
Packit Service 6754ca
    // valid pixel coordinates for a level with level number (lx, ly)
Packit Service 6754ca
    //
Packit Service 6754ca
    //  return value is a Box2i with min value:
Packit Service 6754ca
    //      (dataWindow.min.x, dataWindow.min.y)
Packit Service 6754ca
    //
Packit Service 6754ca
    //  and max value:
Packit Service 6754ca
    //      (dataWindow.min.x + levelWidth(lx) - 1,
Packit Service 6754ca
    //       dataWindow.min.y + levelHeight(ly) - 1)
Packit Service 6754ca
    //
Packit Service 6754ca
    // dataWindowForLevel(level) is a convenience function used
Packit Service 6754ca
    // for ONE_LEVEL and MIPMAP_LEVELS files.  It returns
Packit Service 6754ca
    // dataWindowForLevel(level, level).
Packit Service 6754ca
    //
Packit Service 6754ca
    //---------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    IMATH_NAMESPACE::Box2i        dataWindowForLevel (int l = 0) const;
Packit Service 6754ca
    IMATH_NAMESPACE::Box2i        dataWindowForLevel (int lx, int ly) const;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //-------------------------------------------------------------------
Packit Service 6754ca
    // Tile pixel ranges:
Packit Service 6754ca
    //
Packit Service 6754ca
    // dataWindowForTile(dx, dy, lx, ly) returns a 2-dimensional
Packit Service 6754ca
    // region of valid pixel coordinates for a tile with tile coordinates
Packit Service 6754ca
    // (dx,dy) and level number (lx, ly).
Packit Service 6754ca
    //
Packit Service 6754ca
    //  return value is a Box2i with min value:
Packit Service 6754ca
    //      (dataWindow.min.x + dx * tileXSize(),
Packit Service 6754ca
    //       dataWindow.min.y + dy * tileYSize())
Packit Service 6754ca
    //
Packit Service 6754ca
    //  and max value:
Packit Service 6754ca
    //      (dataWindow.min.x + (dx + 1) * tileXSize() - 1,
Packit Service 6754ca
    //       dataWindow.min.y + (dy + 1) * tileYSize() - 1)
Packit Service 6754ca
    //
Packit Service 6754ca
    // dataWindowForTile(dx, dy, level) is a convenience function
Packit Service 6754ca
    // used for ONE_LEVEL and MIPMAP_LEVELS files.  It returns
Packit Service 6754ca
    // dataWindowForTile(dx, dy, level, level).
Packit Service 6754ca
    //
Packit Service 6754ca
    //-------------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    IMATH_NAMESPACE::Box2i        dataWindowForTile (int dx, int dy, int l = 0) const;
Packit Service 6754ca
Packit Service 6754ca
    IMATH_NAMESPACE::Box2i        dataWindowForTile (int dx, int dy,
Packit Service 6754ca
                                           int lx, int ly) const;
Packit Service 6754ca
Packit Service 6754ca
    //------------------------------------------------------------
Packit Service 6754ca
    // Read pixel data:
Packit Service 6754ca
    //
Packit Service 6754ca
    // readTile(dx, dy, lx, ly) reads the tile with tile
Packit Service 6754ca
    // coordinates (dx, dy), and level number (lx, ly),
Packit Service 6754ca
    // and stores it in the current frame buffer.
Packit Service 6754ca
    //
Packit Service 6754ca
    //   dx must lie in the interval [0, numXTiles(lx)-1]
Packit Service 6754ca
    //   dy must lie in the interval [0, numYTiles(ly)-1]
Packit Service 6754ca
    //
Packit Service 6754ca
    //   lx must lie in the interval [0, numXLevels()-1]
Packit Service 6754ca
    //   ly must lie in the inverval [0, numYLevels()-1]
Packit Service 6754ca
    //
Packit Service 6754ca
    // readTile(dx, dy, level) is a convenience function used
Packit Service 6754ca
    // for ONE_LEVEL and MIPMAP_LEVELS files.  It calls
Packit Service 6754ca
    // readTile(dx, dy, level, level).
Packit Service 6754ca
    //
Packit Service 6754ca
    // The two readTiles(dx1, dx2, dy1, dy2, ...) functions allow
Packit Service 6754ca
    // reading multiple tiles at once.  If multi-threading is used
Packit Service 6754ca
    // the multiple tiles are read concurrently.
Packit Service 6754ca
    //
Packit Service 6754ca
    // Pixels that are outside the pixel coordinate range for the
Packit Service 6754ca
    // tile's level, are never accessed by readTile().
Packit Service 6754ca
    //
Packit Service 6754ca
    // Attempting to access a tile that is not present in the file
Packit Service 6754ca
    // throws an InputExc exception.
Packit Service 6754ca
    //
Packit Service 6754ca
    //------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    void                readTile  (int dx, int dy, int l = 0);
Packit Service 6754ca
    void                readTile  (int dx, int dy, int lx, int ly);
Packit Service 6754ca
Packit Service 6754ca
    void                readTiles (int dx1, int dx2, int dy1, int dy2,
Packit Service 6754ca
                                   int lx, int ly);
Packit Service 6754ca
Packit Service 6754ca
    void                readTiles (int dx1, int dx2, int dy1, int dy2,
Packit Service 6754ca
                                   int l = 0);
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    //--------------------------------------------------
Packit Service 6754ca
    // Read a tile of raw pixel data from the file,
Packit Service 6754ca
    // without uncompressing it (this function is
Packit Service 6754ca
    // used to implement TiledOutputFile::copyPixels()).
Packit Service 6754ca
    //--------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    void                rawTileData (int &dx, int &dy,
Packit Service 6754ca
                                     int &lx, int &ly,
Packit Service 6754ca
                                     char *pixelData,
Packit Service 6754ca
                                     Int64 &dataSize) const;
Packit Service 6754ca
Packit Service 6754ca
    //------------------------------------------------------------------
Packit Service 6754ca
    // Read pixel sample counts into a slice in the frame buffer.
Packit Service 6754ca
    //
Packit Service 6754ca
    // readPixelSampleCount(dx, dy, lx, ly) reads the sample counts
Packit Service 6754ca
    // for tile (dx, dy) in level (lx, ly).
Packit Service 6754ca
    //
Packit Service 6754ca
    // readPixelSampleCount(dx, dy, l) calls
Packit Service 6754ca
    // readPixelSampleCount(dx, dy, lx = l, ly = l)
Packit Service 6754ca
    //
Packit Service 6754ca
    // dx must lie in the interval [0, numXTiles(lx)-1]
Packit Service 6754ca
    // dy must lie in the interval [0, numYTiles(ly)-1]
Packit Service 6754ca
    //
Packit Service 6754ca
    // lx must lie in the interval [0, numXLevels()-1]
Packit Service 6754ca
    // ly must lie in the inverval [0, numYLevels()-1]
Packit Service 6754ca
    //
Packit Service 6754ca
    // readPixelSampleCounts(dx1, dx2, dy1, dy2, lx, ly) reads all
Packit Service 6754ca
    // the sample counts for tiles within range
Packit Service 6754ca
    // [(min(dx1, dx2), min(dy1, dy2))...(max(dx1, dx2), max(dy1, dy2)],
Packit Service 6754ca
    // and on level (lx, ly)
Packit Service 6754ca
    //
Packit Service 6754ca
    // readPixelSampleCounts(dx1, dx2, dy1, dy2, l) calls
Packit Service 6754ca
    // readPixelSampleCounts(dx1, dx2, dy1, dy2, lx = l, ly = l).
Packit Service 6754ca
    //------------------------------------------------------------------
Packit Service 6754ca
Packit Service 6754ca
    void                readPixelSampleCount  (int dx, int dy, int l = 0);
Packit Service 6754ca
    void                readPixelSampleCount  (int dx, int dy, int lx, int ly);
Packit Service 6754ca
Packit Service 6754ca
    void                readPixelSampleCounts (int dx1, int dx2,
Packit Service 6754ca
                                              int dy1, int dy2,
Packit Service 6754ca
                                              int lx, int ly);
Packit Service 6754ca
Packit Service 6754ca
    void                readPixelSampleCounts (int dx1, int dx2,
Packit Service 6754ca
                                              int dy1, int dy2,
Packit Service 6754ca
                                              int l = 0);
Packit Service 6754ca
Packit Service 6754ca
    struct Data;
Packit Service 6754ca
Packit Service 6754ca
    
Packit Service 6754ca
    
Packit Service 6754ca
  private:
Packit Service 6754ca
Packit Service 6754ca
    friend class InputFile;
Packit Service 6754ca
    friend class MultiPartInputFile;
Packit Service 6754ca
Packit Service 6754ca
    DeepTiledInputFile (InputPartData* part);
Packit Service 6754ca
Packit Service 6754ca
    DeepTiledInputFile (const DeepTiledInputFile &);              // not implemented
Packit Service 6754ca
    DeepTiledInputFile & operator = (const DeepTiledInputFile &); // not implemented
Packit Service 6754ca
Packit Service 6754ca
    DeepTiledInputFile (const Header &header, OPENEXR_IMF_INTERNAL_NAMESPACE::IStream *is, int version,
Packit Service 6754ca
                    int numThreads);
Packit Service 6754ca
Packit Service 6754ca
    void                initialize ();
Packit Service 6754ca
    void                multiPartInitialize(InputPartData* part);
Packit Service 6754ca
    void                compatibilityInitialize(OPENEXR_IMF_INTERNAL_NAMESPACE::IStream& is);
Packit Service 6754ca
Packit Service 6754ca
    bool                isValidTile (int dx, int dy,
Packit Service 6754ca
                                     int lx, int ly) const;
Packit Service 6754ca
Packit Service 6754ca
    size_t              bytesPerLineForTile (int dx, int dy,
Packit Service 6754ca
                                             int lx, int ly) const;
Packit Service 6754ca
           
Packit Service 6754ca
                                                
Packit Service 6754ca
    void                getTileOrder(int dx[],int dy[],int lx[],int ly[]) const;
Packit Service 6754ca
                                             
Packit Service 6754ca
    
Packit Service 6754ca
    Data *              _data;
Packit Service 6754ca
Packit Service 6754ca
Packit Service 6754ca
    // needed for copyPixels
Packit Service 6754ca
    friend void DeepTiledOutputFile::copyPixels(DeepTiledInputFile &);
Packit Service 6754ca
};
Packit Service 6754ca
Packit Service 6754ca
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Packit Service 6754ca
Packit Service 6754ca
#endif