Page 2 of 2
Re: Scaling with hardware acceleration but without blending
Posted: Sun Apr 26, 2015 7:02 pm
by broadblues
@mritter
That doesn't work as it multiplies the src colour by the src alpha (you may not notice this for images with a very on / off alpha as the 0.0 areas wouldn't show when you alpha blitted this into a window but it would notice for a 0.5 (0x80) transparency ).
Re: Scaling with hardware acceleration but without blending
Posted: Tue Apr 28, 2015 4:55 pm
by softwarefailure
broadblues wrote:
Have you experimented with triangle mode in the CompositeTags function ? Not sure if that blends in the same way ot not ( it may do).
Yes, I have and it shows the same behaviour. It would have been my next question how to get transformation without the blending
I'm not sure about the old ScaleBitmap API it certainly still works, but whether it's hardware accelerated I'm not sure. It might even depend on which hardware.
So who is qualified to give a definitive answer here?
Re: Scaling with hardware acceleration but without blending
Posted: Tue Apr 28, 2015 6:05 pm
by broadblues
So who is qualified to give a definitive answer here?
An OS dev with their fingers in graphic.library Hans de Reuter, SSolie, Rene O or some such....
Re: Scaling with hardware acceleration but without blending
Posted: Sun May 03, 2015 11:57 am
by softwarefailure
An OS dev with their fingers in graphic.library Hans de Reuter, SSolie, Rene O or some such....
*bump*
Re: Scaling with hardware acceleration but without blending
Posted: Thu May 07, 2015 5:01 pm
by ssolie
softwarefailure wrote:
An OS dev with their fingers in graphic.library Hans de Reuter, SSolie, Rene O or some such....
*bump*
What was the question exactly?
Re: Scaling with hardware acceleration but without blending
Posted: Thu May 07, 2015 9:55 pm
by softwarefailure
When used with 32-bit ARGB bitmaps, does graphics/BitMapScale() always operate in software or will it use the GPU for scaling if the bitmap is in video memory?
Re: Scaling with hardware acceleration but without blending
Posted: Tue May 12, 2015 10:45 pm
by ssolie
softwarefailure wrote:When used with 32-bit ARGB bitmaps, does graphics/BitMapScale() always operate in software or will it use the GPU for scaling if the bitmap is in video memory?
The answer is that it depends. There are all sorts of optimizations depending on the circumstances and whether the underlying hardware driver can do the scaling or not.
It seems to me that the API could use some work. Otherwise, you are left to guess whether the underlying operation will be done with hardware assist or not as hinted in the autodoc.