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

CVMetalTextureCacheCreateTextureFromImage #68

@diegomeire

Description

@diegomeire

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions