summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpegplayer.c (follow)
Commit message (Collapse)AuthorAge
* Okay. Really fix the red. It's a little ugly at this point, and clearly Paul Louden2007-11-21
| | | | | | | | | | I shouldn't be coding in whatever my mental state is. But the intent was not to remove the use of Select for pausing in Mpegplayer, for those who like it. The ugliness can be removed if we want to go back to a single pause button. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15736 a1c6a512-1295-4272-9138-f99709370657
* Fix my rampant making of mistakes.Paul Louden2007-11-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15735 a1c6a512-1295-4272-9138-f99709370657
* Allow use of either A or Select to pause in mpegplayer. This means you Paul Louden2007-11-21
| | | | | | | | | can pause it the same way you pause music, but I've not removed the old button since mpegplayer currently has plenty of buttons, and not many functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15734 a1c6a512-1295-4272-9138-f99709370657
* enable jpeg, mpegplayer and midiplay on the mr500 (only jpeg is actually ↵Jonathan Gordon2007-10-25
| | | | | | | | | usable though, mpegplayer data aborts) fix the config which should have been done a few commits ago git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15296 a1c6a512-1295-4272-9138-f99709370657
* Phase in thread_wait when waiting for a thread to exit. Begin phasing out ↵Michael Sevakis2007-10-22
| | | | | | the spinlock object for general use; it will become a multicore-only object for core locking. Take care of plugins first. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15260 a1c6a512-1295-4272-9138-f99709370657
* FS#7997 - mpegplayer - enable/disable start menuRobert Kukla2007-10-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15250 a1c6a512-1295-4272-9138-f99709370657
* FS#7994 - Rename talk.c API, make talk_disable() affect all talking (not ↵Steve Bavin2007-10-19
| | | | | | just menus), hopefully save some space. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15206 a1c6a512-1295-4272-9138-f99709370657
* Fix a warning in the simDave Chapman2007-10-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15185 a1c6a512-1295-4272-9138-f99709370657
* Use the core codec thread's stack for the mpegplayer audio thread - this ↵Dave Chapman2007-10-18
| | | | | | will free up another 9KB of IRAM for use by mpegplayer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15181 a1c6a512-1295-4272-9138-f99709370657
* FS#7971 - mpegplayer - start menu loads quicker - menu clean up - code clean upRobert Kukla2007-10-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15143 a1c6a512-1295-4272-9138-f99709370657
* Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis2007-10-16
| | | | | | towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
* Delay boosting and backlight on until after the menu selection is done. ↵Peter D'Hoye2007-10-15
| | | | | | Fixes FS #7964. There remains an issue with the movie being loaded before the menu is shown. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15123 a1c6a512-1295-4272-9138-f99709370657
* Use the CLOCK_RATE define instead of 44100.Antoine Cellerier2007-10-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15110 a1c6a512-1295-4272-9138-f99709370657
* Cosmetic change - change the "loading ..." splashes to "Loading...", as used ↵Dave Chapman2007-10-11
| | | | | | everywhere else in Rockbox git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15081 a1c6a512-1295-4272-9138-f99709370657
* FS#7931 - mpegplayer - resume on idle off - play files without start time of ↵Robert Kukla2007-10-11
| | | | | | zero git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15079 a1c6a512-1295-4272-9138-f99709370657
* fix yellow and some house cleaningRobert Kukla2007-10-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15056 a1c6a512-1295-4272-9138-f99709370657
* FS#7487 - mpegplayer - video start time seek with resumeRobert Kukla2007-10-09
| | | | | | | by John S. Gwynne & Brian J. Morey This should stop the patch from breaking again and give them opportunity to improve it further. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15052 a1c6a512-1295-4272-9138-f99709370657
* Discontinue any use of 'swp(b)' on PP5020. While clocking is stable, some ↵Michael Sevakis2007-10-06
| | | | | | testing revealed this instruction can still cause problems without concurrent access. Make sure mpegplayer is safe while not using spinlock (no longer atomic) between cores to protect the stream byte counters - use nonwrapping head and tail pointers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15005 a1c6a512-1295-4272-9138-f99709370657
* Just temporarily disable talk menus, in case the player is reset whilst in ↵Steve Bavin2007-10-03
| | | | | | mpegplayer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14970 a1c6a512-1295-4272-9138-f99709370657
* This should fix the voice issues in menus in mpegplayer.Michael Sevakis2007-10-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14962 a1c6a512-1295-4272-9138-f99709370657
* Get the plugins synced up with the threading changes.Michael Sevakis2007-09-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14881 a1c6a512-1295-4272-9138-f99709370657
* Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by ↵Marianne Arnold2007-09-20
| | | | | | Max Kelley with tweaks, bit of cleanup and additional bitmaps by me. Some of the now enabled plugins could still be improved in regard to screen size adaptation or keymaps but this way it can easily be done later and one by one. The rather ugly 'ifndef's I added temporaryly in plugins/SOURCES will also go one by one. Plugin button actions cause some quirks in a few plugins (e.g. 'clock') but since it's not critical , the bitmaps were already done and it makes a good example for discussing plugin button actions, I thought it could go in. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14771 a1c6a512-1295-4272-9138-f99709370657
* Repair mpegplayer on 64 bit sims. No reason for doing fancy bitshifting ↵Jens Arnold2007-09-09
| | | | | | opts, this is all compile time... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14659 a1c6a512-1295-4272-9138-f99709370657
* Pass plugin api pointer to funtion directly, fixes crashes when doing ↵Peter D'Hoye2007-08-16
| | | | | | incremental builds. Fix incorrect backlight changes in rockblox introduced recently. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14373 a1c6a512-1295-4272-9138-f99709370657
* Bring mpegplayer backlight fix to the other plugins, this also fixes some ↵Peter D'Hoye2007-08-15
| | | | | | wrongly ifdef'd backlight calls. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14352 a1c6a512-1295-4272-9138-f99709370657
* Also keep the backlight on in mpegplayer when plugged in. Fixes FS #7584. ↵Peter D'Hoye2007-08-13
| | | | | | Created two helper functions for this, because this issue also exists in other plugins (to do). The helper functions are in the pluginlib in helper.[ch], where other common stuff can be put. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14321 a1c6a512-1295-4272-9138-f99709370657
* Mpegplayer: Clear up some other cache issues. Use the better sleep loops for ↵Michael Sevakis2007-08-04
| | | | | | message sending. I still won't promise 100% trouble-free operation on dual-core since adding a thread to the COP from the CPU is a race condition anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14173 a1c6a512-1295-4272-9138-f99709370657
* Rockbox compiles and boots now on the 2nd gen, but doesn't work properly yet.Jens Arnold2007-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14021 a1c6a512-1295-4272-9138-f99709370657
* Remove the mad_frame_overlap[] buffer from the main (IRAM) stack in order to ↵Dave Chapman2007-07-23
| | | | | | prevent the reported stack overflows. On Coldfire, there is enough room to keep it in IRAM, but not on PortalPlayer. However, this should not cause problems as the audio thread has an entire core to itself (except for buffering) and IRAM doesn't make much difference on PP502x. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13968 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Refine the earlier additions and be more explicit about a ↵Michael Sevakis2007-07-20
| | | | | | message intent by renaming it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13938 a1c6a512-1295-4272-9138-f99709370657
* MpegPlayer: Add a simple messaging scheme for sending stream commands. ↵Michael Sevakis2007-07-19
| | | | | | Remove the need to disable FIQ when adding to PCM buffer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13931 a1c6a512-1295-4272-9138-f99709370657
* change the fps calculation so setting changes are visible without delayMarcoen Hirschberg2007-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13678 a1c6a512-1295-4272-9138-f99709370657
* move button_loop to prepare for the next commitMarcoen Hirschberg2007-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13677 a1c6a512-1295-4272-9138-f99709370657
* Plugins that play sound must be sure to set inputs and outputs on audio ↵Michael Sevakis2007-06-10
| | | | | | muxed targets. Add strict adherence to the interface protocols. Make sure playback sets the playback output as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13604 a1c6a512-1295-4272-9138-f99709370657
* attempt to make the Gigabeat button mappings in the plugins more logical and ↵Marcoen Hirschberg2007-05-19
| | | | | | in line with the mapping in rockbox itself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13436 a1c6a512-1295-4272-9138-f99709370657
* Prevent idle poweroff in the MPEG video player plugin. Fixes FS#6091.Linus Nielsen Feltzing2007-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13413 a1c6a512-1295-4272-9138-f99709370657
* Missed a couple. Hopefully fix all warnings.Michael Sevakis2007-04-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13234 a1c6a512-1295-4272-9138-f99709370657
* General housekeeping: Make plugin buffer functions take size_t * instead of ↵Michael Sevakis2007-04-21
| | | | | | int * to match the parameter type of the buffer functions called in the core. Get rid of unsafe int * <==> size_t * casting. Use ssize_t where int was used and size_t where unsigned int was used in the buffer calls to not alter signedness in the plugins. No API version change since it should only be an issue for 64-bit sim builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13233 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Fix jumping past the frame waiting if Limit FPS is on but Skip ↵Michael Sevakis2007-04-21
| | | | | | Frames is not. Fixes FS#7055 though this was just a general mistake and not limited to the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13227 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Better frame dropping code adapted to the using correct ↵Michael Sevakis2007-04-18
| | | | | | timestamps change. Even smoother frames. Higher FPS and smoother when having to drop than before (Around 15fps regulated for Elephants Dream on x5 which is a dismal situation, up from around 12 or so). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13205 a1c6a512-1295-4272-9138-f99709370657
* Oops. Have to do dropping based on future frame type but based upon the ↵Michael Sevakis2007-04-16
| | | | | | current one's lateness otherwise nice screen garbage can result from dropping/drawing the wrong ones. A small amount of refinement will be needed here later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13176 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Better sync, smoother frames - corrected a few minor flaws. Keep ↵Michael Sevakis2007-04-16
| | | | | | timestamps 32-bit in stead of 33 - a 45kHz clock is good enough for humans. Increase pts queue size since the mpeg buffer is now filled when buffering the audio stream. Cleanup frame drop code a little too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13175 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Get it in better shape for dual core targets. Utilize the newly ↵Michael Sevakis2007-04-14
| | | | | | added cache stuff. Add a mutex to core shared buffer variables. I'd prefer to have a true spinlock there but this will do for the moment and protect the data. Nonetheless I can't seem to crash it on an e200 any longer and the display garbage is gone. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13153 a1c6a512-1295-4272-9138-f99709370657
* Moved archos backlight code to target tree. Changed old mutlivalue ↵Jens Arnold2007-04-12
| | | | | | CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Recover from audio stream errors better. Correct some sizes. Add ↵Michael Sevakis2007-04-12
| | | | | | some needed extra guard buffer. Add in an important additional wrap check. Stream demuxer needs work on when it looks ahead in the stream and it should wrap though. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13123 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: oops, added an IRAM init/buffer get order switch that should ↵Michael Sevakis2007-04-12
| | | | | | have been reversed before committing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13120 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: do some reordering, add some needed volatiles, make sure thread ↵Michael Sevakis2007-04-12
| | | | | | creation failure is handled correctly, make sure audio doesn't attempt to finish remaining data if it was asked to stop. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13118 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Hopefully help some problems on dual core. Make USB mode exit ↵Michael Sevakis2007-04-11
| | | | | | correctly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13109 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: do a little post commit cleanup.Michael Sevakis2007-04-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13095 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Get A-V synchronized. Improve frame sync and dropping logic and ↵Michael Sevakis2007-04-10
| | | | | | take advantage of decoder's ability to assist. Straighten out some threading problems. Clean it up a bit. Added some plugin API functions and decided it was a good time to do a good sorting on them so your next update from this build should be a full replacement. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13094 a1c6a512-1295-4272-9138-f99709370657