mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
fb_accel_td: do not use directfb for blitting
it is in most cases slower than the naive software implementation :-(
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2007-2013 Stefan Seyfried
|
||||
Copyright (C) 2007-2013,2017-2018 Stefan Seyfried
|
||||
|
||||
License: GPL
|
||||
|
||||
@@ -202,7 +202,10 @@ class CFbAccelTD
|
||||
void paintHLineRel(int x, int dx, int y, const fb_pixel_t col) { paintLine(x, y, x + dx, y, col); };
|
||||
void paintVLineRel(int x, int y, int dy, const fb_pixel_t col) { paintLine(x, y, x, y + dy, col); };
|
||||
void paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t col);
|
||||
#if 0
|
||||
/* this is too slow, just use simple software implementation */
|
||||
void blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff, uint32_t xp, uint32_t yp, bool transp);
|
||||
#endif
|
||||
void waitForIdle(const char *func = NULL);
|
||||
fb_pixel_t * getBackBufferPointer() const;
|
||||
void setBlendMode(uint8_t);
|
||||
|
@@ -103,6 +103,7 @@ void CFbAccelTD::paintLine(int xa, int ya, int xb, int yb, const fb_pixel_t col)
|
||||
dfbdest->DrawLine(dfbdest, xa, ya, xb, yb);
|
||||
}
|
||||
|
||||
#if 0
|
||||
void CFbAccelTD::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_t xoff, uint32_t yoff, uint32_t xp, uint32_t yp, bool transp)
|
||||
{
|
||||
DFBRectangle src;
|
||||
@@ -146,6 +147,7 @@ void CFbAccelTD::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_t
|
||||
surf->Release(surf);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
void CFbAccelTD::init(const char *)
|
||||
{
|
||||
|
Reference in New Issue
Block a user