diff options
author | Quentin Wenger <matpi@protonmail.ch> | 2016-01-14 13:02:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 13:33:46 +0300 |
commit | 370a8ee7417f37bbedf814582d9f14e855da0c3e (patch) | |
tree | 6419c5126e0d3b62b1ffc3fa7443a2a9eadfb372 /source/blender/makesdna/DNA_scene_types.h | |
parent | 1f273cec00feddb1065847e3c8163cdcf8a6d89a (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/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 42418f87bbd..f0b55e8b9be 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -355,7 +355,10 @@ typedef struct ImageFormatData { char jp2_flag; char jp2_codec; - char pad[5]; + /* TIFF */ + char tiff_codec; + + char pad[4]; /* Multiview */ char views_format; @@ -442,6 +445,14 @@ typedef struct ImageFormatData { /* ImageFormatData.cineon_flag */ #define R_IMF_CINEON_FLAG_LOG (1<<0) /* was R_CINEON_LOG */ +/* ImageFormatData.tiff_codec */ +enum { + R_IMF_TIFF_CODEC_DEFLATE = 0, + R_IMF_TIFF_CODEC_LZW = 1, + R_IMF_TIFF_CODEC_PACKBITS = 2, + R_IMF_TIFF_CODEC_NONE = 3, +}; + typedef struct BakeData { struct ImageFormatData im_format; |