Blame IlmImf/ImfKeyCode.h

Packit 0d464f
///////////////////////////////////////////////////////////////////////////
Packit 0d464f
//
Packit 0d464f
// Copyright (c) 2004, 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_KEY_CODE_H
Packit 0d464f
#define INCLUDED_IMF_KEY_CODE_H
Packit 0d464f
Packit 0d464f
//-----------------------------------------------------------------------------
Packit 0d464f
//
Packit 0d464f
//	class KeyCode
Packit 0d464f
// 	
Packit 0d464f
// 	A KeyCode object uniquely identifies a motion picture film frame.
Packit 0d464f
// 	The following fields specifiy film manufacturer, film type, film
Packit 0d464f
// 	roll and the frame's position within the roll:
Packit 0d464f
//
Packit 0d464f
//	    filmMfcCode		film manufacturer code
Packit 0d464f
//				range: 0 - 99
Packit 0d464f
//
Packit 0d464f
//	    filmType		film type code
Packit 0d464f
// 				range: 0 - 99
Packit 0d464f
//
Packit 0d464f
//	    prefix		prefix to identify film roll
Packit 0d464f
// 				range: 0 - 999999
Packit 0d464f
//
Packit 0d464f
//	    count		count, increments once every perfsPerCount
Packit 0d464f
// 				perforations (see below)
Packit 0d464f
// 				range: 0 - 9999
Packit 0d464f
//
Packit 0d464f
//	    perfOffset		offset of frame, in perforations from
Packit 0d464f
// 				zero-frame reference mark
Packit 0d464f
// 				range: 0 - 119
Packit 0d464f
//
Packit 0d464f
//	    perfsPerFrame	number of perforations per frame 
Packit 0d464f
// 				range: 1 - 15
Packit 0d464f
//
Packit 0d464f
//				typical values:
Packit 0d464f
//
Packit 0d464f
//				    1 for 16mm film
Packit 0d464f
//				    3, 4, or 8 for 35mm film
Packit 0d464f
//				    5, 8 or 15 for 65mm film
Packit 0d464f
//
Packit 0d464f
//	    perfsPerCount	number of perforations per count 
Packit 0d464f
// 				range: 20 - 120
Packit 0d464f
//
Packit 0d464f
//				typical values:
Packit 0d464f
//
Packit 0d464f
//				    20 for 16mm film
Packit 0d464f
//				    64 for 35mm film
Packit 0d464f
//				    80 or 120 for 65mm film
Packit 0d464f
//
Packit 0d464f
// 	For more information about the interpretation of those fields see
Packit 0d464f
// 	the following standards and recommended practice publications:
Packit 0d464f
//
Packit 0d464f
// 	    SMPTE 254	Motion-Picture Film (35-mm) - Manufacturer-Printed
Packit 0d464f
// 			Latent Image Identification Information
Packit 0d464f
//
Packit 0d464f
// 	    SMPTE 268M 	File Format for Digital Moving-Picture Exchange (DPX)
Packit 0d464f
// 			(section 6.1)
Packit 0d464f
//
Packit 0d464f
// 	    SMPTE 270	Motion-Picture Film (65-mm) - Manufacturer- Printed
Packit 0d464f
// 			Latent Image Identification Information
Packit 0d464f
//
Packit 0d464f
// 	    SMPTE 271	Motion-Picture Film (16-mm) - Manufacturer- Printed
Packit 0d464f
// 			Latent Image Identification Information
Packit 0d464f
//
Packit 0d464f
//-----------------------------------------------------------------------------
Packit 0d464f
#include "ImfNamespace.h"
Packit 0d464f
#include "ImfExport.h"
Packit 0d464f
Packit 0d464f
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Packit 0d464f
Packit 0d464f
   
Packit 0d464f
class IMF_EXPORT KeyCode
Packit 0d464f
{
Packit 0d464f
  public:
Packit 0d464f
Packit 0d464f
    //-------------------------------------
Packit 0d464f
    // Constructors and assignment operator
Packit 0d464f
    //-------------------------------------
Packit 0d464f
Packit 0d464f
    KeyCode (int filmMfcCode = 0,
Packit 0d464f
	     int filmType = 0,
Packit 0d464f
	     int prefix = 0,
Packit 0d464f
	     int count = 0,
Packit 0d464f
	     int perfOffset = 0,
Packit 0d464f
	     int perfsPerFrame = 4,
Packit 0d464f
	     int perfsPerCount = 64);
Packit 0d464f
Packit 0d464f
    KeyCode (const KeyCode &other);
Packit 0d464f
    KeyCode & operator = (const KeyCode &other);
Packit 0d464f
Packit 0d464f
Packit 0d464f
    //----------------------------
Packit 0d464f
    // Access to individual fields
Packit 0d464f
    //----------------------------
Packit 0d464f
Packit 0d464f
    int		filmMfcCode () const;
Packit 0d464f
    void	setFilmMfcCode (int filmMfcCode);
Packit 0d464f
Packit 0d464f
    int		filmType () const;
Packit 0d464f
    void	setFilmType (int filmType);
Packit 0d464f
Packit 0d464f
    int		prefix () const;
Packit 0d464f
    void	setPrefix (int prefix);
Packit 0d464f
Packit 0d464f
    int		count () const;
Packit 0d464f
    void	setCount (int count);
Packit 0d464f
Packit 0d464f
    int		perfOffset () const;
Packit 0d464f
    void	setPerfOffset (int perfOffset);
Packit 0d464f
Packit 0d464f
    int		perfsPerFrame () const;
Packit 0d464f
    void	setPerfsPerFrame (int perfsPerFrame);
Packit 0d464f
Packit 0d464f
    int		perfsPerCount () const;
Packit 0d464f
    void	setPerfsPerCount (int perfsPerCount);
Packit 0d464f
Packit 0d464f
  private:
Packit 0d464f
Packit 0d464f
    int		_filmMfcCode;
Packit 0d464f
    int		_filmType;
Packit 0d464f
    int		_prefix;
Packit 0d464f
    int		_count;
Packit 0d464f
    int		_perfOffset;
Packit 0d464f
    int		_perfsPerFrame;
Packit 0d464f
    int		_perfsPerCount;
Packit 0d464f
};
Packit 0d464f
Packit 0d464f
Packit 0d464f
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
Packit 0d464f
#endif