Blame IlmImf/ImfDeepTiledOutputFile.h

Packit c2c737
///////////////////////////////////////////////////////////////////////////
Packit c2c737
//
Packit c2c737
// Copyright (c) 2011, Industrial Light & Magic, a division of Lucas
Packit c2c737
// Digital Ltd. LLC
Packit c2c737
//
Packit c2c737
// All rights reserved.
Packit c2c737
//
Packit c2c737
// Redistribution and use in source and binary forms, with or without
Packit c2c737
// modification, are permitted provided that the following conditions are
Packit c2c737
// met:
Packit c2c737
// *       Redistributions of source code must retain the above copyright
Packit c2c737
// notice, this list of conditions and the following disclaimer.
Packit c2c737
// *       Redistributions in binary form must reproduce the above
Packit c2c737
// copyright notice, this list of conditions and the following disclaimer
Packit c2c737
// in the documentation and/or other materials provided with the
Packit c2c737
// distribution.
Packit c2c737
// *       Neither the name of Industrial Light & Magic nor the names of
Packit c2c737
// its contributors may be used to endorse or promote products derived
Packit c2c737
// from this software without specific prior written permission.
Packit c2c737
//
Packit c2c737
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit c2c737
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit c2c737
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit c2c737
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit c2c737
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit c2c737
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit c2c737
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit c2c737
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit c2c737
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit c2c737
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit c2c737
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit c2c737
//
Packit c2c737
///////////////////////////////////////////////////////////////////////////
Packit c2c737
Packit c2c737
Packit c2c737
#ifndef INCLUDED_IMF_DEEP_TILED_OUTPUT_FILE_H
Packit c2c737
#define INCLUDED_IMF_DEEP_TILED_OUTPUT_FILE_H
Packit c2c737
Packit c2c737
//-----------------------------------------------------------------------------
Packit c2c737
//
Packit c2c737
//      class DeepTiledOutputFile
Packit c2c737
//
Packit c2c737
//-----------------------------------------------------------------------------
Packit c2c737
Packit c2c737
#include "ImfHeader.h"
Packit c2c737
#include "ImfFrameBuffer.h"
Packit c2c737
#include "ImathBox.h"
Packit c2c737
#include "ImfThreading.h"
Packit c2c737
#include "ImfGenericOutputFile.h"
Packit c2c737
#include "ImfNamespace.h"
Packit c2c737
#include "ImfForward.h"
Packit c2c737
#include "ImfExport.h"
Packit c2c737
Packit c2c737
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Packit c2c737
Packit c2c737
Packit c2c737
class IMF_EXPORT DeepTiledOutputFile : public GenericOutputFile
Packit c2c737
{
Packit c2c737
  public:
Packit c2c737
Packit c2c737
    //-------------------------------------------------------------------
Packit c2c737
    // A constructor that opens the file with the specified name, and
Packit c2c737
    // writes the file header.  The file header is also copied into the
Packit c2c737
    // TiledOutputFile object, and can later be accessed via the header()
Packit c2c737
    // method.
Packit c2c737
    //
Packit c2c737
    // Destroying TiledOutputFile constructed with this constructor
Packit c2c737
    // automatically closes the corresponding files.
Packit c2c737
    //
Packit c2c737
    // The header must contain a TileDescriptionAttribute called "tiles".
Packit c2c737
    //
Packit c2c737
    // The x and y subsampling factors for all image channels must be 1;
Packit c2c737
    // subsampling is not supported.
Packit c2c737
    //
Packit c2c737
    // Tiles can be written to the file in arbitrary order.  The line
Packit c2c737
    // order attribute can be used to cause the tiles to be sorted in
Packit c2c737
    // the file.  When the file is read later, reading the tiles in the
Packit c2c737
    // same order as they are in the file tends to be significantly
Packit c2c737
    // faster than reading the tiles in random order (see writeTile,
Packit c2c737
    // below).
Packit c2c737
    //-------------------------------------------------------------------
Packit c2c737
Packit c2c737
    DeepTiledOutputFile (const char fileName[],
Packit c2c737
                         const Header &header,
Packit c2c737
                         int numThreads = globalThreadCount ());
Packit c2c737
Packit c2c737
Packit c2c737
    // ----------------------------------------------------------------
Packit c2c737
    // A constructor that attaches the new TiledOutputFile object to
Packit c2c737
    // a file that has already been opened.  Destroying TiledOutputFile
Packit c2c737
    // objects constructed with this constructor does not automatically
Packit c2c737
    // close the corresponding files.
Packit c2c737
    // ----------------------------------------------------------------
Packit c2c737
Packit c2c737
    DeepTiledOutputFile (OPENEXR_IMF_INTERNAL_NAMESPACE::OStream &os,
Packit c2c737
                         const Header &header,
Packit c2c737
                         int numThreads = globalThreadCount ());
Packit c2c737
Packit c2c737
Packit c2c737
    //-----------------------------------------------------
Packit c2c737
    // Destructor
Packit c2c737
    //
Packit c2c737
    // Destroying a TiledOutputFile object before all tiles
Packit c2c737
    // have been written results in an incomplete file.
Packit c2c737
    //-----------------------------------------------------
Packit c2c737
Packit c2c737
    virtual ~DeepTiledOutputFile ();
Packit c2c737
Packit c2c737
Packit c2c737
    //------------------------
Packit c2c737
    // Access to the file name
Packit c2c737
    //------------------------
Packit c2c737
Packit c2c737
    const char *        fileName () const;
Packit c2c737
Packit c2c737
Packit c2c737
    //--------------------------
Packit c2c737
    // Access to the file header
Packit c2c737
    //--------------------------
Packit c2c737
Packit c2c737
    const Header &      header () const;
Packit c2c737
Packit c2c737
Packit c2c737
    //-------------------------------------------------------
Packit c2c737
    // Set the current frame buffer -- copies the FrameBuffer
Packit c2c737
    // object into the TiledOutputFile object.
Packit c2c737
    //
Packit c2c737
    // The current frame buffer is the source of the pixel
Packit c2c737
    // data written to the file.  The current frame buffer
Packit c2c737
    // must be set at least once before writeTile() is
Packit c2c737
    // called.  The current frame buffer can be changed
Packit c2c737
    // after each call to writeTile().
Packit c2c737
    //-------------------------------------------------------
Packit c2c737
Packit c2c737
    void                setFrameBuffer (const DeepFrameBuffer &frameBuffer);
Packit c2c737
Packit c2c737
Packit c2c737
    //-----------------------------------
Packit c2c737
    // Access to the current frame buffer
Packit c2c737
    //-----------------------------------
Packit c2c737
Packit c2c737
    const DeepFrameBuffer & frameBuffer () const;
Packit c2c737
Packit c2c737
Packit c2c737
    //-------------------
Packit c2c737
    // Utility functions:
Packit c2c737
    //-------------------
Packit c2c737
Packit c2c737
    //---------------------------------------------------------
Packit c2c737
    // Multiresolution mode and tile size:
Packit c2c737
    // The following functions return the xSize, ySize and mode
Packit c2c737
    // fields of the file header's TileDescriptionAttribute.
Packit c2c737
    //---------------------------------------------------------
Packit c2c737
Packit c2c737
    unsigned int        tileXSize () const;
Packit c2c737
    unsigned int        tileYSize () const;
Packit c2c737
    LevelMode           levelMode () const;
Packit c2c737
    LevelRoundingMode   levelRoundingMode () const;
Packit c2c737
Packit c2c737
Packit c2c737
    //--------------------------------------------------------------------
Packit c2c737
    // Number of levels:
Packit c2c737
    //
Packit c2c737
    // numXLevels() returns the file's number of levels in x direction.
Packit c2c737
    //
Packit c2c737
    //  if levelMode() == ONE_LEVEL:
Packit c2c737
    //      return value is: 1
Packit c2c737
    //
Packit c2c737
    //  if levelMode() == MIPMAP_LEVELS:
Packit c2c737
    //      return value is: rfunc (log (max (w, h)) / log (2)) + 1
Packit c2c737
    //
Packit c2c737
    //  if levelMode() == RIPMAP_LEVELS:
Packit c2c737
    //      return value is: rfunc (log (w) / log (2)) + 1
Packit c2c737
    //
Packit c2c737
    //  where
Packit c2c737
    //      w is the width of the image's data window,  max.x - min.x + 1,
Packit c2c737
    //      y is the height of the image's data window, max.y - min.y + 1,
Packit c2c737
    //      and rfunc(x) is either floor(x), or ceil(x), depending on
Packit c2c737
    //      whether levelRoundingMode() returns ROUND_DOWN or ROUND_UP.
Packit c2c737
    //
Packit c2c737
    // numYLevels() returns the file's number of levels in y direction.
Packit c2c737
    //
Packit c2c737
    //  if levelMode() == ONE_LEVEL or levelMode() == MIPMAP_LEVELS:
Packit c2c737
    //      return value is the same as for numXLevels()
Packit c2c737
    //
Packit c2c737
    //  if levelMode() == RIPMAP_LEVELS:
Packit c2c737
    //      return value is: rfunc (log (h) / log (2)) + 1
Packit c2c737
    //
Packit c2c737
    //
Packit c2c737
    // numLevels() is a convenience function for use with MIPMAP_LEVELS
Packit c2c737
    // files.
Packit c2c737
    //
Packit c2c737
    //  if levelMode() == ONE_LEVEL or levelMode() == MIPMAP_LEVELS:
Packit c2c737
    //      return value is the same as for numXLevels()
Packit c2c737
    //
Packit c2c737
    //  if levelMode() == RIPMAP_LEVELS:
Packit c2c737
    //      an IEX_NAMESPACE::LogicExc exception is thrown
Packit c2c737
    //
Packit c2c737
    // isValidLevel(lx, ly) returns true if the file contains
Packit c2c737
    // a level with level number (lx, ly), false if not.
Packit c2c737
    //
Packit c2c737
    //--------------------------------------------------------------------
Packit c2c737
Packit c2c737
    int                 numLevels () const;
Packit c2c737
    int                 numXLevels () const;
Packit c2c737
    int                 numYLevels () const;
Packit c2c737
    bool                isValidLevel (int lx, int ly) const;
Packit c2c737
Packit c2c737
Packit c2c737
    //---------------------------------------------------------
Packit c2c737
    // Dimensions of a level:
Packit c2c737
    //
Packit c2c737
    // levelWidth(lx) returns the width of a level with level
Packit c2c737
    // number (lx, *), where * is any number.
Packit c2c737
    //
Packit c2c737
    //  return value is:
Packit c2c737
    //      max (1, rfunc (w / pow (2, lx)))
Packit c2c737
    //
Packit c2c737
    //
Packit c2c737
    // levelHeight(ly) returns the height of a level with level
Packit c2c737
    // number (*, ly), where * is any number.
Packit c2c737
    //
Packit c2c737
    //  return value is:
Packit c2c737
    //      max (1, rfunc (h / pow (2, ly)))
Packit c2c737
    //
Packit c2c737
    //---------------------------------------------------------
Packit c2c737
Packit c2c737
    int                 levelWidth  (int lx) const;
Packit c2c737
    int                 levelHeight (int ly) const;
Packit c2c737
Packit c2c737
Packit c2c737
    //----------------------------------------------------------
Packit c2c737
    // Number of tiles:
Packit c2c737
    //
Packit c2c737
    // numXTiles(lx) returns the number of tiles in x direction
Packit c2c737
    // that cover a level with level number (lx, *), where * is
Packit c2c737
    // any number.
Packit c2c737
    //
Packit c2c737
    //  return value is:
Packit c2c737
    //      (levelWidth(lx) + tileXSize() - 1) / tileXSize()
Packit c2c737
    //
Packit c2c737
    //
Packit c2c737
    // numYTiles(ly) returns the number of tiles in y direction
Packit c2c737
    // that cover a level with level number (*, ly), where * is
Packit c2c737
    // any number.
Packit c2c737
    //
Packit c2c737
    //  return value is:
Packit c2c737
    //      (levelHeight(ly) + tileXSize() - 1) / tileXSize()
Packit c2c737
    //
Packit c2c737
    //----------------------------------------------------------
Packit c2c737
Packit c2c737
    int                 numXTiles (int lx = 0) const;
Packit c2c737
    int                 numYTiles (int ly = 0) const;
Packit c2c737
Packit c2c737
Packit c2c737
    //---------------------------------------------------------
Packit c2c737
    // Level pixel ranges:
Packit c2c737
    //
Packit c2c737
    // dataWindowForLevel(lx, ly) returns a 2-dimensional
Packit c2c737
    // region of valid pixel coordinates for a level with
Packit c2c737
    // level number (lx, ly)
Packit c2c737
    //
Packit c2c737
    //  return value is a Box2i with min value:
Packit c2c737
    //      (dataWindow.min.x, dataWindow.min.y)
Packit c2c737
    //
Packit c2c737
    //  and max value:
Packit c2c737
    //      (dataWindow.min.x + levelWidth(lx) - 1,
Packit c2c737
    //       dataWindow.min.y + levelHeight(ly) - 1)
Packit c2c737
    //
Packit c2c737
    // dataWindowForLevel(level) is a convenience function used
Packit c2c737
    // for ONE_LEVEL and MIPMAP_LEVELS files.  It returns
Packit c2c737
    // dataWindowForLevel(level, level).
Packit c2c737
    //
Packit c2c737
    //---------------------------------------------------------
Packit c2c737
Packit c2c737
    IMATH_NAMESPACE::Box2i        dataWindowForLevel (int l = 0) const;
Packit c2c737
    IMATH_NAMESPACE::Box2i        dataWindowForLevel (int lx, int ly) const;
Packit c2c737
Packit c2c737
Packit c2c737
    //-------------------------------------------------------------------
Packit c2c737
    // Tile pixel ranges:
Packit c2c737
    //
Packit c2c737
    // dataWindowForTile(dx, dy, lx, ly) returns a 2-dimensional
Packit c2c737
    // region of valid pixel coordinates for a tile with tile coordinates
Packit c2c737
    // (dx,dy) and level number (lx, ly).
Packit c2c737
    //
Packit c2c737
    //  return value is a Box2i with min value:
Packit c2c737
    //      (dataWindow.min.x + dx * tileXSize(),
Packit c2c737
    //       dataWindow.min.y + dy * tileYSize())
Packit c2c737
    //
Packit c2c737
    //  and max value:
Packit c2c737
    //      (dataWindow.min.x + (dx + 1) * tileXSize() - 1,
Packit c2c737
    //       dataWindow.min.y + (dy + 1) * tileYSize() - 1)
Packit c2c737
    //
Packit c2c737
    // dataWindowForTile(dx, dy, level) is a convenience function
Packit c2c737
    // used for ONE_LEVEL and MIPMAP_LEVELS files.  It returns
Packit c2c737
    // dataWindowForTile(dx, dy, level, level).
Packit c2c737
    //
Packit c2c737
    //-------------------------------------------------------------------
Packit c2c737
Packit c2c737
    IMATH_NAMESPACE::Box2i        dataWindowForTile (int dx, int dy,
Packit c2c737
                                           int l = 0) const;
Packit c2c737
Packit c2c737
    IMATH_NAMESPACE::Box2i        dataWindowForTile (int dx, int dy,
Packit c2c737
                                           int lx, int ly) const;
Packit c2c737
Packit c2c737
    //------------------------------------------------------------------
Packit c2c737
    // Write pixel data:
Packit c2c737
    //
Packit c2c737
    // writeTile(dx, dy, lx, ly) writes the tile with tile
Packit c2c737
    // coordinates (dx, dy), and level number (lx, ly) to
Packit c2c737
    // the file.
Packit c2c737
    //
Packit c2c737
    //   dx must lie in the interval [0, numXTiles(lx) - 1]
Packit c2c737
    //   dy must lie in the interval [0, numYTiles(ly) - 1]
Packit c2c737
    //
Packit c2c737
    //   lx must lie in the interval [0, numXLevels() - 1]
Packit c2c737
    //   ly must lie in the inverval [0, numYLevels() - 1]
Packit c2c737
    //
Packit c2c737
    // writeTile(dx, dy, level) is a convenience function
Packit c2c737
    // used for ONE_LEVEL and MIPMAP_LEVEL files.  It calls
Packit c2c737
    // writeTile(dx, dy, level, level).
Packit c2c737
    //
Packit c2c737
    // The two writeTiles(dx1, dx2, dy1, dy2, ...) functions allow
Packit c2c737
    // writing multiple tiles at once.  If multi-threading is used
Packit c2c737
    // multiple tiles are written concurrently.  The tile coordinates,
Packit c2c737
    // dx1, dx2 and dy1, dy2, specify inclusive ranges of tile
Packit c2c737
    // coordinates.  It is valid for dx1 < dx2 or dy1 < dy2; the
Packit c2c737
    // tiles are always written in the order specified by the line
Packit c2c737
    // order attribute.  Hence, it is not possible to specify an
Packit c2c737
    // "invalid" or empty tile range.
Packit c2c737
    //
Packit c2c737
    // Pixels that are outside the pixel coordinate range for the tile's
Packit c2c737
    // level, are never accessed by writeTile().
Packit c2c737
    //
Packit c2c737
    // Each tile in the file must be written exactly once.
Packit c2c737
    //
Packit c2c737
    // The file's line order attribute determines the order of the tiles
Packit c2c737
    // in the file:
Packit c2c737
    //
Packit c2c737
    //   INCREASING_Y   In the file, the tiles for each level are stored
Packit c2c737
    //                  in a contiguous block.  The levels are ordered
Packit c2c737
    //                  like this:
Packit c2c737
    //
Packit c2c737
    //                      (0, 0)   (1, 0)   ... (nx-1, 0)
Packit c2c737
    //                      (0, 1)   (1, 1)   ... (nx-1, 1)
Packit c2c737
    //                       ...
Packit c2c737
    //                      (0,ny-1) (1,ny-1) ... (nx-1,ny-1)
Packit c2c737
    //
Packit c2c737
    //                  where nx = numXLevels(), and ny = numYLevels().
Packit c2c737
    //                  In an individual level, (lx, ly), the tiles
Packit c2c737
    //                  are stored in the following order:
Packit c2c737
    //
Packit c2c737
    //                      (0, 0)   (1, 0)   ... (tx-1, 0)
Packit c2c737
    //                      (0, 1)   (1, 1)   ... (tx-1, 1)
Packit c2c737
    //                       ...
Packit c2c737
    //                      (0,ty-1) (1,ty-1) ... (tx-1,ty-1)
Packit c2c737
    //
Packit c2c737
    //                  where tx = numXTiles(lx),
Packit c2c737
    //                  and   ty = numYTiles(ly).
Packit c2c737
    //
Packit c2c737
    //   DECREASING_Y   As for INCREASING_Y, the tiles for each level
Packit c2c737
    //                  are stored in a contiguous block.  The levels
Packit c2c737
    //                  are ordered the same way as for INCREASING_Y,
Packit c2c737
    //                  but within an individual level, the tiles
Packit c2c737
    //                  are stored in this order:
Packit c2c737
    //
Packit c2c737
    //                      (0,ty-1) (1,ty-1) ... (tx-1,ty-1)
Packit c2c737
    //                       ...
Packit c2c737
    //                      (0, 1)   (1, 1)   ... (tx-1, 1)
Packit c2c737
    //                      (0, 0)   (1, 0)   ... (tx-1, 0)
Packit c2c737
    //
Packit c2c737
    //
Packit c2c737
    //   RANDOM_Y       The order of the calls to writeTile() determines
Packit c2c737
    //                  the order of the tiles in the file.
Packit c2c737
    //
Packit c2c737
    //------------------------------------------------------------------
Packit c2c737
Packit c2c737
    void                writeTile  (int dx, int dy, int l = 0);
Packit c2c737
    void                writeTile  (int dx, int dy, int lx, int ly);
Packit c2c737
Packit c2c737
    void                writeTiles (int dx1, int dx2, int dy1, int dy2,
Packit c2c737
                                    int lx, int ly);
Packit c2c737
Packit c2c737
    void                writeTiles (int dx1, int dx2, int dy1, int dy2,
Packit c2c737
                                    int l = 0);
Packit c2c737
Packit c2c737
Packit c2c737
    //------------------------------------------------------------------
Packit c2c737
    // Shortcut to copy all pixels from a TiledInputFile into this file,
Packit c2c737
    // without uncompressing and then recompressing the pixel data.
Packit c2c737
    // This file's header must be compatible with the TiledInputFile's
Packit c2c737
    // header:  The two header's "dataWindow", "compression",
Packit c2c737
    // "lineOrder", "channels", and "tiles" attributes must be the same.
Packit c2c737
    //------------------------------------------------------------------
Packit c2c737
Packit c2c737
    void                copyPixels (DeepTiledInputFile &in);
Packit c2c737
    void                copyPixels (DeepTiledInputPart &in);
Packit c2c737
Packit c2c737
Packit c2c737
Packit c2c737
    //--------------------------------------------------------------
Packit c2c737
    // Updating the preview image:
Packit c2c737
    //
Packit c2c737
    // updatePreviewImage() supplies a new set of pixels for the
Packit c2c737
    // preview image attribute in the file's header.  If the header
Packit c2c737
    // does not contain a preview image, updatePreviewImage() throws
Packit c2c737
    // an IEX_NAMESPACE::LogicExc.
Packit c2c737
    //
Packit c2c737
    // Note: updatePreviewImage() is necessary because images are
Packit c2c737
    // often stored in a file incrementally, a few tiles at a time,
Packit c2c737
    // while the image is being generated.  Since the preview image
Packit c2c737
    // is an attribute in the file's header, it gets stored in the
Packit c2c737
    // file as soon as the file is opened, but we may not know what
Packit c2c737
    // the preview image should look like until we have written the
Packit c2c737
    // last tile of the main image.
Packit c2c737
    //
Packit c2c737
    //--------------------------------------------------------------
Packit c2c737
Packit c2c737
    void                updatePreviewImage (const PreviewRgba newPixels[]);
Packit c2c737
Packit c2c737
Packit c2c737
    //-------------------------------------------------------------
Packit c2c737
    // Break a tile -- for testing and debugging only:
Packit c2c737
    //
Packit c2c737
    // breakTile(dx,dy,lx,ly,p,n,c) introduces an error into the
Packit c2c737
    // output file by writing n copies of character c, starting
Packit c2c737
    // p bytes from the beginning of the tile with tile coordinates
Packit c2c737
    // (dx, dy) and level number (lx, ly).
Packit c2c737
    //
Packit c2c737
    // Warning: Calling this function usually results in a broken
Packit c2c737
    // image file.  The file or parts of it may not be readable,
Packit c2c737
    // or the file may contain bad data.
Packit c2c737
    //
Packit c2c737
    //-------------------------------------------------------------
Packit c2c737
Packit c2c737
    void                breakTile  (int dx, int dy,
Packit c2c737
                                    int lx, int ly,
Packit c2c737
                                    int offset,
Packit c2c737
                                    int length,
Packit c2c737
                                    char c);
Packit c2c737
    struct Data;
Packit c2c737
Packit c2c737
  private:
Packit c2c737
Packit c2c737
    // ----------------------------------------------------------------
Packit c2c737
    // A constructor attaches the OutputStreamMutex to the
Packit c2c737
    // given one from MultiPartOutputFile. Set the previewPosition
Packit c2c737
    // and lineOffsetsPosition which have been acquired from
Packit c2c737
    // the constructor of MultiPartOutputFile as well.
Packit c2c737
    // ----------------------------------------------------------------
Packit c2c737
    DeepTiledOutputFile (const OutputPartData* part);
Packit c2c737
Packit c2c737
    DeepTiledOutputFile (const DeepTiledOutputFile &);              // not implemented
Packit c2c737
    DeepTiledOutputFile & operator = (const DeepTiledOutputFile &); // not implemented
Packit c2c737
Packit c2c737
    void                initialize (const Header &header);
Packit c2c737
Packit c2c737
    bool                isValidTile (int dx, int dy,
Packit c2c737
                                     int lx, int ly) const;
Packit c2c737
Packit c2c737
    size_t              bytesPerLineForTile (int dx, int dy,
Packit c2c737
                                             int lx, int ly) const;
Packit c2c737
Packit c2c737
    Data *              _data;
Packit c2c737
Packit c2c737
Packit c2c737
    friend class MultiPartOutputFile;
Packit c2c737
Packit c2c737
};
Packit c2c737
Packit c2c737
Packit c2c737
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Packit c2c737
Packit c2c737
#endif