• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*****************************************************************************/
2 // Copyright 2006-2007 Adobe Systems Incorporated
3 // All Rights Reserved.
4 //
5 // NOTICE:  Adobe permits you to use, modify, and distribute this file in
6 // accordance with the terms of the Adobe license agreement accompanying it.
7 /*****************************************************************************/
8 
9 /* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_sdk_limits.h#1 $ */
10 /* $DateTime: 2012/05/30 13:28:51 $ */
11 /* $Change: 832332 $ */
12 /* $Author: tknoll $ */
13 
14 /** \file
15  * Collection of constants detailing maximum values used in processing in the DNG SDK.
16  */
17 
18 /*****************************************************************************/
19 
20 #ifndef __dng_sdk_limits__
21 #define __dng_sdk_limits__
22 
23 /*****************************************************************************/
24 
25 #include "dng_types.h"
26 
27 /*****************************************************************************/
28 
29 /// The maximum number of previews (in addition to the main IFD's thumbnail)
30 /// that we support embedded in a DNG.
31 
32 const uint32 kMaxDNGPreviews = 20;
33 
34 /// The maximum number of SubIFDs that will be parsed.
35 
36 const uint32 kMaxSubIFDs = kMaxDNGPreviews + 1;
37 
38 /// The maximum number of chained IFDs that will be parsed.
39 
40 const uint32 kMaxChainedIFDs = 10;
41 
42 /// The maximum number of samples per pixel.
43 
44 const uint32 kMaxSamplesPerPixel = 4;
45 
46 /// Maximum number of color planes.
47 
48 const uint32 kMaxColorPlanes = kMaxSamplesPerPixel;
49 
50 /// The maximum size of a CFA repeating pattern.
51 
52 const uint32 kMaxCFAPattern = 8;
53 
54 /// The maximum size of a black level repeating pattern.
55 
56 const uint32 kMaxBlackPattern = 8;
57 
58 /// The maximum number of masked area rectangles.
59 
60 const uint32 kMaxMaskedAreas = 4;
61 
62 /// The maximum image size supported (pixels per side).
63 
64 const uint32 kMaxImageSide = 65000;
65 
66 /// Maximum number of MP threads for dng_area_task operations.
67 
68 #if qDNG64Bit
69 const uint32 kMaxMPThreads = 32;
70 #else
71 const uint32 kMaxMPThreads = 8;
72 #endif
73 
74 /*****************************************************************************/
75 
76 #endif
77 
78 /*****************************************************************************/
79