Blender Git Commit Log

Git Commits -> Revision b0a767b

Revision b0a767b by Sybren A. Stüvel (master)
April 5, 2018, 14:50 (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: b0a767b85b0acacc40a414dd3f961b206a6b22f0
Parent Commit: f0f6c96
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021