Claudio Ciccani wrote:
> Il giorno gio, 27/03/2008 alle 11.40 +0100, Denis Oliver Kropp ha
> scritto:
>> Guess it uses SetMatrix() and lots of SetSourceMask().
> 
> Actually I'm not using SetSourceMask().
> The API specification is incomplete. For example, how should it behave
> when mask size differs from source size? In the Radeon driver the mask
> gets scaled, but OpenVG requires not scaling.

In Water it can be chosen :)

In IDirectFBSurface it's unscaled, I thought, unless you use StretchBlit().

So source and mask are always pixel aligned.

> Regarding SetMatrix(), the API needs to be changed. OpenVG requires
> projective transformations too (3x3 matrix) and we need a way to

Good to know :)

> separate matrix transformation form coordinates scaling (i.e. adding a

Scaling might be good to have separately. So far, in Water (again:) only
the offset into the destination surface is a separate attribute.

BTW, can we use any of the stream processors (?) on the Radeon with DirectFB?

> method to specify a scaling factor for each coordinate, something like
> SetPixelZoom(16.16)).

Or SetViewport( src_rect, dst_rect ) ?

Translates and scales coordinates based on a rectangle in source and 
destination space.

>> How many public API calls (roughly) are needed for this graphics?
>>
> 
> Below is the number of drawing calls required to render the tiger.
> 
> FillRectangle: 261
> FillTriangle:  6949

Wow, I thought about turning dfb_gfxcard_fill_triangle() into 
dfb_gfxcard_fill_triangles()
a few days ago!

How many color or other changes do you have within these 6949 calls?

> DrawLines:     78
> Blit:          261

Nothing else? And no Matrix or Mask? This could run well even on basic 2D chips 
:)

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to