diff options
author | Ton Roosendaal <ton@blender.org> | 2006-03-12 17:11:23 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-03-12 17:11:23 +0300 |
commit | de0262e4c81c7d7f036cc574f636a248f2cc9f27 (patch) | |
tree | eb9548b7588eb22de2c409bc0ee127716827e94d /source/blender/imbuf/IMB_imbuf_types.h | |
parent | bd151b30ab70433c27027864db777a3955d0fc76 (diff) |
New: Import/Export of Cineon and DPX image files. The first is Kodak's
standard for film scanning, 10 bits/channel and logarithmic. DPX is
derived from Cineon as the ANSI/SMPTE industry standard.
DPX supports 16 bits color/channel, linear as well as logarithmic.
Code has been gratefully copied from CinePaint and was integrated in
Blender by Joe Eagar.
According to CinePaint's dev Robin Rowe the DPX code defaults to log
colorspace. Can't find in the code clues yet how to enable/disable that.
However, tests with write/read of DPX seems to show no visible loss by
log conversion code. Might be because it uses the entire 16 bit range...
CinePaint dpx files have been succesfully imported in a Quantel IQ HD/2K
finishing/grading set without problem, so for now I guess we can
use it! :)
Changes in code: added tests for image magic numbers before entering
the actual reading code. Prevents error prints, and makes it faster too.
(Note; this because Blender doesn't check for extensions, but calls
reading functions on every file until one accepts it. :)
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf_types.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h index db178841979..586dedc54e8 100644 --- a/source/blender/imbuf/IMB_imbuf_types.h +++ b/source/blender/imbuf/IMB_imbuf_types.h @@ -163,6 +163,9 @@ typedef enum { #define OPENEXR_HALF (1 << 8 ) #define OPENEXR_COMPRESS (7) +#define CINEON (1 << 21) +#define DPX (1 << 20) + #define RAWTGA (TGA | 1) #define JPG_STD (JPG | (0 << 8)) @@ -199,6 +202,8 @@ typedef enum { #define IS_tga(x) (x->ftype & TGA) #define IS_png(x) (x->ftype & PNG) #define IS_openexr(x) (x->ftype & OPENEXR) +#define IS_cineon(x) (x->ftype & CINEON) +#define IS_dpx(x) (x->ftype & DPX) #define IS_bmp(x) (x->ftype & BMP) #define IS_tiff(x) (x->ftype & TIF) #define IS_radhdr(x) (x->ftype & RADHDR) |