Commit graph

160 commits

Author SHA1 Message Date
Miika Pekkarinen
7c4e0c8730 Initial version of tagcache! There are still some bugs in the engine
and much more problems with the UI.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9256 a1c6a512-1295-4272-9138-f99709370657
2006-03-26 11:33:42 +00:00
Hristo Kovachev
f53f64a615 button.h cleanup, with the future "button action" thing in mind:
1) Main unit's button defines are from the LSB to the MSB (currently bits 0-9, 0x00000200), remote ones are from the 20th bit (0x00100000) downards to 10th(0x00000400);
2) Removed the BUTTON_REMOTE modifier, replaced with a bitmask of all of the remote buttons (where applicable, otherwise with 0), added a complementary BUTTON_MAIN bitmask;
3) Moved button modifiers:
  - BUTTON_REPEAT: to bit 26 (0x04000000)
  - BUTTON_REL: to bit 25 (0x02000000)
There are at least 4 bits free on all targets now: 21-24.
If we really need more free bits, it's possible to SHR remote buttons 1 bit more (freeing bit 20 too), and to change the SYS_EVENT bit with a bitmask (+2 bits).
4) Bumped up the min. plugin ver. (and sorted the plugin api struct), because the binary plugins with key input won't understand the new values


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9149 a1c6a512-1295-4272-9138-f99709370657
2006-03-21 09:36:13 +00:00
Dave Chapman
a814584c87 pacbox - a Pacman arcade machine emulator. Currently working for all colour targets and the iriver H1x0. Requires the Pacman arcade machine ROMs in /.rockbox/pacman/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9001 a1c6a512-1295-4272-9138-f99709370657
2006-03-11 15:44:35 +00:00
Jens Arnold
dae698cad4 Ooops.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8997 a1c6a512-1295-4272-9138-f99709370657
2006-03-11 09:38:12 +00:00
Jens Arnold
06bc627c99 Removed lcd_roll() and lcd_remote_roll() functions. These functions were not really portable. Removed the only plugin that used lcd_roll(): Oscillograph. Oscilloscope offers everything that oscillograph did and more, in a portable way. * Bumped & sorted plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8995 a1c6a512-1295-4272-9138-f99709370657
2006-03-11 09:28:49 +00:00
Dan Everton
769925541a sound_set_pitch is not available on Player
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8916 a1c6a512-1295-4272-9138-f99709370657
2006-03-05 19:46:33 +00:00
Dan Everton
d108849812 Get VU Meter plugin working on SWCODEC targets. Still needs to be scaled to fit better on larger displays. Also requires bumping the plugin API versions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8915 a1c6a512-1295-4272-9138-f99709370657
2006-03-05 19:34:54 +00:00
Jens Arnold
38b7547ef4 Simulators: Fix pointer size vs. int size problems (64bit hosts) in plugin loader and codec loader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8880 a1c6a512-1295-4272-9138-f99709370657
2006-03-02 01:08:38 +00:00
Jens Arnold
6a972e0249 Finally - grayscale library support for the simulators. Currently SDL only, win32 and x11 won't link anymore due to missing simulator functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8845 a1c6a512-1295-4272-9138-f99709370657
2006-02-26 13:37:42 +00:00
Dave Chapman
603f87fe3c Foreground/Background colour settings. Based on patch #3050 by Jonathan Gordon, extended my me. The principle of the patch is that the three sliders contain the native ranges (currently 0..31, 0..63, 0..31), and the equivalent RGB888 colour is displayed underneath. The config block (and global_settings struct) contain the native value for the fg/bg colours (either RGB565 or RGB565SWAPPED), but the text .cfg files contain the RGB888 value written as 6 hex digits.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8840 a1c6a512-1295-4272-9138-f99709370657
2006-02-26 02:48:05 +00:00
Hristo Kovachev
cc6f37b8d8 "Next/Previous jpeg from within the JPEG viewer" addition by Alexander Spyridakis, modified a bit by me
Also tries to use the plugin buffer instead of the audio buffer on the platforms with more than 130kb plugin buffer size (thus not stopping the music playback). If the free buffer from the plugin buffer is not enough, asks for stopping playback. Needs a little more work, but seems stable as it is.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8728 a1c6a512-1295-4272-9138-f99709370657
2006-02-18 20:51:34 +00:00
Jens Arnold
35e05ca504 Plugin loader: Handle the remote LCD the same way as the main LCD (clear, set parameters).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8724 a1c6a512-1295-4272-9138-f99709370657
2006-02-18 00:13:44 +00:00
Jens Arnold
7ea4d59127 Plugin loader adjustments: * Don't clear the LCD before loading, just show a splash instead. * After successful loading, remove backdrop, then clear display, to properly prepare the screen for the plugin. * Clear after returning from plugin and restoring the backdrop.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8710 a1c6a512-1295-4272-9138-f99709370657
2006-02-16 22:36:04 +00:00
Dave Chapman
1c39855787 Only clear the backdrop after a plugin has been loaded successfully - prevents the backdrop being lost if the plugin fails to load.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8689 a1c6a512-1295-4272-9138-f99709370657
2006-02-14 00:39:11 +00:00
Brandon Low
413da2a3d9 Rework PCM buffer
* Linked list instead of static array buffer pointers
* Variable sized chunks
* Improved mix handling
* Reduction in duplicated code
* Reduced IRAM usage w/o sacrificing performance
* Converted to almost entirely unsigned math
* Add pause function to reduce pcm_* exposure to playback.

This WILL break playback on the iPod until linuxstb makes a followup commit.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8612 a1c6a512-1295-4272-9138-f99709370657
2006-02-07 20:38:55 +00:00
Hristo Kovachev
14cfc65414 1. Updated battery_bench plugin:
1.1 Don't use the plugin_get_buffer() so the playlist viewer should work with this plugin running;
1.2 Added new columns for charger inserted, charging, usb powered;
1.3 Some other small improvements
2. charger_inserted() again returns only the AC/DC charger state on H3x0, doesn't include the usb state;
3. Some ifdefs corrected in power.c and power.h;


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8607 a1c6a512-1295-4272-9138-f99709370657
2006-02-07 14:46:03 +00:00
Jens Arnold
e6e8aa9519 Added memmove() to codec API & plugin API, and changed codeclib and plugin libs to use it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8602 a1c6a512-1295-4272-9138-f99709370657
2006-02-06 16:04:01 +00:00
Dave Chapman
d9e5b67b71 Patch #1421422 - Backdrop image patch started by Linus, finished by me. Adds ability to set backdrop images for file browser and menus (store full-screen bitmaps in /.rockbox/backdrops/) and also the ability to set a full-screen background image in a WPS using the %X|filename.bmp| WPS tag. Currently only implemented for targets with colour LCDs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8536 a1c6a512-1295-4272-9138-f99709370657
2006-02-02 20:42:56 +00:00
Ben Basha
b42ef68a83 Fix warnings at h1xx.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8527 a1c6a512-1295-4272-9138-f99709370657
2006-02-01 20:06:25 +00:00
Ben Basha
db83601b3c Add break effect + Bigger bricks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8526 a1c6a512-1295-4272-9138-f99709370657
2006-02-01 18:25:24 +00:00
Hristo Kovachev
495c63f867 New "battery benchmark" plugin by Alexander Spyridakis, modified a bit by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8451 a1c6a512-1295-4272-9138-f99709370657
2006-01-25 18:29:56 +00:00
Brandon Low
05dccc3551 Profiling support, tools and documentation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8375 a1c6a512-1295-4272-9138-f99709370657
2006-01-18 20:54:13 +00:00
Jens Arnold
a8c408c6a3 More consistent error checking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8364 a1c6a512-1295-4272-9138-f99709370657
2006-01-18 08:34:32 +00:00
Jens Arnold
a40d355ee7 Simplified new plugin loader (only read plugin once).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8360 a1c6a512-1295-4272-9138-f99709370657
2006-01-17 20:39:44 +00:00
Jens Arnold
a79027743a Model & version check for simulator plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8356 a1c6a512-1295-4272-9138-f99709370657
2006-01-16 23:20:58 +00:00
Jens Arnold
a36b1d4083 New plugin loader. Solves the crashes introduced with the .bss changes while keeping the small binary size. The model & api version check is now part of the plugin loader. Codecs are not yet adapted, but the old method still works for them. Simulator plugins are not (yet) version-checked. API version numbering restarted, as this is an all-new system. Uses the target ID from configure, so don't change that too often.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8349 a1c6a512-1295-4272-9138-f99709370657
2006-01-15 18:20:18 +00:00
Jens Arnold
c80e0c19e1 Fixed several plugins for dB volume.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8258 a1c6a512-1295-4272-9138-f99709370657
2005-12-17 21:13:30 +00:00
Dave Chapman
77bf6bf370 iPod: current_tick is now a variable, so we can export it via the plugin and codec APIs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8225 a1c6a512-1295-4272-9138-f99709370657
2005-12-12 14:05:14 +00:00
Marcoen Hirschberg
b0fee17d6e waiting is over: initial unicode commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
2005-12-06 13:27:15 +00:00
Jens Arnold
b51f7dfc9b Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657
2005-11-21 23:55:39 +00:00
Jens Arnold
5b2cba17aa Changed the LCD_COLOR pixel value format to packed RGB (unsigned int). Now all LCDs with depth > 1 use the same datatype. Added macros for easy pixel value definition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7912 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 21:09:23 +00:00
Kevin Ferrare
e991beed6d replaced all the splash calls by gui_sync_splash, added some missing remote key in the playlist viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7909 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 15:12:15 +00:00
Dave Chapman
e12f797311 iPod: current_tick is (currently) a macro - so we exclude it from the plugin and codec APIs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7826 a1c6a512-1295-4272-9138-f99709370657
2005-11-12 15:45:48 +00:00
Hardeep Sidhu
b060d3a520 Don't reset plugin_loaded flag for a TSR plugin until it's exited. Fixes problem with playlist viewer overwriting the buffer where plugin is loaded.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7809 a1c6a512-1295-4272-9138-f99709370657
2005-11-10 08:07:31 +00:00
Jens Arnold
7190cf2ed9 Ooops, players have no screendump.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7575 a1c6a512-1295-4272-9138-f99709370657
2005-10-01 10:46:13 +00:00
Jens Arnold
05042affc7 Core: A graphics framework can now register a hook function to extend the core screendump routine. * Grayscale library: (1) Changed the screendump routine into a hook, and implemented it for H1x0. (2) The planar pixel setting routines now use one register less. Fixes build problem with developer builds (frame pointers enabled) on coldfire.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7574 a1c6a512-1295-4272-9138-f99709370657
2005-10-01 10:20:55 +00:00
Dave Chapman
548c1b72c0 Added menu interface to plugin API - needed by Sudoku
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7533 a1c6a512-1295-4272-9138-f99709370657
2005-09-22 08:54:48 +00:00
Linus Nielsen Feltzing
60895bc107 Patch #1272052 by Henrik Backe - Move credits to a plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7450 a1c6a512-1295-4272-9138-f99709370657
2005-09-02 05:39:09 +00:00
Jens Arnold
d6c054575b Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
2005-08-29 21:15:27 +00:00
Jens Arnold
e44372ef18 Moved implementation of user timer to the firmware layer, implemented it for iriver, and made it shareable based on priorities. On iriver, the user timer is shared between the backlight fading and other use, so if a plugin registers the timer, the backlight will resort to simple on/off switching until the plugin releases the timer again. Sorted and bumped the plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7242 a1c6a512-1295-4272-9138-f99709370657
2005-07-26 20:01:11 +00:00
Jens Arnold
12a4ed383f Added font_getstringsize to the plugin api, needed for the reworked grayscale library.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7240 a1c6a512-1295-4272-9138-f99709370657
2005-07-25 19:56:35 +00:00
Jens Arnold
b0e056b5ae More preparations and conversions for colour LCD support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7195 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 10:33:41 +00:00
Jens Arnold
82ea7c3bac Renamed MAX_LEVEL to LCD_MAX_LEVEL to match the naming scheme. Preparations for colour LCD support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7194 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 09:24:29 +00:00
Jens Arnold
34a610b1c1 Reset all graphics defaults after returning from plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7142 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 18:12:27 +00:00
Jens Arnold
89d6e950fd Added a number of new graphics functions to the plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7127 a1c6a512-1295-4272-9138-f99709370657
2005-07-12 23:46:50 +00:00
Jens Arnold
d7f9439353 Adapted remote LCD driver and player graphics library to the new bitmap function naming scheme.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7047 a1c6a512-1295-4272-9138-f99709370657
2005-07-07 00:05:29 +00:00
Jens Arnold
f894a4c269 4-shades greyscale graphics core for iriver H1x0. 4-grey rockbox logo and light grey background in splash() boxes. Simplified the splash() box creation as the new graphics core does clipping. Adapted screendump feature and added flexible preprocessing to construct the bmp header. Rockboy now uses 4-grey mode as well. 4-grey support for win32 simulator. Fixed win32 player sim to not use double bitmap conversion via a recorder-like framebuffer, and correctly display double-height text. X11 simulator temporarily adapted. The display won't be distorted, but it still shows b&w only.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7046 a1c6a512-1295-4272-9138-f99709370657
2005-07-06 22:58:02 +00:00
Michiel Van Der Kolk
c735ed7914 First runtime database support, self repairing, only playcount works for now,
which is still rather crude; playcount gets increased even if the song started playback but was skipped... track rating should be trivial to add, autorating also works since its based on playcount.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6969 a1c6a512-1295-4272-9138-f99709370657
2005-07-01 17:29:44 +00:00
Daniel Stenberg
510a18d302 added strncmp() to the plugin API, based the patch 1170215 by Rick La Charité
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6943 a1c6a512-1295-4272-9138-f99709370657
2005-06-30 10:39:28 +00:00
Jens Arnold
5eb0fff07b Fixed red H1x0 simulator build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6909 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 02:01:24 +00:00