Blender Git Loki
Git Commits -> Revision 0a5f044
Revision 0a5f044 by Sybren A. Stüvel April 16, 2018, 09:21 (GMT) |
IMB_metadata improvements - Metadata handling is now separate from `ImBuf *`, allowing it to be used with a generic `IDProperty *`. - Merged `IMB_metadata_add_field()` and `IMB_metadata_change_field()` into a more robust `IMB_metadata_set_field()`. This new function doesn't return any status (it now always succeeds, and the previously existing return value was never checked anyway). - Removed `IMB_metadata_del_field()` as it was never actually used anywhere. - Use `IMB_metadata_ensure()` instead of having `IMB_metadata_set_field()` create the containing `IDProperty` for you. - Deduplicated function declarations, moved `intern/IMB_metadata.h` out of `intern/`. Note that this does mean that we have some extra `#include "IMB_metadata.h"` lines now, as the metadata functions are no longer declared in `IMB_imbuf.h`. - Deduplicated function declarations, all metadata-related declarations are now in imbuf/IMB_metadata.h. Part of: https://developer.blender.org/D2273 Reviewed by: @campbellbarton |
Commit Details:
Full Hash: 0a5f044c9a43b1e6cc865d377999e5c9ed1d9751
Parent Commit: 423629e
Committed By: Gaia Clary
Lines Changed: +145, -163
1 Added Path:
/source/blender/imbuf/IMB_metadata.h (+77, -0) (View)
1 Deleted Path:
/source/blender/imbuf/intern/IMB_metadata.h (+0, -66)
14 Modified Paths:
/source/blender/blenkernel/intern/image.c (+11, -6) (Diff)
/source/blender/blenkernel/intern/seqeffects.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+1, -0) (Diff)
/source/blender/editors/screen/area.c (+2, -1) (Diff)
/source/blender/imbuf/CMakeLists.txt (+1, -1) (Diff)
/source/blender/imbuf/IMB_imbuf.h (+0, -16) (Diff)
/source/blender/imbuf/intern/allocimbuf.c (+1, -1) (Diff)
/source/blender/imbuf/intern/colormanagement.c (+1, -0) (Diff)
/source/blender/imbuf/intern/jpeg.c (+4, -2) (Diff)
/source/blender/imbuf/intern/metadata.c (+31, -59) (Diff)
/source/blender/imbuf/intern/openexr/openexr_api.cpp (+2, -1) (Diff)
/source/blender/imbuf/intern/png.c (+2, -1) (Diff)
/source/blender/imbuf/intern/thumbs.c (+10, -9) (Diff)
/source/blender/render/intern/source/pipeline.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/seqeffects.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+1, -0) (Diff)
/source/blender/editors/screen/area.c (+2, -1) (Diff)
/source/blender/imbuf/CMakeLists.txt (+1, -1) (Diff)
/source/blender/imbuf/IMB_imbuf.h (+0, -16) (Diff)
/source/blender/imbuf/intern/allocimbuf.c (+1, -1) (Diff)
/source/blender/imbuf/intern/colormanagement.c (+1, -0) (Diff)
/source/blender/imbuf/intern/jpeg.c (+4, -2) (Diff)
/source/blender/imbuf/intern/metadata.c (+31, -59) (Diff)
/source/blender/imbuf/intern/openexr/openexr_api.cpp (+2, -1) (Diff)
/source/blender/imbuf/intern/png.c (+2, -1) (Diff)
/source/blender/imbuf/intern/thumbs.c (+10, -9) (Diff)
/source/blender/render/intern/source/pipeline.c (+1, -0) (Diff)