cvapi: add wrapper for IO surface access

To be used in a future video sink for zero-copy rendering.
This commit is contained in:
Ole André Vadla Ravnås 2010-11-10 20:51:27 +01:00
parent 420943972c
commit 2382f10b98
2 changed files with 3 additions and 0 deletions

View file

@ -53,6 +53,7 @@ gst_cv_api_obtain (GError ** error)
SYM_SPEC (CVPixelBufferGetBytesPerRowOfPlane), SYM_SPEC (CVPixelBufferGetBytesPerRowOfPlane),
SYM_SPEC (CVPixelBufferGetHeight), SYM_SPEC (CVPixelBufferGetHeight),
SYM_SPEC (CVPixelBufferGetHeightOfPlane), SYM_SPEC (CVPixelBufferGetHeightOfPlane),
SYM_SPEC (CVPixelBufferGetIOSurface),
SYM_SPEC (CVPixelBufferGetPlaneCount), SYM_SPEC (CVPixelBufferGetPlaneCount),
SYM_SPEC (CVPixelBufferGetTypeID), SYM_SPEC (CVPixelBufferGetTypeID),
SYM_SPEC (CVPixelBufferIsPlanar), SYM_SPEC (CVPixelBufferIsPlanar),

View file

@ -91,6 +91,8 @@ struct _GstCVApi
size_t (* CVPixelBufferGetHeight) (CVPixelBufferRef pixelBuffer); size_t (* CVPixelBufferGetHeight) (CVPixelBufferRef pixelBuffer);
size_t (* CVPixelBufferGetHeightOfPlane) size_t (* CVPixelBufferGetHeightOfPlane)
(CVPixelBufferRef pixelBuffer, size_t planeIndex); (CVPixelBufferRef pixelBuffer, size_t planeIndex);
void * (* CVPixelBufferGetIOSurface)
(CVPixelBufferRef pixelBuffer);
size_t (* CVPixelBufferGetPlaneCount) size_t (* CVPixelBufferGetPlaneCount)
(CVPixelBufferRef pixelBuffer); (CVPixelBufferRef pixelBuffer);
CFTypeID (* CVPixelBufferGetTypeID) (void); CFTypeID (* CVPixelBufferGetTypeID) (void);