cvapi: add wrapper for IO surface access
authorOle André Vadla Ravnås <oravnas@cisco.com>
Wed, 10 Nov 2010 19:51:27 +0000 (20:51 +0100)
committerOle André Vadla Ravnås <oravnas@cisco.com>
Wed, 10 Nov 2010 23:22:31 +0000 (00:22 +0100)
To be used in a future video sink for zero-copy rendering.

sys/applemedia/cvapi.c
sys/applemedia/cvapi.h

index 518548e..73186f8 100644 (file)
@@ -53,6 +53,7 @@ gst_cv_api_obtain (GError ** error)
     SYM_SPEC (CVPixelBufferGetBytesPerRowOfPlane),
     SYM_SPEC (CVPixelBufferGetHeight),
     SYM_SPEC (CVPixelBufferGetHeightOfPlane),
+    SYM_SPEC (CVPixelBufferGetIOSurface),
     SYM_SPEC (CVPixelBufferGetPlaneCount),
     SYM_SPEC (CVPixelBufferGetTypeID),
     SYM_SPEC (CVPixelBufferIsPlanar),
index 4a2cfc8..f1c0a12 100644 (file)
@@ -91,6 +91,8 @@ struct _GstCVApi
   size_t (* CVPixelBufferGetHeight) (CVPixelBufferRef pixelBuffer);
   size_t (* CVPixelBufferGetHeightOfPlane)
       (CVPixelBufferRef pixelBuffer, size_t planeIndex);
+  void * (* CVPixelBufferGetIOSurface)
+      (CVPixelBufferRef pixelBuffer);
   size_t (* CVPixelBufferGetPlaneCount)
       (CVPixelBufferRef pixelBuffer);
   CFTypeID (* CVPixelBufferGetTypeID) (void);