summaryrefslogtreecommitdiff
path: root/apps/plugins/jpeg.c (unfollow)
Commit message (Collapse)Author
2007-01-14Start of work on a port to the Archos 'AV300' (AV320/340/380) - a working UI ↵Dave Chapman
simulator (but with a dummy background image for now) and the beginnings of the target-specific firmare code. Port is temporarily using a 2bpp LCD buffer format - the AV300 has a 320x240 colour (YCbCr-based) LCD which will need a new framebuffer format and drawing routines, but the LCD is also capable of various paletted bitmap modes, one of which has an identical framebuffer format to the greyscale ipods. Buttons (and hence the button mappings) are identical to the Archos Recorder, with the exception that the PLAY button on the Recorder is replaced by pressing the joystick on the AV300 (which I call BUTTON_SELECT). The initial port will begin by being strictly HWCODEC, but will evolve to be a hybrid SWCODEC/HWCODEC platform - it has a MAS3587F but also a main CPU (54MHz arm7tdmi plus DSP) capable of software decoding of at least some formats. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12008 a1c6a512-1295-4272-9138-f99709370657
2006-12-07Always use a black backgound while displaying images in jpegviewer, and use ↵Nils Wallménius
the usual foreground/background colors and backdrop in the jpegviewer menu git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11684 a1c6a512-1295-4272-9138-f99709370657
2006-11-19* Move checkbox to plugin api (core never uses it)Jonathan Gordon
* replace the last of the scrollbar() calls with gui_scrollbar_draw() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11552 a1c6a512-1295-4272-9138-f99709370657
2006-11-09Quit the jpeg viewer gracefully if started without arguments or with a wrong ↵Peter D'Hoye
file in a directory with no supported filetypes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11486 a1c6a512-1295-4272-9138-f99709370657
2006-11-05JPEG viewer: Removed the playback control menu on archos. It made no sense ↵Jens Arnold
as the JPEG viewer always needs to use the main buffer on archos, and it could cause strange effects. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11437 a1c6a512-1295-4272-9138-f99709370657
2006-10-26Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the ↵Barry Wardell
nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657
2006-10-21Disk spindown control during jpeg slideshow: for times below 10s, keep the ↵Peter D'Hoye
disk spinning, for longer times spin down the disk immediately after loading the picture. Inspired by #FS5653 (Paul Jam / Gwen Roelants) and Jens Arnold git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11299 a1c6a512-1295-4272-9138-f99709370657
2006-10-20Don't try to show the progress bar on top of the picture on grayscale lib ↵Peter D'Hoye
targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11280 a1c6a512-1295-4272-9138-f99709370657
2006-10-20Make slideshow mode more slideshow: keep showing previous picture until next ↵Peter D'Hoye
one is ready, just show a small progressbar to indicate loading git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11276 a1c6a512-1295-4272-9138-f99709370657
2006-08-11'no voice' is -1 not 0 and menu_items does have a pointerMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10527 a1c6a512-1295-4272-9138-f99709370657
2006-08-11don't assign NULL to a long (fixes sim build warnings)Marcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10526 a1c6a512-1295-4272-9138-f99709370657
2006-08-08Slightly optimised range_limit() for arm targets.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10494 a1c6a512-1295-4272-9138-f99709370657
2006-08-07Grayscale library ported to the grayscale iPods, first version. Added C ↵Jens Arnold
reference versions of gray_update_rect() for both horizontal and vertical pixel packing. gray_update_rect() and gray_ub_gray_bitmap_part() not yet assembler optimised. Grayscale screendump doesn't work yet. * Fixed button assignments for iPod in grayscale.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10468 a1c6a512-1295-4272-9138-f99709370657
2006-08-03Barry Wardell's keymappings for H10Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10446 a1c6a512-1295-4272-9138-f99709370657
2006-08-03Greyscale targets: Fix empty display when returning from menu without ↵Jens Arnold
action. Don't show remnants of old info during disk spinup when loading a new file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10426 a1c6a512-1295-4272-9138-f99709370657
2006-08-02Grayscale library: LCD linearisation and gamma correction.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10402 a1c6a512-1295-4272-9138-f99709370657
2006-07-12jpeg viewer: keep backlight on. Patch 5652 by Matthias Mohr plus some ↵Peter D'Hoye
changes by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10207 a1c6a512-1295-4272-9138-f99709370657
2006-06-30To avoid having to use the main unit when accidentally launching a plugin ↵Kevin Ferrare
from the remote, plugins now support remote quit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10157 a1c6a512-1295-4272-9138-f99709370657
2006-05-20Patch #5362 from Alexander Spyridakis - fixes bugs #5159 and #5061Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9967 a1c6a512-1295-4272-9138-f99709370657
2006-05-18Fix jpeg viewer crashing in directories with files without extension.Hristo Kovachev
Thanks go to Bill Janssen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9954 a1c6a512-1295-4272-9138-f99709370657
2006-05-03Correct a Coldfire asm constraint.Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9869 a1c6a512-1295-4272-9138-f99709370657
2006-04-09use #ifdef x instead of #if defined(x)Christian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9581 a1c6a512-1295-4272-9138-f99709370657
2006-04-09HAVE_ADJUSTABLE_CPU_FREQ isn't defined for simulators, so we don't have to ↵Christian Gmeiner
check for simulator builds before using cpu_boost() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9580 a1c6a512-1295-4272-9138-f99709370657
2006-03-29its much better to clear everytime the lcdChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9342 a1c6a512-1295-4272-9138-f99709370657
2006-03-29oops.. fix yellow buildsChristian Gmeiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9341 a1c6a512-1295-4272-9138-f99709370657
2006-03-29Patch #4936 from Jonathan Gordon with a small change by me. slideshow ↵Christian Gmeiner
support for JPEG viewer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9340 a1c6a512-1295-4272-9138-f99709370657
2006-03-03Removed unused debug function which caused a warning for 64bit simulators.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8895 a1c6a512-1295-4272-9138-f99709370657
2006-03-03Code Police raid. Mostly changed // comments and indented to Rockbox style.Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8894 a1c6a512-1295-4272-9138-f99709370657
2006-02-26Finally - grayscale library support for the simulators. Currently SDL only, ↵Jens Arnold
win32 and x11 won't link anymore due to missing simulator functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8845 a1c6a512-1295-4272-9138-f99709370657
2006-02-24first gigabeat commitMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
2006-02-24Button driver for iAudio X5Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8828 a1c6a512-1295-4272-9138-f99709370657
2006-02-19Add ASM optimised range_limit() for ARM, which gives a tiny performanceThom Johansen
gain. Removed a couple of tabs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8740 a1c6a512-1295-4272-9138-f99709370657
2006-02-19Repeat rate adaption is now handled by the button driver.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8739 a1c6a512-1295-4272-9138-f99709370657
2006-02-19Replace the range_limit lookup table with an inline function, asm optimised ↵Jens Arnold
for SH1 and coldfire. Slight speedup on SH1, up to 15% speedup on coldfire. Saves almost 1KB. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8736 a1c6a512-1295-4272-9138-f99709370657
2006-02-18Oops, fix the simulator buildsHristo Kovachev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8730 a1c6a512-1295-4272-9138-f99709370657
2006-02-18Okay, clearing the display twice doesn't give us anything more..Hristo Kovachev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8729 a1c6a512-1295-4272-9138-f99709370657
2006-02-18"Next/Previous jpeg from within the JPEG viewer" addition by Alexander ↵Hristo Kovachev
Spyridakis, modified a bit by me Also tries to use the plugin buffer instead of the audio buffer on the platforms with more than 130kb plugin buffer size (thus not stopping the music playback). If the free buffer from the plugin buffer is not enough, asks for stopping playback. Needs a little more work, but seems stable as it is. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8728 a1c6a512-1295-4272-9138-f99709370657
2006-02-17Put not-so-large arrays on the stack, so they end up in IRAM on Iriver and ↵Jens Arnold
iPod. Approximately doubles decoding speed on Iriver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8717 a1c6a512-1295-4272-9138-f99709370657
2006-02-17Use macro instead of literal constant for readability.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8716 a1c6a512-1295-4272-9138-f99709370657
2006-02-17Colour JPEG display on colour targets.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8715 a1c6a512-1295-4272-9138-f99709370657
2006-02-16the JPEG core can now also decode color images, this has to be wired to the ↵Jörg Hohensohn
application (memory management, color space converting display) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8711 a1c6a512-1295-4272-9138-f99709370657
2006-02-08JPEG viewer adapted to colour targets (greyscale only for now). New ↵Jens Arnold
functions in the lcd extensions plugin library for drawing canonical greyscale bitmaps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8617 a1c6a512-1295-4272-9138-f99709370657
2006-02-08Fix typo for iPod 3G keypad check.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8616 a1c6a512-1295-4272-9138-f99709370657
2006-02-05iPod: Make the plugins compile on the iPod 4G grayscaleDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8588 a1c6a512-1295-4272-9138-f99709370657
2006-01-15New plugin loader. Solves the crashes introduced with the .bss changes while ↵Jens Arnold
keeping the small binary size. The model & api version check is now part of the plugin loader. Codecs are not yet adapted, but the old method still works for them. Simulator plugins are not (yet) version-checked. API version numbering restarted, as this is an all-new system. Uses the target ID from configure, so don't change that too often. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8349 a1c6a512-1295-4272-9138-f99709370657
2005-12-11Fix bug spotted by Alexander Spyridakis - ensure file descriptor is closed ↵Dave Chapman
before exiting plugin with an grayscale lib error git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8220 a1c6a512-1295-4272-9138-f99709370657
2005-09-30H1x0: Changed lcd_blit() and the grayscale library to use the same internal ↵Jens Arnold
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-07-27Adjusted JPEG viewer to H1x0: (1) Button assignments. (2) Workaround for the ↵Jens Arnold
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-25Complete rework of the grayscale library: (1) Implemented the new rockbox ↵Jens Arnold
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-04-05mp3buf renamed to audiobufLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6252 a1c6a512-1295-4272-9138-f99709370657