Esempio n. 1
0
 def _marshal_write(source_custom, pointer, length, handle):
     buf = ffi.buffer(pointer, length)
     callback = ffi.from_handle(handle)
     return callback(buf)
Esempio n. 2
0
 def _marshal_image_progress(vi, pointer, handle):
     gobject_lib.g_object_ref(vi)
     image = pyvips.Image(vi)
     callback = ffi.from_handle(handle)
     progress = ffi.cast('VipsProgress*', pointer)
     callback(image, progress)
Esempio n. 3
0
 def _marshal_seek(source_custom, offset, whence, handle):
     callback = ffi.from_handle(handle)
     return callback(offset, whence)
Esempio n. 4
0
 def _marshal_finish(source_custom, handle):
     callback = ffi.from_handle(handle)
     callback()