screencapturekit-rs icon indicating copy to clipboard operation
screencapturekit-rs copied to clipboard

feat: Extend CVPixelBufferRef and export the new functions from CVPixelBuffer

Open iparaskev opened this issue 1 year ago • 2 comments

Adds the following functions to CVPixelBufferRef

  • get_width
  • get_height
  • get_bytes_per_row_of_plane

and exports them from CVPixelBuffer.

iparaskev avatar Oct 08 '24 21:10 iparaskev

I hadn't seen #27 before making this. I will use it, and close this if it isn't needed anymore.

iparaskev avatar Oct 09 '24 07:10 iparaskev

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:

  • SCStreamConfiguration is missing setting a few variables.
  • CMSampleBuffer is missing a function to access the pixel buffer.
  • get_bytes_per_row_of_plane is still missing from CVPixelBuffer.

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.

iparaskev avatar Oct 10 '24 07:10 iparaskev

working on getting 0.3.0 out.

The CoreVideo stuff used: https://github.com/doom-fish/core-frameworks

1313 avatar Oct 22 '24 08:10 1313