Jonathan Gordon
e765906d5b
move code around to make checkwps compile
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29536 a1c6a512-1295-4272-9138-f99709370657
2011-03-07 12:56:24 +00:00
Jonathan Gordon
343001b5f8
Merge a bunch of code which is 99% identical so it makes it easier to add more of these later
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29535 a1c6a512-1295-4272-9138-f99709370657
2011-03-07 12:45:45 +00:00
Michael Sevakis
7d2ab2df5f
Remove malloc_buf references from playback.c since it's no longer used for anything and align the codec slack space buffer that is now use as the malloc buffer.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29533 a1c6a512-1295-4272-9138-f99709370657
2011-03-06 02:03:37 +00:00
Fred Bauer
71e4b03ed6
Follow symlink dirs on UI simulator
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29530 a1c6a512-1295-4272-9138-f99709370657
2011-03-05 23:19:06 +00:00
Thomas Martitz
9edd6d4ee9
Anti-Aliased Fonts support.
...
This enables Rockbox to render anti-aliased fonts using an alpha blending method.
The input font bitmaps are 4bit, i.e. 4x larger, but the metadata size stays the same.
A tool, convttf, for converting ttf fonts directly to the Rockbox fnt format is provided.
It has a useful help output, but the parameter that works best is -c1 or -c2 (2 for larger font sizes).
Flyspray: FS#8961
Author: Initial work by Jonas Hurrelmann, further work by Fred Bauer, Andrew Mahone, Teruaki Kawashima and myself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29523 a1c6a512-1295-4272-9138-f99709370657
2011-03-05 18:36:51 +00:00
Thomas Martitz
396ddd9fd7
Android: Support embedded albumart in the widget.
...
This is achieved by writing the jpeg out to a temporary file.
This approach can probably be also used to support embedded albumart in pictureflow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29522 a1c6a512-1295-4272-9138-f99709370657
2011-03-05 18:05:26 +00:00
Thomas Martitz
cc889e9d60
Change the thread api a bit.
...
* Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler.
* thread_self_entry() shortcut for kernel.c.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 a1c6a512-1295-4272-9138-f99709370657
2011-03-05 17:48:06 +00:00
Andree Buschmann
708f5508ad
Fix peak handling in replaygain (FS#11981). This bug was introduced with r29388 and is caused by calling convert_gain() for peak values. This results in very low output volume if 'Prevent Clipping' is enabled.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29509 a1c6a512-1295-4272-9138-f99709370657
2011-03-03 07:23:25 +00:00
Thomas Jarosch
f9f89cf5cb
RaaA: Fix write locations of plugins
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29506 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 23:43:54 +00:00
Thomas Jarosch
15a358099c
Introduce "power" thread for RaaA
...
I tried to move the #ifdefs and the code
in firmware/powermgmt.c around and it was still
a big mess for hosted applications (RaaA/sim builds).
Create our own "power" thread as recently discussed on IRC.
Fixes the sleep timer for RaaA.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29501 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 19:12:55 +00:00
Jonathan Gordon
86a0022a16
Make android compile (untested)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29496 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 10:13:56 +00:00
Michael Sevakis
12375d1d3a
Merge functionality of wakeups and semaphores-- fewer APIs and object types. semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29492 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 08:49:38 +00:00
Michael Sevakis
05e180a130
Do the ridx > widx check where it should be done. A small rebuffering request must completely succeed before buffer can later shrink a handle or else it must reset the handle.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29491 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 06:24:50 +00:00
Michael Sevakis
64647f3403
buffering: Unusual cases when a handle ridx is briefly seeked ahead of widx need to be handled properly. In the best case, buffer useful would be wrong and in the worst, a packet audio move_handle delta would be quite incorrect, causing the handle to be moved too far.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29490 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 04:41:29 +00:00
Michael Sevakis
b3bfc09852
r29348 changes can cause certain codecs to jump to code on early track change that assumes initializations have been done. Make sure that track change cleanups are only called if the state is sane to do so. Stops my vorbis data abort issue. Correctness for speex is a guess based on the library calls' source. It appears only speex/vorbis should have been bothered by said revision.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29489 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 03:47:42 +00:00
Jonathan Gordon
0f68a91bc5
fix red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29484 a1c6a512-1295-4272-9138-f99709370657
2011-03-01 13:01:57 +00:00
Jonathan Gordon
485ff79584
Add an ability to set a setting to a specific value with a touchscreen action.
...
example: %T(0,0,20,12, setting_set, repeat, off)
That will set the repeat mode to "off" when it is pressed.
"setting_set" is the action name
"repeat" is the name of the setting in the config files
"off" is the value to set it to (same values as the legal values in the config files)
Not all settings are supported, outright unsupported settings will fail to parse. Some settings might not work too well if they don't apply instantly (Any that work well int he quickscreen should work well here)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29483 a1c6a512-1295-4272-9138-f99709370657
2011-03-01 12:31:03 +00:00
Jonathan Gordon
08fa83bd7c
fix yellow
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29479 a1c6a512-1295-4272-9138-f99709370657
2011-03-01 09:01:45 +00:00
Jonathan Gordon
fb3616368f
Remove code duplication in some generic skin touch action handling.
...
fix a bug which stopped the setting_inc/dec touch actions from parsing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29477 a1c6a512-1295-4272-9138-f99709370657
2011-03-01 07:26:11 +00:00
Jonathan Gordon
e63325acff
Add a touchaction "none" which does nothing when pressed. This will allow some fancy controls to skins in combination with recent %T/%Tl changes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29475 a1c6a512-1295-4272-9138-f99709370657
2011-03-01 04:01:02 +00:00
Michael Hohmuth
7df5ecc783
autoresume: Optimize playlist resume (manual, bookmark, or after power-on)
...
The resume position coming from these sources takes precedence over
autoresume. If we have such a resume offset, we don't have to wait
for the database to produce a resume offset before we can start the
codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29470 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 23:57:35 +00:00
Michael Hohmuth
b016ab9d86
DB import: Correctly import previously exported resume offsets
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29469 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 23:47:11 +00:00
Dave Chapman
0269b27eb8
Missed #if change from r29462 - thanks to Thomas Martitz for spotting.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29465 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 18:21:00 +00:00
Thomas Martitz
cbb68d41fe
Fix returning to wps from a plugin.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29463 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 14:38:18 +00:00
Dave Chapman
224c8262ee
Change the condition for including the shutdown menu item to something more appropriate.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29462 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 12:14:34 +00:00
Dave Chapman
793eab19b9
Remove a redundant part of a #if
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29461 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 12:05:22 +00:00
Jonathan Gordon
156b0bc614
Add the option of linking the %Tl (last touch) tag to a specific touchregion. Both tags now accept an optional label param as the first param.
...
%Tl([label,][timeout])
%T([label,] x, y, width, height, action)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29459 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 11:19:59 +00:00
Thomas Martitz
d69d406e09
Android: Fix crash when playback is passing invalid metadata around.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29454 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 00:59:44 +00:00
Thomas Jarosch
6e9e6a7571
RaaA: Add initial Pandora support
...
More information: www.openpandora.org
Possible things to implement:
- Special button mappings
- Battery monitoring
- ALSA audio backend
- Automate creation of "pnd" (=binary) file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29451 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 23:42:37 +00:00
Thomas Martitz
8ed943ce06
Make struct static.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29441 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 21:21:13 +00:00
Thomas Martitz
cab6ac2240
Fix warning in android build.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29440 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 21:09:36 +00:00
Andree Buschmann
41658bd07a
Remove some useless code and variables in the area of metadata parsing. Bump codec API.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29438 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 20:49:08 +00:00
Thomas Martitz
883ff8507e
Android: Show cover art in the widget (including option to hide it).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29437 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 20:47:44 +00:00
Michael Hohmuth
1a23e0ca19
Fix database import and export
...
Correct an omission that happened when the DB schema was changed last
time. Add a comment to enum tag_type to prevent this from happening
in the future.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29435 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 20:25:11 +00:00
Thomas Martitz
ade4c1637f
Fix corrupted metadata on manual track change on hwcodec.
...
r28672 removed a memset and strlcpy in mp3info() code path which exposed this bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29432 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 19:14:48 +00:00
Frank Gevaerts
2b368f2419
Simplified Chinese update by Li Jie
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29425 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 14:18:10 +00:00
Alex Parker
3b56634db5
Tweak dansk.lang from rasher
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29422 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 12:53:56 +00:00
Alex Parker
5b2966f274
FS#11970 by Mārtiņš Šimis - update Latvian
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29420 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 12:08:50 +00:00
Dave Chapman
376c9f3ad0
FS#11966 - use separate modelnames and config files for RaaA. This adds an APPLICATION define that can be used in Makefiles, and target-name defines (-DSDLAPP, -DANDROID, -DNOKIAN8XX and -DNOKIAN900) for use elsewhere. LCD size is now hard-coded for the Nokia builds in their config files. A new --app parameter is passed to buildzip.pl to explicitly state that this is an application build - it was previously derived from the model name.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29418 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 11:37:39 +00:00
Jonathan Gordon
9501986047
Blindly forcing stylus mode on plugin entry for an arbitrary subset of touch targets is a *REALLY BAD IDEA* so do it properly so we dont have to revert any commits.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29417 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 09:30:33 +00:00
Alex Parker
8e9f3bbecc
FS#11969 by Lev Panov - Russian translation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29415 a1c6a512-1295-4272-9138-f99709370657
2011-02-26 23:15:37 +00:00
Alex Parker
b10b030bd6
FS#11968 by Peter Lecky - Slovak language update
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29412 a1c6a512-1295-4272-9138-f99709370657
2011-02-26 22:14:37 +00:00
Bertrik Sikken
d3fc00ec42
Latvian language translation, FS#11967 by Mārtiņš Šimis
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29399 a1c6a512-1295-4272-9138-f99709370657
2011-02-25 20:26:03 +00:00
Andree Buschmann
89952213bb
Bump codec's API version. This is related to r29388 which changed the mp3entry struct.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29396 a1c6a512-1295-4272-9138-f99709370657
2011-02-25 07:16:35 +00:00
Michael Sevakis
ba8ce00bfc
pcmbuf: Clear last_chunksize at stop so we don't think there's a buffer in progress.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29395 a1c6a512-1295-4272-9138-f99709370657
2011-02-25 03:51:52 +00:00
Thomas Jarosch
93b1b8e158
Include config.h for strncmp RaaA maemo fix
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29393 a1c6a512-1295-4272-9138-f99709370657
2011-02-24 23:59:24 +00:00
Thomas Jarosch
e3a3e2c9c2
RaaA: Enable plugins for application builds
...
Use own plugins/SOURCES and plugins/SUBDIRS file to avoid
ifdef hell for disabled plugins without a keymap.
This finally brings the credits screen to RaaA.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29392 a1c6a512-1295-4272-9138-f99709370657
2011-02-24 23:35:16 +00:00
Andree Buschmann
9c2e7fd362
Use macro for better readability of adjust_mp3entry().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29390 a1c6a512-1295-4272-9138-f99709370657
2011-02-24 20:03:14 +00:00
Andree Buschmann
910d6e507a
Minor correction to comment.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29389 a1c6a512-1295-4272-9138-f99709370657
2011-02-24 19:36:41 +00:00
Andree Buschmann
71ceac0b74
FS#11964. Rework replaygain handling to save metadata buffer and binsize. Remove string representation of replaygain and use a dedicated ftoa implementation for WPS/screen info.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29388 a1c6a512-1295-4272-9138-f99709370657
2011-02-24 19:10:59 +00:00