Blame IlmImf/ImfDeepImageState.h

Packit 0d464f
///////////////////////////////////////////////////////////////////////////
Packit 0d464f
//
Packit 0d464f
// Copyright (c) 2013, Industrial Light & Magic, a division of Lucas
Packit 0d464f
// Digital Ltd. LLC
Packit 0d464f
// 
Packit 0d464f
// All rights reserved.
Packit 0d464f
// 
Packit 0d464f
// Redistribution and use in source and binary forms, with or without
Packit 0d464f
// modification, are permitted provided that the following conditions are
Packit 0d464f
// met:
Packit 0d464f
// *       Redistributions of source code must retain the above copyright
Packit 0d464f
// notice, this list of conditions and the following disclaimer.
Packit 0d464f
// *       Redistributions in binary form must reproduce the above
Packit 0d464f
// copyright notice, this list of conditions and the following disclaimer
Packit 0d464f
// in the documentation and/or other materials provided with the
Packit 0d464f
// distribution.
Packit 0d464f
// *       Neither the name of Industrial Light & Magic nor the names of
Packit 0d464f
// its contributors may be used to endorse or promote products derived
Packit 0d464f
// from this software without specific prior written permission. 
Packit 0d464f
// 
Packit 0d464f
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit 0d464f
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit 0d464f
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit 0d464f
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit 0d464f
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit 0d464f
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit 0d464f
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit 0d464f
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit 0d464f
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit 0d464f
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 0d464f
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 0d464f
//
Packit 0d464f
///////////////////////////////////////////////////////////////////////////
Packit 0d464f
Packit 0d464f
Packit 0d464f
#ifndef INCLUDED_IMF_DEEPIMAGESTATE_H
Packit 0d464f
#define INCLUDED_IMF_DEEPIMAGESTATE_H
Packit 0d464f
Packit 0d464f
//-----------------------------------------------------------------------------
Packit 0d464f
//
Packit 0d464f
//      enum DeepImageState -- describes how orderly the pixel data
Packit 0d464f
//      in a deep image are
Packit 0d464f
//
Packit 0d464f
//      The samples in a deep image pixel may be sorted according to
Packit 0d464f
//      depth, and the sample depths or depth ranges may or may not
Packit 0d464f
//      overlap each other.  A pixel is
Packit 0d464f
//
Packit 0d464f
//          - SORTED if for every i and j with i < j
Packit 0d464f
//
Packit 0d464f
//              (Z[i] < Z[j]) || (Z[i] == Z[j] && ZBack[i] < ZBack[j]),
Packit 0d464f
//
Packit 0d464f
//          - NON_OVERLAPPING if for every i and j with i != j
Packit 0d464f
//
Packit 0d464f
//              (Z[i] <  Z[j] && ZBack[i] <= Z[j]) ||
Packit 0d464f
//              (Z[j] <  Z[i] && ZBack[j] <= Z[i]) ||
Packit 0d464f
//              (Z[i] == Z[j] && ZBack[i] <= Z[i] & ZBack[j] > Z[j]) ||
Packit 0d464f
//              (Z[i] == Z[j] && ZBack[j] <= Z[j] & ZBack[i] > Z[i]),
Packit 0d464f
//
Packit 0d464f
//          - TIDY if it is SORTED and NON_OVERLAPPING,
Packit 0d464f
//
Packit 0d464f
//          - MESSY if it is neither SORTED nor NON_OVERLAPPING.
Packit 0d464f
//
Packit 0d464f
//      A deep image is
Packit 0d464f
//
Packit 0d464f
//          - MESSY if at least one of its pixels is MESSY,
Packit 0d464f
//          - SORTED if all of its pixels are SORTED,
Packit 0d464f
//          - NON_OVERLAPPING if all of its pixels are NON_OVERLAPPING,
Packit 0d464f
//          - TIDY if all of its pixels are TIDY.
Packit 0d464f
//
Packit 0d464f
//      Note: the rather complicated definition of NON_OVERLAPPING prohibits
Packit 0d464f
//      overlapping volume samples, coincident point samples and point samples
Packit 0d464f
//      in the middle of a volume sample, but it does allow point samples at
Packit 0d464f
//      the front or back of a volume sample.
Packit 0d464f
//
Packit 0d464f
//-----------------------------------------------------------------------------
Packit 0d464f
Packit 0d464f
#include "ImfNamespace.h"
Packit 0d464f
#include "ImfExport.h"
Packit 0d464f
Packit 0d464f
Packit 0d464f
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Packit 0d464f
Packit 0d464f
enum DeepImageState
Packit 0d464f
{
Packit 0d464f
    DIS_MESSY = 0,
Packit 0d464f
    DIS_SORTED = 1,
Packit 0d464f
    DIS_NON_OVERLAPPING = 2,
Packit 0d464f
    DIS_TIDY = 3,
Packit 0d464f
Packit 0d464f
    DIS_NUMSTATES   // Number of different image states
Packit 0d464f
};
Packit 0d464f
Packit 0d464f
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Packit 0d464f
Packit 0d464f
Packit 0d464f
#endif