Browse Source

avdevice/avfoundation: kCVPixelFormatType_OneComponent8 only exists from 10.8 onward

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Hanspeter Niederstrasser Michael Niedermayer 11 years ago
parent
commit
04980dbee8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavdevice/avfoundation.m

+ 2
- 0
libavdevice/avfoundation.m View File

@@ -70,7 +70,9 @@ static const struct AVFPixelFormatSpec avf_pixel_formats[] = {
{ AV_PIX_FMT_YUV420P, kCVPixelFormatType_420YpCbCr8Planar }, { AV_PIX_FMT_YUV420P, kCVPixelFormatType_420YpCbCr8Planar },
{ AV_PIX_FMT_NV12, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange }, { AV_PIX_FMT_NV12, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange },
{ AV_PIX_FMT_YUYV422, kCVPixelFormatType_422YpCbCr8_yuvs }, { AV_PIX_FMT_YUYV422, kCVPixelFormatType_422YpCbCr8_yuvs },
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
{ AV_PIX_FMT_GRAY8, kCVPixelFormatType_OneComponent8 }, { AV_PIX_FMT_GRAY8, kCVPixelFormatType_OneComponent8 },
#endif
{ AV_PIX_FMT_NONE, 0 } { AV_PIX_FMT_NONE, 0 }
}; };




Loading…
Cancel
Save