summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
AgeCommit message (Collapse)Author
2009-07-14FS#10080Nils Wallménius
* Move strncpy() from core to the pluginlib * Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins * Drop strncpy() from the codec api as no codec used it * Bump codec and plugin api versions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
2009-07-14use lib display text to display help messages (FS#10099).Teruaki Kawashima
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21861 a1c6a512-1295-4272-9138-f99709370657
2009-07-12set svn:keywords propertyTeruaki Kawashima
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21809 a1c6a512-1295-4272-9138-f99709370657
2009-07-05Take 2 at 'Consolidate all fixed point math routines in one library' ↵Maurus Cuelenaere
(FS#10400) by Jeffrey Goode git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21664 a1c6a512-1295-4272-9138-f99709370657
2009-07-04Revert "Consolidate all fixed point math routines in one library (FS#10400) ↵Maurus Cuelenaere
by Jeffrey Goode" git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21635 a1c6a512-1295-4272-9138-f99709370657
2009-07-04Consolidate all fixed point math routines in one library (FS#10400) by ↵Maurus Cuelenaere
Jeffrey Goode git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21633 a1c6a512-1295-4272-9138-f99709370657
2009-07-02reduce size of the instance of struct style_text in lib/display.h (thanks to ↵Johannes Schwarz
Teruaki Kawashima) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21614 a1c6a512-1295-4272-9138-f99709370657
2009-06-30Improve the highscore related functions in plugin lib (FS#10350)Alexander Levin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21578 a1c6a512-1295-4272-9138-f99709370657
2009-06-29Remove int_prio argument from timer_register, and move the only use for it ↵Rafaël Carré
into alpine_cdc plugin, since this plugin is only built on SH7034 Also remove it from TIMER_START() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21558 a1c6a512-1295-4272-9138-f99709370657
2009-06-28FS#10099: new lib, which displays formatted text on every target; also ↵Johannes Schwarz
supports viewport git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21537 a1c6a512-1295-4272-9138-f99709370657
2009-06-19Core JPEG decoder improvements:Andrew Mahone
For >8-point vertical IDCT, transpose the coefficients while decoding them, so that the vertical IDCT can read in rows rather than columns. This improves speed a bit for this size even using the C IDCT. Remove inline ARM asm, replacing it with an external file containing pure asm IDCT functions. Add jpeg_ prefix to JPEG IDCT functions since some of them will now be visible globally. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21345 a1c6a512-1295-4272-9138-f99709370657
2009-06-16Accept FS#10094 by Teruaki Kawashima:Jonathan Gordon
Replace the old menu API with the "new" one (a very long time overdue so huge thanks for the work.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21306 a1c6a512-1295-4272-9138-f99709370657
2009-06-07Convert a number of places in core and plugins to use the BIT_N() macro ↵Jens Arnold
instead of 1<<n. Speeds up things on SH1, and also reduces core binsize. Most notable speedups: 1 bit lcd driver: drawpixel +20%, drawline + 27%, hline +5%; jpeg viewer: +8% for 1/8 scaling. Other targets are unaffected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21205 a1c6a512-1295-4272-9138-f99709370657
2009-06-01Speed up mono bitmap drawing on horizontally packed greyscale targets ↵Jens Arnold
(greyscale iPods). Average speedup is 80% on PP5002, and 55% on PP502x. * Simplify mono bitmap drawing in the 16 bit driver and the greylib a bit, also giving a slight speedup (3% on PP502x, 1.5% on coldfire). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21163 a1c6a512-1295-4272-9138-f99709370657
2009-06-01Move the ONDIO_PAD to the others which have the same keymap in the generic ↵Thomas Martitz
directions PLA context. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21158 a1c6a512-1295-4272-9138-f99709370657
2009-06-01Add Bob Jenkins' lookup3 32-bit and 64-bit hashes to pluginlib.Andrew Mahone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21155 a1c6a512-1295-4272-9138-f99709370657
2009-05-31Replace use of CONTEXT_CUSTOM by get_custom_action with new CONTEXT_PLUGIN, ↵Andrew Mahone
to prevent conflicts with core contexts using CONTEXT_CUSTOM, and use CONTEXT_TREE as the base context for PictureFlow's custom contexts. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21149 a1c6a512-1295-4272-9138-f99709370657
2009-05-27Commit next part of FS# 10138 by Teruaki Kawashima. Removed unneeded error ↵Michael Giacomelli
checks in plugin lib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21102 a1c6a512-1295-4272-9138-f99709370657
2009-05-26Use pre-multiplication in scaler to save one multiply per color component on ↵Andrew Mahone
ARM and Coldfire, at the cost of an extra add/shift in the horizontal scaler to reduce values to a workable range. SH-1 retains the same basic math, as the use of 16x16->32 hardware multiplication in the earlier scaler stages saves more than removing the 32x32->40 multiply to descale output. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21091 a1c6a512-1295-4272-9138-f99709370657
2009-05-17Fix duplicate #includesBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20977 a1c6a512-1295-4272-9138-f99709370657
2009-05-16Add include to pluginlib_jpeg_mem.c to prevent warning noise with ↵Andrew Mahone
-Wmissing-prototypes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20957 a1c6a512-1295-4272-9138-f99709370657
2009-05-16Extend buflib to support shifting space out off the buffer for other use, ↵Andrew Mahone
and returning space to the buffer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20952 a1c6a512-1295-4272-9138-f99709370657
2009-05-09Split 8-bit-to-native conversion in bmp.c into a function, add support for ↵Andrew Mahone
plugging unscaled output in BMP and JPEG loaders, use output_row_8_native in JPEG decoder when possible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20884 a1c6a512-1295-4272-9138-f99709370657
2009-05-08Plugin JPEG decoder for data in memory, along with test_mem_jpeg.c and ↵Andrew Mahone
bench_mem_jpeg.c plugins to test and benchmark it, and a line-length clean up in jpeg_load.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20871 a1c6a512-1295-4272-9138-f99709370657
2009-05-06M:Robe 500: Make some plugins work with the touchscreen (remote support ↵Karl Kurbjun
needs to be added back later) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20855 a1c6a512-1295-4272-9138-f99709370657
2009-05-04Fix red on PlayerAndrew Mahone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20852 a1c6a512-1295-4272-9138-f99709370657
2009-05-04Make JPEG and BMP scaler optional with HAVE_JPEG and HAVE_BMP_SCALING, both ↵Andrew Mahone
defined for all targets that have HAVE_ALBUMART. Disable JPEG in PictureFlow and pluginlib album art search with 32KiB plugin buffer until PictureFlow gets overlay support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20851 a1c6a512-1295-4272-9138-f99709370657
2009-05-03Make local function static in jpeg_load.c, add missing header file in ↵Bertrik Sikken
read_image.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20848 a1c6a512-1295-4272-9138-f99709370657
2009-05-02Fix red.Andrew Mahone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20842 a1c6a512-1295-4272-9138-f99709370657
2009-05-02Add read_<image>_fd functions to plugin API, add feature_wrappers.h handling ↵Andrew Mahone
for them, and add read_image.[ch] wrapper for reading image files with automatic type detection. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20840 a1c6a512-1295-4272-9138-f99709370657
2009-05-02Add read_jpeg_* to feature_wrappers.h, add import-from-core for jpeg_load.c ↵Andrew Mahone
on mono targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20839 a1c6a512-1295-4272-9138-f99709370657
2009-04-22Add exit() implementation for pluginsMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20775 a1c6a512-1295-4272-9138-f99709370657
2009-04-17Commit fix for CPU_BOOST_LOGGING by Rafaël Carré.Michael Giacomelli
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20724 a1c6a512-1295-4272-9138-f99709370657
2009-04-11M:Robe 500: Start of proper remote support, touchscreen works without remote ↵Karl Kurbjun
now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20684 a1c6a512-1295-4272-9138-f99709370657
2009-04-10FS#10075 - FUZE: QUIT Plugin by selecting BUTTON_HOME by Johannes Schwarz. ↵Thomas Martitz
Updates the plugin keymap to use Long Home to exit plugins to be more inline with the core keymap. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20680 a1c6a512-1295-4272-9138-f99709370657
2009-04-07Enable plugins on the Onda VX747Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20647 a1c6a512-1295-4272-9138-f99709370657
2009-03-08Optimize hline, fillrect and mono bitmap drawing for chunky displays (16 bit ↵Jens Arnold
colour and greylib). Speeds up text rendering by 20..45% on colour coldfire, by 30..50% on colour ARM, and is noticeable in archos pictureflow. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20242 a1c6a512-1295-4272-9138-f99709370657
2009-03-04FS#9916 buflib plugin memory allocatorAndrew Mahone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20202 a1c6a512-1295-4272-9138-f99709370657
2009-02-15fix greylib scaler output on sh, output_row_grey was not using SC_MUL macroAndrew Mahone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20011 a1c6a512-1295-4272-9138-f99709370657
2009-02-10Move screendump from apps to firmware, solving two nasty firmware-to-apps ↵Jens Arnold
calls. This required to move the filename creation functions as well. * Fix bug in the BMP header of Clip screendumps. * Add remote screendump for targets with an LCD remote. * Simplify some ifdefs and rename a macro in the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19967 a1c6a512-1295-4272-9138-f99709370657
2009-02-09More compact screendump routines for core and greylib. The core routine ↵Jens Arnold
might be a little slower for vertically packed mono and greyscale displays, the greylib one should be faster in all cases. * Reduce stack usage of greyscale screendump on the Clip* Rename a macro in the bitmap LCD simulation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19959 a1c6a512-1295-4272-9138-f99709370657
2009-02-09Put the display colours for monochrome and greyscale targets into the target ↵Jens Arnold
config files, and use them both for the simulator UI and screendumps. The Clip now shows the split display properly in screendumps and simulator. A side effect is that screendumps of ordinary monochrome targets are now 4-bit BMP files (saves an alternate code path, and might be more compatible with some gfx programs). * Simplify the simulation of split display, and also simplify greylib simulation. The simulator now always calculates 129 shades (2*128 for a Clip sim), and just uses 2 (or 4) of those for native display simulation. * Centralised the simulator LCD dimension definition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19950 a1c6a512-1295-4272-9138-f99709370657
2009-02-03Gigabeat S: Get remote keymaps up to snuff and working. Do a couple tweaks ↵Michael Sevakis
on main unit ones. Cleanup keymap file a bit. Fix main button scanner to not clobber remote button. Fix a bug in actions.c where 'LAST_ITEM_IN_LIST' didn't really terminate scanning immediately. It would do an additional call into get_context_map and silently pick up ACTION_STD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19909 a1c6a512-1295-4272-9138-f99709370657
2009-02-01Accept a quick patch from Alexander Levin to neaten up the #defines and ↵Jonathan Gordon
comments from my earlier commit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19897 a1c6a512-1295-4272-9138-f99709370657
2009-02-01Statusbar handling fixes. Jonathan Gordon
Fixes FS#9845 - %we/%wd wasnt working WPS no longer resets the viewportmanger more than needed (was doing it twice/draw before) screens can now enable/disable the statusbar easily ignoring the setting instead of needing special handling (fix for the radio screen coming soon) minor glitch introduced in this commit... the statusbar in the WPS might disappear for a fraction of a second when it is entered, I need to track this down... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19894 a1c6a512-1295-4272-9138-f99709370657
2009-01-24remove MEM_FUNCTION_WRAPPERS, and private mem* implementations from plugins, ↵Andrew Mahone
and replace with pluginlib implementations in plugins/lib/gcc-support.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19847 a1c6a512-1295-4272-9138-f99709370657
2009-01-24Plugins for the Philips HDD1630. The keymaps are largely untested on the ↵Mark Arigo
device (patches welcome). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19846 a1c6a512-1295-4272-9138-f99709370657
2009-01-24fix yellow - don't build pluginlib_albumart.c on non-bitmap targetsAndrew Mahone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19840 a1c6a512-1295-4272-9138-f99709370657
2009-01-24plugins/lib/feature_wrappers.h to provide easy access to some feature that ↵Andrew Mahone
may be in either API or pluginlib depending on target pictureflow modified to use feature wrappers, and built on all targets that have tagcache and are swcodec git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19837 a1c6a512-1295-4272-9138-f99709370657
2009-01-24albumart search in pluginlib when building without HAVE_ALBUMART (for later ↵Andrew Mahone
use by pictureflow) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19835 a1c6a512-1295-4272-9138-f99709370657