Commit Graph

1080 Commits

Author SHA1 Message Date
Stefan Seyfried
ec1f030393 fb_accel: add TripleDragon framebuffer code 2017-02-08 23:53:54 +01:00
Stefan Seyfried
2c01510266 fb_generic: open device O_CLOEXEC, better diagnostic output 2017-02-08 23:38:00 +01:00
Stefan Seyfried
7e9dddeabd fb_generic: make paintLine virtual 2017-02-08 23:37:19 +01:00
Stefan Seyfried
5f5369b7ad reduce impact of zapit/frontend_c.h header
down from ~217 files to ~57...
2017-02-06 01:26:43 +01:00
Stefan Seyfried
05d4017b36 fb_accel: add backend for GL framebuffer 2017-02-06 00:15:37 +01:00
Stefan Seyfried
9fffbef19d fb_accel: add accelerated framebuffer for Nevis GXA chips 2017-02-05 23:03:22 +01:00
Stefan Seyfried
f372d56e41 fb_generic: fix blit2FB call 2017-02-05 22:50:23 +01:00
Stefan Seyfried
e56fde4082 framebuffer: add accelerator for STi framebuffer
also add a generic helper class for other accelerated
framebuffer implementations
2017-02-05 21:35:52 +01:00
Stefan Seyfried
2d57ea34f4 fb_generic: nicer debug output, remove dead code 2017-02-05 20:45:13 +01:00
Stefan Seyfried
257ffd9ee3 fb_generic: add fb_name member to identify fb implementation 2017-02-05 19:53:29 +01:00
Stefan Seyfried
b767d1ef41 fb_generic: add pointer for double-buffered fb 2017-02-05 18:04:15 +01:00
Stefan Seyfried
1034642093 fb_generic: remove all hardware specific code 2017-02-05 15:22:22 +01:00
Stefan Seyfried
ceb82a4b47 fb_generic: add stuff needed for compilation 2017-02-05 15:02:20 +01:00
Stefan Seyfried
3256978c58 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-05 14:49:41 +01:00
Stefan Seyfried
9082ddf287 replace fontrenderer.h include with forward declaration
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough
2017-02-05 13:37:53 +01:00
Stefan Seyfried
63b6efd1f5 replace framebuffer.h include with forward declaration
instead of including framebuffer.h almost everywhere, replace it with
class CFrameBuffer forward declarations and/or generic system includes.
Add a hack to define fb_pixel_t to config.h (one reason for
framebuffer.h includes was the fb_pixel_t define)
2017-02-05 13:05:07 +01:00
Stefan Seyfried
dcd9b982ad remove unused fader.h 2017-02-05 10:20:08 +01:00
Stefan Seyfried
ffa3fdd6c8 framebuffer/configure: remove unused --restore-prev-mode
this is unused, untested and most likely not working at all
2017-02-04 11:35:05 +01:00
Stefan Seyfried
7497722646 Merge remote-tracking branch 'tuxbox/master' 2017-02-01 22:03:40 +01:00
Stefan Seyfried
e44146bf73 framebuffer_ng: fix gradient blit
fixes https://github.com/neutrino-mp/neutrino-mp/issues/2,
thanks satbaby
2017-02-01 21:48:05 +01:00
Thilo Graf
721f85deba CRecordManager: revert warn message for stream overflow
It's an error not a warning!
2017-02-01 09:36:28 +01:00
Thilo Graf
3387bcf2c4 CRecordManager: remove static error messages
Static message window expects user interaction but in this case user
could be absent. and recordings could be running out of control.
These messages are only warnings and "to slow" warning is optional.
To avoid uncontrolled behavior of recordings, it should be enough to use messages with simple timeout.
2017-02-01 09:10:06 +01:00
Thilo Graf
008be59b08 CVolume: replace repaintVolScale() with paint()
paint() contains repaintVolScale()
2017-01-31 16:36:43 +01:00
M. Liebmann
97d1d93c93 fontrenderer: Rework rendering for better font presentation
- For the correct use of the changes should be built freetype
   with the following settings:
     #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
     #define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING

BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **

-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
2017-01-31 16:36:40 +01:00
Stefan Seyfried
f397d08cd3 Merge remote-tracking branch 'tuxbox/master' 2017-01-29 02:14:32 +01:00
Jacek Jendrzej
e111bf7418 movieplayer dont chache last realurl for lua script 2017-01-26 11:55:06 +01:00
Stefan Seyfried
a409047714 Merge remote-tracking branch 'tuxbox/master' 2017-01-22 22:59:39 +01:00
GetAway
b5138018b5 gcc-6.2 compil fixes 2017-01-21 14:01:05 +01:00
GetAway
f4e334fa09 fix -Werror=misleading-indentation with newer compiler 2017-01-21 13:58:15 +01:00
Thilo Graf
3ecb94fc21 fontrenderer.cpp: Use additional percentage height offset.
Different font types could have different glyph heights,
Therfore static values seems not really senseful.
eg. chars like ÄÁÂÅÈÉÊËÌÍÎÏÑÒÓÕÖÙÛÜÝ could paint over defined height,

Note: 	However, depending of implementations, the font image may change.
	Most likely this must be adapted to some parts.
2017-01-05 22:19:18 +01:00
M. Liebmann
617075c30e src/driver/pictureviewer/png.cpp: Fix -Wclobbered compiler warning 2017-01-03 16:45:16 +01:00
M. Liebmann
79d9b88ae1 src/driver/pictureviewer/png.cpp: Add support for gray scale PNGs...
...with alpha channel
2017-01-01 23:09:54 +01:00
Thilo Graf
b273334f46 CRecordManager: use default timeout from settings 2016-12-12 21:37:17 +01:00
GetAway
0330515abc pzapit: add -lockrc/-unlockrc options; port from martii
I've pulled it from Duckbox-Developers/neutrino-mp-cst-next
and modified it to work
2016-12-11 20:20:02 +01:00
Stefan Seyfried
c6d7968381 Merge remote-tracking branch 'tuxbox/master' 2016-12-04 18:02:51 +01:00
Thilo Graf
8ba357fcb2 CRecordManager: add methode to get internal rec map
Useful for access to current record data.
2016-11-23 09:07:05 +01:00
Thilo Graf
b4f94a8964 Merge branch 'master' into pu/msgbox 2016-11-13 16:04:39 +01:00
Stefan Seyfried
7154f36258 driver: use newer ffmpeg API
Reduce the "deprecated function" warnings a bit when compiling against
recent ffmpeg releases. Just the drop-in-replacement "av_packet_unref"
which works with both old and new ffmpeg versions.
The other stuff needs rewrites which are not compatible with all ffmpeg
releases :-(
2016-11-13 01:44:45 +01:00
Stefan Seyfried
4a400c909a driver: use newer ffmpeg API
Reduce the "deprecated function" warnings a bit when compiling against
recent ffmpeg releases. Just the drop-in-replacement "av_packet_unref"
which works with both old and new ffmpeg versions.
The other stuff needs rewrites which are not compatible with all ffmpeg
releases :-(
2016-11-12 22:16:42 +01:00
Stefan Seyfried
2c92d112d0 Merge remote-tracking branch 'tuxbox/master' 2016-11-12 18:06:26 +01:00
Thilo Graf
ab9bf2ffa6 Merge branch 'master' into pu/msgbox 2016-11-02 21:05:36 +01:00
Jacek Jendrzej
5ea4cbf145 pictureviewer: fix possible segfault if width or height < 1,fix possible memleak 2016-11-01 14:50:08 +01:00
Jacek Jendrzej
b8849d53b5 fix possible segfault and negative height 2016-10-31 15:53:29 +01:00
Thilo Graf
dde298b1b7 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details
2016-10-24 10:31:24 +02:00
Stefan Seyfried
b5cb683048 driver/record: make CStreamRec non-public
CStreamRec is only used inside CRecordManager::Record, so it
can be implemented completely inside record.cpp. The positive
side effect is that avformat.h is not included everywhere (e.g.
from moviebrowser/mb.h) and thus AVFORMAT_CFLAGS does not need
to be added everywhere to fix build failures.
2016-10-24 09:45:46 +02:00
Stefan Seyfried
5bf115db80 record, streamts: use modern AV_CODEC_ID enums
this allows to build with current ffmpeg
2016-10-24 09:45:23 +02:00
Stefan Seyfried
274a5935c8 remove dead fader.cpp code 2016-10-23 13:51:12 +02:00
Stefan Seyfried
b8e44c3717 driver/record: make CStreamRec non-public
CStreamRec is only used inside CRecordManager::Record, so it
can be implemented completely inside record.cpp. The positive
side effect is that avformat.h is not included everywhere (e.g.
from moviebrowser/mb.h) and thus AVFORMAT_CFLAGS does not need
to be added everywhere to fix build failures.
2016-10-22 12:08:57 +02:00
Stefan Seyfried
5f33ee96fd record, streamts: use modern AV_CODEC_ID enums
this allows to build with current ffmpeg
2016-10-22 12:02:10 +02:00
Stefan Seyfried
3f48c41090 framebuffer_ng: implement getIconPath
this implements upstream commit 97343d11 in framebuffer_ng
2016-10-22 11:46:34 +02:00