36818 Commits

Author SHA1 Message Date
Stephan Aßmus
1c1de1a5cd The Media:Rating attribute can now be controlled via
the new Attributes menu. Added a TODO for how this should
eventually work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38598 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38598
2010-09-10 11:15:28 +00:00
Stephan Aßmus
7fee522dd0 * Moved the Settings menu items into the MediaPlayer menu.
* Removed the Settings menu in favor of a new Attributes
   menu (does not offer anything yet).
 * The context menu was showing two separator items by mistake
   (after the About item was removed from it).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38597 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38597
2010-09-10 10:37:38 +00:00
Stephan Aßmus
811aedf9c2 New player windows returned from NewWindow() are not
automatically shown anymore since the playlist restore
changes. Unbreak opening a new player, let the application
thread open it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38596 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38596
2010-09-10 10:07:13 +00:00
Scott McCreary
8f25594c11 Fixed the BeAE build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38595 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38595
2010-09-10 01:41:29 +00:00
Stephan Aßmus
0beac2ff04 PlaybackManager:
* Make sure that the messages which trigger a performance
   time update a) don't pever pile up and b) that we don't
   still receive an event after reinitialization (would
   not have been a problem, at one point I thought it was).
 * Don't compile in support for changing the playback speed
   for the moment.
 * Better support for notifying the reaching of a seek frame,
   In _UpdateStates(), the wrong state (most often out of bounds)
   was checked to be a seek request state. Check if a seek request
   was reached in all other cases where states are removed.

Controller:
 * Simple but important simplification of the problem that
   seeked frames are reached asynchronously and with a latency:
   In TimePosition() simply report the seeked frame, if there
   are still pending seek requests. This allows a consistent
   view from the outside, i.e. after calling SetTimePosition(),
   TimePosition() will not return something different.
 * Use a more robust way to track pending seek requests. A
   new request may have been issued while not having reached
   the previous one yet.
 * Implement a notification for reaching the seek frame, but
   I didn't need it after all, may come in handy later...

MainWin:
 * Change the cursor left/right keys to support winding.
   Cursor up/down change the volume, Cmd-up/down skips
   to the previous/next playlist item, left/right do the
   winding now, as requested in ticket #2495.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38594 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38594
2010-09-09 21:30:36 +00:00
Jérôme Duval
bcbde9ce94 added missing ppc and arm files
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38593 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38593
2010-09-09 19:55:09 +00:00
Philippe Houdoin
62da9a0fce Ooops, fix the binary compatibility I introduced.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38592 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38592
2010-09-09 16:33:56 +00:00
Philippe Houdoin
7ae974066f Cache text width to avoid calling StringWidth() too much while
both text and font don't change.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38591 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38591
2010-09-09 15:13:37 +00:00
Stephan Aßmus
38c4dc0eaa Small improvement in efficiency, don't invalidate the
layout when the string width did not change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38589 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38589
2010-09-08 21:14:31 +00:00
Stephan Aßmus
4e57cee58b * Added DurationView, defaulting to show the time remaining to finish.
* Added DurationToString to support code, used by the PositionToolTip
   as well now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38588 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38588
2010-09-08 20:59:42 +00:00
Stephan Aßmus
737186ccb0 Fix the build and remove a note that is no longer necessary
since the file has been pretty much rewritten anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38587 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38587
2010-09-08 20:58:36 +00:00
Stephan Aßmus
65723d8085 Doh... should have been part of my last commit. Sorry!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38586 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38586
2010-09-08 19:52:50 +00:00
Fredrik Holmqvist
01f964efeb Introduce a gSystemShutdown flag to be able to check if system is shutting down. ACPI Embedded Controller now uses polling when it is set to true.
This might help with ACPI shutdown issues, if not this change can be reverted. Not verified as it works on all my machines even without this.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38585 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38585
2010-09-08 19:19:49 +00:00
Stephan Aßmus
b000c602e3 * Reimplemented the transport buttons based on BButton.
* Reimplemented the SeekSlider and VolumeSlider based on BSlider.
 * Updated the look to fit with the rest of Haiku.
 * Switched TransportControlGroup to layout management.
 * Got rid of a whole lot of ancient cruft.
 * Fixed a bunch of display bugs in PeakView.

There is no usability change, yet, except that the controls stay
centered, and that the volume slider snaps to the middle now.

I didn't check if other targets use the removed sources, before
I do a build of an image, I wanted this in SVN. I am using another
computer and have not yet had any file corruptions so far, but I
am not trusting it completely yet... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38584 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38584
2010-09-08 17:51:27 +00:00
Philippe Houdoin
33684c664b Removed swscale_altivec_templace.c, which is already conditionaly included
by swscale_templace.c, itself included by swscale.c.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38583 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38583
2010-09-08 15:12:00 +00:00
Philippe Houdoin
f7fdea9640 Removed duplicate int_altivec.c and h264_templace_altivec.c, which as any templace
source are instead conditionally included by other source code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38582 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38582
2010-09-08 15:07:16 +00:00
Philippe Houdoin
05b9aa91c6 No more imgresample_altivec.c or snow_altivec.c in ffmpeg v0.6.
Add the new vp3dsp_altivec.c, though.
Should fix the ppc build.

*Untested*


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38581 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38581
2010-09-08 14:46:48 +00:00
Philippe Houdoin
80528f21d6 Fix gcc2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38580 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38580
2010-09-08 14:43:20 +00:00
Philippe Houdoin
48933a73b8 Expand glutGetProcAddress() to support core GL functions too under Haiku,
now that we do have a way to retrieve such address.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38579 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38579
2010-09-08 10:41:44 +00:00
Philippe Houdoin
fafc6e4b77 Added a GetGLProcAddress() method to BGLView.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38578 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38578
2010-09-08 10:01:37 +00:00
Philippe Houdoin
35c8505a33 Add an AddressOf() inline method, beside OffsetOf().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38577 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38577
2010-09-08 09:32:42 +00:00
Philippe Houdoin
256571764d Mesa's glapi_getproc.c was missing...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38576 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38576
2010-09-08 09:31:04 +00:00
Philippe Houdoin
2e0de40436 Style fix, as suggested by Jerôme.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38575 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38575
2010-09-08 08:43:22 +00:00
Scott McCreary
d3902df608 Added Ruby and Paladin as OptionalPackages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38574 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38574
2010-09-08 08:01:53 +00:00
Jérôme Duval
a1b0ec3097 Patch from Janito Ferreira Filho (aka jjvf): this is the result of his GSoC assignment "Implement ext2/3 Read and Write Support for Haiku".
* Tested and checked most features and fs operations, while passing successfully the Linux fsck. Though the implementation still needs more testing and is to be used with 
caution, it's better in my mind to have the code committed now given the size of the patch.
* Code style isn't extensively checked but is mostly OK. Code review is welcome.
Some notes from Janito:
* Sparse files aren't supported and hard links aren't supported. Write attributes methods aren't activated nor tested.
* Journaling needs more testing to make sure it behaves in a compatible way to Ext3, and support for the different modes hasn't been implemented (due to the block 
and file cache incompatibility). Correct revoke management is also lacking, as is proper management of the superblock state and copies and block group copies.
* The code is partly based and inspired by the BFS implementation. Author information might need to be fixed.

I'd like to congratulate and thank Janito for his hard work to bring the implementation to the current state. I hope he'll keep on maintaining it and become a regular 
contributor/committer.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38573 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38573
2010-09-07 23:25:42 +00:00
Clemens Zeidler
3ef84cd4bb Check if the mouse click is in the decorator drag area.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38572 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38572
2010-09-07 21:27:13 +00:00
François Revol
a7ea5b51c6 Force grep to treat files as text files, as it seems freegrep doesn't like UTF-8.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38571 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38571
2010-09-07 16:39:23 +00:00
Stephan Aßmus
c5f8afb944 First implementation at the "loop by default" settings.
To make it better, there should be a looping mode per
window, and the settings should serve only as defaults.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38570 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38570
2010-09-07 14:36:32 +00:00
Stephan Aßmus
c520f2c9c9 Removed VideoNode, as it wasn't used. It's almost the same
code as the VideoNode in the TV application.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38569 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38569
2010-09-07 14:18:09 +00:00
Stephan Aßmus
044dc96bce Moved TransportControlGroup into "interface" folder, as it's
a more or less generic foundation class.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38568 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38568
2010-09-07 14:17:15 +00:00
Philippe Houdoin
e4d2cd5dfd Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38567 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38567
2010-09-07 12:45:08 +00:00
Philippe Houdoin
df9bb1df97 Reworked, as suggested by stippi, to avoid keeping cursors instances of system ones.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38566 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38566
2010-09-07 12:14:20 +00:00
Stephan Aßmus
fae87f406e Make CpuCapabilities.h self-contained and thereby fix the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38565 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38565
2010-09-07 12:12:07 +00:00
Stephan Aßmus
86358cb106 * Hopefully fixed the PPC build.
* Fixed coding style issues.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38564 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38564
2010-09-07 11:22:02 +00:00
Stephan Aßmus
20d496c56c ff_x264_deblock_v8_luma_intra_mmxext is GPL and needs to be wrapped
in a CONFIG_GPL #ifdef (should be upstreamed, actually). This fixes
the GCC2 build (and probably GCC4) if the Haiku build is not configured
to include GPL add-ons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38563 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38563
2010-09-07 11:15:48 +00:00
Stephan Aßmus
5e7287f481 Enable run-time CPU detection. I didn't yet test this
on an older CPU.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38562 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38562
2010-09-07 11:11:51 +00:00
Stephan Aßmus
6c49058008 yuv2rgb_mmx.c will now include other files depending on whether
GPL code is enabled or not. We need to build it in either case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38561 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38561
2010-09-07 11:10:57 +00:00
Stephan Aßmus
6f76655240 Fixed build with tracing enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38560 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38560
2010-09-07 11:09:48 +00:00
Stephan Aßmus
631e3dcf4b * FFmpeg is not x86-only at all. The Jamfile tries to configure
the build depending on the target architecture.
 * Add the folder for media plugins to home/config/add-ons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38559 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38559
2010-09-07 10:19:35 +00:00
Philippe Houdoin
b3ac89d6a1 Fix application signature.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38558 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38558
2010-09-07 08:04:00 +00:00
Philippe Houdoin
91998e8078 Change cursor to hint user an object can be dragged...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38557 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38557
2010-09-07 07:51:26 +00:00
Stephan Aßmus
d29fcc50b8 Switched support for AVI files from native Reader to
FFmpeg plugin, which now works for much more files
in my testings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38556 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38556
2010-09-06 21:23:39 +00:00
Stephan Aßmus
f2d6b67836 Disable some MMX accelerated functions on the GCC2 build, those
had been patched in the older ffmpeg version as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38555 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38555
2010-09-06 21:14:22 +00:00
Stephan Aßmus
fb0c01f4d9 GCC2 was seeing the wrong "internal.h" header. That's what you get for not
using vendor branches properly... I remember having to make this change
before... GCC2 build goes much further now, investigating next problem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38554 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38554
2010-09-06 21:06:28 +00:00
Stephan Aßmus
818577b203 * Make PlaybackManager::CurrentFrame() return int64, like
what it's internally using. Adapt NotifyCurrentFrameChanged()
   implementors.
 * Controller::SetTo() does not need to set the current frame,
   since either Init() or FormatChanged() will have taken care
   of it now.
 * Reset the seeking request info in Controller::SetTo().
 * Changed the parameter passed to VideoSupplier::FillBuffer()
   from media_format to media_raw_video_format, so the
   VideoProducer doesn't have to generate a media_format for
   each frame...
 * ProxyVideoSupplier caches the last produced frame, which
   avoids a situation that the VideoProducer asks to generate
   the same frame twice sometimes.
 * In PlaybackManager::_PushState(), make sure we really
   schedule the next current_frame if asked. This avoids
   one situation in which the VideoSupplier was asked to generate
   the same frame again and fixes playback after pausing (was
   showing black video until the next keyframe before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38553 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38553
2010-09-06 19:27:25 +00:00
Jérôme Duval
d859486b15 Only swap words on little endian machines. Checked against FreeBSD.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38552 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38552
2010-09-06 19:24:02 +00:00
Stephan Aßmus
959a162c91 Always call PlaybackManager::Init() in FormatChanged(). This makes
sure we don't deal with stale PlayingState and other outdated data
when the Controller initializes to a new file, but does not need
to teardown the old and setup new media nodes. Fixes ticket #3855.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38551 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38551
2010-09-06 19:09:16 +00:00
Stephan Aßmus
bc76e66a1d ERROR->TRACE for LateNoticeReceived()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38550 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38550
2010-09-06 19:06:46 +00:00
Stephan Aßmus
f8d26f5c5f Don't delete a BToolTip directly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38549 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38549
2010-09-06 19:06:18 +00:00
Stephan Aßmus
8887a47ded Upgraded FFmpeg to the release version 0.6 (only some minor compile fixes to the code
with regards to using the wrong #include scope in one file and disabling two
apparently unmaintained asserts when compiling in DEBUG mode). I didn't yet test
the GCC 2 build, but I need to get this into SVN since I am having some annoying
file corruption troubles. In fact I am hoping I am not commiting broken files,
but a few seconds ago everything was still building cleanly. One thing that definitely
improved is the (disabled at the moment) AVI support. Every clip I tested so far
plays, which can't be said about our native AVI reader. With the previous FFmpeg
version (a random SVN revision is my guess), many old AVIs played completely broken.
So far, I have not spotted any regressions


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38548 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev38548
2010-09-06 19:01:50 +00:00