Mac OS X 10.10 Facetime Camera sometimes reports I420 format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26 Nov 2014 08:24:07, Thomas Weber wrote:
> Indeed the Facetime camera had no format info. I tracked down the problem and found that Mac Os returns the I420 format under certain circumstances.
> A simple fix is to add I420 to the list of formats in qt_dev.m:
> 
> static qt_fmt_info qt_fmts[] =
> {
>     {PJMEDIA_FORMAT_YUY2, kCVPixelFormatType_422YpCbCr8_yuvs},
>     {PJMEDIA_FORMAT_UYVY, kCVPixelFormatType_422YpCbCr8},
>     {PJMEDIA_FORMAT_I420, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange}
> };
> 
> I run, however, a few more tests the other day and found a way to reproduce the problem:
> [...]


The attached diagnostics diff helped me once to debug practically the
same issue -- in order to figure out supported pixelformat of an unknown
camera and then how to extend the above table.

    Eeri Kask

-------------- next part --------------
--- ./pjmedia/src/pjmedia-videodev/qt_dev.m.orig	2014-01-29 11:40:40.000000000 +0100
+++ ./pjmedia/src/pjmedia-videodev/qt_dev.m	2014-06-16 20:47:05.000000000 +0200
@@ -276,6 +281,8 @@
 			break;
 		    }
 		}
+		if (l == PJ_ARRAY_SIZE(qt_fmts))
+		    PJ_LOG(4, (THIS_FILE, " skipping %s kCVPixelFormatType 0x%08x", qdi->info.name, [desc formatType]));
 	    }
             
 	    PJ_LOG(4, (THIS_FILE, " dev_id %d: %s", i, qdi->info.name));    


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux