HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openexr_compression.h
Go to the documentation of this file.
1 /*
2 ** SPDX-License-Identifier: BSD-3-Clause
3 ** Copyright Contributors to the OpenEXR Project.
4 */
5 
6 #ifndef OPENEXR_CORE_COMPRESSION_H
7 #define OPENEXR_CORE_COMPRESSION_H
8 
9 #include "openexr_context.h"
10 
11 #include <stddef.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /** @file */
18 
19 /** Computes a buffer that will be large enough to hold the compressed
20  * data. This may include some extra padding for headers / scratch */
22 size_t exr_compress_max_buffer_size (size_t in_bytes);
23 
24 /** Compresses a buffer using a zlib style compression.
25  *
26  * If the level is -1, will use the default compression set to the library
27  * \ref exr_set_default_zip_compression_level
28  * data. This may include some extra padding for headers / scratch */
32  int level,
33  const void* in,
34  size_t in_bytes,
35  void* out,
36  size_t out_bytes_avail,
37  size_t* actual_out);
38 
42  const void* in,
43  size_t in_bytes,
44  void* out,
45  size_t out_bytes_avail,
46  size_t* actual_out);
47 
48 #ifdef __cplusplus
49 } /* extern "C" */
50 #endif
51 
52 #endif /* OPENEXR_CORE_COMPRESSION_H */
EXR_EXPORT exr_result_t exr_compress_buffer(exr_const_context_t ctxt, int level, const void *in, size_t in_bytes, void *out, size_t out_bytes_avail, size_t *actual_out)
GLint level
Definition: glcorearb.h:108
EXR_EXPORT size_t exr_compress_max_buffer_size(size_t in_bytes)
const struct _priv_exr_context_t * exr_const_context_t
EXR_EXPORT exr_result_t exr_uncompress_buffer(exr_const_context_t ctxt, const void *in, size_t in_bytes, void *out, size_t out_bytes_avail, size_t *actual_out)
int32_t exr_result_t
#define EXR_EXPORT