Hydrogenaudio Forums

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: snotlicker on 2020-07-01 07:19:40

Title: [1.6] embedded webp images + album_art_data_ptr
Post by: snotlicker on 2020-07-01 07:19:40
I have some code which creates a Gdiplus::Bitmap from an album_art_data_ptr and I was surprised that it handles external webp images without me having to make any changes. You must have performed some "magic" to make this happen so thanks!

However, it doesn't work if the album_art_data_ptr is sourced from an embedded webp. Could this be "fixed" or is there something else that needs doing my side? Obviously they display fine in the DUI artwork panel/Properties.
Title: Re: [1.6] embedded webp images + album_art_data_ptr
Post by: Peter on 2020-07-01 07:55:17
Wait for the new SDK, it will provide an updated helper to turn album_art_data payload into Gdiplus::Bitmap, detecting and transparently decoding WebP data.
Title: Re: [1.6] embedded webp images + album_art_data_ptr
Post by: snotlicker on 2020-07-01 08:10:06
OK, thanks.
Title: SPLIT: Re: [1.6] embedded webp images + album_art_data_ptr
Post by: Peter on 2020-07-28 12:54:50
One or more of the messages of this topic have been moved to General - (fb2k) (https://hydrogenaud.io/index.php?board=27.0) - https://hydrogenaud.io/index.php?topic=119602.0
Title: Re: [1.6] embedded webp images + album_art_data_ptr
Post by: Peter on 2020-07-28 12:55:46
New SDK posted, use fb2k::imageLoaderLite.
The new API was added in 1.6 beta 8. Also, current implementation doesn't initialize gdiplus as documented (final version will).
Title: Re: [1.6] embedded webp images + album_art_data_ptr
Post by: snotlicker on 2020-07-28 13:50:09
Thanks. I already use GdiplusScope from your helpers so that isn't a problem.
SimplePortal 1.0.0 RC1 © 2008-2020