Recent

Author Topic: AVIF Loading  (Read 5513 times)

TRon

  • Hero Member
  • *****
  • Posts: 3787
Re: AVIF Loading
« Reply #15 on: October 23, 2023, 10:55:00 am »
Support for libavif version 1.0.0 is included in version 11.5.6 of September 19.
Since you seem to have worked on the support (big thank you !) , do you happen to know why the readme landing page of bgrabitmap (still) links to the old libavif v0.10.1 dll's ?

There seem to be no other mention of available and/or the required libavif version (other than the 11.5.6 release stating that it now supports libavif 1.0.0).
I do not have to remember anything anymore thanks to total-recall.

circular

  • Hero Member
  • *****
  • Posts: 4369
    • Personal webpage
Re: AVIF Loading
« Reply #16 on: October 23, 2023, 02:21:31 pm »
Hi TRon,

I've updated the link so that it points to version 1.0.1. The binaries have been provided in the pull request of DomingoGP:
https://github.com/bgrabitmap/bgrabitmap/pull/218

Regards
Conscience is the debugger of the mind

DomingoGP

  • Jr. Member
  • **
  • Posts: 80
Re: AVIF Loading
« Reply #17 on: October 23, 2023, 02:28:46 pm »
do you happen to know why the readme landing page of bgrabitmap (still) links to the old libavif v0.10.1 dll's ?

Sorry but I can't answer this question, maybe circular forgot to update the link. (already solved by circular)

Unfortunately in almost every release before 1.0.0 there were changes that broke the ABI compatibility of the libavif library. Therefore earlier versions of BGRABitmap do not work well with later versions of libavif. I hope that with 1.0.0.0 they will keep the ABI unchanged.

The current version of BGRABitmap is compatible with versions 0.8.4 onwards up to 1.0.1.

I tested the r.lukasiak attached image with the 11.5.6 version of BGRABitmap and 1.0.1 version of libavif on windows and works without issues.

r.lukasiak

  • Full Member
  • ***
  • Posts: 167
Re: AVIF Loading
« Reply #18 on: October 23, 2023, 02:33:33 pm »
@DomingoGP, I'm not completely sure about the version I have. I installed it from OPM. Browsing the package tree, I found out I was using 15.5.4. I reinstalled it using OPM and I still had 15.5.4 so I went to BGRABitmap github but it resulted in the same version, even though update_BGRABitmap.json  says 15.5.6. Then I googled for "15.5.6" and I found this https://github.com/bgrabitmap/bgrabitmap/archive/v11.5.6.zip but with the same result, package graph shows 15.5.4 and, most importantly, it still doesn't work with libavif-1.0.1.
« Last Edit: October 23, 2023, 02:37:10 pm by r.lukasiak »

circular

  • Hero Member
  • *****
  • Posts: 4369
    • Personal webpage
Re: AVIF Loading
« Reply #19 on: October 23, 2023, 02:46:23 pm »
Hi @r.lukasiak

It may be that you've downloaded the latest version but that Lazarus still uses the previous version. To make sure the version you've downloaded is used, you need to open the package within Lazarus with "Package > Open Package File..." menu.

I've made a request for the version to be updated on the OPM: https://forum.lazarus.freepascal.org/index.php/topic,34297.msg494715.html#msg494715

Regards
« Last Edit: October 23, 2023, 02:52:39 pm by circular »
Conscience is the debugger of the mind

TRon

  • Hero Member
  • *****
  • Posts: 3787
Re: AVIF Loading
« Reply #20 on: October 23, 2023, 03:17:12 pm »
@DomingoGP, @circular,

Thank you guys both for the answers and updates/correction(s).
I do not have to remember anything anymore thanks to total-recall.

r.lukasiak

  • Full Member
  • ***
  • Posts: 167
Re: AVIF Loading
« Reply #21 on: October 23, 2023, 03:25:08 pm »
@circular, you're right. After posting my last answer, I checked package links and noticed that it still uses the version from OPM so I deleted the old files and once again installed with "Package > Open Package File..." but now it's telling me about missing fpgui_toolkit so I downloaded it from https://fpgui.sourceforge.net/ but when compiling, I'm getting:
Quote
fpg_x11.pas(1069,18) Error: Can't determine which overloaded function to call

fpg_x11 line 1069:
Code: Pascal  [Select][+][-]
  1. FDNDVersion := min(FPG_XDND_VERSION, (ev.xclient.data.l[1] and $FF000000) shr 24);

TRon

  • Hero Member
  • *****
  • Posts: 3787
Re: AVIF Loading
« Reply #22 on: October 23, 2023, 03:30:43 pm »
@r.lukasiak
You do not seem to be the only one.

And it is a strange error as well because bgrabitmap does not have any fpgui dependencies.

Can you reproduce the issue and share the steps you took to run into that error ?
I do not have to remember anything anymore thanks to total-recall.

r.lukasiak

  • Full Member
  • ***
  • Posts: 167
Re: AVIF Loading
« Reply #23 on: October 23, 2023, 03:57:26 pm »
@TRon, now I see I probably chose bgrabitmappack4fpgui.lpk to be installed.
I will go with a clean Lazarus installation as I still can't get rid of the OPM's BGRABitmap version.


circular

  • Hero Member
  • *****
  • Posts: 4369
    • Personal webpage
Re: AVIF Loading
« Reply #24 on: October 23, 2023, 04:00:48 pm »
Yes, there are multiple versions of BGRABitmap depending on the target you want. The one you want is probably "bgrabitmappack.lpk".

I suppose one can uninstall a package with OPM. You could do that, and then open the lpk from the version you downloaded. Finally, rebuild Lazarus using the "Tools" menu.
Conscience is the debugger of the mind

r.lukasiak

  • Full Member
  • ***
  • Posts: 167
Re: AVIF Loading
« Reply #25 on: October 23, 2023, 04:31:56 pm »
I uninstalled BGRABitmap with OPM, installed the downloaded one but it was still using the version from OPM.

With clean installation, it worked. I finally have 11.5.6 and now it works with libavif-1.0.1. Thanks everyone!

Now I just don't have visual components. I know it's off-topic but what do I need to have the visual component?



---------------------------
edited:
I already found it, bgracontrols is the answer
« Last Edit: October 23, 2023, 04:41:45 pm by r.lukasiak »

circular

  • Hero Member
  • *****
  • Posts: 4369
    • Personal webpage
Re: AVIF Loading
« Reply #26 on: October 23, 2023, 09:07:12 pm »
It's good to know you have something that works for you now  :)
Conscience is the debugger of the mind

TRon

  • Hero Member
  • *****
  • Posts: 3787
Re: AVIF Loading
« Reply #27 on: October 24, 2023, 09:42:01 am »
@TRon, now I see I probably chose bgrabitmappack4fpgui.lpk to be installed.
Ah ok. that would indeed explain it. Glad to see your later posts that you've 'fixed' your own issue(s). Thank you for the feedback.
I do not have to remember anything anymore thanks to total-recall.

 

TinyPortal © 2005-2018