Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAW Image access at Objective-c level #7

Open
timeinpixels opened this issue May 17, 2023 · 4 comments
Open

RAW Image access at Objective-c level #7

timeinpixels opened this issue May 17, 2023 · 4 comments

Comments

@timeinpixels
Copy link

Hello,

What would be the best way to access the image data at Objective-c level? Our codebase is in c++ and obj-c and I was wondering how should I go about implementing it properly.

Any hints would be greatly appreciated.

@michal-tomlein
Copy link
Contributor

Hi,

The SDK doesn’t currently offer this kind of access. Can you describe your use case in more detail and explain why you need the image data?

Perhaps your use case is already covered or will be covered by future additions to the SDK on our roadmap.

@timeinpixels
Copy link
Author

We would like to create an image analysis tool (port our existing desktop app). It heavily uses metal shaders for rendering and computation so ideally we would like to get each frame as Metal texture (or GPU buffer, IOSurface, etc).

@michal-tomlein
Copy link
Contributor

Currently, the closest you can get to the image is by adding a CIFilter using the filters property of VideoViewController or VideoView. From there, you may be able to take the inputImage your filter receives and render it into a texture or buffer.

We’ll think about your use case and we’ll get back to you.

@timeinpixels
Copy link
Author

Thank you. I will try that. Need to figure out the proper way of bridging swift to Objective-C, but should be possible.

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

No branches or pull requests

2 participants