20 #ifndef LIBHEIF_HEIF_LIMITS_H
21 #define LIBHEIF_HEIF_LIMITS_H
23 #if defined(HAVE_CONFIG_H)
30 static const size_t MAX_CHILDREN_PER_BOX = 20000;
31 static const int MAX_ILOC_ITEMS = 20000;
32 static const int MAX_ILOC_EXTENTS_PER_ITEM = 32;
33 static const int MAX_MEMORY_BLOCK_SIZE = 512*1024*1024;
37 static const int MAX_IMAGE_WIDTH = 32768;
38 static const int MAX_IMAGE_HEIGHT = 32768;
42 static const int MAX_BOX_NESTING_LEVEL = 20;
44 static const int MAX_BOX_SIZE = 0x7FFFFFFF;
45 static const int64_t MAX_LARGE_BOX_SIZE = 0x0FFFFFFFFFFFFFFF;
46 static const int64_t MAX_FILE_POS = 0x007FFFFFFFFFFFFFLL;
47 static const int MAX_FRACTION_VALUE = 0x10000;