summaryrefslogtreecommitdiff
path: root/apps/plugin.c
AgeCommit message (Collapse)Author
2006-11-15Hopefully clean up some errorsKarl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11528 a1c6a512-1295-4272-9138-f99709370657
2006-11-15Don't need to remove the backdrop for all plugins - leave it up for some.Karl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11526 a1c6a512-1295-4272-9138-f99709370657
2006-11-13Backdrop support for greyscale targets. WPS backdrop is untested.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11520 a1c6a512-1295-4272-9138-f99709370657
2006-11-11Fixed logf builds.Miika Pekkarinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11512 a1c6a512-1295-4272-9138-f99709370657
2006-11-11Trimmed a little too much from plugin.c :PMichael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11510 a1c6a512-1295-4272-9138-f99709370657
2006-11-11Added recording functions to plugin API per request of Thom Johansen. ↵Michael Sevakis
Cleaned up includes in plugin.c and grouped them a bit better in plugin.h while at it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11508 a1c6a512-1295-4272-9138-f99709370657
2006-11-06Big Patch adds primarily: Samplerate and format selection to recording for ↵Michael Sevakis
SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657
2006-10-31put the parameter name in the function prototypeJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11406 a1c6a512-1295-4272-9138-f99709370657
2006-10-31* give tsr plugins the choice to quit or notJonathan Gordon
* bumps plugin api version git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11405 a1c6a512-1295-4272-9138-f99709370657
2006-10-21Disk spindown control during jpeg slideshow: for times below 10s, keep the ↵Peter D'Hoye
disk spinning, for longer times spin down the disk immediately after loading the picture. Inspired by #FS5653 (Paul Jam / Gwen Roelants) and Jens Arnold git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11299 a1c6a512-1295-4272-9138-f99709370657
2006-10-14Added a small interface to screens to translate colors into remote gray ↵Michael Sevakis
levels on the x5. Splash screens paint properly with light gray. Should be adapted to a more general approach in the future. A few trailing whitespace trimmings got into a couple files but that is fine. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11218 a1c6a512-1295-4272-9138-f99709370657
2006-10-09Plugin loader: * Fix drawinfo reset after plugin return for greyscale remote ↵Jens Arnold
LCDs. * Slight cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11155 a1c6a512-1295-4272-9138-f99709370657
2006-09-26Add wheel_status() function to the ipod "4g" button driver (i.e. all ipods ↵Dave Chapman
excluding the 3G and 1st gen mini) to read the absolute position the wheel is being touched (0..95 - clockwise from top, or -1 for untouched), plus the wheel_send_events(bool) function to disable/enable sending normal scrolling events - based on patch #4721 from Mikael Magnusson. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11068 a1c6a512-1295-4272-9138-f99709370657
2006-09-17Solitaire: * Button assignments: Better layout for ipods, allowing ↵Jens Arnold
one-handed operation during the game. More logical shortcut buttons for Ondios. Slight changes for other targets, including working button repeat for up/down when there is no dual use. * Help text showing all possible buttons instead of forcing the user to try and find out. The text adapts to LCD resolution and selected font. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10985 a1c6a512-1295-4272-9138-f99709370657
2006-09-16New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen
switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
2006-08-16* Add keymap file for h10 (Thanks Barry Wardell)Jonathan Gordon
* Add a signalscreenchange to plugin_run so keys work coreclty after quiting plugins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10601 a1c6a512-1295-4272-9138-f99709370657
2006-08-15Finally, the new button action system is here, thanks to Jonathan Gordon. ↵Linus Nielsen Feltzing
Some button mappings have changed and other things may break. Comments should go to the forum, http://forums.rockbox.org/index.php?topic=5829.0 or the mailing list. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10582 a1c6a512-1295-4272-9138-f99709370657
2006-08-11Accepted FS #5786 by Michael Sevakis - lcd_yuv_blit() for X5.Rani Hod
hard coded to YUV4:2:0 for now, gives ~13.5 fps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10528 a1c6a512-1295-4272-9138-f99709370657
2006-08-08Implementation of lcd_yuv_blit() for the ipod 5g.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10487 a1c6a512-1295-4272-9138-f99709370657
2006-08-08H300: * Implemented lcd_yuv_blit(). Speeds up video playback by about 7%. No ↵Jens Arnold
bounds check in lcd_yuv_blit() (by convention), implementations for other targets should be adapted. * Fixed off-by-one bug in lcd_update_rect() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10484 a1c6a512-1295-4272-9138-f99709370657
2006-08-08Add disktidy plugin (FS#2596).Dan Everton
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10482 a1c6a512-1295-4272-9138-f99709370657
2006-08-07Initial commit of work-in-progress MPEG video player plugin based on ↵Dave Chapman
libmpeg2. Works on all targets with colour LCDs, but most optimised for the ipod Color/Photo and Nano. It currently only plays raw MPEG-1 or MPEG-2 video streams (no audio). Also adds a new lcd_yuv_blit() function to the plugin API - currently only implemented for the ipod Color/Photo and Nano. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10479 a1c6a512-1295-4272-9138-f99709370657
2006-07-28X5 remote LCD drawing. This will break target linking atm - ↵Jens Arnold
lcd_remote_update[_rect]() are not yet implemented. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10347 a1c6a512-1295-4272-9138-f99709370657
2006-07-19Export bidi_l2v, font_get_bits and font_load in plugin API (on bitmap LCD ↵Antoine Cellerier
targets) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10255 a1c6a512-1295-4272-9138-f99709370657
2006-07-01Added multi-screen API to the plugins API, made 'demystify plugin' use the ↵Kevin Ferrare
remote display as well git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10167 a1c6a512-1295-4272-9138-f99709370657
2006-06-06Work-in-progress rework of charging status reading & display: * Changed ↵Jens Arnold
several charging related HAVE_* macros into one multi-value CONFIG_CHARGING. * Always use proper macros for charging states. * Battery symbol charging animation now starts from current level on all targets with charging. Two-colour animation kept for non-b&w targets. Round down fill level while charging as before, but round to nearest pixel value for discharging on all targets. * Charging anim fixed on player. * Some code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10080 a1c6a512-1295-4272-9138-f99709370657
2006-06-04Added reload_directory() to plugin api and modified text editor and sudoku ↵Hardeep Sidhu
plugins to call it when saving a new file. Fixes B#5360. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10053 a1c6a512-1295-4272-9138-f99709370657
2006-05-03Text viewer: * Only show those options which really exist. * Basic button ↵Jens Arnold
functions now available on all targets. * Implemented option setting in a more straightforward way (like the core options menus). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9874 a1c6a512-1295-4272-9138-f99709370657
2006-05-02Player: Credits plugin correctly working with UTF-8. Patch by Marcoen ↵Jens Arnold
Hirschberg. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9862 a1c6a512-1295-4272-9138-f99709370657
2006-05-01Patch #5056 by Jonathan Gordon, with rework and additions by me: Updated ↵Zakk Roberts
Viewer plugin. Replaces annoying mode-toggle key-combos with a settings menu, including a new 'Scroll by Line' option. I've also added a 'hands-free' auto-scroll feature and added lcd_setmargins to the plugin API, since we need it here. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9844 a1c6a512-1295-4272-9138-f99709370657
2006-04-06Patch #3022 by Mikael Magnusson: Only zero out the actual bss area instead ↵Jens Arnold
of the whole plugiin buffer, for faster plugin loading. * Applied the same idea to the overlay loader. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9535 a1c6a512-1295-4272-9138-f99709370657
2006-04-03Patch #4864 by Jonathan Gordon: text editor plugin, with some changes by me.Hristo Kovachev
Also correct a var clash between the rockbox's gui api and doom plugin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9451 a1c6a512-1295-4272-9138-f99709370657
2006-03-28Finish removing the main LCD backdrop function from the plugin APIDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9315 a1c6a512-1295-4272-9138-f99709370657
2006-03-28Do not export load_main_backdrop() via the plugin API. Plugins should ↵Dave Chapman
allocate their own buffer and use lcd_set_backdrop() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9313 a1c6a512-1295-4272-9138-f99709370657
2006-03-28Patch #2969 - Doom! Currently only working on the H300.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9312 a1c6a512-1295-4272-9138-f99709370657
2006-03-26WAV playback as a plugin, for archos recorders and Ondios. Plays 16-bit WAV ↵Jens Arnold
files with all common sample frequencies, both mono and stereo. Meant as a preview for later PCM playback integration, and for doing experiments with the MAS PCM codec. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9273 a1c6a512-1295-4272-9138-f99709370657
2006-03-26Basic plugin playback control menu by Jonathan Gordon (Patch #4874)Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9269 a1c6a512-1295-4272-9138-f99709370657
2006-03-26Initial version of tagcache! There are still some bugs in the engineMiika Pekkarinen
and much more problems with the UI. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9256 a1c6a512-1295-4272-9138-f99709370657
2006-03-21button.h cleanup, with the future "button action" thing in mind:Hristo Kovachev
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-11pacbox - a Pacman arcade machine emulator. Currently working for all colour ↵Dave Chapman
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-11Ooops.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8997 a1c6a512-1295-4272-9138-f99709370657
2006-03-11Removed lcd_roll() and lcd_remote_roll() functions. These functions were not ↵Jens Arnold
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-05sound_set_pitch is not available on PlayerDan Everton
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8916 a1c6a512-1295-4272-9138-f99709370657
2006-03-05Get VU Meter plugin working on SWCODEC targets. Still needs to be scaled to ↵Dan Everton
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-02Simulators: Fix pointer size vs. int size problems (64bit hosts) in plugin ↵Jens Arnold
loader and codec loader. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8880 a1c6a512-1295-4272-9138-f99709370657
2006-02-26Finally - grayscale library support for the simulators. Currently SDL only, ↵Jens Arnold
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-26Foreground/Background colour settings. Based on patch #3050 by Jonathan ↵Dave Chapman
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-18"Next/Previous jpeg from within the JPEG viewer" addition by Alexander ↵Hristo Kovachev
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-18Plugin loader: Handle the remote LCD the same way as the main LCD (clear, ↵Jens Arnold
set parameters). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8724 a1c6a512-1295-4272-9138-f99709370657
2006-02-16Plugin loader adjustments: * Don't clear the LCD before loading, just show a ↵Jens Arnold
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