[Bf-blender-cvs] [b3daf92] master: Sequencer: IF effect strip only affects on a single strip use source metadata for the result

Sergey Sharybin noreply at git.blender.org
Mon Feb 1 10:22:08 CET 2016


Commit: b3daf92f7e6f8a6a1b7a9f0db3aa9d5769a1c501
Author: Sergey Sharybin
Date:   Mon Feb 1 10:19:55 2016 +0100
Branches: master
https://developer.blender.org/rBb3daf92f7e6f8a6a1b7a9f0db3aa9d5769a1c501

Sequencer: IF effect strip only affects on a single strip use source metadata for the result

This way it's possible to have some color-correction modifications on
top of the render result and yet still have proper metadata stored.

Usecase: Access per-frame render-time of the movie frames from the
final export.

===================================================================

M	source/blender/blenkernel/intern/seqeffects.c

===================================================================

diff --git a/source/blender/blenkernel/intern/seqeffects.c b/source/blender/blenkernel/intern/seqeffects.c
index d87da66..1712276 100644
--- a/source/blender/blenkernel/intern/seqeffects.c
+++ b/source/blender/blenkernel/intern/seqeffects.c
@@ -146,6 +146,11 @@ static ImBuf *prepare_effect_imbufs(const SeqRenderData *context, ImBuf *ibuf1,
 	if (out->rect_float)
 		IMB_colormanagement_assign_float_colorspace(out, scene->sequencer_colorspace_settings.name);
 
+	/* If effect only affecting a single channel, forward input's metadata to the output. */
+	if (ibuf1 != NULL && ibuf1 == ibuf2 && ibuf2 == ibuf3) {
+		IMB_metadata_copy(out, ibuf1);
+	}
+
 	return out;
 }
 
@@ -2358,6 +2363,7 @@ static ImBuf *do_adjustment(const SeqRenderData *context, Sequence *seq, float c
 
 	if (BKE_sequencer_input_have_to_preprocess(context, seq, cfra)) {
 		out = IMB_dupImBuf(i);
+		IMB_metadata_copy(out, i);
 		IMB_freeImBuf(i);
 	}
 	else {




More information about the Bf-blender-cvs mailing list