qtmobility/plugins/multimedia/qt7/qt7movierenderer.mm
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
   231 
   231 
   232     CFMutableDictionaryRef  visualContextOptions = CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
   232     CFMutableDictionaryRef  visualContextOptions = CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
   233                                                                              &kCFTypeDictionaryKeyCallBacks,
   233                                                                              &kCFTypeDictionaryKeyCallBacks,
   234                                                                              &kCFTypeDictionaryValueCallBacks);
   234                                                                              &kCFTypeDictionaryValueCallBacks);
   235     CFDictionarySetValue(visualContextOptions, kQTVisualContextPixelBufferAttributesKey, pixelBufferOptions);
   235     CFDictionarySetValue(visualContextOptions, kQTVisualContextPixelBufferAttributesKey, pixelBufferOptions);
       
   236 
   236     CFDictionarySetValue(visualContextOptions, kQTVisualContextWorkingColorSpaceKey, CGColorSpaceCreateDeviceRGB());
   237     CFDictionarySetValue(visualContextOptions, kQTVisualContextWorkingColorSpaceKey, CGColorSpaceCreateDeviceRGB());
       
   238     CFDictionarySetValue(visualContextOptions, kQTVisualContextOutputColorSpaceKey, CGColorSpaceCreateDeviceRGB());
   237 
   239 
   238     OSStatus err = QTPixelBufferContextCreate(kCFAllocatorDefault,
   240     OSStatus err = QTPixelBufferContextCreate(kCFAllocatorDefault,
   239                                                visualContextOptions,
   241                                                visualContextOptions,
   240                                                &m_visualContext);
   242                                                &m_visualContext);
   241     CFRelease(pixelBufferOptions);
   243     CFRelease(pixelBufferOptions);