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

[FEATURE] Expose API for registering new codecs #2992

Open
1 task done
TomEdwardsEnscape opened this issue Sep 9, 2024 · 0 comments
Open
1 task done

[FEATURE] Expose API for registering new codecs #2992

TomEdwardsEnscape opened this issue Sep 9, 2024 · 0 comments

Comments

@TomEdwardsEnscape
Copy link

Is your feature request related to a problem?

I want to add new image codecs for image formats which are not supported by the built-in Skia codecs. This is not currently possible, even though Skia itself supports it. There is no C# API and the C++ API has been excluded from the native library.

Describe the solution you would like

The native API, SkCodec::Register, requires a pointer to a C++ object.

Since this is not easy to wrap in C#, it would be acceptable just to expose the native API in your build of the native Skia library. We can then write and register a codec ourselves in a small native library.

Describe alternatives you have considered

There are no alternatives.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant