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