pylibheif 1.21.2__cp311-cp311-macosx_14_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pylibheif might be problematic. Click here for more details.
- include/libheif/heif.h +41 -0
- include/libheif/heif_aux_images.h +182 -0
- include/libheif/heif_brands.h +376 -0
- include/libheif/heif_color.h +363 -0
- include/libheif/heif_context.h +329 -0
- include/libheif/heif_cxx.h +1390 -0
- include/libheif/heif_decoding.h +172 -0
- include/libheif/heif_encoding.h +395 -0
- include/libheif/heif_entity_groups.h +60 -0
- include/libheif/heif_error.h +304 -0
- include/libheif/heif_image.h +355 -0
- include/libheif/heif_image_handle.h +129 -0
- include/libheif/heif_items.h +260 -0
- include/libheif/heif_library.h +219 -0
- include/libheif/heif_metadata.h +136 -0
- include/libheif/heif_plugin.h +378 -0
- include/libheif/heif_properties.h +235 -0
- include/libheif/heif_regions.h +868 -0
- include/libheif/heif_security.h +107 -0
- include/libheif/heif_sequences.h +644 -0
- include/libheif/heif_tai_timestamps.h +202 -0
- include/libheif/heif_text.h +161 -0
- include/libheif/heif_tiling.h +137 -0
- include/libheif/heif_uncompressed.h +109 -0
- include/libheif/heif_version.h +38 -0
- lib/cmake/libheif/libheif-config-release.cmake +19 -0
- lib/cmake/libheif/libheif-config-version.cmake +83 -0
- lib/cmake/libheif/libheif-config.cmake +108 -0
- lib/libheif.a +0 -0
- lib/pkgconfig/libheif.pc +15 -0
- pylibheif-1.21.2.dist-info/METADATA +409 -0
- pylibheif-1.21.2.dist-info/RECORD +41 -0
- pylibheif-1.21.2.dist-info/WHEEL +5 -0
- pylibheif-1.21.2.dist-info/licenses/LICENSE +165 -0
- pylibheif.cpython-311-darwin.so +0 -0
- pylibheif.dylibs/libaom.3.13.1.dylib +0 -0
- pylibheif.dylibs/libdav1d.7.dylib +0 -0
- pylibheif.dylibs/libde265.0.dylib +0 -0
- pylibheif.dylibs/libopenjp2.2.5.4.dylib +0 -0
- pylibheif.dylibs/libvmaf.3.dylib +0 -0
- pylibheif.dylibs/libx265.215.dylib +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* HEIF codec.
|
|
3
|
+
* Copyright (c) 2017-2025 Dirk Farin <dirk.farin@gmail.com>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of libheif.
|
|
6
|
+
*
|
|
7
|
+
* libheif is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of
|
|
10
|
+
* the License, or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* libheif is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with libheif. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
#ifndef LIBHEIF_HEIF_SECURITY_H
|
|
22
|
+
#define LIBHEIF_HEIF_SECURITY_H
|
|
23
|
+
|
|
24
|
+
#ifdef __cplusplus
|
|
25
|
+
extern "C" {
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
#include <stddef.h>
|
|
29
|
+
#include <stdint.h>
|
|
30
|
+
|
|
31
|
+
#include <libheif/heif_library.h>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// --- security limits
|
|
35
|
+
|
|
36
|
+
// If you set a limit to 0, the limit is disabled.
|
|
37
|
+
typedef struct heif_security_limits
|
|
38
|
+
{
|
|
39
|
+
uint8_t version;
|
|
40
|
+
|
|
41
|
+
// --- version 1
|
|
42
|
+
|
|
43
|
+
// Limit on the maximum image size to avoid allocating too much memory.
|
|
44
|
+
// For example, setting this to 32768^2 pixels = 1 Gigapixels results
|
|
45
|
+
// in 1.5 GB memory need for YUV-4:2:0 or 4 GB for RGB32.
|
|
46
|
+
uint64_t max_image_size_pixels;
|
|
47
|
+
uint64_t max_number_of_tiles;
|
|
48
|
+
uint32_t max_bayer_pattern_pixels;
|
|
49
|
+
uint32_t max_items;
|
|
50
|
+
|
|
51
|
+
uint32_t max_color_profile_size;
|
|
52
|
+
uint64_t max_memory_block_size;
|
|
53
|
+
|
|
54
|
+
uint32_t max_components;
|
|
55
|
+
|
|
56
|
+
uint32_t max_iloc_extents_per_item;
|
|
57
|
+
uint32_t max_size_entity_group;
|
|
58
|
+
|
|
59
|
+
uint32_t max_children_per_box; // for all boxes that are not covered by other limits
|
|
60
|
+
|
|
61
|
+
// --- version 2
|
|
62
|
+
|
|
63
|
+
uint64_t max_total_memory;
|
|
64
|
+
uint32_t max_sample_description_box_entries;
|
|
65
|
+
uint32_t max_sample_group_description_box_entries;
|
|
66
|
+
|
|
67
|
+
// --- version 3
|
|
68
|
+
|
|
69
|
+
uint32_t max_sequence_frames;
|
|
70
|
+
uint32_t max_number_of_file_brands;
|
|
71
|
+
} heif_security_limits;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// The global security limits are the default for new heif_contexts.
|
|
75
|
+
// These global limits cannot be changed, but you can override the limits for a specific heif_context.
|
|
76
|
+
LIBHEIF_API
|
|
77
|
+
const heif_security_limits* heif_get_global_security_limits(void);
|
|
78
|
+
|
|
79
|
+
// Returns a set of fully disabled security limits. Use with care and only after user confirmation.
|
|
80
|
+
LIBHEIF_API
|
|
81
|
+
const heif_security_limits* heif_get_disabled_security_limits(void);
|
|
82
|
+
|
|
83
|
+
// Returns the security limits for a heif_context.
|
|
84
|
+
// By default, the limits are set to the global limits, but you can change them in the returned object.
|
|
85
|
+
LIBHEIF_API
|
|
86
|
+
heif_security_limits* heif_context_get_security_limits(const heif_context*);
|
|
87
|
+
|
|
88
|
+
// Overwrites the security limits of a heif_context.
|
|
89
|
+
// This is a convenience function to easily copy limits.
|
|
90
|
+
LIBHEIF_API
|
|
91
|
+
heif_error heif_context_set_security_limits(heif_context*, const heif_security_limits*);
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
// --- DEPRECATED ---
|
|
95
|
+
|
|
96
|
+
// Set the maximum image size security limit. This function will set the maximum image area (number of pixels)
|
|
97
|
+
// to maximum_width ^ 2. Alternatively to using this function, you can also set the maximum image area
|
|
98
|
+
// in the security limits structure returned by heif_context_get_security_limits().
|
|
99
|
+
LIBHEIF_API
|
|
100
|
+
void heif_context_set_maximum_image_size_limit(heif_context* ctx, int maximum_width);
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
#ifdef __cplusplus
|
|
104
|
+
}
|
|
105
|
+
#endif
|
|
106
|
+
|
|
107
|
+
#endif
|