From 90340c5c8a209e603ced9a98649f26a97664e190 Mon Sep 17 00:00:00 2001 From: Theelgirl <43764914+Theelgirl@users.noreply.github.com> Date: Sun, 25 Oct 2020 18:04:04 +0000 Subject: [PATCH] Type more stuff for a 2% speedup --- fvid/fvid_cython.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fvid/fvid_cython.pyx b/fvid/fvid_cython.pyx index ce7fb2c..97cffa9 100644 --- a/fvid/fvid_cython.pyx +++ b/fvid/fvid_cython.pyx @@ -3,10 +3,10 @@ # cython: cdivision=True # 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 str pixel_bin_rep - cdef (int, int, int) pixel#, white_diff, black_diff + cdef str pixel_bin_rep, bits + cdef (int, int, int) pixel width, height = image.size