From: Ole André Vadla Ravnås Date: Mon, 8 Nov 2010 17:56:52 +0000 (+0100) Subject: cvapi: add a few extra bits of wrapping X-Git-Tag: 1.19.3~507^2~16199 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abba3a4126ceca2c1c54643aed77ecb11aef96f5;p=platform%2Fupstream%2Fgstreamer.git cvapi: add a few extra bits of wrapping --- diff --git a/sys/applemedia/cvapi.c b/sys/applemedia/cvapi.c index 96f83f8533..518548eea3 100644 --- a/sys/applemedia/cvapi.c +++ b/sys/applemedia/cvapi.c @@ -46,6 +46,7 @@ gst_cv_api_obtain (GError ** error) SYM_SPEC (CVBufferRetain), SYM_SPEC (CVPixelBufferCreateWithBytes), + SYM_SPEC (CVPixelBufferCreateWithPlanarBytes), SYM_SPEC (CVPixelBufferGetBaseAddress), SYM_SPEC (CVPixelBufferGetBaseAddressOfPlane), SYM_SPEC (CVPixelBufferGetBytesPerRow), @@ -64,6 +65,7 @@ gst_cv_api_obtain (GError ** error) SYM_SPEC (kCVPixelBufferWidthKey), SYM_SPEC (kCVPixelBufferHeightKey), SYM_SPEC (kCVPixelBufferBytesPerRowAlignmentKey), + SYM_SPEC (kCVPixelBufferPlaneAlignmentKey), {NULL, 0}, }; diff --git a/sys/applemedia/cvapi.h b/sys/applemedia/cvapi.h index 444ded06fb..4a2cfc8d74 100644 --- a/sys/applemedia/cvapi.h +++ b/sys/applemedia/cvapi.h @@ -47,6 +47,7 @@ enum _CVReturn enum _CVPixelFormatType { + kCVPixelFormatType_420YpCbCr8Planar = 'y420', kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v', kCVPixelFormatType_422YpCbCr8Deprecated = 'yuvs', kCVPixelFormatType_422YpCbCr8 = '2vuy' @@ -70,6 +71,15 @@ struct _GstCVApi CVPixelBufferReleaseBytesCallback releaseCallback, void * releaseRefCon, CFDictionaryRef pixelBufferAttributes, CVPixelBufferRef * pixelBufferOut); + CVReturn (* CVPixelBufferCreateWithPlanarBytes) + (CFAllocatorRef allocator, size_t width, size_t height, + OSType pixelFormatType, void * dataPtr, size_t dataSize, + size_t numberOfPlanes, void *planeBaseAddress[], + size_t planeWidth[], size_t planeHeight[], + size_t planeBytesPerRow[], + CVPixelBufferReleaseBytesCallback releaseCallback, + void * releaseRefCon, CFDictionaryRef pixelBufferAttributes, + CVPixelBufferRef * pixelBufferOut); void * (* CVPixelBufferGetBaseAddress) (CVPixelBufferRef pixelBuffer); void * (* CVPixelBufferGetBaseAddressOfPlane) @@ -97,6 +107,7 @@ struct _GstCVApi CFStringRef * kCVPixelBufferWidthKey; CFStringRef * kCVPixelBufferHeightKey; CFStringRef * kCVPixelBufferBytesPerRowAlignmentKey; + CFStringRef * kCVPixelBufferPlaneAlignmentKey; }; struct _GstCVApiClass