Merge image related changes from the render branch. This includes the image
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 7 May 2010 15:18:04 +0000 (15:18 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 7 May 2010 15:18:04 +0000 (15:18 +0000)
commit008863daec1249d1f17bc69e1105e336db690d63
tree78a4001857b26a287125a3f5fa31496052f6ebdd
parent1613829e8e821321da99cad4790b7e6a1d90cea8
Merge image related changes from the render branch. This includes the image
tile cache code in imbuf, but it is not hooked up to the render engine.

Imbuf module: some small refactoring and removing a lot of unused or old code
(about 6.5k lines).

* Added a ImFileType struct with callbacks to make adding an file format type,
  or making changes to the API easier.
* Move imbuf init/exit code into IMB_init()/IMB_exit() functions.
* Increased mipmap levels from 10 to 20, you run into this limit already with
  a 2k image.
* Removed hamx, amiga, anim5 format support.
* Removed colormap saving, only simple colormap code now for reading tga.
* Removed gen_dynlibtiff.py, editing this is almost as much work as just
  editing the code directly.
* Functions removed that were only used for sequencer plugin API:
  IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp,
  IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace,
  IMB_dit0, IMB_dit2, IMB_cspace
* Write metadata info into OpenEXR images. Can be viewed with the command
  line utility 'exrheader'

For the image tile cache code, see this page:
http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
102 files changed:
source/blender/blenkernel/BKE_image.h
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/bmfont.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/multires.c
source/blender/blenkernel/intern/sequencer.c
source/blender/blenkernel/intern/writeavi.c
source/blender/blenlib/BLI_math_vector.h
source/blender/blenlib/BLI_path_util.h
source/blender/blenlib/BLI_storage.h
source/blender/blenlib/intern/math_vector_inline.c
source/blender/blenlib/intern/path_util.c
source/blender/blenlib/intern/storage.c
source/blender/blenloader/intern/readfile.c
source/blender/blenpluginapi/iff.h
source/blender/blenpluginapi/intern/pluginapi.c
source/blender/editors/interface/interface_draw.c
source/blender/editors/interface/interface_icons.c
source/blender/editors/screen/screendump.c
source/blender/editors/space_file/filelist.c
source/blender/editors/space_file/writeimage.c
source/blender/editors/space_image/image_buttons.c
source/blender/imbuf/IMB_imbuf.h
source/blender/imbuf/IMB_imbuf_types.h
source/blender/imbuf/IMB_thumbs.h
source/blender/imbuf/SConscript
source/blender/imbuf/intern/IMB_amiga.h [deleted file]
source/blender/imbuf/intern/IMB_anim.h
source/blender/imbuf/intern/IMB_anim5.h [deleted file]
source/blender/imbuf/intern/IMB_bitplanes.h [deleted file]
source/blender/imbuf/intern/IMB_bmp.h [deleted file]
source/blender/imbuf/intern/IMB_cmap.h [deleted file]
source/blender/imbuf/intern/IMB_cocoa.h [deleted file]
source/blender/imbuf/intern/IMB_divers.h [deleted file]
source/blender/imbuf/intern/IMB_dpxcineon.h [deleted file]
source/blender/imbuf/intern/IMB_filetype.h [new file with mode: 0644]
source/blender/imbuf/intern/IMB_filter.h
source/blender/imbuf/intern/IMB_hamx.h [deleted file]
source/blender/imbuf/intern/IMB_iff.h [deleted file]
source/blender/imbuf/intern/IMB_iris.h [deleted file]
source/blender/imbuf/intern/IMB_jp2.h [deleted file]
source/blender/imbuf/intern/IMB_jpeg.h [deleted file]
source/blender/imbuf/intern/IMB_metadata.h [moved from source/blender/imbuf/intern/IMB_imginfo.h with 76% similarity]
source/blender/imbuf/intern/IMB_png.h [deleted file]
source/blender/imbuf/intern/IMB_radiance_hdr.h [deleted file]
source/blender/imbuf/intern/IMB_targa.h [deleted file]
source/blender/imbuf/intern/IMB_tiff.h [deleted file]
source/blender/imbuf/intern/allocimbuf.c
source/blender/imbuf/intern/amiga.c [deleted file]
source/blender/imbuf/intern/anim.c
source/blender/imbuf/intern/anim5.c [deleted file]
source/blender/imbuf/intern/antialias.c [deleted file]
source/blender/imbuf/intern/bitplanes.c [deleted file]
source/blender/imbuf/intern/bmp.c
source/blender/imbuf/intern/cache.c [new file with mode: 0644]
source/blender/imbuf/intern/cineon/cineon_dpx.c
source/blender/imbuf/intern/cmap.c [deleted file]
source/blender/imbuf/intern/cspace.c [deleted file]
source/blender/imbuf/intern/data.c [deleted file]
source/blender/imbuf/intern/dds/dds_api.cpp
source/blender/imbuf/intern/dds/dds_api.h
source/blender/imbuf/intern/dither.c [deleted file]
source/blender/imbuf/intern/divers.c
source/blender/imbuf/intern/dynlibtiff.c
source/blender/imbuf/intern/dynlibtiff.h
source/blender/imbuf/intern/filetype.c [new file with mode: 0644]
source/blender/imbuf/intern/filter.c
source/blender/imbuf/intern/gen_dynlibtiff.py [deleted file]
source/blender/imbuf/intern/ham.c [deleted file]
source/blender/imbuf/intern/hamx.c [deleted file]
source/blender/imbuf/intern/iff.c [deleted file]
source/blender/imbuf/intern/imageprocess.c
source/blender/imbuf/intern/imbuf.h
source/blender/imbuf/intern/imbuf_cocoa.m
source/blender/imbuf/intern/imbuf_patch.h [deleted file]
source/blender/imbuf/intern/iris.c
source/blender/imbuf/intern/jp2.c
source/blender/imbuf/intern/jpeg.c
source/blender/imbuf/intern/matrix.h [deleted file]
source/blender/imbuf/intern/metadata.c [moved from source/blender/imbuf/intern/imginfo.c with 66% similarity]
source/blender/imbuf/intern/module.c [moved from source/blender/imbuf/intern/IMB_ham.h with 68% similarity]
source/blender/imbuf/intern/openexr/openexr_api.cpp
source/blender/imbuf/intern/openexr/openexr_api.h
source/blender/imbuf/intern/png.c
source/blender/imbuf/intern/radiance_hdr.c
source/blender/imbuf/intern/readimage.c
source/blender/imbuf/intern/rectop.c
source/blender/imbuf/intern/rotate.c
source/blender/imbuf/intern/scaling.c
source/blender/imbuf/intern/targa.c
source/blender/imbuf/intern/thumbs.c
source/blender/imbuf/intern/tiff.c
source/blender/imbuf/intern/util.c
source/blender/imbuf/intern/writeimage.c
source/blender/makesdna/DNA_image_types.h
source/blender/makesrna/intern/rna_image.c
source/blender/quicktime/apple/qtkit_import.m
source/blender/quicktime/apple/quicktime_import.c
source/blender/windowmanager/intern/wm_init_exit.c
source/creator/creator.c
source/gameengine/GamePlayer/ghost/GPG_Application.cpp
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp