Skip to content

Instantly share code, notes, and snippets.

@dhotson
Created February 13, 2013 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhotson/4942839 to your computer and use it in GitHub Desktop.
Save dhotson/4942839 to your computer and use it in GitHub Desktop.
# ccv_dense_matrix_t* image = 0
image = Array(Ptr{Void},0)
# int ccv_read_impl(const void* in, ccv_dense_matrix_t** x, int type, int rows, int cols, int scanline);
r = ccall(
(:ccv_read_impl, "libccv"),
Int32,
(Ptr{Uint8}, Ptr{Ptr{Void}}, Int, Int, Int, Int),
"/home/vagrant/dev/julia/test.png", image, 0x100 | 0x020, 0, 0, 0)
println(image[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment