Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

CVMetalTextureCacheCreateTextureFromImage #68

Open
diegomeire opened this issue Nov 26, 2018 · 4 comments
Open

CVMetalTextureCacheCreateTextureFromImage #68

diegomeire opened this issue Nov 26, 2018 · 4 comments

Comments

@diegomeire
Copy link

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

@judax
Copy link
Contributor

judax commented Nov 26, 2018

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!

@diegomeire
Copy link
Author

Hi judax,

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

Thanks,

Diego

@judax
Copy link
Contributor

judax commented Nov 27, 2018

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.

@philipturner
Copy link

Is this project dying ?

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants