Skip to main content
Topic: [1.6] embedded webp images + album_art_data_ptr (Read 606 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[1.6] embedded webp images + album_art_data_ptr

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.

Re: [1.6] embedded webp images + album_art_data_ptr

Reply #1
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.

Re: [1.6] embedded webp images + album_art_data_ptr

Reply #2
OK, thanks.


Re: [1.6] embedded webp images + album_art_data_ptr

Reply #4
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).

 

Re: [1.6] embedded webp images + album_art_data_ptr

Reply #5
Thanks. I already use GdiplusScope from your helpers so that isn't a problem.

 
SimplePortal 1.0.0 RC1 © 2008-2020