The AVFoundation indev uses kCVPixelFormatType_OneComponent8, but that only exists on 10.8 and up. This puts it behind a #if.
Hanspeter -- Disclaimer: By sending an email to ANY of my addresses you are agreeing that: 1. I am by definition, "the intended recipient" 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included with your message.
From c98dcb965030f959717b5d9643b4ed5ace7be229 Mon Sep 17 00:00:00 2001 From: Hanspeter Niederstrasser <niederstras...@gmail.com> Date: Sun, 13 Jul 2014 21:49:24 -0500 Subject: [PATCH] kCVPixelFormatType_OneComponent8 only exists from 10.8 onward --- libavdevice/avfoundation.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index df322c6..74d7811 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -70,7 +70,9 @@ static const struct AVFPixelFormatSpec avf_pixel_formats[] = { { AV_PIX_FMT_YUV420P, kCVPixelFormatType_420YpCbCr8Planar }, { AV_PIX_FMT_NV12, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange }, { AV_PIX_FMT_YUYV422, kCVPixelFormatType_422YpCbCr8_yuvs }, +#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 { AV_PIX_FMT_GRAY8, kCVPixelFormatType_OneComponent8 }, +#endif { AV_PIX_FMT_NONE, 0 } }; -- 1.7.12.4 (Apple Git-37)
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel