mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
cvapi: add wrapper for IO surface access
To be used in a future video sink for zero-copy rendering.
This commit is contained in:
parent
420943972c
commit
2382f10b98
2 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue