diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-30 17:01:47 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-30 17:01:47 +0400 |
commit | f62fc79da05b1b3568871adaff8b246eb6b30793 (patch) | |
tree | e69c8dbea350b3b8f4a37b0a1b064afa3daa4429 /source/blender/imbuf/IMB_imbuf_types.h | |
parent | fde101c50c3d7ad6bb43a578d7622cea084001a3 (diff) |
16 bit PNG write support
This commit adds a support of saving 16bit PNG files.
Alpha for such files would be premultiplied, would be corrected
with an upcoming alpha premul cleanup (it's not the only format
which will output 16bit image with premul alpha).
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf_types.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf_types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h index 433123914ce..9fe66b562d1 100644 --- a/source/blender/imbuf/IMB_imbuf_types.h +++ b/source/blender/imbuf/IMB_imbuf_types.h @@ -172,9 +172,9 @@ typedef struct ImBuf { /* * The bit flag is stored in the ImBuf.ftype variable. - * Note that the lower 10 bits is used for storing custom flags + * Note that the lower 11 bits is used for storing custom flags */ -#define IB_CUSTOM_FLAGS_MASK 0x3ff +#define IB_CUSTOM_FLAGS_MASK 0x400 #define PNG (1 << 30) #define TGA (1 << 28) @@ -221,6 +221,8 @@ typedef struct ImBuf { #define JP2_J2K (1 << 11) #endif +#define PNG_16BIT (1 << 10) + #define RAWTGA (TGA | 1) #define JPG_STD (JPG | (0 << 8)) |