Commit Graph

8687 Commits

Author SHA1 Message Date
Clemens Zeidler
2aa6775158 Fix restoring of stacked windows.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 07:07:32 +00:00
Clemens Zeidler
9ff327dea3 - Make MessageForListener a bit more flexible, passing a fix ServerLink is sometimes not enough and a separate sender and receiver is needed.
- Add communication part to restore and save S&T groups.
- Fix call of GetDecoratorSettings listener hook.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 06:47:20 +00:00
Jérôme Duval
d8c9110cb6 updated libpng to 1.4.4
avoids warnings for gcc2 (deprecated attribute)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 20:20:05 +00:00
Philippe Houdoin
6ad0d9f232 Fix previous style cleanup ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 15:04:54 +00:00
Philippe Houdoin
c663bd36d3 Style cleanup (thanks Korli!)
No functional changes, except for the two traces removed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 14:46:29 +00:00
Philippe Houdoin
e4f8681e79 * Switch to B_RGB24 output format
* Renamed everything after WebP, as it turns out the official name is
  case-sensitive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 13:10:16 +00:00
Philippe Houdoin
67a224932a Add a (read-only ATM) WEBP image translator, based on Google's
libwebp decoding code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 12:43:27 +00:00
Clemens Zeidler
f05ed377cb Add alternative code to retrieve audio meta data using the media kit. Libtag seems to work for more formats...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 22:10:51 +00:00
Clemens Zeidler
f72d191b12 - If there is no SATWindow because of lack of memory try to create a SATWindow when asking for it.
- Add untested code to save a SATGroup and to restore a SATGroup.
- Splitting of a SATGroup is now triggered from the WindowArea destructor. This make it easier to restore S&T groups when windows in a group are missing. A group decays automatically in multiple groups when the missing window connected multiple windows.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 03:06:09 +00:00
Axel Dörfler
55a54abc90 * Fixed build.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 18:31:21 +00:00
Clemens Zeidler
f1c707c4a2 - Fix a TODO: get the border width and tab height directly from the decorator and don't use hard coded values. For example, you can tile tab less windows probably together now.
- Only use min size constraints now. If there is a clash between a window with a max size and another window with a min size the max size is ignored and the size is enlarged if needed. When removing this window from a S&T group the old size limit is restored.
Same is done for none resizeable windows.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 02:54:15 +00:00
Michael Pfeiffer
f14cab2d36 * Added support for the remaining Gutenprint setting types:
Boolean, Int, Dimension and Double.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 10:58:10 +00:00
François Revol
2dfeefba17 Copy the buffer_info on buffer exchange so as to avoid getting segfault with interrupts disabled, which at least happened several times here in QEMU.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 00:44:50 +00:00
Matt Madia
2f0376a62f Moved the unreserve_device() from ali_terminate() to uninit_driver(), to keep
consistency between drivers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 23:50:52 +00:00
Matt Madia
f05409cfb1 Moved the unreserve_device() from ice_1712_shutdown() to uninit_driver(), to
keep consistency between drivers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 23:40:55 +00:00
Axel Dörfler
d72ede75fb * We now use a FreeBSD compatible ifmediareq structure for SIOCIFMEDIA, and
SIOCSIFMEDIA.
* Made sure that the two media ioctls are actually forwarded to the driver.
* Added NetworkDevice.cpp to the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 21:44:26 +00:00
Axel Dörfler
e78fea43f5 * Added a bit more debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 21:30:10 +00:00
Axel Dörfler
ea75a051ad * Applied patch by Rohit Yadav that fixes #6750 for ext2. Thanks a lot!
* Fixed warning in Inode::WriteAt(), but left warnings in kernel_interface.cpp
  in there; I guess that's work in progress (although having the io hook would
  be nice).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 20:34:59 +00:00
Axel Dörfler
48ec4fbb40 * Applied patch by Rohit Yadav that fixes #6750, thanks a lot!
* This changes Inode::CheckPermissions(), and bfs_write_stat() based on Ingo's
  solution in his file corruption test file system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 20:25:43 +00:00
Philippe Houdoin
801843aed6 Patch by Barrett:
Initialize the stream's IO buffer, otherwise it could crash in ~StreamBase().
It's only initialized when the media format was actually successfully probed.
Fix #6595. Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 15:46:23 +00:00
Matt Madia
824f5533d7 Removed the second calling of unreserve_device().
note: r39338 added the call to ice_1712_shutdown()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-08 21:53:24 +00:00
Jérôme Duval
12a9da01c3 Added a call to pci->unreserve_device() in uninit_driver() as suggested by Matt (taking es1370 for model).
François please review.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-08 19:13:57 +00:00
Matt Madia
3033e71f4b Removed ifdef __HAIKU__ for drivers that do not call the Package rule in their
Jamfiles.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 15:26:17 +00:00
Jérôme Duval
a1cdecff94 DirectoryIterator changes:
* RemoveEntry(): set inode id to zero when reaching the end of block
* FindEntry(): keep on searching if Get() returns B_BAD_DATA
* added _Offset() based on fLogicalBlock and fDisplacement
* Next(): keep on searching when inode id is zero; also when entry length is zero, keep on with next block
* added GetNext() to get the next valid entry.
* Get(): now returns B_BAD_DATA on a zero length or inode id.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 15:19:08 +00:00
Matt Madia
91fbf9fbe5 Automatic whitespace cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 01:44:27 +00:00
Matt Madia
ee04dff0df Also unreserve the device on driver uninit. Relates to #6798.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 00:39:08 +00:00
Matt Madia
359353a24d * Initial attempt at updating to utilize (un)reserve_device.
* Also unreserve the device on driver uninit.
 * Improved some TRACE messages
Compiles but otherwise untested. Relates to #6798.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 00:35:40 +00:00
François Revol
eab032317f Also unreserve the device on driver uninit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 00:22:24 +00:00
Matt Madia
0af80d313a Automatic whitespace cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 23:49:12 +00:00
Matt Madia
a9ea5be764 Initial attempt at updating to utilize (un)reserve_device.
Compiles but otherwise untested. Relates to #6798.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 23:35:25 +00:00
Matt Madia
121d21b2eb Initial attempt at updating to utilize (un)reserve_device.
Compiles but otherwise untested. Relates to #6798.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 23:29:13 +00:00
Matt Madia
8056fd2271 Automatic whitespace cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 22:58:46 +00:00
Michael Pfeiffer
442f4337c1 * Workaround for ticket #6794.
Libprint requires the horizontal and vertical resolution
  to be the same. For now use the maximum resolution when
  rendering the page bands.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 18:09:23 +00:00
Jérôme Duval
82b3bdd45c Stop the journal on Sync(), start the journal when a transaction is written. This helps with fs state on shutdown.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 14:29:15 +00:00
Stephan Aßmus
fdca7b0ff3 Applied rest of kalibers patch from ticket #6349. The logging
function in the common accelerant code wasn't public in the first
place and the patch was a correction for r37670, sorry for
missing that. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 11:33:59 +00:00
Stephan Aßmus
4c9da6dc09 Applied patch by kaliber from ticket #6349. which fixes quite a
few warnings. Thanks! I did not apply the hunks about moving
a logging function in the common accelerant code to be static.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 10:17:41 +00:00
Stephan Aßmus
08e6655afe Patch by kaliber (ticket #6333): Removed many instances of
passing an additional -Wall to the compiler, which may actually
have unwanted effects. -Wall is standard by the build system.
Also, -Wno-multichar was passed unnecessarily for Haiku targets.
I didn't remove it for the bfs_shell, hope this is what Ingo meant
in the ticket.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 20:31:11 +00:00
Jérôme Duval
1aa32c3dd0 if total sectors is greater than 0xffffffff, use this value for ReadCapacity().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 19:54:57 +00:00
Axel Dörfler
75bb8dc650 * Applied kaliber's patch part of ticket #6789, thanks! This makes the code not
only more readable, but also working correctly.
* Solved the problem stippi outlined differently, by checking whether length is
  greater size for unsupported options.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 18:44:27 +00:00
Jérôme Duval
e1d8e05d15 * some style cleanup
* don't try to non configured memory map IO space
* use a kernel thread when irq number is zero or 0xff
Should help with #4491


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 18:13:50 +00:00
Stephan Aßmus
21c8f94c7d I don't understand much about the code in question, but the ticket #6789
hints at a possible problem: Within the process_options() function, the
code does not make sure that size is a multiple of the option length
(unless I missed something) and thus the loop could wrap the unsigned
size variable, and not exit as intended. Make size an ssize_t and cast
where appropriate, after making sure it's initially a positive value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 17:39:15 +00:00
Jérôme Duval
eb7aa0dafb Volume: don't use a block allocator when mounting readonly.
BitmapBlock: also use file system blocks, current type is off_t. Also added more trace.
BlockAllocator: added an assert and more trace


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 18:25:58 +00:00
Jérôme Duval
6fa1b3a596 actually use the 64bits value when doing comparing, previously SCSI_6 were wronly used for some io requests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-04 18:01:46 +00:00
Axel Dörfler
60334dc831 * Got rid of the type == 0 feature in Update(); it does not really serve any
purpose anymore, and was just confusing.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 19:53:10 +00:00
Jérôme Duval
0ac16c5b3e big_endian conversion: this should be more correct
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 21:13:30 +00:00
Jérôme Duval
f058886908 * added definitions for SCSI_OP_VERIFY_* op commands
* added support READ_12/16 and WRITE_12/16 in ata and scsi_periph, this enables read/write on block offsets greater than 2TB


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-02 20:56:20 +00:00
Jérôme Duval
0d16ad4437 style fix (pointed out by Axel)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 20:52:29 +00:00
Jérôme Duval
8d5a0a8ff1 fixed warnings, added a better label for >1TB sized volumes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 16:33:25 +00:00
Jérôme Duval
f10a55a632 * ata: added ATADevice::ReadCapacity16()
* ata: don't fail if lba_sector_count is null and lba48_sector_count is not
* scsi_periph: if ReadCapacity() returns 0xffffffff, use ReadCapacity16() instead
* scsi_disk: use a different computation in the struct geometry computation for bigger disks
Tested successfully with a virtual 10TB hard drive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 16:31:09 +00:00
François Revol
1ad7e24422 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 20:50:54 +00:00
Matt Madia
317889ce40 Fixes typo. Allows sis7018 to build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 19:45:45 +00:00
Jérôme Duval
25a55b41c7 * more cleanup
* more fixes in BitmapBlock::FindNextMarked() and BitmapBlock::FindPreviousMarked()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 19:29:31 +00:00
François Revol
450c95c5c6 Fix warnings. Why isn't this one in the image btw, it would need some testing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 19:15:46 +00:00
Jérôme Duval
583f39e94d * switched more uint32 to off_t for 64bit support
* added error messages in InodeAllocator, Inode
* if BlockAllocator can't initialize, don't fail completely but switch to readonly
* fixed a bug in FindNextMarked() for bitmaps with a length non multiple of 32
* Inode::FindBlock() now returns an optional block_run length, useful for get_file_map()
* added flag for Inode for extents


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 17:16:02 +00:00
Matt Madia
ca093f29a9 Use ffmpeg's ogg headers to allow matroska to compile.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 15:42:21 +00:00
Matt Madia
954d20d9ca Updated header includes as per r36267.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 14:33:33 +00:00
Matt Madia
7e69fb708a Automatic whitespace cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 14:32:13 +00:00
Clemens Zeidler
1672b85c40 Use some more meaningful names in the metadata message. Used the names from the id3v2.c ffmpeg file. Stippi does this really fix the TODO?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 09:56:02 +00:00
Michael Pfeiffer
88031f87d5 * Fixed gcc4 build issue.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-30 21:00:19 +00:00
Michael Pfeiffer
9295cd647f * Added Gutenprint printer driver add-on to image.
* This is still work in progress:
  Printing should work with the following restrictions:
  - Color printing is untested.
  - Some configuration options provided by Gutenprint are missing.
  - Error reporting is missing. 
  - The page margins should at least to increased to 1 cm
    or 0.4 Inch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-30 18:05:09 +00:00
Jérôme Duval
d8772e0c20 * added some support for 64bit feature: extended struct ext2_block_group, block number types changed from uint32 to off_t
* added error traces, asserts
* BitmapBlock::CheckUnmarked() and CheckMarked() computed a wrong remainingBits and mask


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-30 13:45:01 +00:00
Clemens Zeidler
1a794e7f63 Add simple audio tag add-on and rename FullText dir to fulltext.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-29 13:03:03 +00:00
Clemens Zeidler
0fd274fa57 The new app-server double click detection has broke minimization in S&T. React only on single clicks now, fix #6759.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-29 08:33:47 +00:00
Clemens Zeidler
86795bae5b Check if entries are already in the clucene index/remove queue. This fix duplivated entries in the database. Don't check if delete files are text files because this will probably fail.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-29 07:53:22 +00:00
Clemens Zeidler
1d056b26be Don't analyse files in own clucene index directories.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-28 22:20:04 +00:00
Clemens Zeidler
831d929e8c Cleanup OptionalBuildFeatures and add CLucene as optional build feature / fix dependencies.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-28 20:57:11 +00:00
Clemens Zeidler
843c030f80 Cleanup there is no Audio plugin yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-28 18:12:14 +00:00
Clemens Zeidler
3a88830daa Add a CLucene full-text add-on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-28 15:22:52 +00:00
Philippe Houdoin
7b5743bab4 JPEG translator was reporting uninitialized input and output formats.
That explain why a empty menu after JPEG Image was visible in any menu
populated by BtranslationUtils::AddTranslationItems(, B_TRANSLATOR_BITMAP, ...),
as seen for instance in Screenshot "Save As".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-27 10:11:52 +00:00
Jonas Sundström
2ae22b9b1b Correction of code style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-26 22:32:48 +00:00
Michael Pfeiffer
308f0e195d * Enable halftone configuration options if requested by printer driver
only.
* WIP: Driver specific generic capabilities.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-26 09:48:36 +00:00
Jonas Sundström
7327585ba3 Create settings file if missing, so shortcut_catchers node monitoring works. Prior to this change, the add-on would not sense the Shortcuts preferences creating the file, and it wouldn't work right away but only after a reboot. This improves first boot, first use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-25 23:08:19 +00:00
Michael Pfeiffer
f53abcbdf8 * Added field fKey to BaseCap (will be required for Gutenprint printer
driver add-on).
* Added ability to search for a PrinterCap by ID to class PrinterCap
  (for Gutenprint driver add-on).
* Moved code for searching a PrinterCap by name into class PrinterCap.
* Refactored code in JobSetupDlg to use the new method.
* Refactored duplicated code in JobSetupDlg.
* There is still a lot of refactoring potential in libprint.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-25 14:21:09 +00:00
Clemens Zeidler
4a5a077ff7 Add a private B_ATTR_CHANGE_NOTIFICATION flag to the open query syscall to tell the query to send notifications when an entry attribute changed and the entry stays in the query. Previously you only get created and removed messages, now you can also get updated messages. Only implement it for bfs.
Fix copy right.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-24 20:47:46 +00:00
Jérôme Duval
21451bd38d added some definitions for readonly features
we already support the extra isize feature, so it's now added
removed unused Inode::AttributeBlockReadAt()
group_descriptor_size was previously a reserved field in the super block


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-24 14:55:54 +00:00
Fredrik Holmqvist
39fa144962 Added kernel setting to dump MADT to syslog. It's very useful for understanding interrupt configuration.
It needs a bit polish in code but wanted to commit before leaving BG.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-24 13:49:04 +00:00
Matt Madia
ed5692e03c Use a fake signature for DoCatalogs instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-24 10:48:22 +00:00
Jérôme Duval
a55c611fae added B_DISK_SYSTEM_SUPPORTS_WRITING flag on ext2 disk system, this is required to have mount_server ask whether mounting should be done readwrite or readonly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-24 09:50:53 +00:00
Jérôme Duval
7babd0d5ea added large files feature support
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-24 09:13:47 +00:00
Bryce Groff
2f3ce2bf7e DriveSetup:
- File system is now only displayed when the partition actually has a filesystem.
- Now checks if the DiskSystem supports initializing.
- Updated the *ParamsPanels, as well as, the Disk System add-ons to use the new storage api changes (see below).

Storage Kit:
- Simplified the parameters editor system. Now all parameter editor requests go through a single function, GetParameterEditor, and pass a B_PARAMETER_EDITOR_TYPE to request a particular parameter editor.
- Moved DiskDeviceAddOnManager.h to the headers directory, as it is now required by InitParamsPanel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-24 03:39:19 +00:00
Matt Madia
8970db2138 As DoCatalogs requires a signature, updated this invocation to use the MIME
signature of x-be-bitmap.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 23:35:08 +00:00
Colin Günther
560626ba87 Cody style fixes. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 20:28:38 +00:00
Colin Günther
7965271acd * Removing superflous Makefile.
* Modify driver source to allow correct interrupt processing.
* Add glue file to make driver load in Haiku.
* Update build files accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 20:24:02 +00:00
Colin Günther
974d4226ff Copy the ralink 2860 source code into place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 20:13:39 +00:00
Adrien Destugues
6389df937b * Bring back the fallback video mode selection in case both tries to read EDID info failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 20:05:24 +00:00
Jérôme Duval
01929b0c94 added a mapping for 0x83 to BTRFS
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 15:19:58 +00:00
Jérôme Duval
f3e3bd7bec added missing preallocate hook to the ntfs kernel interface
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 13:31:52 +00:00
Jérôme Duval
ebfedcc353 auich: fixes an infinite loop when checking a negative value on an unsigned variable
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 11:45:34 +00:00
Jérôme Duval
a845ef7bcd avoid an infinite loop with the variable loop i
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 10:06:38 +00:00
Stephan Aßmus
657983b8c2 * Introduce some currently disabled code to store the AVCodecContext
pointer in the media_format user data section.
 * In the AVCodecEncoder, optionally use the AVCodecContext pointer
   from the AVFormatWriter instead of its own instance. The problems
   I am investigating are not improved by this, but it may be needed
   anyway.
 * Map the bitrate for audio to a fixed table. Certain encoders will
   refuse to use a non-standard bitrate, like the currently enabled
   AC-3 encoder.
 * Fixed tracing output in _EncodeAudio().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-21 10:29:20 +00:00
Philippe Houdoin
672b4d7800 Give a better name than the default "user thread" to Shortcuts's
input_server filter BLoopers, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-21 09:00:07 +00:00
Stephan Aßmus
bb188e4d73 Fix crash introduced as a last minute change... need to
find a way to do this properly, though. The pixel format
selected by AVCodecEncoder should match here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-20 22:01:24 +00:00
Jérôme Duval
db1b905e37 ext3 inodes whose size is at least 256 bytes can also contain attributes (like smalldata for bfs).
We now use the Attribute class from bfs (instead of AttributeIterator) to manage small data and block attributes, though it's still readonly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-20 21:40:35 +00:00
Stephan Aßmus
69372b5545 * Change the signature of the Writer plugins setup methods such
that they can modify the media_format passed in. For example they
   can store information in the user_data section. I don't actually
   use this anymore, but it may come in handy again.

AVFormatWriter:
 * Adjust the AVCodecContext flags not only for video, but also
   for audio streams (as the API example does). This mechanism
   may not yet work, since the AVCodecEncoder actually uses a
   different AVCodecContext instance.
 * Use the encodeInfo->flags and specify the key frame flag
   for the AVPacket. This finally makes videos encoded on Haiku
   seekable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-20 21:36:23 +00:00
Stephan Aßmus
6e544b050e Enable the MJPEG encoder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-20 21:29:16 +00:00
Stephan Aßmus
7d5bc29832 * Removed a big chunk of dead or outdated code. It was really
hard to see the big picture and tell what actually works
   in the higher levels of the code.
 * Coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-20 21:28:18 +00:00
Stephan Aßmus
88eddd3d71 * Specify length of Group of Pictures as in API example.
* Don't hardcode PIX_FMT_YUV420P, but use the color space
   from the list of codec supported ones which has the best
   quality.
 * Maintain media_encode_info->flags by specifying whether
   a chunk contains a keyframe. According to the libavformat
   API example, all audio chunks are keyframes. For video
   chunks, use the fContext->coded_frame->key_frame flag.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-20 21:25:43 +00:00
Jérôme Duval
d63f4274b6 added a file system call preallocate() as described in #6285, currently unused
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-18 18:48:54 +00:00
Clemens Zeidler
934c820ce8 Include resize area for S&T operations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-18 16:08:46 +00:00
Clemens Zeidler
07a8c14656 Only allow stacking if the candidate window is dragged using the window tab.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-18 15:49:14 +00:00
Clemens Zeidler
007179caca Use the mouse x position and the candidate tab top when searching for a stacking parent. I think this makes the stacking detection more intuitive.
The candidate window is the dragged window and the parent window is the window that accept the SAT operation.
  


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-18 15:40:44 +00:00
Stephan Aßmus
dc8dd201f8 * Replaced %Ld with %lld in printf output
* Prettify layout of final stats output of checkfs
   based on patch by engleek from ticket #4277.
 * Fixed minor coding style violation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-18 09:34:36 +00:00
Jérôme Duval
71bfbb7112 added some logs in case of errors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-17 22:12:30 +00:00
Bryce Groff
9494bb5b15 - Adds parameters column to DriveSetup.
- Parse and display "active" parameter. Fixes ticket: #4417
- Removes const declaration in PartitionMap::Check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-17 09:41:36 +00:00
Michael Pfeiffer
5a695bce10 * Use layout API in libprint dialogs.
* Use layout API in preview printer add-on.
* Use layout API in some dialogs in PDF Writer.
* Removed unused class PrinterSetupWindow from PDF Writer.
* Improved layout in print_server configuration dialog.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-16 19:56:34 +00:00
Philippe Houdoin
a009356a78 Update the comment after the timeout change in r38982.
Spotted by axeld, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-16 19:21:56 +00:00
Philippe Houdoin
51ff3ec972 Increase request timeout so that slow (read old USB 1.0Ã) devices got enough time to
startup before being able to reply initial configuration request.
This fix #6173.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-16 10:50:57 +00:00
Philippe Houdoin
360208fb1f Fix typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-16 08:34:29 +00:00
Stephan Aßmus
eca9668a4a Enable DV format (muxer) and DV encoder. It works, but only for
certain video sizes (720x576 for example) and with 48 kHz raw
audio. Clockwerk actually uses a mechanism which worked on BeOS
to check if an encoder would accept a certain media_format, but
this does not yet work on Haiku and thus the format is available
even when trying to render later will fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-15 15:27:16 +00:00
Stephan Aßmus
fb39b6c84d Enable compilation of some files necessary for FLAC and AAC encoding.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-15 15:23:49 +00:00
Stephan Aßmus
c0803bc585 My "fix" to the MPEG4 encoder was wrong. The h263 encoder had to
be enabled in config.h. That's the case now, but I did this change
later and didn't realize it would fix MPEG4 encoding.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-15 15:17:32 +00:00
Stephan Aßmus
ec3e003296 * Refactored calculating the bitrate based on raw bitrate
and quality in audio and video AVCodecContext setup code
   paths.
 * Disabled some debug output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-15 15:12:25 +00:00
Stephan Aßmus
7c143ae93e Long overdue coding style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-15 15:04:24 +00:00
Bryce Groff
7813cb23eb - Truncate the previous partition if the current partition's offset lies within the previous partitions area.
- Fixed spelling mistake.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-15 07:24:16 +00:00
Jérôme Duval
950f37b206 * renamed bfs_inode::ToUsecs() to bfs_inode::ToNsecs, as it really converts to nanoseconds.
* added a comment explaining the nanoseconds conversion


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-13 18:49:03 +00:00
Jérôme Duval
6bfb10d312 * added support for extra inode attributes in volumes with an inodesize of 256 or more:
this brings nanoseconds for access, change and modification times, and also brings creation time.
* switched off some debug output
* HTreeEntryIterator: fCount can equal fLimit.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-13 17:17:45 +00:00
Scott McCreary
8f0c2a388c Removed definitions for O_BINARY and O_TEXT, and patched the few files that used them.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-13 06:26:53 +00:00
Jérôme Duval
de66992b72 * added support for huge_file feature, untested (need a >2TB file)
* actually checks for readonly features if mounting read-write  
* don't use a journal when mounting readonly
* DataStream::_BlocksNeeded(): in case of double or triple indirects,
compute the additional blocks needed using the difference between the
old and new indirects blocks. This was resulting in a bad NumBlocks on an inode
* BitmapBlock: mark methods missed an iteration when the startingBit was zero.
Some blocks were then allocated two times (at most 32 for each allocation run).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-11 19:58:46 +00:00
Michael Pfeiffer
08af89feda * The add-on additionally to the print_server gets loaded by printer
add-ons too. The USBPrinterRoster thread has to be stopped before
  the transport add-on gets unloaded.
  This fixes the bug described in ticket #6008 that a page gets printed
  again and again.
* Added comment that the add-on might access a deleted object if the printer
  get disconnected during printing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-10 09:09:51 +00:00
Clemens Zeidler
975a7dd89d Make the stacked tab length a bit bigger and only cut the string at the end if the tab becomes small.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-09 20:57:15 +00:00
Clemens Zeidler
c26897652c Use the static linprog lib.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-04 20:18:45 +00:00
Axel Dörfler
ec4fb0f4f0 * Fixed a bug in get_interface() that would return the first interface
without acquiring a reference to it, and thus led to bug #6565.
* Added a commented out function that dumps all current reference counts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-01 06:52:18 +00:00
Stephan Aßmus
41457111ec * Try harder to seek somewhere and fall back to seeking
to the beginning of the stream by bytes, if all else
   fails.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 15:20:12 +00:00
Stephan Aßmus
06d9236554 Enable H263 encoders.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 15:18:30 +00:00
Stephan Aßmus
96590b5bf7 * Do no manually allocate the buffer for the
ByteIOContext. libavformat may reallocate it
   on demand, we need to use the matching allocation
   methods.
 * Init the ByteIOContext with the proper "write flag".
   This solves a busy loop when writing the trailer of
   MKV files, since the first buffer was initially skipped
   and the MKV muxer can not seek back in the stream
   where it wants.
 * Get rid of the fCalculatePTS member, and calculate
   PTS of audio packets as well. I don't remember why
   I prevented that, however VLC complains about audio
   packets having wrong PTS (with or without this change)
   Our own MediaPlayer plays videos generated by (a modified)
   Clockwerk at least once, but seeking subsequently fails.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 15:17:35 +00:00
Stephan Aßmus
8218710526 Do not write an audio packet if the encoder has not produced
any encoded data yet. Fixes encoding of Vorbis audio.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 15:11:28 +00:00
Axel Dörfler
77b833b87e * Convert the CD-Text contents to UTF-8 (always assumes ISO-8859-1 for now).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 10:33:04 +00:00
Stephan Aßmus
8be096e0f7 Fix codec initialization. The mpeg4 and h263 codecs were split,
and there is also ituh263enc.c, of which I am unsure how it
fits into the picture. However the mpeg4 encoder is using a "RL"
table of the h263 encoder, and it appears it was forgotten to
make sure it's initialized when splitting these files. Should
be upstreamed. Fixes a crash when trying to use the MPEG4 encoder.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 10:07:14 +00:00
Philippe Houdoin
4cc17e8c78 Do the same for the JobSetupWindow and PrinterSetupWindow's Go()
methods too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 09:54:22 +00:00
Philippe Houdoin
fd7d3a7d40 Cache the result value because after Quit() fResult member is no more available.
Should fix #6675.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 09:48:09 +00:00
Axel Dörfler
24fb5ed32c * Initializing "id", and "track" to zero in r37310 caused a bug in read_cdtext()
to be revealed, as both variables were not supposed to change between calls
  to parse_pack_data(). This could cause an invalidation of the CD-text data,
  as well as an endless loop.
* Disabled (and improved) some more debug output.
* Added a short description to parse_pack_data().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 09:47:36 +00:00
Stephan Aßmus
47e9b53fe4 Fix some coding style violations (case scope blocks get their
opening parenthesis on a new line & 80 chars/line limit).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-28 17:32:20 +00:00
Stephan Aßmus
395346c411 Patch by Matthias: The residue field is not maintained
correctly by all USB devices, so calculate it instead.
Gets some USB disk devices working like the SuperTOP.
MacOS X is doing the same thing, as researched by Jérôme.
Closes ticket #6604. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-28 17:30:15 +00:00
Philippe Houdoin
af3b61f013 Fixed a copy&paste typo in trace.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-28 14:03:11 +00:00
Axel Dörfler
5c76afb025 * We need to ignore the result of update_capacity() in cd_init_device(), or else
one cannot open the device anymore if no media is present - this did also let
  the disk device manager ignore CD-ROMs in case there was no media present
  during boot. This fixes bug #6130.
* Disabled debug output again.
* Fixed missing newline in debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-27 17:16:46 +00:00
Stephan Aßmus
73dcf86fdc * Don't create Stream cookies for unsupported media formats.
Some test clips with sub-title tracks would hang MediaPlayer
   without this fix here.
 * Optimize FindKeyFrame() and Seek(), check the range between
   last requested/reported frame and bail out early with the
   same result. Seems to fix MediaPlayer starting to drop frames
   when it got caught up in a keyframe finding party...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-24 20:14:10 +00:00
Stephan Aßmus
af0f809b75 Rewrote finding keyframes and seeking. The problem was that
in many situations, FindKeyframe() was unable to reliably
predict what frame Seek() would be able to seek to.
 * Refactored a new base class StreamBase from the old
   StreamCookie, renamed StreamCookie to just Stream.
 * In FindKeyframe(), Stream will create a "ghost" StreamBase
   instance. That one will be used to actually seek in the
   stream without modifying the AVFormatContext of the real
   Stream. From that we can tell what position we can /really/
   seek to. For AVIs mostly, it is important to still use
   av_index_search_timestamp(), since for many AVIs I tested,
   reading the next packet after seeking did not produce a
   timestamp, however the index entry contained just the correct
   one. If the next packet does contain a PTS, it will still
   override the index timestamp, though.
 * Contrary to my previous belief, there was still a locking
   problem with how MediaPlayer used the BMediaTracks. The video
   decoding thread and the playback manager both used
   FindKeyframe() without holding the same lock. We support this
   now by using one BLocker per Stream. (The source BDataIO is
   still protected by another single lock.) With the new ghost
   stream stuff, the locking problem became much more of a problem,
   previously the FindKeyframe() had a much rarer race condition
   which would only trip when the decoding thread would cause new
   index entries to be inserted into the index.
 * Use the same ByteIOContext buffer size that avformat would be
   using if it initialized the ByteIOContext through other API.
 * Don't leak the probe buffer in case of error.
 * Don't leak the ByteIOContext buffer in the end.
 * Do not discard other stream packets anymore, this makes the
   ASF demuxer happy and ASF files can now be seeked as well as
   with ffplay itself.

With these changes, all my MPEG test streams work. Some could be seeked
before, but would show bad artifacts. Some streams would completely loose
video after seeking once. My MPEG2 test stream works much better now,
although audio is slightly out of sync, unfortunately. All my test AVIs
work as good as before, MP4 and MKV still work perfectly. The single
test ASF I got is now perfectly seekable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-24 16:54:42 +00:00
Stephan Aßmus
954d70d8c0 * Renamed fAudioTempPacket to fTempPacket and use it for calling
the new video decoding function. This just avoids a warning
   generated from the libavcodec sources. The function used before
   did the exact same thing...
 * Maintain fStartTime correctly in _DecodeVideo(). Don't overwrite
   it with a calculated starttime in Decode(). This will allow drift
   to bubble up to the higher layers.
 * Do not use the previously required hack to close and reopen the
   AVCodec after seeking. avcodec_flush_buffers() seems to work
   fine now, and for certain stream types (MPEG1, MPEG2 video for
   example) the keyframe is correctly used after seeking.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-24 16:40:56 +00:00
Clemens Zeidler
a2336b86cc Round the the window move target positions, this should fix jumping windows.
Coding style.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-22 22:27:31 +00:00
Stephan Aßmus
c1e73fbf52 Enabled any and all decoders and demuxers which are currently compiled into
FFmpeg. It's a bit sad, but this obsoletes pretty much all other decoder
and reader plugins. Some of them were built on external libraries as well
(AC3 (not part of default image anyway, since it's GPL), APE, MusePack),
so it's not really a big difference to using FFmpeg as external library.
The format matching is greatly simplified by using B_MISC_FORMAT_FAMILY
for everything but raw audio, and the actual FFmpeg CodecID as codec tag.
The downside of this is that the AVFormatReader can no longer be used with
other decoder plugins, but it would be easy to add special cases for native
decoders we wish to support. Obviously the out of the box support for file
formats and decoders has greatly increased with this change, so there has
to be a pretty good reason now for writing a "native" decoder or reader.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-22 11:10:51 +00:00
Stephan Aßmus
d62aaeb68d * Changed pretty extractor names to sentence casing.
* Enabled SWF demuxer in FFmpeg (though the one test file
   I have is compressed, which is not supported by the FFmpeg
   SWF demuxer...).
 * Removed testing TODOs for demuxers that I tested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-21 16:00:50 +00:00
Stephan Aßmus
5051e989f6 Committed more than I intended to in the last commit. Sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-20 19:05:06 +00:00
Stephan Aßmus
b145959bdd * Use the same GCC flags for GCC4 that configure in the FFmpeg source
itself generates.
 * For GCC2, FFmpeg uses -fPIC instead of -DPIC. Also disable SSE for
   GCC2, since that fixes a crash in the SSE version of clear_block().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-20 19:03:03 +00:00
Stephan Aßmus
d3aadcff6c In FFmpeg SVN r22715 (I suppose), there was an optimization done to
speed up VLC table (whatever it is) initialization. Somehow the code
does not work on GCC2. Use the old code we had previously in SVN
minus a flag (INIT_VLC_USE_STATIC) which is no longer used in FFmpeg.
This fixes the GCC2 build of FFmpeg and closes Ã#6643, #6582 and #656.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-20 18:24:31 +00:00
Stephan Aßmus
e111b1c12f For GCC2, the FFmpeg configure script is generating a slightly
different config.h, of which I am adapting the differences in this
commit. Does not change a thing for the broken GCC2 build of FFmpeg.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-20 18:01:22 +00:00
Jérôme Duval
cceb9427a8 Updated iprowifi4965 based on iwn FreeBSD 8.1.0 with the following changes:
* added more firmware to be used by the driver and updated the old one.
* avoid the switch to using ICT interrupt mode (dunno what it implies on Haiku)
* commented ieee80211_ratectl_*() calls. They can be uncommented when we support them.
* added ieee80211_ratectl.h with functions commented out
Switch to using ICT interrupt mode


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-19 23:18:06 +00:00
Jérôme Duval
64bf10e2aa added several firmwares for the iprowifi4965 driver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-19 22:02:21 +00:00
Clemens Zeidler
7306ba0448 Watch the window look and remove a window from a S&T group if the look changed to B_NO_BORDER_WINDOW_LOOK.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-19 21:46:42 +00:00
Clemens Zeidler
3ae8f84c3d Better check if the area exist.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-19 21:41:53 +00:00
Clemens Zeidler
e0c538ed7d A decorator can change during the lifetime of a window so get a fresh decorator every time.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-19 21:08:47 +00:00