Commit graph

737 commits

Author SHA1 Message Date
Jens Arnold
ddad7197ed H1x0: Slight optimisation of the grayscale library.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7646 a1c6a512-1295-4272-9138-f99709370657
2005-10-20 19:56:32 +00:00
Jens Arnold
abd9f83e92 Two new sections for IRAM usage: .irodata (selectable with the ICONST_ATTR attribute macro), allowing to put 'const' data into IRAM without causing a section type conflict, and .ibss (selectable with the IBSS_ATTR attribute macro) for uninitialised data. * Rockbox core: Adjusted the linker scripts and init code to not include the .ibss section in the binary, it is cleared instead. Saves ~500 bytes on archos and ~30KB on iriver. Codecs and plugins don't handle .ibss in a special way yet. * The init code properly handles empty sections now (except .stack, which should never be empty). * Unified the init code for SH1 and coldfire a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7644 a1c6a512-1295-4272-9138-f99709370657
2005-10-19 19:35:24 +00:00
Jens Arnold
69ffcd5356 Mandelbrot plugin: New fixed point routines, loosing a tiny bit of precision (3 bits), but way faster than before. Full precision routine uses the EMAC on coldfire. No more 64 bit arithmetics used except within the asm inlines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7636 a1c6a512-1295-4272-9138-f99709370657
2005-10-16 22:24:00 +00:00
Jens Arnold
625ef752fb Fixed some misleading comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7608 a1c6a512-1295-4272-9138-f99709370657
2005-10-10 16:46:51 +00:00
Jens Arnold
891daf30b5 Removed an unnecessary instruction from the coldfire 64 bit multiplication.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7607 a1c6a512-1295-4272-9138-f99709370657
2005-10-10 16:45:59 +00:00
Jens Arnold
a0b439c169 Patch #1239950 by Dave Hooper: Rotate cube while paused.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7596 a1c6a512-1295-4272-9138-f99709370657
2005-10-07 23:01:31 +00:00
Jens Arnold
f23ab031a1 New demo plugin, screensaver style, by Kevin Ferrare.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7594 a1c6a512-1295-4272-9138-f99709370657
2005-10-07 22:22:07 +00:00
Jens Arnold
6a703fe49d New plugin: Fire effect, developed by Kevin Ferrare, adapted to archos and optimised by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7591 a1c6a512-1295-4272-9138-f99709370657
2005-10-07 20:37:41 +00:00
Jens Arnold
74e4b250a6 New plugin: Plasma effect, developed by Mat Holton, imtegerised and extended by Kevin Ferrare.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7590 a1c6a512-1295-4272-9138-f99709370657
2005-10-07 20:35:27 +00:00
Dave Chapman
9e19c95d8e Replace SWAB16 and SWAB32 with a comprehensive set of byte-swap macros - letoh16, letoh32, htole16, htole32, betoh16, betoh32, htobe16 and htobe32
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7584 a1c6a512-1295-4272-9138-f99709370657
2005-10-06 19:27:43 +00:00
Linus Nielsen Feltzing
1c3a83c44e Patch #1264727 by Dave Hooper, Colorize red cards on screens with LCD_DEPTH > 1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7583 a1c6a512-1295-4272-9138-f99709370657
2005-10-06 12:42:19 +00:00
Daniel Stenberg
af48260399 Modified the viewers.config syntax slightly. The name field should now include
path of the plugin/viewer on target, but exclude the exension. Now the Sudoku
plugin acts as a normal plugin and a viewer at the same time.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7582 a1c6a512-1295-4272-9138-f99709370657
2005-10-05 08:02:10 +00:00
Daniel Stenberg
8dd2ff50c6 removed plugins we no longer build nor include
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7581 a1c6a512-1295-4272-9138-f99709370657
2005-10-05 07:23:59 +00:00
Dave Chapman
33e935ce1d Added the "New" menu option. This allows you to manually enter and then save a new grid. Press the menu button when you have finished and enter the full path to save to including the .ss extension (e.g. /sudoku/new.ss).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7580 a1c6a512-1295-4272-9138-f99709370657
2005-10-04 23:36:03 +00:00
Dave Chapman
598be3af1b Make the load function handle some variations to the "standard" for .ss files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7579 a1c6a512-1295-4272-9138-f99709370657
2005-10-04 21:30:37 +00:00
Jens Arnold
1cbac551be Grayscale lib on archos: Fixed bug introduced with the register usage change. Reusing a register twice won't work that well...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7577 a1c6a512-1295-4272-9138-f99709370657
2005-10-03 12:51:29 +00:00
Jens Arnold
cfb073c452 Coldfire: New timer handling on CPU frequency change, adjusting the prescaler on the fly, for both tick and user timer. Precondition is that the higher frequencies are integer multiples of the base: now NORMAL is 45 MHz and MAX is 124 MHz. Removes the need for applications with longer timer periods (>= 10 ms) to boost the CPU all the time, e.g. the grayscale lib. Timer counts are now always based on the base frequency (CPU_FREQ). * Adjusted the RAM refresh timers to the new frequencies (all frequencies for H100) * All: Fixed the tick timer count being off by one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7576 a1c6a512-1295-4272-9138-f99709370657
2005-10-03 09:24:36 +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
Jens Arnold
1a40e10933 H1x0: Changed lcd_blit() and the grayscale library to use the same internal format as on archos (1bpp). While the slowdown of the ISR is minimal (the intermediate buffers are in IRAM), the planar grayscale buffer takes only half the space for a given depth, and gray_update[_rect]() and unbuffered drawing/scrolling are faster because less data needs to be moved. It should also make porting of video.rock somewhat easier. * Archos recorders, Ondios: Some slight optimisations of the grayscale library.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7571 a1c6a512-1295-4272-9138-f99709370657
2005-09-30 20:10:27 +00:00
Magnus Holmgren
58384f03fb iRiver: Make it possible to build Rockbox using GCC 4.0.1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7569 a1c6a512-1295-4272-9138-f99709370657
2005-09-28 17:36:42 +00:00
Jens Arnold
e85fe09232 Sudoku: (Recorders) Changed menu button to F1. (Ondio) Changed menu button to long MODE. Short MODE only toggles once; use MODE+DOWN for toggle-repeat. That won't bring up the menu if you're fast enough. Should be easy using the thumb.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7545 a1c6a512-1295-4272-9138-f99709370657
2005-09-22 21:00:03 +00:00
Dave Chapman
567718d837 Add ON button as an alternative toggle button for the iriver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7543 a1c6a512-1295-4272-9138-f99709370657
2005-09-22 20:17:21 +00:00
Daniel Stenberg
747bba530c Credit scroll speed as sine wave in an attempt to beome more readable on the
blurry iriver LCD.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7536 a1c6a512-1295-4272-9138-f99709370657
2005-09-22 10:56:42 +00:00
Dave Chapman
8c1330b391 Fix warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7534 a1c6a512-1295-4272-9138-f99709370657
2005-09-22 09:01:50 +00:00
Dave Chapman
6afb017642 First version of Sudoku plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7532 a1c6a512-1295-4272-9138-f99709370657
2005-09-22 08:53:04 +00:00
Jens Arnold
ba966c1761 Archos recording/playback: (1) Xing header creation: * Now estimates the framecount from the recording time if the MAS frame counter saturates, so it always writes a valid Xing header. * Reverted my brainless short-xing-header change. This was only valid for layer 3. (2) Xing/VBRI header evaluation: Fixed possible overflow in bitrate calculation. (3) MPEG thread: Avoid double chunk size limiting for the rare case of 8 MB modded Ondios.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7522 a1c6a512-1295-4272-9138-f99709370657
2005-09-15 05:29:26 +00:00
Jens Arnold
4a2feaa30d Rockboy: Asm optimised updatepatpix() for coldfire. The vertical-mirroring pattern copy profits from burst mode (line aligned movem).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7509 a1c6a512-1295-4272-9138-f99709370657
2005-09-11 21:44:48 +00:00
Jonas Häggqvist
0d82c9c8a6 Forgot to update the screen before splashing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7460 a1c6a512-1295-4272-9138-f99709370657
2005-09-02 22:25:25 +00:00
Linus Nielsen Feltzing
5805bc3bae credits.raw is now created in the plugin build dir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7452 a1c6a512-1295-4272-9138-f99709370657
2005-09-02 07:12:44 +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
a317d74d8e Iriver: Changed the IRAM splitting between core and plugins to 48KB/48KB, and reduced the main thread stack to 8KB, same size as on archos.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7447 a1c6a512-1295-4272-9138-f99709370657
2005-09-01 20:57:33 +00:00
Jonas Häggqvist
68de2581ba Fake an USB connections to force reload of the file-tree after running these viewers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7434 a1c6a512-1295-4272-9138-f99709370657
2005-08-31 00:30:46 +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
99a0598c28 Major peakmeter rework: * Changed set/get functions for dbfs mode to bool type. * Removed performance setting, leaving (slightly adapted) high performance mode only. * Refresh rate is always 20 Hz now. * Readout doesn't do an extra (hidden) peek, should allow for slightly better clip detection. * Brought back high performance peakmeter for recording. Peakmeter stops hogging the CPU when the disk is spinning; this is enough to avoid the performance problem when saving data. * Optimisations, code cleanup and code policeing. * (iriver) Reduced CPU load of peakmeter by not calculating excessive overlaps. ** Bumped config block version, so save your settings before upgrading.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7415 a1c6a512-1295-4272-9138-f99709370657
2005-08-29 20:07:17 +00:00
Daniel Stenberg
5760134f40 No need to build the example plugin "helloworld". Not building it also
prevents it from getting shipped in all automatically built zipfiles...


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7390 a1c6a512-1295-4272-9138-f99709370657
2005-08-23 12:16:41 +00:00
Jörg Hohensohn
943d8d4537 size check adjusted, naked bootbox is small
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7389 a1c6a512-1295-4272-9138-f99709370657
2005-08-23 08:00:16 +00:00
Jörg Hohensohn
13be9f14d7 allow the flash plugin to verify the RomBox link address
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7388 a1c6a512-1295-4272-9138-f99709370657
2005-08-23 07:26:40 +00:00
Jonas Häggqvist
5d0fe30feb Plugin that counds files and folders on harddisk. Works on all models.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7364 a1c6a512-1295-4272-9138-f99709370657
2005-08-20 19:56:01 +00:00
Daniel Stenberg
3a3418dd7b argh, unused variable removed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7324 a1c6a512-1295-4272-9138-f99709370657
2005-08-13 20:41:30 +00:00
Daniel Stenberg
0a0be62b8d reverted the fixed 4 bytes write, made the read code more reliable, use
fdprintf() when writing the highscore, add newline after score in the saved
file for easier loading (but the load code is fixed to better deal with files
saved using the former method as well)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7323 a1c6a512-1295-4272-9138-f99709370657
2005-08-13 20:40:35 +00:00
Tomas Salfischberger
6cf8df810a Patch by XavierGr
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7322 a1c6a512-1295-4272-9138-f99709370657
2005-08-13 18:26:42 +00:00
Stepan Moskovchenko
1874a33298 Uncomment one line, which makes bad 80s music sound a bit better.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7291 a1c6a512-1295-4272-9138-f99709370657
2005-08-07 23:39:23 +00:00
Stepan Moskovchenko
e46b9889c2 Add this back in, for now. Will turn into real codec later, when plugins support the codec api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7290 a1c6a512-1295-4272-9138-f99709370657
2005-08-07 22:32:20 +00:00
Stepan Moskovchenko
fb3e9a4073 Fix error/warning, change pitch bend to 9 bits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7288 a1c6a512-1295-4272-9138-f99709370657
2005-08-07 22:20:40 +00:00
Jens Arnold
0c29589d8a Assembler optimised 64 bit multiplication for coldfire: ~15% speedup. Proper max_iter decrease amount.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7278 a1c6a512-1295-4272-9138-f99709370657
2005-08-01 20:49:41 +00:00
Jens Arnold
ec62b1ac56 Another small opt for the SH1 64 bit multiplication.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7276 a1c6a512-1295-4272-9138-f99709370657
2005-08-01 01:41:35 +00:00
Jens Arnold
6b749c5ab1 Further optimised asm 64 bit multiplication for SH1, speedup around 20%.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7274 a1c6a512-1295-4272-9138-f99709370657
2005-08-01 01:23:04 +00:00
Jens Arnold
43b9cda13c Ooops, the adapted maximum iteration count was off by 60...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7259 a1c6a512-1295-4272-9138-f99709370657
2005-07-30 13:02:33 +00:00
Jens Arnold
3d73790ab7 Heavily improved mandelbrot plugin: (1) Calculation now uses 64bit fixed point arithmetics to allow zooming in way further before the precision barrier will hit. Added asm-optimised 64bit multiplication routine for SH1; more than twice as fast as what gcc produces. (2) Precision is dynamically selected based on the zoom level, low zoom factors still use 32bit for speed. (3) Maximum number of iterations is adapted to the zoom level. You can still increase / decrease it while staying at a zoom level. (4) Panning only recalculates the scrolled-in part of the screen -> way faster panning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7258 a1c6a512-1295-4272-9138-f99709370657
2005-07-30 12:42:11 +00:00
Jens Arnold
773c28e489 Mandelbrot plugin fixes: (1) Aspect handling was broken, it has to keep the x/y aspect which has almost nothing to do with the LCD aspect. (2) Comment about the # of shades. (3) Fixed and tweaked initial x and y limits. (4) Long policy, minor optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7252 a1c6a512-1295-4272-9138-f99709370657
2005-07-28 18:18:15 +00:00
Jens Arnold
feaf62704e Grayscale lib: Moved the shift count doubling for unbuffered up/down scrolling out of the asm block itself (cosmetic).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7250 a1c6a512-1295-4272-9138-f99709370657
2005-07-28 14:08:58 +00:00
Jens Arnold
b65b52b1b9 Adjusted grayscale demo plugin to H1x0: (1) Button assignment. (2) Variable screen resolution.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7248 a1c6a512-1295-4272-9138-f99709370657
2005-07-28 09:15:00 +00:00
Jens Arnold
d074ed66d9 Adjusted JPEG viewer to H1x0: (1) Button assignments. (2) Workaround for the m68k-elf-gcc requiring memcpy internally, by using rb->memcpy explicitly. (3) Variable LCD resolution.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7246 a1c6a512-1295-4272-9138-f99709370657
2005-07-27 20:06:26 +00:00
Jens Arnold
a14f545ded Adjusted mandelbrot plugin to H1x0: (1) Working button assignment. (2) Different LCD aspect. Note that there is something wrong with the aspect when zooming; this was in fact there before, also on archos. (3) Grayscale library init for variable LCD resolution.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7245 a1c6a512-1295-4272-9138-f99709370657
2005-07-27 20:03:52 +00:00
Jens Arnold
00866dbf86 Grayscale library: (1) Ported to iriver H1x0. Experiments have shown that the intended 49-shade mode isn't possible due to interference between the internal greylevel generation of the LCD and external pixel flipping, so the lib allows 33 shades as on the Archos. The current implementation wastes RAM by not switching the LCD to b&w mode and simply using colours 0 and 3 only. However, this allows to show a partial greyscale overlay and normal 4-shade graphics in parallel. (2) Converted all asm blocks to use symbolic parameters. (3) Properly marked asm input parameters that are changed within the block as in-out and feed them from a temp variable where necessary. (4) Screenshot is not yet working on H1x0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7244 a1c6a512-1295-4272-9138-f99709370657
2005-07-27 19:58:49 +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
c20a00ef3e Complete rework of the grayscale library: (1) Implemented the new rockbox graphics api. (2) Added buffered mode, and implemented most drawing functions for buffered mode only. Buffered mode will ease implementation of animated graphics. Some functions are additionally provided as unbuffered versions (drawing grayscale bitmaps, scrolling) since unbuffered mode is better suited for non-animated graphics (JPEG viewer, mandelbrot) and saves some RAM, which is important on Archos. (3) Put all functions in a couple of source files, no more one-function-per-files. This became possible since sectioned compilation for the plugin library and appropriate linking for the pluginswas introduced, otherwise the binaries would be bloated by unused functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7241 a1c6a512-1295-4272-9138-f99709370657
2005-07-25 20:50:34 +00:00
Jens Arnold
79442c8fbd Sokoban: Use greyscale for walls, proper scaling of the player graphic, show button assignments on iriver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7199 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 16:48:02 +00:00
Jens Arnold
f3c4272919 Ooops.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7198 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 16:23:51 +00:00
Jens Arnold
c001bb16d2 Use greyscale graphics in minesweeper.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7197 a1c6a512-1295-4272-9138-f99709370657
2005-07-19 15:39:54 +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
Christian Gmeiner
c6ff1f5eb5 Added CPU_COLDFIRE define - one step closer to iAudio-port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
2005-07-18 12:40:29 +00:00
Jens Arnold
323c1ede5e Optimised placement of lcd_set_drawmode() - the whole plugin uses DRMODE_FG. Make sure foreground is reset to black after returning from scrollit().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7143 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 18:34:07 +00:00
Daniel Stenberg
4a53253592 fixed the right-end too, added more letters on the big screens and added
some "random" grey letters for lcds supporting it


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7140 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 12:29:39 +00:00
Daniel Stenberg
e26d97658d The scroll mode now takes advantage of the clipping support in the new
graphics lib and makes the left-side nice and smooth.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7139 a1c6a512-1295-4272-9138-f99709370657
2005-07-14 11:55:55 +00:00
Jens Arnold
680fe7082f Cube.rock extensions: (1) New mode for all platforms - hidden line. (2) Ability to pause animation. Note - some button assignment changes were required. (3) Proper backface removal, used for both solid and hidden line mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7135 a1c6a512-1295-4272-9138-f99709370657
2005-07-13 20:40:46 +00:00
Jens Arnold
10a680556a Removed a heapload of TABs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7130 a1c6a512-1295-4272-9138-f99709370657
2005-07-13 06:07:11 +00:00
Jens Arnold
6a8cf45052 Cube.rock extension and rework: (1) Solid 4-greylevel mode on iriver H1xx. (2) Restructured internal handling of corners and edges. Added handling of faces for (1). (3) Small button handling changes for better response.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7129 a1c6a512-1295-4272-9138-f99709370657
2005-07-12 23:57:06 +00:00
Jens Arnold
937725f674 Beginnings of a library complementing the core LCD functions. First function: filled triangle drawing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7128 a1c6a512-1295-4272-9138-f99709370657
2005-07-12 23:50:37 +00:00
Jens Arnold
426df39c4c Cube.rock: converted to binary fixed-point arithmetic allowing for some more optimisation, and added proper aspect handling of LCDs with non-square pixels (all archos SH targets).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7126 a1c6a512-1295-4272-9138-f99709370657
2005-07-12 21:15:37 +00:00
Dave Bryant
85e03767f7 Reorganized encoder to allow compressing blocks in smaller chunks and
improved efficiency somewhat by looping through data in tighter passes.
Code is basically ready for an attempt at direct recording.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7088 a1c6a512-1295-4272-9138-f99709370657
2005-07-09 23:14:41 +00:00
Linus Nielsen Feltzing
62c768c0db Recovered from my major brain failure and reverted to using the same load address for both H110 and H120/140
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7082 a1c6a512-1295-4272-9138-f99709370657
2005-07-09 07:46:42 +00:00
Linus Nielsen Feltzing
2d25122431 H110 adjustments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7071 a1c6a512-1295-4272-9138-f99709370657
2005-07-08 15:08:59 +00:00
Daniel Stenberg
8493ccb285 Renamed the iriver h120 defines and configs to "h120"! Added initial support
for the h100 series.

Please re-run configure.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7062 a1c6a512-1295-4272-9138-f99709370657
2005-07-08 06:31:13 +00:00
Linus Nielsen Feltzing
2cc64c4572 Chip8 works again on grayscale devices
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7053 a1c6a512-1295-4272-9138-f99709370657
2005-07-07 09:48:30 +00:00
Daniel Stenberg
11d7cb9126 entry *entryarray is static in the C source so it can't be extern here
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7050 a1c6a512-1295-4272-9138-f99709370657
2005-07-07 08:07:05 +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
Linus Nielsen Feltzing
6b582c3b92 Patch #1232741 by Frederic Devernay - chip8 plugin now playable, and with SCHIP emulation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7041 a1c6a512-1295-4272-9138-f99709370657
2005-07-06 18:38:25 +00:00
Dave Bryant
febd9750f1 Created new viewer application to test WavPack encoding. Accepts .wav file
and generates lossless .wv with the same name. Runs at about 150% realtime
for now. Only problem is that folder display (and playlist?) do not get
updated when finished and since files don't show extensions it's a little
hard to tell which is which (wav is first by alpha).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7010 a1c6a512-1295-4272-9138-f99709370657
2005-07-04 07:07:43 +00:00
Jens Arnold
d2456b44f7 Centralised the ICODE_ATTR and IDATA_ATTR #defines. Renamed some musepack and rockboy headers to avoid clashes with rockbox headers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6991 a1c6a512-1295-4272-9138-f99709370657
2005-07-03 14:05:12 +00:00
Jens Arnold
3291ae6bfa A couple of optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6981 a1c6a512-1295-4272-9138-f99709370657
2005-07-02 07:21:21 +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
Jens Arnold
c5bdca9b62 Use macros instead of multiple #ifdef to make the code more readable.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6965 a1c6a512-1295-4272-9138-f99709370657
2005-07-01 16:22:15 +00:00
Linus Nielsen Feltzing
c2577c8a47 Associated .nfo with the text viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6958 a1c6a512-1295-4272-9138-f99709370657
2005-07-01 05:10:08 +00:00
Jens Arnold
93867305d5 Player graphics library extended and converted to new api. Please note that the player gfx bitmap format chas changed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6956 a1c6a512-1295-4272-9138-f99709370657
2005-06-30 21:07:00 +00:00
Linus Nielsen Feltzing
0ec1ad9951 vbrfix boosts the cpu frequency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6944 a1c6a512-1295-4272-9138-f99709370657
2005-06-30 10:45:53 +00:00
Jens Arnold
848be81828 No need to included unused data in the archos builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6932 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 21:06:19 +00:00
Jens Arnold
305a7ce1a2 Enabled sectioned compilation for the plugin library, and linking with garbage collection for the plugins. The effect is that functions and data objects from one object file in the plugin library are included in the .elf individually, not as a whole. It makes maintaining larger plugin library packages easier, as it is no longer necessary to split the source files by function to avoid dead code to get included in the plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6931 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 21:04:22 +00:00
Jens Arnold
cc377d5d18 Made it working again...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6929 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 18:54:56 +00:00
Daniel Stenberg
1c56afad5d removed old codec leftovers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6919 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 13:46:51 +00:00
Daniel Stenberg
ba64081228 adjusted for the h300 to make it do similar as the h100
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6916 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 13:25:45 +00:00
Daniel Stenberg
3a78ab9a4f fix to enable plugins to build fine for h300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6913 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 13:12:45 +00:00
Daniel Stenberg
01377e2e57 Hristo Kovachev's keypad fixes for the H300 build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6912 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 12:47:24 +00:00
Jens Arnold
576908d36a Third part of graphics api rework. Some small but effective optimisations. Ported remote lcd driver to new api. Preparations for including the low-level functions in the plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6907 a1c6a512-1295-4272-9138-f99709370657
2005-06-29 01:39:50 +00:00
Jens Arnold
7e11acbce9 Second part of graphics api rework. Bitmap drawing and text output converted; some code cleanup and more optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6906 a1c6a512-1295-4272-9138-f99709370657
2005-06-28 23:15:47 +00:00
Daniel Stenberg
2e88a90c0b Request the audio buffer _before_ using any iram. By doing it in this order,
the music has stopped when we use the plugin iram area - which is shared with
the codecs!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6904 a1c6a512-1295-4272-9138-f99709370657
2005-06-28 21:19:40 +00:00
Jens Arnold
91f572c3b5 Iriver: Fix codec <-> plugin start address clash, leading to crashes when trying to run plugins while playing music.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6903 a1c6a512-1295-4272-9138-f99709370657
2005-06-28 21:12:11 +00:00
Daniel Stenberg
c9cb607a19 I bet nobody enters more than 100 letters in search strings, and since there
are 70 of these, we gain 10K in one single step.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6902 a1c6a512-1295-4272-9138-f99709370657
2005-06-27 22:43:11 +00:00
Daniel Stenberg
a24017f4da Moved the codec and plugin buffer sizes to the config-*.h files instead of
having it repeated in numerous files where they all had to be updated to the
same value if ever changed. This allows specific models to actually have its
own buffer sizes.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6901 a1c6a512-1295-4272-9138-f99709370657
2005-06-27 21:23:03 +00:00
Jens Arnold
9ca433f7bb Don't try to compile the grayscale lib for unsupported configurations, saves compile time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6895 a1c6a512-1295-4272-9138-f99709370657
2005-06-27 17:52:42 +00:00
Antoine Cellerier
2398b22549 * number of columns and rows can now be changed in menu
* remove trailing spaces


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6881 a1c6a512-1295-4272-9138-f99709370657
2005-06-26 20:42:53 +00:00
Antoine Cellerier
59df31244a * use *rb->current_tick for srand
* don't truncate last column on players that have screens larger than
   the recorder's


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6879 a1c6a512-1295-4272-9138-f99709370657
2005-06-26 20:12:56 +00:00
Antoine Cellerier
316eb6538e * fix some cursor bugs (patch 1222287)
* added call to srand (patch 1223090)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6876 a1c6a512-1295-4272-9138-f99709370657
2005-06-26 19:35:29 +00:00
Jens Arnold
04daef17a1 First part of graphics api rework. Special functions, parameter handling, pixel functions, lines and filled primitives done for black & white core, main display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6856 a1c6a512-1295-4272-9138-f99709370657
2005-06-24 22:33:21 +00:00
Jörg Hohensohn
7bc6898e53 comment updated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6851 a1c6a512-1295-4272-9138-f99709370657
2005-06-24 05:22:47 +00:00
Daniel Stenberg
d6cf3a0305 increase codec buffer size to fit the mpc codec properly (NOTE: the codec
loader does not detect when the full codec doesn't fit)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6827 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 21:34:11 +00:00
Daniel Stenberg
1dd672fe32 moved and renamed the codecs, gave the codecs a new extension (.codec),
unified to a single codec-only API, made a new codeclib, disabled the building
of the *2wav plugins


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6812 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 19:41:30 +00:00
Thom Johansen
714358a42c Initial linear interpolating resampler. This resampler really needs to be ripped out of the codec, and put into the playback system. Optimising probably wouldn't hurt either, currently it slows down playback quite a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6809 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 14:52:02 +00:00
Jörg Hohensohn
36e2393ef9 allow smaller .ucl, to test bootbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6796 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 05:54:47 +00:00
Daniel Stenberg
aee2425f66 CODECS lists the codec plugins, so that the Makefile knows what ones to
link to the special codec address


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6795 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 04:09:43 +00:00
Linus Nielsen Feltzing
ecf2f747ed Daniel's fix that loads codecs in their own memory space
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6794 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 02:47:54 +00:00
Thom Johansen
cdcd651e7d Musepack files should play (poorly) now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6776 a1c6a512-1295-4272-9138-f99709370657
2005-06-20 12:24:02 +00:00
Dave Chapman
defdf4b65d First attempt at seeking in FLAC files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6750 a1c6a512-1295-4272-9138-f99709370657
2005-06-18 20:57:01 +00:00
Jonas Häggqvist
65e6a63026 The modifications are for all larger screens
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6723 a1c6a512-1295-4272-9138-f99709370657
2005-06-15 13:56:54 +00:00
Tomas Salfischberger
2ed84ec2ca The synthVoice() function declaration was wrong (caused a warning). And because of that GCC didn't notice the error on line 390: synthVoice(currentVoice).
In revision 1.4 Steven made currentVoice global, so the function declaration should be: synthVoice(void), wich fixes a warning. And the call should be just synthVoice() wich fixes a hidden error.

Hope I saw this right... please correct me if this isn't the way you ment is Seven.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6708 a1c6a512-1295-4272-9138-f99709370657
2005-06-14 16:17:11 +00:00
Miika Pekkarinen
6ab53ba458 Even more quiet audio initialization.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6705 a1c6a512-1295-4272-9138-f99709370657
2005-06-14 07:54:09 +00:00
Dave Chapman
24394b3316 Increase FILEBUF_CHUNKSIZE to 128K - fixes pauses in high-bitrate AC3s
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6703 a1c6a512-1295-4272-9138-f99709370657
2005-06-13 22:46:09 +00:00
Dave Chapman
789791e659 Configure CODEC_SET_FILEBUF_CHUNKSIZE - improves FLAC performance
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6701 a1c6a512-1295-4272-9138-f99709370657
2005-06-13 17:48:30 +00:00
Miika Pekkarinen
d94cba6d0f Forward seeking fixed. Some comments added.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6700 a1c6a512-1295-4272-9138-f99709370657
2005-06-13 15:26:53 +00:00
Dave Bryant
7dad7d3a6a Initial commit of actual WavPack codec... :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6699 a1c6a512-1295-4272-9138-f99709370657
2005-06-13 06:15:05 +00:00
Dave Bryant
57c6f6e57e Initial pass at WavPack codec playback support (and my first commit...)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6698 a1c6a512-1295-4272-9138-f99709370657
2005-06-13 06:00:35 +00:00
Thom Johansen
7cdae1ac65 First attempt at gapless MP3 support using LAME header info.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6690 a1c6a512-1295-4272-9138-f99709370657
2005-06-12 14:38:36 +00:00
Dave Chapman
8f0a0fed4e Estimate (poorly) the duration of an Ogg track, and display elapsed time in WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6681 a1c6a512-1295-4272-9138-f99709370657
2005-06-11 19:14:40 +00:00
Miika Pekkarinen
a380d90b98 Fixed MP3 forward seeking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6679 a1c6a512-1295-4272-9138-f99709370657
2005-06-11 18:05:16 +00:00
Thom Johansen
c0f9ad61fb IRAM support for a52towav.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6675 a1c6a512-1295-4272-9138-f99709370657
2005-06-11 14:44:35 +00:00
Dave Chapman
a9d9ef50bd Move another buffer into IRAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6674 a1c6a512-1295-4272-9138-f99709370657
2005-06-11 14:39:52 +00:00
Dave Chapman
c19563cba3 Maybe (or maybe not) support downsampling multi-channel AC3 files. liba52 is too slow to test properly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6672 a1c6a512-1295-4272-9138-f99709370657
2005-06-11 14:03:15 +00:00
Dave Chapman
2f2d7d4913 First version of Musepack playback (not working)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6670 a1c6a512-1295-4272-9138-f99709370657
2005-06-11 12:40:27 +00:00
Dave Chapman
55ed7d7214 First codeca52 (A52 aka AC3 playback) - it is already faster than realtime, with zero optimisations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6668 a1c6a512-1295-4272-9138-f99709370657
2005-06-11 10:08:17 +00:00
Miika Pekkarinen
7e0b6880d9 Fixed wav playing problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6659 a1c6a512-1295-4272-9138-f99709370657
2005-06-10 19:26:34 +00:00
Dave Chapman
ab81502f90 Use ci->request_buffer instead of ci->read_filebuf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6658 a1c6a512-1295-4272-9138-f99709370657
2005-06-10 19:12:58 +00:00
Dave Chapman
7d0933b3c3 Add codecwav.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6656 a1c6a512-1295-4272-9138-f99709370657
2005-06-10 18:44:23 +00:00
Dave Chapman
3c2c2f59f4 Add first version of WAV playback to iRiver - only 16-bit Stereo 44.1KHz files supported.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6654 a1c6a512-1295-4272-9138-f99709370657
2005-06-10 18:08:08 +00:00
Miika Pekkarinen
d30f1100ec Much better UI performance and buffering times for MP3 and FLAC.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6653 a1c6a512-1295-4272-9138-f99709370657
2005-06-10 17:33:16 +00:00
Miika Pekkarinen
68b9acd7de Added some basic codec configuration functionality.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6652 a1c6a512-1295-4272-9138-f99709370657
2005-06-10 15:02:10 +00:00
Daniel Stenberg
c0f7448384 Martin Arver's fix to properly adapt the menu for the chosen font.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6644 a1c6a512-1295-4272-9138-f99709370657
2005-06-09 21:19:38 +00:00
Miika Pekkarinen
9e200e35cd Fixed pause indicator. Better UI response with FLAC and Ogg Vorbis.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6642 a1c6a512-1295-4272-9138-f99709370657
2005-06-09 20:01:09 +00:00
Dave Chapman
7c54b3ad4b Keep track of elapsed time during FLAC playback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6637 a1c6a512-1295-4272-9138-f99709370657
2005-06-09 09:47:04 +00:00
Miika Pekkarinen
b4bc106efb Fixed forward next track bugs (still some pause issues though). Added
experimental cross-fader.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6632 a1c6a512-1295-4272-9138-f99709370657
2005-06-09 07:19:16 +00:00
Linus Nielsen Feltzing
fd71c2ff87 Moved the Sokoban levels to .rockbox/rocks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6630 a1c6a512-1295-4272-9138-f99709370657
2005-06-09 06:50:02 +00:00
Linus Nielsen Feltzing
005fc38d87 Snake2 port to iRiver by Alexander Spyridakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6629 a1c6a512-1295-4272-9138-f99709370657
2005-06-09 06:14:40 +00:00
Linus Nielsen Feltzing
fa148bb812 A new API for saving highscores in game plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6611 a1c6a512-1295-4272-9138-f99709370657
2005-06-08 13:47:46 +00:00
Dave Chapman
b15e546937 Correctly detect the end of stream, and correctly re-initialise the FLAC decoder before playing the next track.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6601 a1c6a512-1295-4272-9138-f99709370657
2005-06-07 20:09:53 +00:00
Dave Chapman
02e22ea1d5 Use proper enumeration for END_OF_STREAM test
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6598 a1c6a512-1295-4272-9138-f99709370657
2005-06-07 19:38:13 +00:00
Dave Chapman
6c082a857a First attempt at codecflac.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6597 a1c6a512-1295-4272-9138-f99709370657
2005-06-07 18:53:01 +00:00
Miika Pekkarinen
82c2927d1e Fixed: Ogg Vorbis crashing, MP3 file seeking, USB mode and a little
faster file buffering.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6591 a1c6a512-1295-4272-9138-f99709370657
2005-06-07 06:34:54 +00:00
Michiel Van Der Kolk
127f14210f sound disabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6589 a1c6a512-1295-4272-9138-f99709370657
2005-06-06 19:36:54 +00:00
Michiel Van Der Kolk
261bb920c2 New search capabilities; autorating, bitrate, track number, playtime, samplerate
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6588 a1c6a512-1295-4272-9138-f99709370657
2005-06-06 19:34:35 +00:00