auto
  ?   ˆl–ß=¿JÕ!®Å	@ãb¸&ÔÅ£�þYdk7! ÙZdM4Ð?ŸÂ826Á_ˆI|¥�+y,ÁÀ :    //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//


#ifndef INCLUDED_IMF_LINE_ORDER_H
#define INCLUDED_IMF_LINE_ORDER_H

//-----------------------------------------------------------------------------
//
//	enum LineOrder
//
//-----------------------------------------------------------------------------
#include "ImfExport.h"
#include "ImfNamespace.h"

OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER


enum IMF_EXPORT_ENUM LineOrder
{
    INCREASING_Y = 0,	// first scan line has lowest y coordinate

    DECREASING_Y = 1,	// first scan line has highest y coordinate

    RANDOM_Y = 2,       // only for tiled files; tiles are written
    			// in random order

    NUM_LINEORDERS	// number of different line orders
};


OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT





#endif
      ˆ¿�þBWäY¹ÊÓ"i¦�üÿÃƒuæ]Â¾ÁÀ  5   	ˆl–ßi~” T¾R( 	ÅŒµq¦ÔÅ£�þB gà+ä�©$sùÄƒh¹ÃÂÁ �    //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//

#ifndef IMFDEEPFRAMEBUFFER_H_
#define IMFDEEPFRAMEBUFFER_H_

#include "ImfForward.h"

#include "ImfFrameBuffer.h"

OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER

//--------------------------------------------------------
// Description of a single deep slice of the frame buffer:
//--------------------------------------------------------

struct IMF_EXPORT_TYPE DeepSlice : public Slice
{
    //---------------------------------------------------------------------
    // The stride for each sample in this slice.
    //
    // Memory layout:  The address of sample i in pixel (x, y) is
    //
    //  base + (xp / xSampling) * xStride + (yp / ySampling) * yStride
    //       + i * sampleStride
    //
    // where xp and yp are computed as follows:
    //
    //  * If we are reading or writing a scanline-based file:
    //
    //      xp = x
    //      yp = y
    //
    //  * If we are reading a tile whose upper left coorner is at (xt, yt):
    //
    //      if xTileCoords is true then xp = x - xt, else xp = x
    //      if yTileCoords is true then yp = y - yt, else yp = y
    //
    //---------------------------------------------------------------------

    int sampleStride;

    //------------
    // Constructor
    //------------
    IMF_EXPORT
    DeepSlice (PixelType type = HALF,
               char * base = 0,
               size_t xStride = 0,
               size_t yStride = 0,
               size_t sampleStride = 0,
               int xSampling = 1,
               int ySampling = 1,
               double fillValue = 0.0,
               bool xTileCoords = false,
               bool yTileCoords = false);
};

//-----------------
// DeepFrameBuffer.
//-----------------

class IMF_EXPORT_TYPE DeepFrameBuffer
{
  public:


    //------------
    // Add a slice
    //------------

    IMF_EXPORT
    void                        insert (const char name[],
                                        const DeepSlice &slice);

    IMF_EXPORT
    void                        insert (const std::string &name,
                                        const DeepSlice &slice);

    //----------------------------------------------------------------
    // Access to existing slices:
    //
    // [n]              Returns a reference to the slice with name n.
    //                  If no slice with name n exists, an IEX_NAMESPACE::ArgExc
    //                  is thrown.
    //
    // findSlice(n)     Returns a pointer to the slice with name n,
    //                  or 0 if no slice with name n exists.
    //
    //----------------------------------------------------------------

    IMF_EXPORT
    DeepSlice &                 operator [] (const char name[]);
    IMF_EXPORT
    const DeepSlice &           operator [] (const char name[]) const;

    IMF_EXPORT
    DeepSlice &                 operator [] (const std::string &name);
    IMF_EXPORT
    const DeepSlice &           operator [] (const std::string &name) const;

    IMF_EXPORT
 