"CRV§ADER//KY" <[email protected]> writes:

> src = Image.open("test.jpg")
> src.load()
> src = src.convert('RGBA')
>
> src_buf = cl.Image(self.ctx,
>     flags=mf.READ_ONLY | mf.USE_HOST_PTR,
>     format=fmt,
>     shape=src.size,
>     hostbuf=src
> )
>
> TypeError: expected an object with a writable buffer interface

Can you try the latest git version? I believe this was fixed there a
while ago.

Andreas

Attachment: pgp7s1pFJOthc.pgp
Description: PGP signature

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to