-
Notifications
You must be signed in to change notification settings - Fork 10
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
use luaffifb to make it work in places other than luajit #9
Comments
So should Lua 5.3.6 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> vips = require "vips"
> vips.Image
table: 0x558ea766a7a0
> im = vips.Image.new_from_file("dog.png")
Speicherzugriffsfehler (Speicherabzug geschrieben) |
Hi @rolandlo, I think it would need some dev work to make this happen. I've not had time, but if you do, a PR would be great. |
Seems I managed to get it working on Lua 5.3.6. At least the example from the Readme works when I rebase my patches onto lua-vips version 1.1.9 (commit 4115e8e). The images created ( So far I haven't had time to test further. Without rebasing on version 1.1.9 I get a segfault when executing image = image = image + {1,2,3} from the example. Let me point out that I don't have much experience with Lua and the Lua C API and have not worked with The code changes are motivated by the following observations:
|
That's very cool! Sorry, I have no free time right now :( After July I should have some time to look at this again. |
A little update: I have used my patched versions of |
One more update:
local ptype = ffi.typeof("typedef unsigned short int[$][?]", im:bands()) results in the error message:
In |
Fixed by #60. |
See https://github.com/facebook/luaffifb
The text was updated successfully, but these errors were encountered: