Skip to content

Commit

Permalink
feat: remove Camlimages and migrate to raw C io (dmtrKovalenko#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
eWert-Online authored Jul 31, 2021
1 parent 6268409 commit 2faf582
Show file tree
Hide file tree
Showing 56 changed files with 1,353 additions and 392 deletions.
11 changes: 7 additions & 4 deletions bin/Main.re
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ let getIOModule = (filename, ~antialiasing) =>
|> (
fun
| ".png" when antialiasing => (
(module ODiffIO.PureC_IO_Bigarray.IO): (module ImageIO)
(module ODiffIO.Png.BigarrayIO): (module ImageIO)
)
| ".png" => ((module ODiffIO.PureC_IO.IO): (module ImageIO))
| unsupportedFormat =>
failwith("This format is not supported: " ++ unsupportedFormat)
| ".png" => ((module ODiffIO.Png.IO): (module ImageIO))
| ".jpg"
| ".jpeg" => ((module ODiffIO.Jpg.IO): (module ImageIO))
| ".bmp" => ((module ODiffIO.Bmp.IO): (module ImageIO))
| ".tiff" => ((module ODiffIO.Tiff.IO): (module ImageIO))
| f => failwith("This format is not supported: " ++ f)
);

type diffResult('output) = {
Expand Down
1 change: 0 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
dune
conf-libpng
odiff-core
(camlimages (= 5.4.0))
(reason (and (>= 3.6.0) (< 4.0.0)))
(ocaml (and (>= 4.10.0) (< 4.11.0)))
)
Expand Down
150 changes: 110 additions & 40 deletions esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions esy.lock/opam/odoc.1.5.2/opam → esy.lock/opam/odoc.1.5.3/opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2faf582

Please sign in to comment.