Commit Graph

152 Commits

Author SHA1 Message Date
Thilo Graf
da1051cd6f update: set lua api version to 1.85
add luajit
2020-09-17 16:47:35 +02:00
Markus Volk
11ae2fa699 neutrino: add luajit
Luajit is a dynamic scripting language completely compatible to lua 5.1. the whole VM has been rewritten from the ground up
and is relentlessly optimized for performance. It combines a high-speed interpreter, written in assembler, with a state-of-the-art JIT compiler.
A substantial reduction of the overhead associated with dynamic languages allows it to break into the performance range traditionally reserved for offline,
static language compilers.

https://luajit.org/luajit.html
https://github.com/LuaJIT/LuaJIT/tree/master

There was additional code needed to enable neutrino to compile against lua 5.1. This was mostly taken from the luaposix compat-headers.
There are still some minor issue that will be easy to fix but it's up and running so damn fast!

Signed-off-by: Markus Volk <f_l_k@t-online.de>
2020-09-17 16:03:24 +02:00
svenhoefer
d29c98d7d5 - rename HAVE_COOL_HARDWARE => HAVE_CST_HARDWARE
Conflicts:
	src/driver/rcinput.cpp
	src/gui/info_menue.cpp
	src/gui/mediaplayer.cpp
	src/gui/movieplayer.cpp
	src/zapit/src/frontend.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
2020-09-08 11:13:51 +02:00
Frankenstone
aabc336d47 iamgeinfo, luainstance_helpers.h: fix neutrino wiki
Conflicts:
	src/gui/imageinfo.cpp
2020-05-02 00:12:35 +02:00
Jacek Jendrzej
6704e0de9f luainstance.cpp: init var 2020-01-21 15:22:05 +01:00
Thilo Graf
853966d89a lua api: add function setSelected() for lua menu handler, update to v1.84 2019-11-28 21:07:04 +01:00
Jacek Jendrzej
fa951c883c movieplayer arm: add option to play separate audio file 2019-11-03 18:42:05 +01:00
Thilo Graf
06e6fd5904 lua_cc_text.cpp: use 'text_mode' instead 'mode' in api
Prevent possible ambiguity of text mode parameter.
Parameter 'mode' deprecated, but still available for
downward compatibility.
2019-09-10 10:40:53 +02:00
Thilo Graf
e74181dee0 lua_messagbox.cpp: add parameter for text allign 2019-09-10 10:40:53 +02:00
Jacek Jendrzej
4f071d99b9 Revert "lua: don't play video if movieplayer is in use"
This reverts commit 45925b1329.
2019-06-28 17:08:16 +02:00
Jacek Jendrzej
45925b1329 lua: don't play video if movieplayer is in use 2019-06-09 17:21:18 +02:00
Jacek Jendrzej
de699f2a2f lua: disable block from luavideo 2019-06-07 19:01:49 +02:00
Jacek Jendrzej
6ed8c3b909 lua:avoid segfault 2019-05-18 14:44:10 +02:00
Thilo Graf
289e167462 themes: move rounded corners to theme section 2019-02-11 11:14:12 +01:00
svenhoefer
5c413dce45 - move compatibility headers to /lib/hardware
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-12-31 11:47:45 +01:00
svenhoefer
00e159b5fa - simplify more includes of compatibility headers
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-12-31 11:47:45 +01:00
Thilo Graf
2b0b867e2e lua API: change to version 1.80 2018-10-28 19:41:22 +01:00
svenhoefer
3739e712d4 - lua: fix hintbox/messagebox default width
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-10-28 19:41:22 +01:00
Thilo Graf
53a780e5d9 src/gui/lua/lua_menue.cpp: add missing @,_: 2018-09-28 14:15:05 +02:00
FlatTV
1652faecff OSD Menu: Add progressbar color
Signed-off-by: Thilo Graf <dbt@novatux.de>

- themes/Makefile.am unchanged, build was broken
- whitespace errors fixed
- unnecessary comments removed
- bump lua api version, was missed
2018-04-11 15:58:20 +02:00
Thilo Graf
557805bc40 infobar: rework infobar timeout behavior
Options were sometimes described ambiguously and previous behavior was no longer available.
Now the descriptions should be more plausible for current behavior.
2018-04-10 10:29:38 +02:00
svenhoefer
0fc3e793a4 - neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-11-22 15:42:09 +01:00
svenhoefer
3fd544737a - add webradio; first steps
Conflicts:
	data/Makefile.am
	data/scripts/backup.sh
	src/neutrino.cpp
	src/zapit/include/zapit/zapit.h

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-11-16 19:43:26 +01:00
vanhofen
6fe5d269af - add hd51; mostly ported from TangoCash's neutrino-mp 2017-10-29 18:31:30 +01:00
M. Liebmann
9feb8efd23 CLuaInstCurl: Add script functions
- encodeUri
 - decodeUri
 - setUriData
 - Set Lua api version to 1.78
2017-10-23 07:54:19 +02:00
M. Liebmann
100fa78952 CLuaInstCurl: Fix CurlDownload() to send POST data
- Set Lua api version to 1.77
2017-10-23 07:54:19 +02:00
Stefan Seyfried
0d9139054a remove "using namespace std" from header files
"using namespace std" in headers is considered bad practice, so move it
either into the respective cpp files or (for files which have lots of
other std::xxx usage anyway) just write it out explicitly.
Looking at the headers and the affected cpp files, one can actually see
why it is bad practice, as it's spreading very far ;-)
2017-10-02 13:43:57 +02:00
svenhoefer
99cc7f850a - rcinput: simplify calcTimeoutEnd() calls; 0 is "off" by default now 2017-09-29 10:34:23 +02:00
Stefan Seyfried
971f3703a6 add comments to suppres -Wimplicit-fallthrough warnings 2017-09-26 12:41:05 +02:00
Thilo Graf
5b12952d8b CLuaInstCCText: try to fix return value of CCTextGetLines()
Init was missing.
2017-06-15 01:01:55 +02:00
Jacek Jendrzej
ffe986f36b src/gui/lua/lua_cc_text.cpp avoid segfault 2017-05-17 22:15:15 +02:00
Thilo Graf
942a27e3ef cc_frm_header.cpp/h: remove CTextBox types for title allignment
Title object has only width of current text content. This causes CTextBox
types have not a really visible effect. Now we have only three align types for title
and these are related to cc-text object position.

Involved classes adjusted too.
2017-05-11 12:15:16 +02:00
Jacek Jendrzej
843703b175 use lua_Integer 2017-05-10 15:35:44 +02:00
Thilo Graf
27eb80eb5b CLuaInstCCWindow: try to fix window title align parameter
Additional (lua_Integer)CTextBox::NO_AUTO_LINEBREAK) overwrites
passed parameter and has no effect, because NO_AUTO_LINEBREAK is
already default.
2017-05-10 10:42:08 +02:00
Thilo Graf
1f978f01ad CLuaInstCCWindow: fix passed shadow paramater 2017-05-09 12:09:20 +02:00
svenhoefer
3669130b14 - luainstance: add missing COL_SCROLLBAR colors 2017-04-22 17:02:48 +02:00
Thilo Graf
83cfd68f88 Lua: try to implement progresswindow 2017-03-31 10:12:35 +02:00
Thilo Graf
a788eee298 LUA-Api: add alignment parameter for text in window header
Possible modes are :
	* "DEFAULT" (left)
	* "CENTER"
	* "RIGHT"

TODO: doc
2017-03-31 10:12:35 +02:00
svenhoefer
b945336a79 - jsoncpp: update to current version 1.8.0
Use amalgamated src from https://github.com/open-source-parsers/jsoncpp
2017-03-28 21:23:10 +02:00
Thilo Graf
c766a970dc CComponentsFooter: simplify implementation of button labels
button_label_l and button_label_s are now
merged to button_label_cc with prepared default values for text and locales.This type contains all possible
button label properties. Values for locales and string
are evaluated in setButtonLabels(), so it's possible to remove some
overloaded methodes.
2017-03-11 00:45:25 +01:00
svenhoefer
75ff8687dd - luainstance: re-add typo TO_WIDE to stay backward compatible 2017-03-03 08:57:42 +01:00
svenhoefer
6afe247bc3 - luainstance: add missing RADIUS_NONE; fix typo in dynfont handling 2017-03-03 08:55:35 +01:00
svenhoefer
6eb1bb1ea4 - luainstance: add offsets to lua; set Lua api version to 1.70 2017-03-02 23:00:49 +01:00
M. Liebmann
2d30ef10d8 lua cwindow.new: Fix draw small windows
- Ignore percent conversion of width and height
   to remain compatible with the Lua API
2017-02-28 23:31:58 +01:00
M. Liebmann
6166f4a6f4 CLuaInstance: Add script fumction 'scale2Res'
- Set Lua api version to 1.69
2017-02-27 00:24:34 +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
Jacek Jendrzej
f4f351e9ba some inits 2017-01-30 17:22:41 +01:00
Jacek Jendrzej
293d32c776 src/gui/lua/lua_curl.cpp set dumb cookie for dumb 403 forbidden 2017-01-28 17:55:14 +01:00
Jacek Jendrzej
7fee7784ae src/gui/lua/lua_curl.cpp ACCEPT_ENCODING for gzip compressed data, need build libcurl with --with-zlib 2016-12-22 23:09:07 +01:00