AVIF ImageProvider registering

Michael Strauß michaelstrau2 at gmail.com
Thu Jan 27 15:08:23 UTC 2022


>From a quick look at the code, two things come to mind:

1. The file signature is specified as "0000001C6674797061760000",
which corresponds to "ftypav" followed by two null bytes. Maybe
"av<null><null>" ist not a valid `major_brand`.

2. The first four bytes of the file specify the size of the header,
which can change depending on the number of `compatible_brands`.
That's bad news for JavaFX, since the current implementation cannot
account for variable fields in file signatures (it always matches all
bytes of the signature exactly).

On Thu, Jan 27, 2022 at 3:22 PM Scott Palmer <swpalmer at gmail.com> wrote:
>
> That link should be https://github.com/lanthale/LibHeifFX <https://github.com/lanthale/LibHeifFX>
>
>
> > On Jan 27, 2022, at 6:02 AM, Clemens Lanthaler <clemens.lanthaler at itarchitects.at> wrote:
> >
> > Hello everyone,
> >
> > as some of you already know I have created the project LibHeifFX (github.com/lanthaler/libheiffx) for adding HEIC (iPhone) and AVIF file format to the image class.
> >
> > Basically all is working with HEIC files, but as soons as I try to open a AVIF file OpenJFX gives me the error message "No imagedataprovider found!". But I have correctly registered AVIF as well.
> >
> > Tested OpenJFX: 17.0.2
> >
> > Could it be that I am in a conflict with an internal signature ? Because it seems that OpenJFX only is checking the file signature and ignores the extension.
> >
> > Thank you in advance.
> > Clemens


More information about the openjfx-dev mailing list