This commit is contained in:
kris 2021-01-15 22:20:28 +00:00
parent 31b565f22a
commit f5553e00b8
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import time
from PIL import Image from PIL import Image
import numpy as np import numpy as np
import dither_apply import dither as dither_pyx
import dither_pattern import dither_pattern
import image as image_py import image as image_py
import palette as palette_py import palette as palette_py
@ -39,7 +39,7 @@ def main():
dither = dither_pattern.JarvisDither() dither = dither_pattern.JarvisDither()
start = time.time() start = time.time()
output_4bit, output_rgb = dither_apply.dither_image( output_4bit, output_rgb = dither_pyx.dither_image(
screen, image, dither, lookahead=args.lookahead) screen, image, dither, lookahead=args.lookahead)
print(time.time() - start) print(time.time() - start)
screen.pack(output_4bit) screen.pack(output_4bit)

View File

@ -5,5 +5,5 @@ import Cython.Compiler.Options
Cython.Compiler.Options.annotate = True Cython.Compiler.Options.annotate = True
setup( setup(
ext_modules=cythonize(["dither_apply.pyx"], annotate=True) ext_modules=cythonize(["dither.pyx"], annotate=True)
) )