Commit Graph

826 Commits

Author SHA1 Message Date
svenhoefer
aeec37af89 - rename screen_x/yres to font_scaling_x/y 2017-02-09 18:13:19 +01:00
M. Liebmann
0b7bb32813 CFbAccelCSHD1::~CFbAccelCSHD1: Remove unnecessary entries...
...that are processed in the CFrameBuffer destructor
2017-02-09 12:57:18 +01:00
Stefan Seyfried
dec601a9dc fontrenderer: add hack to work around broken fullBG code 2017-02-09 12:57:18 +01:00
Stefan Seyfried
d498917594 fb_generic: remove unused VT switching / restoring code 2017-02-09 12:57:18 +01:00
Stefan Seyfried
b04b1d7f8c fb_accel: add TripleDragon framebuffer code 2017-02-09 12:57:18 +01:00
Stefan Seyfried
8441a719cb fb_generic: open device O_CLOEXEC, better diagnostic output 2017-02-09 12:57:18 +01:00
Stefan Seyfried
1500716fcf fb_generic: make paintLine virtual 2017-02-09 12:57:17 +01:00
Thilo Graf
9ddb4fc9c3 fb_accel_cs_hdx_inc.h: remove unused includes 2017-02-08 20:16:07 +01:00
Thilo Graf
8fe7504007 fb_accel_cs_hdx: remove dub includes, add includes into common header file 2017-02-08 20:16:07 +01:00
M. Liebmann
f94afc1593 fb_accel: Some renaming nevis => hd1 & apollo => hd2 2017-02-08 13:32:46 +01:00
M. Liebmann
a4afe1e8e0 fb_accel: Rename CFbAccelCSApollo class => CFbAccelCSHD2
Rename fb_accel_cs_apollo.cpp => fb_accel_cs_hd2.cpp
2017-02-08 12:52:26 +01:00
M. Liebmann
58bd8a4a63 fb_accel: Rename CFbAccelCSNevis class => CFbAccelCSHD1
Rename fb_accel_cs_nevis.cpp => fb_accel_cs_hd1.cpp
2017-02-08 12:52:25 +01:00
M. Liebmann
35b48372f8 CFbAccelCSApollo: Add paintHLineRel() & paintVLineRel() functions
- Remove unused debug output
2017-02-08 09:32:17 +01:00
M. Liebmann
10e82c0ece CFbAccelCSNevis: Add paintHLineRel() & paintVLineRel() functions
- Remove unused debug output
2017-02-08 09:32:17 +01:00
M. Liebmann
02d85f2ff2 neutrino: Replace USE_NEVIS_GXA with hardware-specific macros
- Existing USE_NEVIS_GXA definitions in the build system
  (neutrino configure) can be removed.
2017-02-08 06:06:24 +01:00
Stefan Seyfried
98b2461da7 reduce impact of zapit/frontend_c.h header
down from ~217 files to ~57...
2017-02-07 18:38:45 +01:00
Stefan Seyfried
c695ae8ea8 framebuffer/configure: remove unused --restore-prev-mode
this is unused, untested and most likely not working at all
2017-02-07 18:38:44 +01:00
Stefan Seyfried
2498ebb314 fb_accel: add backend for GL framebuffer 2017-02-07 17:23:42 +01:00
M. Liebmann
6ff9ff695b fb_accel: add accelerated framebuffer for Apollo graphic chips 2017-02-07 17:23:42 +01:00
Stefan Seyfried
0e63e5df3d fb_accel: add accelerated framebuffer for Nevis GXA chips
Signed-off-by: M. Liebmann <git@tuxcode.de>
2017-02-07 17:23:42 +01:00
Stefan Seyfried
ecb6531fd7 fb_generic: fix blit2FB call 2017-02-07 17:23:42 +01:00
Stefan Seyfried
9fe5dfbe50 framebuffer: add accelerator for STi framebuffer
also add a generic helper class for other accelerated
framebuffer implementations
2017-02-07 17:23:42 +01:00
Stefan Seyfried
beb2a67123 fb_generic: nicer debug output, remove dead code 2017-02-07 17:23:42 +01:00
Stefan Seyfried
a58193dd56 fb_generic: add fb_name member to identify fb implementation 2017-02-07 17:23:42 +01:00
Stefan Seyfried
9ba84a629a fb_generic: add pointer for double-buffered fb 2017-02-07 17:23:42 +01:00
Stefan Seyfried
3f63080454 fb_generic: remove all hardware specific code 2017-02-07 17:23:42 +01:00
Stefan Seyfried
3c381cd53b fb_generic: add stuff needed for compilation 2017-02-07 17:23:42 +01:00
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
Stefan Seyfried
2303d94300 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-07 17:23:42 +01:00
Stefan Seyfried
e490f84ea8 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-07 17:23:42 +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
Jacek Jendrzej
e111bf7418 movieplayer dont chache last realurl for lua script 2017-01-26 11:55:06 +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
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
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