Closed GoogleCodeExporter closed 9 years ago
this problem can be fixed by add this code
bufferPtr += 16 * sizeof(UInt8);
to the callback function
- (void)captureOutput in InCallViewController.m, as below
=================
- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection {
CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer);
if(CVPixelBufferLockBaseAddress(pixelBuffer, 0) == kCVReturnSuccess){
UInt8 *bufferPtr = (UInt8 *)CVPixelBufferGetBaseAddress(pixelBuffer);
bufferPtr += 16 * sizeof(UInt8);
size_t buffeSize = CVPixelBufferGetDataSize(pixelBuffer);
if(self->producerFirstFrame){ // Hope will never change
........
====================
Original comment by android...@gmail.com
on 21 Mar 2011 at 2:59
Thanks for the patch. Sorry for not being able to give you support because I am
abroad and don't have a MAC to fix issues.
Original comment by boss...@yahoo.fr
on 23 Mar 2011 at 8:45
I changed the code follow by android...@gmail.com comments. The video display
properly.
But the video quality downgrade(fade-to-black, mosaic.
Original comment by libin...@gmail.com
on 28 Mar 2011 at 7:10
That is also because the iPhone doesn't have the power to send high quality
video to the server and the front camera is of lesser quality then the back
camera.
Original comment by nightfox...@gmail.com
on 30 Mar 2011 at 3:59
Fixed in iDoubs v2.x.
For more information on how to build iDoubs v2.x:
http://code.google.com/p/idoubs/wiki/Building_iDoubs_v2_x
Original comment by boss...@yahoo.fr
on 4 Jun 2011 at 6:19
I have fixed the application on iphone ,but when I make a video call with my
friend,the pictures are very poor,I think this is the problem of the resolution
ratio,encoding and decoding,right?So,what should I do if I want the picture
to be clear ? Can you help me ?
Original comment by berylyan...@sina.cn
on 2 Dec 2011 at 7:53
Original issue reported on code.google.com by
android...@gmail.com
on 17 Mar 2011 at 3:09Attachments: