feat: Extend CVPixelBufferRef and export the new functions from CVPixelBuffer
Adds the following functions to CVPixelBufferRef
- get_width
- get_height
- get_bytes_per_row_of_plane
and exports them from CVPixelBuffer.
I hadn't seen #27 before making this. I will use it, and close this if it isn't needed anymore.
While trying to use the new branch I noticed that a few things that I need are not there yet (correct me if I have missed something), in particular:
SCStreamConfigurationis missing setting a few variables.CMSampleBufferis missing a function to access the pixel buffer.get_bytes_per_row_of_planeis still missing fromCVPixelBuffer.
Would it be OK if I create patches for use_core_foundation_types with these additions?
Regardless, I will still close this as the old implementation will be deprecated and until then I can use my own fork.
working on getting 0.3.0 out.
The CoreVideo stuff used: https://github.com/doom-fish/core-frameworks