summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <oravnas@cisco.com>2010-11-10 20:51:27 +0100
committerOle André Vadla Ravnås <oravnas@cisco.com>2010-11-11 00:22:31 +0100
commit2382f10b98dc4a0a18dda154edfb26db7bdca97d (patch)
treec4caed85020810cc726b322904433e3b4a68b097 /sys
parent420943972c78279fdb77ccc0d803a791d70a6e99 (diff)
downloadgstreamer-plugins-bad-2382f10b98dc4a0a18dda154edfb26db7bdca97d.tar.gz
cvapi: add wrapper for IO surface access
To be used in a future video sink for zero-copy rendering.
Diffstat (limited to 'sys')
-rw-r--r--sys/applemedia/cvapi.c1
-rw-r--r--sys/applemedia/cvapi.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/applemedia/cvapi.c b/sys/applemedia/cvapi.c
index 518548eea..73186f8f5 100644
--- a/sys/applemedia/cvapi.c
+++ b/sys/applemedia/cvapi.c
@@ -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),
diff --git a/sys/applemedia/cvapi.h b/sys/applemedia/cvapi.h
index 4a2cfc8d7..f1c0a12c5 100644
--- a/sys/applemedia/cvapi.h
+++ b/sys/applemedia/cvapi.h
@@ -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);