WebARonARKit icon indicating copy to clipboard operation
WebARonARKit copied to clipboard

CVMetalTextureCacheCreateTextureFromImage

Open diegomeire opened this issue 7 years ago • 4 comments

HI all,

Recently I pulled the code from the repository but the camera content was always showing as black. After some attempts, I found out that the method CVMetalTextureCacheCreateTextureFromImage was returning -6661 because of the wrong datatype for the texture cache.

I solved the issue by creating a purely Metal texture cache and changing the call to:

CVReturn status = CVMetalTextureCacheCreateTextureFromImage (NULL, _capturedMetalImageTextureCache, pixelBuffer, NULL, pixelFormat, width, height, planeIndex, &texture);

I would like to contribute with my code because this project is really amazing. How could I do that ?

Thanks in advance,

Diego

diegomeire avatar Nov 26 '18 15:11 diegomeire

Hello and thank you for your feedback.

We are not currently actively supporting this project as we are working on a replacement but please, feel free to send out a pull request and I will try to review it and if everything looks good even merge it.

Thank you very much for your work!

judax avatar Nov 26 '18 17:11 judax

Hi judax,

Thanks for the response. Just created a new pull request with my contribution. Hope it helps. Is this project dying ?

Thanks,

Diego

diegomeire avatar Nov 26 '18 21:11 diegomeire

Thanks for the PR. I will comment on it.

This project is not dying but it was built as a prototype and it requires a significant update. That is what we are working on.

judax avatar Nov 27 '18 00:11 judax

Is this project dying ?

Well, it's dead now. Google has a habit of killing projects, for example Swift for TensorFlow.

philipturner avatar May 18 '22 19:05 philipturner