camera: define common pixel format type for Mac
authorsungmin ha <sungmin82.ha@samsung.com>
Fri, 8 Jan 2016 07:59:18 +0000 (16:59 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 13 Jan 2016 01:20:44 +0000 (10:20 +0900)
Change-Id: I9a1c7361e145d9dc7d06c1b61c4f429444b6ad05
Signed-off-by: sungmin ha <sungmin82.ha@samsung.com>
tizen/src/hw/pci/maru_camera_darwin.m

index 5105d753b11f48a9f265be3f8855690faab29ff0..537efad7a909eddf5de8e1fdae641c74deb8913a 100644 (file)
@@ -214,6 +214,8 @@ static uint32_t cv_to_fourcc(uint32_t cv_pix_fmt)
     if (![mSession isRunning]) {
         /* Use default pixel format, UYVY */
         NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
+                                    [NSNumber numberWithInt:kCVPixelFormatType_422YpCbCr8],
+                                              kCVPixelBufferPixelFormatTypeKey,
                                     [NSNumber numberWithInt:width],
                                               kCVPixelBufferWidthKey,
                                     [NSNumber numberWithInt:height],