cvapi: add a few extra bits of wrapping
This commit is contained in:
parent
b4654f537f
commit
abba3a4126
@ -46,6 +46,7 @@ gst_cv_api_obtain (GError ** error)
|
|||||||
SYM_SPEC (CVBufferRetain),
|
SYM_SPEC (CVBufferRetain),
|
||||||
|
|
||||||
SYM_SPEC (CVPixelBufferCreateWithBytes),
|
SYM_SPEC (CVPixelBufferCreateWithBytes),
|
||||||
|
SYM_SPEC (CVPixelBufferCreateWithPlanarBytes),
|
||||||
SYM_SPEC (CVPixelBufferGetBaseAddress),
|
SYM_SPEC (CVPixelBufferGetBaseAddress),
|
||||||
SYM_SPEC (CVPixelBufferGetBaseAddressOfPlane),
|
SYM_SPEC (CVPixelBufferGetBaseAddressOfPlane),
|
||||||
SYM_SPEC (CVPixelBufferGetBytesPerRow),
|
SYM_SPEC (CVPixelBufferGetBytesPerRow),
|
||||||
@ -64,6 +65,7 @@ gst_cv_api_obtain (GError ** error)
|
|||||||
SYM_SPEC (kCVPixelBufferWidthKey),
|
SYM_SPEC (kCVPixelBufferWidthKey),
|
||||||
SYM_SPEC (kCVPixelBufferHeightKey),
|
SYM_SPEC (kCVPixelBufferHeightKey),
|
||||||
SYM_SPEC (kCVPixelBufferBytesPerRowAlignmentKey),
|
SYM_SPEC (kCVPixelBufferBytesPerRowAlignmentKey),
|
||||||
|
SYM_SPEC (kCVPixelBufferPlaneAlignmentKey),
|
||||||
|
|
||||||
{NULL, 0},
|
{NULL, 0},
|
||||||
};
|
};
|
||||||
|
@ -47,6 +47,7 @@ enum _CVReturn
|
|||||||
|
|
||||||
enum _CVPixelFormatType
|
enum _CVPixelFormatType
|
||||||
{
|
{
|
||||||
|
kCVPixelFormatType_420YpCbCr8Planar = 'y420',
|
||||||
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v',
|
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v',
|
||||||
kCVPixelFormatType_422YpCbCr8Deprecated = 'yuvs',
|
kCVPixelFormatType_422YpCbCr8Deprecated = 'yuvs',
|
||||||
kCVPixelFormatType_422YpCbCr8 = '2vuy'
|
kCVPixelFormatType_422YpCbCr8 = '2vuy'
|
||||||
@ -70,6 +71,15 @@ struct _GstCVApi
|
|||||||
CVPixelBufferReleaseBytesCallback releaseCallback,
|
CVPixelBufferReleaseBytesCallback releaseCallback,
|
||||||
void * releaseRefCon, CFDictionaryRef pixelBufferAttributes,
|
void * releaseRefCon, CFDictionaryRef pixelBufferAttributes,
|
||||||
CVPixelBufferRef * pixelBufferOut);
|
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)
|
void * (* CVPixelBufferGetBaseAddress)
|
||||||
(CVPixelBufferRef pixelBuffer);
|
(CVPixelBufferRef pixelBuffer);
|
||||||
void * (* CVPixelBufferGetBaseAddressOfPlane)
|
void * (* CVPixelBufferGetBaseAddressOfPlane)
|
||||||
@ -97,6 +107,7 @@ struct _GstCVApi
|
|||||||
CFStringRef * kCVPixelBufferWidthKey;
|
CFStringRef * kCVPixelBufferWidthKey;
|
||||||
CFStringRef * kCVPixelBufferHeightKey;
|
CFStringRef * kCVPixelBufferHeightKey;
|
||||||
CFStringRef * kCVPixelBufferBytesPerRowAlignmentKey;
|
CFStringRef * kCVPixelBufferBytesPerRowAlignmentKey;
|
||||||
|
CFStringRef * kCVPixelBufferPlaneAlignmentKey;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstCVApiClass
|
struct _GstCVApiClass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user