mirror of https://github.com/AlfredoSequeida/fvid
Type more stuff for a 2% speedup
This commit is contained in:
parent
87ccfb535f
commit
90340c5c8a
|
@ -3,10 +3,10 @@
|
||||||
# cython: cdivision=True
|
# cython: cdivision=True
|
||||||
# cython: wraparound=False
|
# cython: wraparound=False
|
||||||
|
|
||||||
cpdef cy_get_bits_from_image(image):
|
cpdef str cy_get_bits_from_image(image):
|
||||||
cdef int width, height, x, y
|
cdef int width, height, x, y
|
||||||
cdef str pixel_bin_rep
|
cdef str pixel_bin_rep, bits
|
||||||
cdef (int, int, int) pixel#, white_diff, black_diff
|
cdef (int, int, int) pixel
|
||||||
|
|
||||||
width, height = image.size
|
width, height = image.size
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue