Commit graph

3423 commits

Author SHA1 Message Date
Wincent Balin
921d10f86f pdbox: Updated CPU boosting API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26456 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 21:31:55 +00:00
Wincent Balin
f52c9aae3a pdbox: Code cleanup, optimizations.
* Reverted minimal working memory to 4 MB
* Reverted size of a single audio buffer
* Optimized sound output loop


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26454 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 20:37:16 +00:00
Rafaël Carré
9b935b2888 fft: use long home button to exit on fuze
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26443 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 09:01:13 +00:00
Wincent Balin
c225b17015 pdbox: Removed unnecessary code from the main include file. Reduced neede memory to 2 MB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26440 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 00:26:28 +00:00
Wincent Balin
a266ff185a pdbox: Solved issue with WAV file import on big-endian targets (signed 16-bit files only); small I/O-related workaround in g_array.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26439 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 00:23:59 +00:00
Rob Purchase
550ca6464a test_codec: close the log file before attempting to open a new one, and clear the button queue before displaying the menu a second time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26437 a1c6a512-1295-4272-9138-f99709370657
2010-05-31 21:07:25 +00:00
Rob Purchase
a6c1b54d46 Enable IRAM on TCC7801 (Cowon D2) for a 6-12% speedup in codecs that use it, and a small increase in battery life.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26436 a1c6a512-1295-4272-9138-f99709370657
2010-05-31 21:00:25 +00:00
Rafaël Carré
09cc3e604d battery_bench: comment the battery_bench.txt header with '#'
gnuplot will ignore lines which begin with '#'
Split a line so the output will fit in 80 columns

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26430 a1c6a512-1295-4272-9138-f99709370657
2010-05-31 12:37:29 +00:00
Rafaël Carré
e04a71f382 Only build firmware_flash plugin on archos
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26424 a1c6a512-1295-4272-9138-f99709370657
2010-05-31 00:02:20 +00:00
Michael Sevakis
602bad427a Doom plugin: Missed properly making a few 'unsigned' on my second pass.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26369 a1c6a512-1295-4272-9138-f99709370657
2010-05-29 08:28:29 +00:00
Michael Sevakis
9c6e217f29 Doom plugin: In anticipation of moving to the EABI toolchain, because of its assumptions about enums being sized as ints, convert enum typdefs to int or unsigned depending upon whether they have negative values in the enumeration. This should effectively preserve the manner in which it is compiled under the old toolchain and avoids having to closely inspect and possibly change many places in the code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26368 a1c6a512-1295-4272-9138-f99709370657
2010-05-29 08:12:39 +00:00
Thomas Martitz
bedeac440e Fix typo that made alarmclock exit immediately and add scrollwheel actions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26363 a1c6a512-1295-4272-9138-f99709370657
2010-05-28 21:08:52 +00:00
Rafaël Carré
b36e721aa6 rockboy: rename pcm_*() functions to avoid namespace clash with rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26327 a1c6a512-1295-4272-9138-f99709370657
2010-05-27 12:00:23 +00:00
Rafaël Carré
5d236b2bfd Generate C file / header for svn version string
It's now easier to force rebuild of files depending on the svn revision

version.c/version.h are generated once with new tools/genversion.sh
Changes in the VCS are still not auto detected, so you'll have to remove
builddir/version.* if you want to change the string in your binaries

APPSVERSION is now called RBVERSION and is defined in the generated
header instead of being defined by the Makefiles
appsversion is now called rbversion (the plugin api number didn't change
since old modules are still binary compatible)

Change some bootloaders to use knwon-at-buildtime RBVERSION instead of
"%s" + rbversion

You'll need to run make clean to regenerate dependencies after the
removal of apps/version.h

To build binaries with a different version string, hand-edit
tools/version.sh or tools/genversion.sh (which calls the former)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26320 a1c6a512-1295-4272-9138-f99709370657
2010-05-27 09:41:46 +00:00
Karl Kurbjun
b2f1e53608 Fix M:Robe Plugins and Codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26279 a1c6a512-1295-4272-9138-f99709370657
2010-05-25 05:17:08 +00:00
Wincent Balin
112ad0ac42 pdbox: Code cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26274 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 23:38:04 +00:00
Jens Arnold
fead75812b Fix test_mem for the archos plugin buffer size and for charcell.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26273 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 23:18:30 +00:00
Wincent Balin
cb185d2860 pdbox: Successfully resolved issue with loading of audio files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26272 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 23:13:37 +00:00
Jens Arnold
dba636a0fa Test plugins: * test_sampr.c is swcodec only * Several plugins are bitmap only.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26271 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 23:13:17 +00:00
Szymon Dziok
06601e5fba Vibe 500: fix the scrolling through the lists by implementing BUTTON_REPEAT for the scrollstrip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26268 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 19:48:06 +00:00
Andree Buschmann
d76a9316fb Correct new memcpy/memset functionality in test_mem plugin. Use appropriate clobber list for arm asm.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26255 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 17:13:48 +00:00
Michael Sevakis
d56999890f Make PCM->driver interface about as simple as it will get. Registered callback, zero data, alignment and stops are handled entirely inside pcm.c; driver merely calls fixed pcm.c callback. Remove pcm_record_more and do it just like playback; the original reason behind it isn't very practical in general. Everything checks out on supported targets. There wer some compat changes I can't check out on many unsupoorted but if there's a problem it will be a minor oops. Plugins become incompatible due to recording tweak-- full update. Sorted API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26253 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 16:42:32 +00:00
Michael Sevakis
d7244926f5 mpegplayer: use OFF_T_MIN/MAX instead of LONG_MIN/MAX in one spot. Define OFF_T_MIN as well if not already defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26232 a1c6a512-1295-4272-9138-f99709370657
2010-05-21 14:01:22 +00:00
Rafaël Carré
427e871319 Clipv2 / Clip+ : lcd scanrate checked with test_scanrate
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26217 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 22:35:44 +00:00
Thomas Martitz
d2af487a05 Fix test_resize
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26216 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 20:49:04 +00:00
Thomas Martitz
9d7d0b5af6 Fix reds: add m3 keypad, fix typo in the ipods part, correct button for h10, don't error out for touchscreens (onda vx777 has almost no tactical buttons).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26209 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 19:05:24 +00:00
Torne Wuff
970b46045e Tweak new pluginlib button map for frotz to be more convenient
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26206 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 18:45:50 +00:00
Thomas Martitz
9df2f2fdc1 Fix a data abort in codebuster.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26203 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 18:09:41 +00:00
Thomas Martitz
20e9d56ba5 S#10387 - Rework pluginlib actions
It changes pluginlib actions to contain only a single and simple context (and
other one for remote directional buttons),
consisting of 7(9) buttons: up/down/left/right, select OR short select and long
select, exit and cancel (plus 2 for scrollwheel targets).
This ensures contexts don't clash with other contexts and simplifies them, at
the expense of reduced versatility. However, the versatility made it largely unusable
due to the great number of targets.
This should allow for using pluginlib actions safely for the most simple plugins (e.g. almost all demos).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26202 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 17:41:28 +00:00
Marcin Bukat
bb3a3ec7b0 HD200 - adjust LCD_SCANRATE (changed a bit after PLL settings change)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26187 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 10:21:55 +00:00
Wincent Balin
c208486fcc pdbox: Rewrote recently added bugfixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26184 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 04:23:40 +00:00
Wincent Balin
ae2659e633 pdbox: Got rid of signedness-related warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26183 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 03:38:53 +00:00
Wincent Balin
6274944942 pdbox: Made size value signed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26182 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 03:33:18 +00:00
Wincent Balin
5ea0dc83ec pdbox: Adjusted return values for functions read() and write()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26181 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 03:27:12 +00:00
Teruaki Kawashima
93258e4130 sudoku: remove commented out code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26169 a1c6a512-1295-4272-9138-f99709370657
2010-05-19 15:56:27 +00:00
Rafaël Carré
681cedb4d8 Build overlay plugins for all targets with PLUGIN_BUFFER <= 0x10000 bytes
Bring Clipv1 & m200v4 plugin buffer down to this limit
zxbox, chessbox and rockboy build on the clip
rockboy doesn't build on m200v4 due to not enough buttons to make a keymap
Some gameboy roms won't run on Clipv1: tetris does but not pokemon for example

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26144 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 14:14:53 +00:00
Rafaël Carré
6e15b710c0 apps/plugins/lib/SOURCES: make it more readable (space, comments, order)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26143 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 14:14:48 +00:00
Rafaël Carré
a01422c54b plugins: changes for targets with small plugin buffer (Clipv1)
- only enable overlays for targets with very small plugin buffer (<=
  0x10000 bytes, i.e. archos)
- change the condition for rockboy to reflect exactly why it can be
  built or not
- Some plugins need a large plugin buffer, only enable them if the
  buffer is big enough (sizes measured on Clipv1)
- disable MIDI if we have 2MB (or less), we won't be able to load the
  instruments in the audio buffer
- remove unusable lua overlay loader
- sokoban code is bigger on clipv1 than on SH, assume it code is 20kB on
  anything but SH so it builds with buffer smaller than 192kB
- reduce the Clipv1 plugin buffer size from 288kB to 96kb, disabling
  zxbox, chessbox, and fft

zxbox and chessbox have overlays which run on archos, we just need to
enable them on other targets. We'll also be able to run rockboy.

fft won't run as it needs a large plugin buffer for greylib

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26141 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 12:46:53 +00:00
Rafaël Carré
dcbd8d74c6 fft: always enable spectrogram, gray mode works with LCD_DEPTH == 1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26140 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 12:46:44 +00:00
Rafaël Carré
d3735578c3 mp3_encoder: fix a typo, put uninitialized variable in BSS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26136 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 10:23:32 +00:00
Marcin Bukat
a5c90d4986 Add memset/memcpy benches to test_mem plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26135 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 10:14:15 +00:00
Rafaël Carré
0ea2753d86 mp3_encoder: reduce plugin binsize
- reduce the size of some structs -> gain ~1kB
- since we run the code only once, we don't need to declare large
structure in bss and copy const data in them, declare them const
directly -> gain ~17kB
- steal audio buffer for encoded data buffer -> gain 64kB
this will stop playback when encoding, but it was stopped already on
targets using IRAM
- some const policy
Tested on Clipv1 & sim, 83012 bytes smaller on clipv1

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26134 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 10:12:23 +00:00
Rafaël Carré
ec6476c14a plugins: reorder SOURCES conditions to be more readable
change a lot of conditions to be more understandable
add some spacing
remove ifp conditions as disabling plugins can be done in configure
SUBDIRS: concatenate some conditions and add comments

No changes expected (no plugins added / removed) for working targets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26114 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 18:16:45 +00:00
Torne Wuff
3637ccbffc Change default chip8 keymap on c200/m200/clip families to use up/down on the 4-way pad instead of volume up and volume down, since most chip8 games use those buttons as directions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26107 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 13:25:23 +00:00
Teruaki Kawashima
20041b96c8 rockboy: fix format strings in snprintf. use int for slot_id and use %d tag for it in format strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26104 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 12:49:51 +00:00
Michael Sevakis
fcf36dd4f9 Simplify mpegplayer a bit and use array-based lists rather than linked lists for stream management. Move a couple useful functions to handle pointer arrays from kernel.c into general.c; mpeglayer now makes use of them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26101 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 12:34:05 +00:00
Nils Wallménius
9fde12676b fft plugin: move const data into a c file and use no wider types than necessary, makes the plugin about 63kB smaller
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26100 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 11:58:22 +00:00
Rafaël Carré
487b24cbf5 rockboy: add a Clip keymap
the plugin is still disabled, the build condition needs work

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26099 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 10:01:49 +00:00
Michael Sevakis
18b1602797 I think I intended a different expression.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26097 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 07:58:07 +00:00
Michael Sevakis
0da5399c79 How punny. Just one more whack-a-mole to get.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26092 a1c6a512-1295-4272-9138-f99709370657
2010-05-16 15:17:27 +00:00
Michael Sevakis
26230ae048 MPEGPlayer: reconceal the point puns
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26090 a1c6a512-1295-4272-9138-f99709370657
2010-05-16 15:12:23 +00:00
Michael Sevakis
b197c3b0d6 MPEGPlayer: Add a second layer of caching to help speed up byte-wise scanning and seeking a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26088 a1c6a512-1295-4272-9138-f99709370657
2010-05-16 14:41:00 +00:00
Rafaël Carré
46a9c5e089 Fix alarmclock plugin time miscalculation
Author: Clément Pit-Claudel (CFP)
Flyspray: FS#11110

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26056 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 15:20:45 +00:00
Michael Sevakis
80d0d15ca9 Gigabeat S: Fully enable access to hardware tone controls and 3-D effect feature. Under the hood, it's designated a hardware equalizer since it is one. Implement code framework for hardware EQ in general. Menu aspect is well abstracted and so the UI and strings can be changed around if taste doesn't quite suit. So far the emphasis is distinction of the UI labelling from the software EQ so that it's clear the settings are for a different thing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26051 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 13:09:45 +00:00
Jeffrey Goode
f2a56161f7 Fix yellow: missed a cast
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26041 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 03:42:37 +00:00
Jeffrey Goode
6ef04a7f0e Eliminate %zd tag in printf format strings, replace them with %ld. The %z formatter kept generating type mismatch warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26040 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 03:34:31 +00:00
Frank Gevaerts
530c25130f Make the sim buildable with mingw again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26037 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 22:57:52 +00:00
Frank Gevaerts
ed566826f5 Fix various size_t related warnings and errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26035 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 22:19:45 +00:00
Rafaël Carré
9e974e4590 another cast ssize_t -> long
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26034 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 22:16:40 +00:00
Thomas Martitz
0246f0ceb4 Fix remaining reds/yellows.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26024 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 13:21:40 +00:00
Thomas Martitz
68947473e1 Move math.h to firmware/libc/include/ and fix slight incompatibilities between our and the host's math.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26020 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 12:43:45 +00:00
Michael Sevakis
3d1a85695b Give pitch_detector the IRAMming it deserves.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26018 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 12:35:05 +00:00
Michael Sevakis
d665c92652 Cache align the pitch detector audiobuffer where needed. Some other misc. changes to try to make sure everything builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26011 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 08:44:07 +00:00
Michael Sevakis
057c11147e Fix LUA red and yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26007 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 07:17:03 +00:00
Michael Sevakis
ef0b8caac0 Fix some sim warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26006 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 06:41:40 +00:00
Michael Sevakis
7250405c70 pitch_detector: Use continuous recording, even if the algorithm is too slow for that and record a whole buffer even if the min frequency is higher. Use the minimum samplerate that allows C-4186 to be detected (usually 11.025kHz, which can reduce computational load to 1/16 compared to 44.1kHz). Get rid of 64-bit multiplies when calculating input RMS value. Stop audio playback when entering plugin. Better backlight and CPU frequency handling. audio_sample_type->int16_t. simpler buffer size rounding.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26005 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 06:25:40 +00:00
Nils Wallménius
0b52d34313 FS#11272 by Gerhard Zintel fixing a bug when resetting the database in keybox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26004 a1c6a512-1295-4272-9138-f99709370657
2010-05-13 22:21:09 +00:00
Rafaël Carré
289b6bdb69 fix pitch_detector: recording will stop itself if the callback returns <0
stopping recording 2 times might have harmful effects

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26002 a1c6a512-1295-4272-9138-f99709370657
2010-05-13 21:32:06 +00:00
Marcin Bukat
a62db97b38 HD200 - add support for the device in greylib
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25930 a1c6a512-1295-4272-9138-f99709370657
2010-05-10 13:06:38 +00:00
Andree Buschmann
70daf4ed4d Submit FS#11253. Rework of test_mem plugin to bench DRAM and IRAM. Also add ARM assembler and change the result format.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25918 a1c6a512-1295-4272-9138-f99709370657
2010-05-09 19:23:26 +00:00
Michael Sevakis
a420561bf8 Gigabeat S: Reclaim about 800K of memory that was laying unused. Get rid of DEVBSS_ATTR for this target and implement as NOCACHEBSS_ATTR. Plugin and codec buffers move so all that is now incompatible (do full update). No version increase for plugins/codecs because the loader will reject them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25895 a1c6a512-1295-4272-9138-f99709370657
2010-05-08 07:45:34 +00:00
Andree Buschmann
dbcb02832f Use 'HZ' and remove 'volatile' as suggested by kugel.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25893 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 22:02:50 +00:00
Andree Buschmann
4c4ae04da9 Changes in test_mem plugin: Use correct formula to calculate KB/s, reasonable unrolling of read/write loops to better match memory bandwidth.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25892 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 21:42:22 +00:00
Frank Gevaerts
7a994c1e7d Fix (hopefully) last aliasing bug (midiutil), and enable -fno-strict-aliasing again for zxbox and doom (no easy fix there)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25889 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 20:11:14 +00:00
Frank Gevaerts
e4f1bfe1c4 Fix possible buffer overflow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25886 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 19:36:51 +00:00
Frank Gevaerts
1c9cc6846c fix one more size_t/ssize_t misuse
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25885 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 19:35:09 +00:00
Frank Gevaerts
8d4ff638b9 Fix size_t handling in plugin_get_buffer()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 19:27:42 +00:00
Thomas Martitz
e919b5d5b9 Fix disastrous variable shadowing, change casts to unsigned in (cygwin doesn't like mode_t there, and unsigned int should be equally correct) and check the correct bitmask in sim_open().
Should repair filesystem accesses on the sim.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25881 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 16:56:40 +00:00
Michael Sevakis
eae0cedefe mpegplayer: One last dealie-O for now: Change all "WVS" usage in the code for identifiers to "OSD".
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25873 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 13:33:44 +00:00
Michael Sevakis
455c34ab91 mpegplayer: make button timeout half the OSD update interval so that it updates the indicators properly when not holding a key. Add capability to show OSD without changing volume, seeking, etc. Enable this functionality on Gigabeat S using the back (<--) button since it wasn't used in playback mode at all.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25872 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 13:06:42 +00:00
Michael Sevakis
79e7375ddf Add support for the next/prev side buttons to mpegplayer on the Gigabeat S to control seeking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25871 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 11:47:54 +00:00
Frank Gevaerts
65b875b83e Fix last two yellows
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25863 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 23:58:33 +00:00
Thomas Martitz
54548df56e Fix some size_t related warnings (hopefully, they seem system dependant).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25852 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 21:17:14 +00:00
Thomas Martitz
50a6ca39ad Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 21:04:40 +00:00
Thomas Martitz
0a1d7c28b7 Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:13 +00:00
Thomas Martitz
c61e89c0ed Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:04 +00:00
Delyan Kratunov
bc90a616c3 FFT plugin: The 64-bit sqrt function is no longer needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25791 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 20:32:41 +00:00
Delyan Kratunov
af466f3cbf FFT plugin: eliminate 64-bit math. This should result in faster and probably more accurate calculations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25790 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 20:30:44 +00:00
Jens Arnold
9a74223f7d Test more possible alignments in the Write & Verify test. Some ata drivers apply optimisations up to line size alignment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25787 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 19:38:23 +00:00
Jens Arnold
0fd111d431 Improve motion compensation for ARM: * Use less registers in the simple copy routines -> less stack usage. * Save a few instructions in constants + jumptable handling. * ARM6 optimisations. Unfortunately we can't just use uhadd8 because that rounds down, while we have to round up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25776 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 14:55:12 +00:00
Jens Arnold
f2759305a9 Gigabeat S: Reduce stalling in the ARMv6 IDCT. Also save one instruction per loop, and fix comments. Speeds up fullscreen video decoding by about 5% (excluding video output). Still not perfect...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25775 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 12:13:26 +00:00
Wincent Balin
a607a6c3c2 pdbox: Fixed loading of sound files, pdpod_drums.pd works now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25769 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 00:32:50 +00:00
Marcin Bukat
88baa4d4c7 HD200 - implement blit functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25767 a1c6a512-1295-4272-9138-f99709370657
2010-04-30 14:13:52 +00:00
Marcin Bukat
ee291a5e9b Corrected brickmania bitmaps in SOURCE for M3 and HD200. Remove unneeded bitmap.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25735 a1c6a512-1295-4272-9138-f99709370657
2010-04-27 10:04:13 +00:00
Marcin Bukat
6dab17143b Add MPIO HD200 port - binary files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25726 a1c6a512-1295-4272-9138-f99709370657
2010-04-26 21:40:23 +00:00
Marcin Bukat
b09d3aec39 Add MPIO HD200 port - changed files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
2010-04-26 21:40:00 +00:00
Nils Wallménius
cbc65befa8 Fix for some bogus code in png by Andrew Rodland, fixing a warning when compiling with gcc 4.5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25709 a1c6a512-1295-4272-9138-f99709370657
2010-04-25 08:35:30 +00:00
Jens Arnold
8edca8e903 Charcell: Fix spurious letter appearing between board and score display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25708 a1c6a512-1295-4272-9138-f99709370657
2010-04-25 06:30:19 +00:00
Michael Sevakis
4e7ddd504b Gigabeat S: Will run pacbox at 60fps. Set FPS accordingly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25702 a1c6a512-1295-4272-9138-f99709370657
2010-04-23 19:38:27 +00:00
Tomer Shalev
dd8b40701e Brickmania: Fix bogus fires
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25690 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 09:08:21 +00:00
Tomer Shalev
5c7a76d596 Brickmania: Use defined constant instead of hard-coded value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25689 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:46:44 +00:00
Tomer Shalev
4761efa573 Yet another try at fixing "FS#10959 - Brickmania - Ball disappears"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25688 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:38:53 +00:00
Tomer Shalev
62562f1cdd Brickmania: Fix flip delay was actually N+1 seconds (11 instead of 10)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25687 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:33:16 +00:00
Tomer Shalev
5db5de5418 Brickmania: No need to init these global variables, as they are set later on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25686 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:16:00 +00:00
Tomer Shalev
16e89a4aae Brickmania: Move Congratulations message a bit up, so it won't get clipped by the next line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25685 a1c6a512-1295-4272-9138-f99709370657
2010-04-20 08:14:33 +00:00
Szymon Dziok
86a5937d39 Packard Bell Vibe: imageviewer - add button to quit immediately, like in r24904.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25678 a1c6a512-1295-4272-9138-f99709370657
2010-04-19 16:45:49 +00:00
Yoshihisa Uchida
4157a31924 rvert r25644
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25645 a1c6a512-1295-4272-9138-f99709370657
2010-04-14 11:19:30 +00:00
Yoshihisa Uchida
2ca2684ede new text viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25644 a1c6a512-1295-4272-9138-f99709370657
2010-04-14 10:16:00 +00:00
Tomer Shalev
886cd3fb85 Text viewer: Fix wrong calculation of bookmark's position (introduced by r25611)
Also change message shown for bookmark operations and add comment


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25614 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 21:15:10 +00:00
Tomer Shalev
1a94554fd7 Text viewer: Fix FS#11190 - Text Viewer shows no Text when skipping to last page
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25612 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 19:28:41 +00:00
Tomer Shalev
305dd65650 Text viewer: Make calculation clearer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25611 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 19:25:28 +00:00
Tomer Shalev
199f3bd7c2 Text viewer: Remove unused max_line_len variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25610 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 19:24:05 +00:00
Yoshihisa Uchida
5209ed44a0 fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25606 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 12:15:35 +00:00
Yoshihisa Uchida
bc28939e04 viewer plugin: when the alignment is RIGHT, supports WIDE screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25605 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 12:02:05 +00:00
Rafaël Carré
2252b2dcec test_codec is SWCODEC only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25604 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 11:57:39 +00:00
Rafaël Carré
f462c1b109 some test plugins have dependencies
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25603 a1c6a512-1295-4272-9138-f99709370657
2010-04-12 11:09:07 +00:00
Jens Arnold
4f551a00df FS #11153 by Marcin Bukat: Make memory layout for plugins and codecs only depend on SoC for coldfire as well, in preparation for the MPIO HD200 port.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25598 a1c6a512-1295-4272-9138-f99709370657
2010-04-11 20:53:18 +00:00
Yoshihisa Uchida
9d633740a4 viewer plugin: when the setting file loads or saves, converts to new version settings file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25583 a1c6a512-1295-4272-9138-f99709370657
2010-04-11 06:39:37 +00:00
Yoshihisa Uchida
0f6e79a227 The version of the setting files are raised.
Settings can be normally read even by the old setting file.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25563 a1c6a512-1295-4272-9138-f99709370657
2010-04-10 08:58:37 +00:00
Tomer Shalev
0b476f75f1 Text viewer: When loading settings and prefs font loading fails, not only
refert to the global settings font, but also set the viewer prefs font to that
font, so that when the user re-opens the viewer no warning will appear again,
and also so that when the user selects new font, the currenly used font will be
selected


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25550 a1c6a512-1295-4272-9138-f99709370657
2010-04-09 06:26:33 +00:00
Tomer Shalev
c3f131de06 Text viewer: Handle font loading failures
When font load fails, revert by loading to the previous font or to the global
settings font.

Fixes FS#11185 - Text viewer returns div by 0 if font is missing, renamed or corrupted


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25544 a1c6a512-1295-4272-9138-f99709370657
2010-04-08 21:56:03 +00:00
Tomer Shalev
c3588daa29 Text viewer: Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25519 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 18:14:02 +00:00
Tomer Shalev
8b2ec40a55 FS#11185 - Text viewer returns div by 0 if font is missing, renamed or corrupted
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25517 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 18:06:47 +00:00
Tomer Shalev
2434a92b60 Text viewer: Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25516 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:27:19 +00:00
Tomer Shalev
9e4bd41e41 Text viewer: Fix RTL languages and diacritic characters support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25515 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:22:16 +00:00
Tomer Shalev
8b904e2bb4 Text viewer: Replace macros with inline functions (which are about to be extended in the following commits)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25514 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:19:55 +00:00
Tomer Shalev
885863571f Text viewer: Use exact width for lcd_fillrect (no actuall change)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25513 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:15:24 +00:00
Tomer Shalev
c8ab419ed7 Text viewer: Make global variables static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25512 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:12:20 +00:00
Tomer Shalev
c56d2b50b3 Text viewer: Fix limit calculation in col_limit() which maximizes overlapping in wide mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25511 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:11:09 +00:00
Tomer Shalev
eeb0c088fe Text viewer: Fix possible memory corruption
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25510 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:06:32 +00:00
Tomer Shalev
1709d72eb4 Text viewer: Documentation and code cosmetics (no functional changes)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25509 a1c6a512-1295-4272-9138-f99709370657
2010-04-07 17:04:30 +00:00
Thomas Martitz
02afc271c9 as3525v2: Move codec into iram freeing 1MB for the audio buffer and also a small decoding speedup (iram seems to be 50% faster than dram when boosted and the same when unboosed). 32k is still reserved for the core and can be readjusted if needed. Codecs don't appear to ever need the 1MB (usually <350k only).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25491 a1c6a512-1295-4272-9138-f99709370657
2010-04-05 19:18:15 +00:00
Thomas Martitz
c06a23da79 Add T for plugins to the advanced build options to build all test_* plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25488 a1c6a512-1295-4272-9138-f99709370657
2010-04-05 16:09:47 +00:00
Andree Buschmann
95b03d2974 test_boost: fix r25464: button_get() can't be used with actions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25480 a1c6a512-1295-4272-9138-f99709370657
2010-04-05 10:08:00 +00:00
Rafaël Carré
0eb888b23a test_mem: fix r25464: button_get() can't be used with actions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25474 a1c6a512-1295-4272-9138-f99709370657
2010-04-05 04:48:38 +00:00
Andree Buschmann
dc19fb37d5 Make test_mem.c and test_boost.c compilable on targets without BUTTON_UP.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25464 a1c6a512-1295-4272-9138-f99709370657
2010-04-03 23:14:25 +00:00
Thomas Martitz
c4c45b3f9e Move delta calculation up so that only the loop time counts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25452 a1c6a512-1295-4272-9138-f99709370657
2010-04-03 14:14:23 +00:00
Thomas Martitz
ef0cc085ad Memory benchmark plugin. Tests memory speeds and prints the kB/s.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25450 a1c6a512-1295-4272-9138-f99709370657
2010-04-03 14:04:50 +00:00
Thomas Martitz
44e4839366 Fix test_boost boost handling. Also show the number of loops per second.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25429 a1c6a512-1295-4272-9138-f99709370657
2010-04-01 17:50:36 +00:00
Tomer Shalev
4c7a16b43c Viewer: Implement alignment option, to provide alignment of RTL text (Hebrew, Arabic) to the right
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25400 a1c6a512-1295-4272-9138-f99709370657
2010-03-30 17:09:04 +00:00
Rafaël Carré
88f76c97df Build pitch_detector bitmaps for all targets, even those without color
(forgot to remove the condition in r25397)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25399 a1c6a512-1295-4272-9138-f99709370657
2010-03-30 12:26:10 +00:00
Rafaël Carré
4fd9038d35 pitch_detector: fix builds on monochrome targets, remove an unused variable
Add icons for Clip, copied from c200 icons

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25397 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 23:50:07 +00:00
Rafaël Carré
6a25a33b4b pitch_detector plugin only works on color LCDs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25387 a1c6a512-1295-4272-9138-f99709370657
2010-03-29 20:23:57 +00:00
Tomer Shalev
4da92e3785 Fractals: Remove redundant assignment to a variable (y_delta)
Also some cosmetics


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25373 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 18:58:43 +00:00
Tomer Shalev
704eb8adee Brickmania: Don't use hard coded value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25372 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 16:36:30 +00:00
Rafaël Carré
35500c22a4 Fuzev2: add dithering option for mpegplayer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25364 a1c6a512-1295-4272-9138-f99709370657
2010-03-28 02:41:29 +00:00
Tomer Shalev
b917337be9 Brickmania: Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25358 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 18:27:29 +00:00
Tomer Shalev
857e946923 Brickmania: Prevent a ball that is sticked to the edge of the pad from being fired outside the screen's region when the pad is moved all the way to the screen's edge
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25357 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 18:23:43 +00:00
Tomer Shalev
8e8d2c2a5b Brickmania: Simplify movement of pad (and any balls that are sticked to it)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25356 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 18:17:58 +00:00
Tomer Shalev
be730dce0c Brickmania: Prevent two overlapping balls from destrying bricks together and stick forever
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25355 a1c6a512-1295-4272-9138-f99709370657
2010-03-27 17:56:54 +00:00