Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Wenger <matpi@protonmail.ch>2016-01-14 13:02:13 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-01-14 13:33:46 +0300
commit370a8ee7417f37bbedf814582d9f14e855da0c3e (patch)
tree6419c5126e0d3b62b1ffc3fa7443a2a9eadfb372 /source/blender/imbuf/IMB_imbuf_types.h
parent1f273cec00feddb1065847e3c8163cdcf8a6d89a (diff)
Add compression modes for TIFF images
This patch aims at providing multiple compression modes for TIFF output, particularly uncompressed mode. At this moment have None, Deflate, LZW and Pack Bits modes been integrated, mimicking The GIMP export modes (except JPEG mode, which returned encoding errors). More modes could be added if needed. Default remains Deflate. Reviewers: campbellbarton, mont29, sergey Differential Revision: https://developer.blender.org/D1709
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf_types.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h
index e9dcf2da723..0af203c9535 100644
--- a/source/blender/imbuf/IMB_imbuf_types.h
+++ b/source/blender/imbuf/IMB_imbuf_types.h
@@ -127,7 +127,11 @@ enum eImbTypes {
#define RAWTGA 1
#ifdef WITH_TIFF
-#define TIF_16BIT (1 << 8 )
+#define TIF_16BIT (1 << 8)
+#define TIF_COMPRESS_NONE (1 << 7)
+#define TIF_COMPRESS_DEFLATE (1 << 6)
+#define TIF_COMPRESS_LZW (1 << 5)
+#define TIF_COMPRESS_PACKBITS (1 << 4)
#endif
typedef struct ImbFormatOptions {