Quicktime/QTKit : fix too dark images conversion issue
authorDamien Plisson <damien.plisson@yahoo.fr>
Mon, 1 Feb 2010 17:46:19 +0000 (17:46 +0000)
committerDamien Plisson <damien.plisson@yahoo.fr>
Mon, 1 Feb 2010 17:46:19 +0000 (17:46 +0000)
source/blender/quicktime/apple/qtkit_import.m

index 40d57552fb62982f92879fce968dd1c821a1ab79..109ed1870fc84aee2ad1cdc7ad7bddfd07c6576b 100644 (file)
@@ -186,7 +186,7 @@ static ImBuf * nsImageToiBuf(NSImage *sourceImage, int width, int height)
                                                                                                                                                 pixelsWide:width 
                                                                                                                                                 pixelsHigh:height
                                                                                                                                          bitsPerSample:8 samplesPerPixel:3 hasAlpha:NO isPlanar:NO
-                                                                                                                                        colorSpaceName:NSCalibratedRGBColorSpace 
+                                                                                                                                        colorSpaceName:NSDeviceRGBColorSpace 
                                                                                                                                           bitmapFormat:0
                                                                                                                                                bytesPerRow:4*width
                                                                                                                                           bitsPerPixel:32/*RGB format padded to 32bits*/];
@@ -208,7 +208,7 @@ static ImBuf * nsImageToiBuf(NSImage *sourceImage, int width, int height)
                                                                                                                                                  pixelsWide:width
                                                                                                                                                  pixelsHigh:height
                                                                                                                                           bitsPerSample:8 samplesPerPixel:4 hasAlpha:YES isPlanar:NO
-                                                                                                                                         colorSpaceName:NSCalibratedRGBColorSpace
+                                                                                                                                         colorSpaceName:NSDeviceRGBColorSpace
                                                                                                                                                bitmapFormat:0
                                                                                                                                                 bytesPerRow:4*width
                                                                                                                                                bitsPerPixel:32/* RGBA */];