Andrew Mahone
23d9812273
loader-initialized global plugin API:
...
struct plugin_api *rb is declared in PLUGIN_HEADER, and pointed to by
__header.api
the loader uses this pointer to initialize rb before calling entry_point
entry_point is no longer passed a pointer to the plugin API
all plugins, and pluginlib functions, are modified to refer to the
global rb
pluginlib functions which only served to copy the API pointer are
removed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19776 a1c6a512-1295-4272-9138-f99709370657
2009-01-16 10:34:40 +00:00
Björn Stenberg
c6b3d38a15
New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles.
...
Many #include lines adjusted to conform to the new standards.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19146 a1c6a512-1295-4272-9138-f99709370657
2008-11-20 11:27:31 +00:00
Jens Arnold
bd08aeed53
Video plugin: Fix OSD for font_height != 8. Don't fiddle with the framebuffer directly, but use the standard lcd drawing functions and lcd_update_rect() (in the ISR as required). OSD now displays for 1 second (0.5 seconds for buffer debug).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19052 a1c6a512-1295-4272-9138-f99709370657
2008-11-09 14:08:20 +00:00
Frank Gevaerts
2f8a0081c6
Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do that, it also introduces sd_*, nand_*, and mmc_*.
...
This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657
2008-11-01 16:14:28 +00:00
Frank Gevaerts
46573019a5
add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for an actual disk (i.e. related to spindown, skipping,...)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18735 a1c6a512-1295-4272-9138-f99709370657
2008-10-07 19:37:33 +00:00
Daniel Stenberg
2acc0ac542
Updated our source code header to explicitly mention that we are GPL v2 or
...
later. We still need to hunt down snippets used that are not. 1324 modified
files...
http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-28 18:10:04 +00:00
Steve Bavin
6526577818
Plugin parameters should be const.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657
2008-05-13 09:57:56 +00:00
Jens Arnold
ac9b92716a
Allow to select the core for running the user timer on portalplayer targets. * Incompatible plugin API change -> sorted API.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16965 a1c6a512-1295-4272-9138-f99709370657
2008-04-04 19:38:46 +00:00
Jens Arnold
68a21689ae
Consistent naming scheme the various blit functions. * Removed lcd_blit_mono() for colour targets. Plugin API became incompatible, so sort, clean up & bump. * Implemented lcd_blit_mono() for M3.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16775 a1c6a512-1295-4272-9138-f99709370657
2008-03-24 00:35:53 +00:00
Peter D'Hoye
767c0ec589
Pass plugin api pointer to funtion directly, fixes crashes when doing incremental builds. Fix incorrect backlight changes in rockblox introduced recently.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14373 a1c6a512-1295-4272-9138-f99709370657
2007-08-16 23:01:18 +00:00
Peter D'Hoye
cb53e3cef4
Bring mpegplayer backlight fix to the other plugins, this also fixes some wrongly ifdef'd backlight calls.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14352 a1c6a512-1295-4272-9138-f99709370657
2007-08-15 12:42:09 +00:00
Nils Wallménius
0bfa3e76ce
Disable 'Disk spindown' and 'Anti skip buffer' settings and some related stuff for flash storage targets as they make no sense
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14110 a1c6a512-1295-4272-9138-f99709370657
2007-08-01 08:50:44 +00:00
Nils Wallménius
c7f9ca4067
Accept FS#7264 'Build with -Os switch for coldfire targets'.
...
Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers
functions to a plugin to make plugins link correctly when gcc
calls mem* functions directly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
2007-06-13 15:35:07 +00:00
Michael Sevakis
8676dc25f5
Missed a couple. Hopefully fix all warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13234 a1c6a512-1295-4272-9138-f99709370657
2007-04-21 19:07:15 +00:00
Jens Arnold
79c8a8cbbe
Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
2007-03-17 09:02:53 +00:00
Jens Arnold
4d6374c923
Get rid of the 'center' parameter for splashes. There were only 2 of almost 500 splashes which were not centered.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 21:56:08 +00:00
Jonathan Gordon
d5df5f63fd
please, oh please give me a green build so I can goto bed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11554 a1c6a512-1295-4272-9138-f99709370657
2006-11-19 14:39:02 +00:00
Jonathan Gordon
6288523cfe
* Move checkbox to plugin api (core never uses it)
...
* replace the last of the scrollbar() calls with gui_scrollbar_draw()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11552 a1c6a512-1295-4272-9138-f99709370657
2006-11-19 14:11:42 +00:00
Daniel Stenberg
220fafdd72
Code Police raid. Mostly changed // comments and indented to Rockbox style.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8894 a1c6a512-1295-4272-9138-f99709370657
2006-03-03 08:14:44 +00:00
Jens Arnold
3187a59f74
Ooops. INT_MAX is now visible to plugins, so don't redefine it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8889 a1c6a512-1295-4272-9138-f99709370657
2006-03-03 01:32:19 +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
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
7595244845
Fix for bug #904026 : Reset pitch to ensure synchronous playback.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6459 a1c6a512-1295-4272-9138-f99709370657
2005-05-12 19:53:11 +00:00
Linus Nielsen Feltzing
d34865a530
mp3buf renamed to audiobuf
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6252 a1c6a512-1295-4272-9138-f99709370657
2005-04-05 11:33:58 +00:00
Linus Nielsen Feltzing
674eaca5ef
Moved the mpeg_sound_xxx() functions to sound.c and renamed them to sound_xxx()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6240 a1c6a512-1295-4272-9138-f99709370657
2005-04-01 13:41:03 +00:00
Jens Arnold
4666f7e0d9
Bugfix: Ordinary ending of playback didn't close the file (File handle leak, cleared resume position was not saved).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5565 a1c6a512-1295-4272-9138-f99709370657
2005-01-16 00:10:57 +00:00
Jens Arnold
cc8cff2ec0
Plugin rework 1: (most) Compile-time keyboard configuration, for Ondio adaption. (all) Now using the default event handler, standard placement is now in switch() default case. (snow) Made USB aware. (video) Added contrast setting to Ondio version.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5291 a1c6a512-1295-4272-9138-f99709370657
2004-10-16 00:07:43 +00:00
Jens Arnold
2a0d541a38
BUG FIX: Corrected the speed kludge for Ondio video playback. The previous solution changed the frame time directly in the file header structure, causing the changed value to be saved together with resume position, therefore destroying sync for any further playback.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5271 a1c6a512-1295-4272-9138-f99709370657
2004-10-13 23:59:15 +00:00
Jens Arnold
9db31cf886
grayscale.rock, jpeg.rock and video.rock now use default_event_handler_ex(). Adapted and enabled them for Ondio.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5264 a1c6a512-1295-4272-9138-f99709370657
2004-10-12 22:49:51 +00:00
Jens Arnold
6b559b1f97
scrollbar() parameters were swapped
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4859 a1c6a512-1295-4272-9138-f99709370657
2004-07-09 07:04:45 +00:00
Linus Nielsen Feltzing
2441061764
Removed progressbar() and slidebar()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4854 a1c6a512-1295-4272-9138-f99709370657
2004-07-08 13:14:44 +00:00
Jörg Hohensohn
480c2fa215
removed a bit of obsolete stuff
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4697 a1c6a512-1295-4272-9138-f99709370657
2004-05-23 15:41:28 +00:00
Jörg Hohensohn
12deda14d5
adaptive spinup control
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4599 a1c6a512-1295-4272-9138-f99709370657
2004-05-09 18:18:05 +00:00
Jörg Hohensohn
33b4629b66
LCD contrast setting on F2/F3
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4567 a1c6a512-1295-4272-9138-f99709370657
2004-04-30 21:38:24 +00:00
Jörg Hohensohn
a2d9dbdcb9
didn't I say no more hardware banging?
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4566 a1c6a512-1295-4272-9138-f99709370657
2004-04-30 21:16:35 +00:00
Jörg Hohensohn
664959aed4
uses the new timer registration of the plugin API, no hardware banging any more
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4564 a1c6a512-1295-4272-9138-f99709370657
2004-04-30 20:49:00 +00:00
Jörg Hohensohn
24e2bb3438
loops have not been OK, were showing one frame more than available
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4351 a1c6a512-1295-4272-9138-f99709370657
2004-03-08 20:14:04 +00:00
Jörg Hohensohn
bfba273153
my underrun checks have not been precisely correct
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4348 a1c6a512-1295-4272-9138-f99709370657
2004-03-08 08:29:11 +00:00
Jörg Hohensohn
d93d20f6a4
for upcoming release: no diagnostic screen unless underruns happened
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4339 a1c6a512-1295-4272-9138-f99709370657
2004-03-05 07:11:38 +00:00
Jörg Hohensohn
e7a48977bf
mp3_play_init() removed, this was resetting the sound settings. Playback is the normal state anyhow, we could remove this function from the plugin API.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4312 a1c6a512-1295-4272-9138-f99709370657
2004-02-21 22:05:37 +00:00
Jörg Hohensohn
06500c84ce
option to resume to the position it was stopped last time
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4301 a1c6a512-1295-4272-9138-f99709370657
2004-02-07 16:53:29 +00:00
Jörg Hohensohn
feb7f91e28
spinup the disk more early, and a recovery for underruns: seek to the last position.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4300 a1c6a512-1295-4272-9138-f99709370657
2004-02-06 21:19:05 +00:00
Jörg Hohensohn
47648b88c7
The new video player, with audio!
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4298 a1c6a512-1295-4272-9138-f99709370657
2004-02-05 23:45:46 +00:00
Jörg Hohensohn
c127509524
I knew this was going too fast with the new LCD function. Now contains a fix to control the speed to 71 fps, until I release the new A/V player.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4279 a1c6a512-1295-4272-9138-f99709370657
2004-01-27 07:21:29 +00:00
Jörg Hohensohn
4044f1e93a
nicer reverse play, FF/FR with acceleration and position bar
...
(BTW: cut still images like lena to fit into buffer if they don't loop any more)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4236 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 07:48:02 +00:00
Daniel Stenberg
1afa395c2f
The splash() function's second argument (keymask) is now removed, as it
...
was not used by any code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4201 a1c6a512-1295-4272-9138-f99709370657
2004-01-08 09:58:58 +00:00
Jörg Hohensohn
9eb03c1043
better USB handling, typo fixed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4174 a1c6a512-1295-4272-9138-f99709370657
2003-12-22 23:10:04 +00:00
Jörg Hohensohn
5617f3ba5c
the vidoe player has some control now: backward, pause, step, FF/FR
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4163 a1c6a512-1295-4272-9138-f99709370657
2003-12-18 22:36:35 +00:00
Linus Nielsen Feltzing
c4e1bdf016
Now correctly informs gcc that r0 is clobbered in lcd_write_data(). The video LED bug is now dead and buried.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4147 a1c6a512-1295-4272-9138-f99709370657
2003-12-15 08:54:05 +00:00