mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 03:45:39 +00:00
cvapi: add a few extra bits of wrapping
This commit is contained in:
parent
b4654f537f
commit
abba3a4126
2 changed files with 13 additions and 0 deletions
|
@ -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},
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue