(define-public libde265-1.0.11
(package
(name "libde265")
(version "1.0.11")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/strukturag/libde265")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0vy1brb8mnc590g5l21qfj3fg0arbw7dif1w0vizkxbqk23m996i"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags
(list "--disable-static"
;; disable examples depending on Qt5, Sdl, ...
"--disable-dec265"
"--disable-sherlock265")))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
("libtool" ,libtool)
("pkg-config" ,pkg-config)
("python" ,python-wrapper)))
(synopsis "H.265 video codec implementation")
(description "Libde265 is an implementation of the h.265 video codec. It is
written from scratch and has a plain C API to enable a simple integration into
other software.")
(home-page "https://www.libde265.org/")
(license license:lgpl3+)))
(define-public libheif-1.15
(package
(name "libheif")
(version "1.15.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/strukturag/libheif")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0m7zgdcrfgxjwkccjpm5lg8asxjjcvlsmv64c517h4d1ir5krpg7"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f)) ;no test target although there is a tests folder
(native-inputs
(list autoconf automake libtool pkg-config))
(inputs
`(("gdk-pixbuf" ,gdk-pixbuf) ;optional
("libjpeg" ,libjpeg-turbo)
("libpng" ,libpng)))
;; Propagated to satisfy 'libheif.pc'.
(propagated-inputs
(list dav1d libaom libde265-1.0.11 x265))
(home-page "https://github.com/strukturag/libheif")
(synopsis "HEIF and AVIF file format decoder and encoder")
(description
"@code{libheif} is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File
Format) file format decoder and encoder.")
(license license:lgpl3+)))