-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can support for the memoryview
type be added as input to _decode (decode.c)?
#6933
Comments
If I understand correctly, you're asking for a modification to the C API? This has nothing to do with the Python interface of Pillow?
|
I'm asking for Lines 806 to 832 in 7e3bed6
It should not be very hard, I can make a PR for this if you want. |
Feel free to do so. |
memoryview
type be added as input to _decode (decode.c) ?memoryview
type be added as input to _decode (decode.c)?
Thanks for this improvement! Seems to apply to |
Yes, #6974 was released in https://github.com/python-pillow/Pillow/releases/tag/9.5.0. |
Data created with help of
PyMemoryView_FromMemory
function.Overhead for big images when converting
memoryview
to bytes is noticeable.Code located here:
Pillow/src/decode.c
Line 124 in 7e3bed6
Is this possible to easy add support for such feature or not?
The text was updated successfully, but these errors were encountered: