~ubuntu-branches/ubuntu/saucy/openexr/saucy

« back to all changes in this revision

Viewing changes to IlmImf/ImfHeader.h

  • Committer: Bazaar Package Importer
  • Author(s): Adeodato Simó
  • Date: 2008-03-24 23:00:21 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080324230021-gnofz9mnvcj1xlv3
Tags: 1.6.1-3
Disable (hopefully temporarily) the test suite on arm and ia64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#include <ImfName.h>
49
49
#include <ImfTileDescription.h>
50
50
#include <ImfInt64.h>
51
 
#include <ImathVec.h>
52
 
#include <ImathBox.h>
53
 
#include <IexBaseExc.h>
 
51
#include "ImathVec.h"
 
52
#include "ImathBox.h"
 
53
#include "IexBaseExc.h"
54
54
#include <map>
55
55
#include <iosfwd>
56
56
 
299
299
    void                        sanityCheck (bool isTiled = false) const;
300
300
 
301
301
 
 
302
    //----------------------------------------------------------------
 
303
    // Maximum image size and maximim tile size:
 
304
    //
 
305
    // sanityCheck() will throw an exception if the width or height of
 
306
    // the data window exceeds the maximum image width or height, or
 
307
    // if the size of a tile exceeds the maximum tile width or height.
 
308
    // 
 
309
    // At program startup the maximum image and tile width and height
 
310
    // are set to zero, meaning that width and height are unlimited.
 
311
    //
 
312
    // Limiting image and tile width and height limits how much memory
 
313
    // will be allocated when a file is opened.  This can help protect
 
314
    // applications from running out of memory while trying to read
 
315
    // a damaged image file.
 
316
    //----------------------------------------------------------------
 
317
 
 
318
    static void                 setMaxImageSize (int maxWidth, int maxHeight);
 
319
    static void                 setMaxTileSize (int maxWidth, int maxHeight);
 
320
 
 
321
 
302
322
    //------------------------------------------------------------------
303
323
    // Input and output:
304
324
    //