Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-01-26 05:49:30 +0300
committerMatt Ebb <matt@mke3.net>2010-01-26 05:49:30 +0300
commite6a23762da3f6b88da21669b7ae30c834ace2f55 (patch)
tree1c55bb97fbebe2755d22a7ccc0a484d323ed785e /source/blender/quicktime
parentba2257b57e56cc410288756de491969f4e207985 (diff)
Fix [#20821] COLOR MANAGEMENT: Corrupts motion picture files
Wasn't tagging movie formats with profiles properly.
Diffstat (limited to 'source/blender/quicktime')
-rw-r--r--source/blender/quicktime/apple/qtkit_import.m2
-rw-r--r--source/blender/quicktime/apple/quicktime_import.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/quicktime/apple/qtkit_import.m b/source/blender/quicktime/apple/qtkit_import.m
index 31a6ca71259..40d57552fb6 100644
--- a/source/blender/quicktime/apple/qtkit_import.m
+++ b/source/blender/quicktime/apple/qtkit_import.m
@@ -281,6 +281,8 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position)
ibuf = nsImageToiBuf(frameImage,anim->x, anim->y);
[pool drain];
+
+ ibuf->profile = IB_PROFILE_SRGB;
return ibuf;
}
diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c
index 6fd72131b00..655271b5055 100644
--- a/source/blender/quicktime/apple/quicktime_import.c
+++ b/source/blender/quicktime/apple/quicktime_import.c
@@ -373,6 +373,8 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position)
}
#endif
+ ibuf->profile == IB_PROFILE_SRGB;
+
IMB_flipy(ibuf);
return ibuf;
}