Commit Graph

49 Commits

Author SHA1 Message Date
Stefan Seyfried
5c2ee5e137 start modularizing framebuffer acceleration architecture
This is just copied framebuffer.{h,cpp} => fb_generic.{h,cpp}
The idea is to implement CFrameBuffer as generic framebuffer class that
does work on almost every hardware without acceleration and / or
hardware dependencies.
CFbAccel will be a derived class (and different on many architectures)
which implements the accelerated functions.
This does not yet compile, verbatim copies to track development history.
2017-02-07 17:23:42 +01:00
Thilo Graf
97343d1190 CFrameBuffer: outsource code for icon path detecting
Unified handling and makes it possible to use in other objects.
2016-03-17 10:25:26 +01:00
M. Liebmann
95f11ce7af CFrameBuffer::paintBoxRel2Buf(): Align buffer at 4 byte boundary...
...for hw blit on apollo/kronos hardware
2016-01-26 09:51:48 +01:00
Thilo Graf
0146511f38 components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
  enable/disable clock with external timer events,
  tryed to fix some display issues related with infoclock and
  time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
  cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
  arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
svenhoefer
edc8527379 - framebuffer: revival of showFrame() function to allow ...
... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons
2015-05-05 12:01:04 +02:00
svenhoefer
46b4d9e866 - framebuffer.h: define CORNER_NONE 2014-10-11 11:07:14 +02:00
Thilo Graf
f9147d185a CComponents: add setColBodyGradient() to set gradient properties
This provides possibility to set relevant gradiant properties in cc sub classes
2014-09-25 11:08:08 +04:00
M. Liebmann
a428a1f583 CFrameBuffer: Add functions to draw color gradients 2014-09-25 11:05:46 +04:00
[CST] Focus
aa0c780dbf driver/framebuffer.h: increase fade time, with 1750 there is no visible fade effect at all 2014-07-17 17:02:56 +04:00
Thilo Graf
c41b4fd015 CFrameBuffer: reduce fade time
10000 seems to bee too much for nice handling
2014-06-23 18:43:47 +02:00
Thilo Graf
06a5f568a9 CFrameBuffer: add function to get icon base path 2014-05-16 09:08:24 +02:00
[CST] Focus
0dc92e99f9 driver/framebuffer.cpp: switch from window_size to window width/height,
allow 50% min window size
2013-11-07 17:25:15 +04:00
svenhoefer
6ed30528f9 - osd_setup: introduce g_settings.window_size to scale some windows
* remove g_settings.big_windows
* add setup window (use up/down to change size)
2013-09-02 20:59:26 +02:00
Michael Liebmann
677a3ba116 Activate reworked mute icon handling for apollo hardware 2013-08-24 15:51:29 +02:00
[CST] Focus
cd8ee4a1c8 driver/framebuffer.h: add empty blit for neutrino-mp patches 2013-07-18 14:51:58 +04:00
Michael Liebmann
2b03fd0ddc * Fix compile neutrino don't use USE_NEVIS_GXA 2013-05-28 20:49:24 +02:00
Michael Liebmann
d460c50bd5 * CFrameBuffer::waitForIdle: Added a parameter
to identify the execution at Debug Output
- For example: name of the calling function
2013-05-18 14:44:20 +01:00
Michael Liebmann
b089d9bf20 * CFrameBuffer: Rework paintBoxFrame()
- Rounded corners can be displayed individually
- Improved rendering of circular arcs
- Remove duplicate code in paintBoxRel()
2013-05-16 11:01:41 +01:00
Michael Liebmann
1049b337bb * Rework handling muteicon
- Integrated for monitoring the mute icon into the frame buffer class.
  If the icon is overwritten by an element, it is restored from the
  framebuffer.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2013-05-16 11:01:41 +01:00
svenhoefer
742cc81f46 - framebuffer: add possibility to force small windows 2013-05-10 10:31:46 +02:00
Thilo Graf
8baec6d62a CVolumeBar: rework volumebar handling
Use CComponenets and separates the gui part from driver part

- add new class CVolumeBar as CComponentsForm
- Various changes for reworked volume bar handling in some classes
- Move AudioMute() from CVolume to new class CAudioMute
- Use CComponentsPicture to paint muteicon
2013-05-08 05:11:24 +01:00
svenhoefer
4714a30f83 - strech most windows to full screen
* switchable with existing switch for 'big_windows'
* 'big_windows' default is on

Conflicts:
	src/gui/bedit/bouqueteditor_bouquets.cpp
	src/gui/bedit/bouqueteditor_channels.cpp
	src/gui/bedit/bouqueteditor_chanselect.cpp
2013-04-01 15:42:38 +04:00
[CST] Bas
e7833b099f merge neutrino-apollo 2013-01-18 10:59:27 +04:00
[CST] Focus
6e41c65fad merge public git changes 2013-01-09 19:30:07 +04:00
satbaby
3bbaddec39 src/driver/framebuffer.cpp: fix fb for Threads use 2013-01-02 15:55:19 +01:00
[CST] Focus
418890957d driver/framebuffer.cpp: cleanup, add ioctls to blit/fill rect using FB 2012-12-26 12:20:10 +04:00
micha-bbg
5fee27085d * Moviebrowser: disabled 'pseudo' transparency for display screenshot
- Global setting for picture / icon transparency can be made
  in framebuffer constuctor
- Default is old standard (transparency when Black Content)
- Individual transparency with CFrameBuffer::SetTransparent()

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2155 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-03-19 21:40:03 +00:00
micha-bbg
cece80cc6f * neutrino: GUI Painting of Vol. Mute and Clock (Part2)
- Move painting of muteicon to framebuffer
- Background removed for MuteIcon (switchable)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2152 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-03-18 18:46:40 +00:00
micha-bbg
6bbef9a0f6 * Add paint background to paintIcon() / DisplayImage()
- paint background before display icon in CFrameBuffer::paintIcon()
- paint background before display image in CPictureViewer::DisplayImage()

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2082 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-02-07 11:12:45 +00:00
focus
9c0924e80f framebuffer: make setupGXA public
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2040 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-01-08 10:27:36 +00:00
focus
19e2c186c2 Remove second arg from setBlendLevel
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1953 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-12-06 15:50:50 +00:00
striper
d8f8a99d86 - add support for 24bit PNGs with alpha-channel
- modify resize function

If you encounter problems please report here including a log: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/10561-transparente-senderlogos/?s=d3381092abb5a81271ebfa0c4219f73f0ba7b8ca

THX micha_bbg!

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1715 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-09-27 15:41:31 +00:00
focus
1df85f6ea3 Fade changes for new fb driver
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1413 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-04-23 10:24:09 +00:00
seife
2590adfe15 add generic dispatcher headers for frontend etc
add generic audio, video and demux headers in zapit/include (TODO: put them
into a better place, or put wrappers into lib directories) that automatically
dispatch to the hardware specific functions and use them in the code

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@962 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-12-25 17:43:28 +00:00
satbaby
7c4fd8417f -add paintBoxFrame (copy/paste from GetAway patch )
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@881 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-11-02 19:02:14 +00:00
focus
c2cfa8862b Menus shadow; 0 calls timer-list in event-list; Fix exit from sleeptimer set; Testing backup/restore settings
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@647 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-07-03 13:09:40 +00:00
focus
253324226e Windows fade emulation. Some main windows at the moment only. New drivers needed.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@644 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-06-27 13:06:12 +00:00
nightshad
3aaa5533cf Fixes for GXA. Now it is possible use GXA without an active driver.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@639 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-06-24 09:54:29 +00:00
focus
3fb6607ba0 Mode fb and picviewer cleanup; unify channel logo display code
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@259 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-02-05 15:26:57 +00:00
focus
2f6462c65d Testing GXA icon blit; Cleanup FB and pictureviwer code; This is work in progress, any bugs possible
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@258 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-02-04 20:18:42 +00:00
focus
69cd268e7a Support for icons in png format
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@214 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-01-27 14:36:15 +00:00
seife
230a966e7d neutrino: speed up the fontrenderer
Speed up the fontrenderer by *not* using the GXA accelerator. To
prevent artifacts, add a routine to framebuffer class to sync on
the GXA engine being ready with drawing.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@196 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-01-20 19:21:35 +00:00
focus
4b6f060fb7 raw icon cache
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@185 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-01-19 15:24:02 +00:00
focus
b554e4ef4e TTX subs menu, not ready yet, just backup of current code
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@184 e54a6e83-5905-42d5-8d5c-058d10e6a962
2010-01-19 11:22:08 +00:00
seife
115ba99f2e neutrino: rework infoviewer
Make the infoviewer more "tuxbox-like". The default appearance should
only change marginally, but this provides infrastructure to:
*) disable the crypto icons (default if --disable-blinkenlights)
*) resize the infobar better to adapt to changed font sizes (not yet
   perfect, but better than before)
*) always vertically center the icons in the button bar (red green blue
   and AC3/16:9 etc)
The one thing visible immediately is that the infobar is always drawn
at the same height, regardless if the buttonbar is drawn below or not.
Originally I did it that way because a) the code was simpler and b) I
liked it better. If this is an issue, please report an I can change that.

I deliberately did not touch the display in file playback mode, this can
be done later once potential issues are shaken out.

Tis is a massive change, so I expect it to be not perfect. Please report
anything you find.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@98 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-20 21:08:35 +00:00
seife
e2f4d73d78 framebuffer: add infrastructure to center icons vertically
add an additional height parameter to paintIcon() that allows to
center the icons vertically between y and y+h
defaults to 0 == unchanged behaviour

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@92 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-20 13:36:18 +00:00
seife
b0b471210f neutrino: port rounded corner code from tuxbox CVS
This allows to set all four corners separately. The default is
now to have all four corners rounded if radius is > 0 in paintBoxRel.
It also places hard coded integer numbers for CORNER_TOP and
CORNER_BOTTOM with the respective #defines.
This should make it much easier to port over code parts from tuxbox.org.
However, there are probably bugs and oversights in that I did not find
yet. Reports are welcome.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@45 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-13 22:23:23 +00:00
seife
af169c19ff framebuffer/pictureviewer: add functions to query icon size
Add infrastructure to query icon size as in tuxbox neutrino.
TODO: those functions are yet to be tested for non-.raw icons ;)

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@44 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-13 18:10:29 +00:00
mrcolor
bc5bd4154e our current experimental Neutrino branch
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
2009-12-08 11:05:11 +00:00