HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImfCompression.h
Go to the documentation of this file.
1 //
2 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright (c) Contributors to the OpenEXR Project.
4 //
5 
6 #ifndef INCLUDED_IMF_COMPRESSION_H
7 #define INCLUDED_IMF_COMPRESSION_H
8 
9 //-----------------------------------------------------------------------------
10 //
11 // enum Compression
12 //
13 //-----------------------------------------------------------------------------
14 #include "ImfExport.h"
15 #include "ImfNamespace.h"
16 
18 
20 {
21  NO_COMPRESSION = 0, // no compression
22 
23  RLE_COMPRESSION = 1, // run length encoding
24 
25  ZIPS_COMPRESSION = 2, // zlib compression, one scan line at a time
26 
27  ZIP_COMPRESSION = 3, // zlib compression, in blocks of 16 scan lines
28 
29  PIZ_COMPRESSION = 4, // piz-based wavelet compression
30 
31  PXR24_COMPRESSION = 5, // lossy 24-bit float compression
32 
33  B44_COMPRESSION = 6, // lossy 4-by-4 pixel block compression,
34  // fixed compression rate
35 
36  B44A_COMPRESSION = 7, // lossy 4-by-4 pixel block compression,
37  // flat fields are compressed more
38 
39  DWAA_COMPRESSION = 8, // lossy DCT based compression, in blocks
40  // of 32 scanlines. More efficient for partial
41  // buffer access.
42 
43  DWAB_COMPRESSION = 9, // lossy DCT based compression, in blocks
44  // of 256 scanlines. More efficient space
45  // wise and faster to decode full frames
46  // than DWAA_COMPRESSION.
47 
48  NUM_COMPRESSION_METHODS // number of different compression methods
49 };
50 
51 /// Controls the default zip compression level used. Zip is used for
52 /// the 2 zip levels as well as some modes of the DWAA/B compression.
54 
55 /// Controls the default quality level for the DWA lossy compression
57 
59 
60 #endif
#define IMF_EXPORT_ENUM
Definition: ImfExport.h:56
ZIP_COMPRESSION
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
Definition: ImfNamespace.h:83
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMF_EXPORT_ENUM Compression
GLint level
Definition: glcorearb.h:108
B44_COMPRESSION
PXR24_COMPRESSION
IMF_EXPORT void setDefaultDwaCompressionLevel(float level)
Controls the default quality level for the DWA lossy compression.
NO_COMPRESSION
DWAB_COMPRESSION
PIZ_COMPRESSION
DWAA_COMPRESSION
ZIPS_COMPRESSION
#define IMF_EXPORT
Definition: ImfExport.h:54
B44A_COMPRESSION
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
Definition: ImfNamespace.h:80
IMF_EXPORT void setDefaultZipCompressionLevel(int level)
RLE_COMPRESSION