Yaron 53 Posted May 14, 2023 It's a relatively new image format, part of the AV1 specification. I haven't found any Delphi compatible sample code or a dll with Delphi headers for this format, any hints? Share this post Link to post
DelphiUdIT 187 Posted May 14, 2023 (edited) ImageEn https://www.imageen.com/info/ support AVIF format. But is not free. Bye Edit: also you can extract c headers form there https://github.com/AOMediaCodec/libavif and convert to pascal wrappers. Edited May 14, 2023 by DelphiUdIT Share this post Link to post
dwrbudr 8 Posted May 14, 2023 Probably you could use TWICImage to load AV1 files if this is installed: https://apps.microsoft.com/store/detail/av1-video-extension/9MVZQVXJBQ9V Share this post Link to post
programmerdelphi2k 237 Posted May 14, 2023 maybe a simple search in Github you'll find some: google search --> site:github.com AVIF "Delphi" "Decode" Share this post Link to post
Yaron 53 Posted May 14, 2023 6 hours ago, DelphiUdIT said: ImageEn https://www.imageen.com/info/ support AVIF format. But is not free. Bye Edit: also you can extract c headers form there https://github.com/AOMediaCodec/libavif and convert to pascal wrappers. ImageEn is overkill and I can't pay for it. I couldn't find the actual compiled DLL for the GitHub project, otherwise I'd do the headers myself. I simply can't compile the DLLs as I don't have the infrastructure for this. I am aware that there is a section in the readme file that points to a windows library, but it doesn't link to a DLL (the only file there is "avif_x64_Release.lib"), so I'm not sure how I can use that in Delphi. 4 hours ago, programmerdelphi2k said: maybe a simple search in Github you'll find some: google search --> site:github.com AVIF "Delphi" "Decode" Nope, nothing came up (and I did search both Google and Github before posting here). 4 hours ago, dwrbudr said: Probably you could use TWICImage to load AV1 files if this is installed: https://apps.microsoft.com/store/detail/av1-video-extension/9MVZQVXJBQ9V Thank you, but that's a video component, which interestingly enough is not an issue as there are AV1 video decoders out there that can be used in Delphi through DirectShow. Share this post Link to post
dwrbudr 8 Posted May 15, 2023 (edited) I think it includes decoder for images as well. But probably you have to install the following extension since the container is HEIF, where the image itself is encoded in AV1. https://apps.microsoft.com/store/detail/heif-image-extensions/9PMMSR1CGPWG?hl=en-us&gl=us&activetab=pivot%3Aoverviewtab So, install both extensions and give it a try using TWICImage Edited May 15, 2023 by dwrbudr Share this post Link to post
Fr0sT.Brutal 900 Posted May 15, 2023 https://ci.appveyor.com/project/louquillio/libavif/build/artifacts seems to have built binaries Share this post Link to post
DelphiUdIT 187 Posted May 15, 2023 1 hour ago, Fr0sT.Brutal said: https://ci.appveyor.com/project/louquillio/libavif/build/artifacts seems to have built binaries They only seems to have static library, not dll. There is a project for Lazarus / FPC that have this dll. This is the main branch: https://github.com/bgrabitmap/lazpaint The libraries "libavif.zip" (but i don't know nothing about them) are in subfolder "lazpaint/release/windows". Look at license of course. bye 1 Share this post Link to post