diff options
Diffstat (limited to 'chromium/media/video/capture/mac/coremedia_glue.h')
-rw-r--r-- | chromium/media/video/capture/mac/coremedia_glue.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/media/video/capture/mac/coremedia_glue.h b/chromium/media/video/capture/mac/coremedia_glue.h index a1f21eb1480..c69f279ed33 100644 --- a/chromium/media/video/capture/mac/coremedia_glue.h +++ b/chromium/media/video/capture/mac/coremedia_glue.h @@ -29,6 +29,20 @@ class MEDIA_EXPORT CoreMediaGlue { CMTimeEpoch epoch; } CMTime; + // Originally from CMFormatDescription.h. + typedef const struct opaqueCMFormatDescription* CMFormatDescriptionRef; + typedef CMFormatDescriptionRef CMVideoFormatDescriptionRef; + typedef struct { + int32_t width; + int32_t height; + } CMVideoDimensions; + enum { + kCMPixelFormat_422YpCbCr8_yuvs = 'yuvs', + }; + enum { + kCMVideoCodecType_JPEG_OpenDML = 'dmb1', + }; + // Originally from CMSampleBuffer.h. typedef struct OpaqueCMSampleBuffer* CMSampleBufferRef; @@ -39,6 +53,12 @@ class MEDIA_EXPORT CoreMediaGlue { static CVImageBufferRef CMSampleBufferGetImageBuffer( CMSampleBufferRef buffer); + // Originally from CMFormatDescription.h. + static FourCharCode CMFormatDescriptionGetMediaSubType( + CMFormatDescriptionRef desc); + static CMVideoDimensions CMVideoFormatDescriptionGetDimensions( + CMVideoFormatDescriptionRef videoDesc); + private: DISALLOW_IMPLICIT_CONSTRUCTORS(CoreMediaGlue); }; |