Note that there are some explanatory texts on larger screens.

plurals
  1. POFront Facing Camera Issue in IPhone 5S IOS 7
    text
    copied!<p>I have problem on IPhone 5S with front camera output, the same session resolution like rear camera. (<code>AVCaptureSessionPreset352x288</code>) and <code>kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange</code> setting for <code>kCVPixelBufferPixelFormatTypeKey</code>. I found some discussion on apple forum about exact issue, here is the link: <a href="https://discussions.apple.com/message/23150694#23150694" rel="nofollow">https://discussions.apple.com/message/23079639#23079639</a></p> <p>What is the problem? Please Help. </p> <p>Good output, rear-facing camera.</p> <pre><code>Printing description of imageBuffer: &lt;CVPixelBuffer 0xd5e2f30 width=352 height=288 pixelFormat=420v iosurface=0xd80e724 planes=2&gt; &lt;Plane 0 width=352 height=288 bytesPerRow=352&gt; &lt;Plane 1 width=176 height=144 bytesPerRow=352&gt; &lt;attributes=&lt;CFBasicHash 0xd5c3710 [0x3bf18ad0]&gt;{type = immutable dict, count = 1, entries =&gt; 1 : &lt;CFString 0x3bf971b4 [0x3bf18ad0]&gt;{contents = "PixelFormatDescription"} = &lt;CFBasicHash 0xb9fce0 [0x3bf18ad0]&gt;{type = immutable dict, count = 7, entries =&gt; 0 : &lt;CFString 0x3bf97164 [0x3bf18ad0]&gt;{contents = "IOSurfaceCoreAnimationCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} 2 : &lt;CFString 0x3bf97194 [0x3bf18ad0]&gt;{contents = "OpenGLESCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} 3 : &lt;CFString 0x3bf972c4 [0x3bf18ad0]&gt;{contents = "ContainsAlpha"} = &lt;CFBoolean 0x3bf18e88 [0x3bf18ad0]&gt;{value = false} 5 : &lt;CFString 0x3bf97184 [0x3bf18ad0]&gt;{contents = "IOSurfaceOpenGLESFBOCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} 7 : &lt;CFString 0x3bf972d4 [0x3bf18ad0]&gt;{contents = "Planes"} = &lt;CFArray 0xb24830 [0x3bf18ad0]&gt;{type = mutable-small, count = 2, values = ( 0 : &lt;CFBasicHash 0xb99420 [0x3bf18ad0]&gt;{type = mutable dict, count = 3, entries =&gt; 0 : &lt;CFString 0x3bf973b4 [0x3bf18ad0]&gt;{contents = "FillExtendedPixelsCallback"} = &lt;CFData 0xba06a0 [0x3bf18ad0]&gt;{length = 12, capacity = 12, bytes = 0x00000000917cbb3100000000} 1 : &lt;CFString 0x3bf97334 [0x3bf18ad0]&gt;{contents = "BlackBlock"} = &lt;CFData 0xb9deb0 [0x3bf18ad0]&gt;{length = 1, capacity = 1, bytes = 0x10} 2 : &lt;CFString 0x3bf97324 [0x3bf18ad0]&gt;{contents = "BitsPerBlock"} = &lt;CFNumber 0xb277e0 [0x3bf18ad0]&gt;{value = +8, type = kCFNumberSInt32Type} } 1 : &lt;CFBasicHash 0xba0e50 [0x3bf18ad0]&gt;{type = mutable dict, count = 5, entries =&gt; 0 : &lt;CFString 0x3bf97334 [0x3bf18ad0]&gt;{contents = "BlackBlock"} = &lt;CFData 0xb9c550 [0x3bf18ad0]&gt;{length = 2, capacity = 2, bytes = 0x8080} 2 : &lt;CFString 0x3bf97344 [0x3bf18ad0]&gt;{contents = "HorizontalSubsampling"} = &lt;CFNumber 0xc0f720 [0x3bf18ad0]&gt;{value = +2, type = kCFNumberSInt32Type} 4 : &lt;CFString 0x3bf97324 [0x3bf18ad0]&gt;{contents = "BitsPerBlock"} = &lt;CFNumber 0xba0e80 [0x3bf18ad0]&gt;{value = +16, type = kCFNumberSInt32Type} 5 : &lt;CFString 0x3bf973b4 [0x3bf18ad0]&gt;{contents = "FillExtendedPixelsCallback"} = &lt;CFData 0xba16d0 [0x3bf18ad0]&gt;{length = 12, capacity = 12, bytes = 0x00000000817bbb3100000000} 6 : &lt;CFString 0x3bf97354 [0x3bf18ad0]&gt;{contents = "VerticalSubsampling"} = &lt;CFNumber 0xc0f720 [0x3bf18ad0]&gt;{value = +2, type = kCFNumberSInt32Type} } )} 8 : &lt;CFString 0x3bf97294 [0x3bf18ad0]&gt;{contents = "PixelFormat"} = &lt;CFNumber 0xb7acf0 [0x3bf18ad0]&gt;{value = +875704438, type = kCFNumberSInt32Type} 12 : &lt;CFString 0x3bf97174 [0x3bf18ad0]&gt;{contents = "IOSurfaceOpenGLESTextureCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} } } propagatedAttachments=&lt;CFBasicHash 0x126e2130 [0x3bf18ad0]&gt;{type = mutable dict, count = 4, entries =&gt; 1 : &lt;CFString 0x3bf70edc [0x3bf18ad0]&gt;{contents = "MetadataDictionary"} = &lt;CFBasicHash 0xd5da1a0 [0x3bf18ad0]&gt;{type = mutable dict, count = 7, entries =&gt; 0 : &lt;CFString 0x3bf70f4c [0x3bf18ad0]&gt;{contents = "SNR"} = &lt;CFNumber 0xd5da1d0 [0x3bf18ad0]&gt;{value = +33.11550123401803347178, type = kCFNumberFloat64Type} 2 : &lt;CFString 0x3bf70ddc [0x3bf18ad0]&gt;{contents = "sensorDGain"} = &lt;CFNumber 0xd58def0 [0x3bf18ad0]&gt;{value = +256, type = kCFNumberSInt32Type} 3 : &lt;CFString 0x3bf70f3c [0x3bf18ad0]&gt;{contents = "SensorID"} = &lt;CFNumber 0x126f7b40 [0x3bf18ad0]&gt;{value = +356, type = kCFNumberSInt32Type} 6 : &lt;CFString 0x3bf7054c [0x3bf18ad0]&gt;{contents = "ExposureTime"} = &lt;CFNumber 0xd5d83d0 [0x3bf18ad0]&gt;{value = +0.03332500000000000046, type = kCFNumberFloat64Type} 7 : &lt;CFString 0x3bf70dec [0x3bf18ad0]&gt;{contents = "ispDGain"} = &lt;CFNumber 0xd54d620 [0x3bf18ad0]&gt;{value = +273, type = kCFNumberSInt32Type} 11 : &lt;CFString 0x3bf7017c [0x3bf18ad0]&gt;{contents = "AGC"} = &lt;CFNumber 0xd5e21f0 [0x3bf18ad0]&gt;{value = +780, type = kCFNumberSInt32Type} 12 : &lt;CFString 0x3bf7114c [0x3bf18ad0]&gt;{contents = "AEAverage"} = &lt;CFNumber 0xd5e27a0 [0x3bf18ad0]&gt;{value = +126, type = kCFNumberSInt32Type} } 3 : &lt;CFString 0x3bf96f54 [0x3bf18ad0]&gt;{contents = "CVImageBufferYCbCrMatrix"} = &lt;CFString 0xd5c34b0 [0x3bf18ad0]&gt;{contents = "ITU_R_601_4"} 5 : &lt;CFString 0x3bf96f94 [0x3bf18ad0]&gt;{contents = "CVImageBufferColorPrimaries"} = &lt;CFString 0x126bced0 [0x3bf18ad0]&gt;{contents = "ITU_R_709_2"} 6 : &lt;CFString 0x3bf96fd4 [0x3bf18ad0]&gt;{contents = "CVImageBufferTransferFunction"} = &lt;CFString 0xd58dfa0 [0x3bf18ad0]&gt;{contents = "ITU_R_709_2"} } nonPropagatedAttachments=&lt;CFBasicHash 0x126e2100 [0x3bf18ad0]&gt;{type = mutable dict, count = 0, entries =&gt; } &gt; </code></pre> <p>Bad output, front-facing camera.</p> <pre><code>Printing description of imageBuffer: &lt;CVPixelBuffer 0x12638980 width=352 height=288 pixelFormat=420v iosurface=0xd80e724 planes=2&gt; &lt;Plane 0 width=352 height=288 bytesPerRow=384&gt; &lt;Plane 1 width=176 height=144 bytesPerRow=384&gt; &lt;attributes=&lt;CFBasicHash 0x12638bb0 [0x3bf18ad0]&gt;{type = immutable dict, count = 1, entries =&gt; 1 : &lt;CFString 0x3bf971b4 [0x3bf18ad0]&gt;{contents = "PixelFormatDescription"} = &lt;CFBasicHash 0xb9fce0 [0x3bf18ad0]&gt;{type = immutable dict, count = 7, entries =&gt; 0 : &lt;CFString 0x3bf97164 [0x3bf18ad0]&gt;{contents = "IOSurfaceCoreAnimationCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} 2 : &lt;CFString 0x3bf97194 [0x3bf18ad0]&gt;{contents = "OpenGLESCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} 3 : &lt;CFString 0x3bf972c4 [0x3bf18ad0]&gt;{contents = "ContainsAlpha"} = &lt;CFBoolean 0x3bf18e88 [0x3bf18ad0]&gt;{value = false} 5 : &lt;CFString 0x3bf97184 [0x3bf18ad0]&gt;{contents = "IOSurfaceOpenGLESFBOCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} 7 : &lt;CFString 0x3bf972d4 [0x3bf18ad0]&gt;{contents = "Planes"} = &lt;CFArray 0xb24830 [0x3bf18ad0]&gt;{type = mutable-small, count = 2, values = ( 0 : &lt;CFBasicHash 0xb99420 [0x3bf18ad0]&gt;{type = mutable dict, count = 3, entries =&gt; 0 : &lt;CFString 0x3bf973b4 [0x3bf18ad0]&gt;{contents = "FillExtendedPixelsCallback"} = &lt;CFData 0xba06a0 [0x3bf18ad0]&gt;{length = 12, capacity = 12, bytes = 0x00000000917cbb3100000000} 1 : &lt;CFString 0x3bf97334 [0x3bf18ad0]&gt;{contents = "BlackBlock"} = &lt;CFData 0xb9deb0 [0x3bf18ad0]&gt;{length = 1, capacity = 1, bytes = 0x10} 2 : &lt;CFString 0x3bf97324 [0x3bf18ad0]&gt;{contents = "BitsPerBlock"} = &lt;CFNumber 0xb277e0 [0x3bf18ad0]&gt;{value = +8, type = kCFNumberSInt32Type} } 1 : &lt;CFBasicHash 0xba0e50 [0x3bf18ad0]&gt;{type = mutable dict, count = 5, entries =&gt; 0 : &lt;CFString 0x3bf97334 [0x3bf18ad0]&gt;{contents = "BlackBlock"} = &lt;CFData 0xb9c550 [0x3bf18ad0]&gt;{length = 2, capacity = 2, bytes = 0x8080} 2 : &lt;CFString 0x3bf97344 [0x3bf18ad0]&gt;{contents = "HorizontalSubsampling"} = &lt;CFNumber 0xc0f720 [0x3bf18ad0]&gt;{value = +2, type = kCFNumberSInt32Type} 4 : &lt;CFString 0x3bf97324 [0x3bf18ad0]&gt;{contents = "BitsPerBlock"} = &lt;CFNumber 0xba0e80 [0x3bf18ad0]&gt;{value = +16, type = kCFNumberSInt32Type} 5 : &lt;CFString 0x3bf973b4 [0x3bf18ad0]&gt;{contents = "FillExtendedPixelsCallback"} = &lt;CFData 0xba16d0 [0x3bf18ad0]&gt;{length = 12, capacity = 12, bytes = 0x00000000817bbb3100000000} 6 : &lt;CFString 0x3bf97354 [0x3bf18ad0]&gt;{contents = "VerticalSubsampling"} = &lt;CFNumber 0xc0f720 [0x3bf18ad0]&gt;{value = +2, type = kCFNumberSInt32Type} } )} 8 : &lt;CFString 0x3bf97294 [0x3bf18ad0]&gt;{contents = "PixelFormat"} = &lt;CFNumber 0xb7acf0 [0x3bf18ad0]&gt;{value = +875704438, type = kCFNumberSInt32Type} 12 : &lt;CFString 0x3bf97174 [0x3bf18ad0]&gt;{contents = "IOSurfaceOpenGLESTextureCompatibility"} = &lt;CFBoolean 0x3bf18e80 [0x3bf18ad0]&gt;{value = true} } } propagatedAttachments=&lt;CFBasicHash 0x12638c10 [0x3bf18ad0]&gt;{type = mutable dict, count = 4, entries =&gt; 1 : &lt;CFString 0x3bf70edc [0x3bf18ad0]&gt;{contents = "MetadataDictionary"} = &lt;CFBasicHash 0x12638650 [0x3bf18ad0]&gt;{type = mutable dict, count = 7, entries =&gt; 0 : &lt;CFString 0x3bf70f4c [0x3bf18ad0]&gt;{contents = "SNR"} = &lt;CFNumber 0x126367e0 [0x3bf18ad0]&gt;{value = +34.16280207318401096472, type = kCFNumberFloat64Type} 2 : &lt;CFString 0x3bf70ddc [0x3bf18ad0]&gt;{contents = "sensorDGain"} = &lt;CFNumber 0x12633120 [0x3bf18ad0]&gt;{value = +256, type = kCFNumberSInt32Type} 3 : &lt;CFString 0x3bf70f3c [0x3bf18ad0]&gt;{contents = "SensorID"} = &lt;CFNumber 0x126360c0 [0x3bf18ad0]&gt;{value = +38754, type = kCFNumberSInt32Type} 6 : &lt;CFString 0x3bf7054c [0x3bf18ad0]&gt;{contents = "ExposureTime"} = &lt;CFNumber 0x12636440 [0x3bf18ad0]&gt;{value = +0.02999900000000000136, type = kCFNumberFloat64Type} 7 : &lt;CFString 0x3bf70dec [0x3bf18ad0]&gt;{contents = "ispDGain"} = &lt;CFNumber 0x12630f20 [0x3bf18ad0]&gt;{value = +260, type = kCFNumberSInt32Type} 11 : &lt;CFString 0x3bf7017c [0x3bf18ad0]&gt;{contents = "AGC"} = &lt;CFNumber 0xd580830 [0x3bf18ad0]&gt;{value = +1803, type = kCFNumberSInt32Type} 12 : &lt;CFString 0x3bf7114c [0x3bf18ad0]&gt;{contents = "AEAverage"} = &lt;CFNumber 0x12635ae0 [0x3bf18ad0]&gt;{value = +176, type = kCFNumberSInt32Type} } 3 : &lt;CFString 0x3bf96f54 [0x3bf18ad0]&gt;{contents = "CVImageBufferYCbCrMatrix"} = &lt;CFString 0x126383d0 [0x3bf18ad0]&gt;{contents = "ITU_R_601_4"} 5 : &lt;CFString 0x3bf96f94 [0x3bf18ad0]&gt;{contents = "CVImageBufferColorPrimaries"} = &lt;CFString 0x12632d90 [0x3bf18ad0]&gt;{contents = "ITU_R_709_2"} 6 : &lt;CFString 0x3bf96fd4 [0x3bf18ad0]&gt;{contents = "CVImageBufferTransferFunction"} = &lt;CFString 0x126372c0 [0x3bf18ad0]&gt;{contents = "ITU_R_709_2"} } nonPropagatedAttachments=&lt;CFBasicHash 0x12638be0 [0x3bf18ad0]&gt;{type = mutable dict, count = 0, entries =&gt; } &gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload