New: Import/Export of Cineon and DPX image files. The first is Kodak's
authorTon Roosendaal <ton@blender.org>
Sun, 12 Mar 2006 14:11:23 +0000 (14:11 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 12 Mar 2006 14:11:23 +0000 (14:11 +0000)
commitde0262e4c81c7d7f036cc574f636a248f2cc9f27
treeeb9548b7588eb22de2c409bc0ee127716827e94d
parentbd151b30ab70433c27027864db777a3955d0fc76
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. :)
29 files changed:
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/writeffmpeg.c
source/blender/imbuf/IMB_imbuf_types.h
source/blender/imbuf/SConscript
source/blender/imbuf/intern/IMB_dpxcineon.h [new file with mode: 0644]
source/blender/imbuf/intern/Makefile
source/blender/imbuf/intern/cineon/Makefile [new file with mode: 0644]
source/blender/imbuf/intern/cineon/README [new file with mode: 0644]
source/blender/imbuf/intern/cineon/cin_debug_stuff.h [new file with mode: 0644]
source/blender/imbuf/intern/cineon/cineon_dpx.c [new file with mode: 0644]
source/blender/imbuf/intern/cineon/cineonfile.h [new file with mode: 0644]
source/blender/imbuf/intern/cineon/cineonlib.c [new file with mode: 0644]
source/blender/imbuf/intern/cineon/cineonlib.h [new file with mode: 0644]
source/blender/imbuf/intern/cineon/dpxfile.h [new file with mode: 0644]
source/blender/imbuf/intern/cineon/dpxlib.c [new file with mode: 0644]
source/blender/imbuf/intern/cineon/dpxlib.h [new file with mode: 0644]
source/blender/imbuf/intern/cineon/logImageCore.c [new file with mode: 0644]
source/blender/imbuf/intern/cineon/logImageCore.h [new file with mode: 0644]
source/blender/imbuf/intern/cineon/logImageLib.c [new file with mode: 0644]
source/blender/imbuf/intern/cineon/logImageLib.h [new file with mode: 0644]
source/blender/imbuf/intern/cineon/logmemfile.c [new file with mode: 0644]
source/blender/imbuf/intern/cineon/logmemfile.h [new file with mode: 0644]
source/blender/imbuf/intern/readimage.c
source/blender/imbuf/intern/util.c
source/blender/imbuf/intern/writeimage.c
source/blender/makesdna/DNA_scene_types.h
source/blender/src/buttons_scene.c
source/blender/src/filesel.c
source/blender/src/writeimage.c