[haiku-depot-web] HVIF to PNG Conversion Issue

  • From: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
  • To: haiku-depot-web@xxxxxxxxxxxxx
  • Date: Sat, 11 Jul 2015 23:07:12 +1200

Hello;

This might a question for Stephan; I hope the high temperatures have abated. We're getting quite the opposite treatment down here of course!

I have the HVIF successfully rendering and writing out as PNG on linux now, but there is one small problem with the rendering. The resulting bitmap [1] appears cropped on the bottom and right edges. I can imagine that this might be a rounding issue or something like this.

Here is the mechanics of the rendering...

state.bitmap = new BBitmap(
BRect(0.0,0.0,state.params.size,state.params.size),
B_RGBA32); // actual storage is BGRA

status_t gvi_status = BIconUtils::GetVectorIcon(
state.hvif_buffer.buffer,
state.hvif_buffer.used,
state.bitmap);

I'm wondering if there is any obvious "known gotchas" with using these static methods before I start hunting around.

[1] http://www.silvereye.co.nz/tmp/beam.png

Regards;

--
Andrew Lindesay

Other related posts: