Commit Graph

7513 Commits

Author SHA1 Message Date
Marcus Overhagen
398211a6d9 Modified initial ata device detection. Works for me. Please test.
If you get an "error waiting for interrupt" during boot, try to disabled IDE DMA.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 23:05:18 +00:00
Stefano Ceccherini
c617eabd63 Also free() the direct_buffer_info on destruction. Use malloc() instead
of calloc, since the memory is memcpy()'d in the next line. Added a TODO
comment. +alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 20:48:00 +00:00
Rudolf Cornelissen
42529205ad added support for haiku specific driverhook GET_PREFERRED_DISPLAY_MODE. Now laptops and other systems where EDID fails but a screen is digitally connected should also come up in their native modes from first system boot on.Updated docs. Bumped version to 0.97. +alphabranch
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 20:26:31 +00:00
Michael Lotz
5fa8a19786 Actually don't report any failures of the TUR command, as for devices with no
media present they will always fail with the no media or media changed errors.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 01:41:07 +00:00
Michael Lotz
de9aa21e08 If the device tells us that it doesn't support the Test Unit Ready (TUR) command,
don't try to use it for media status polling. In those cases we'll assume a
fixed device with no exchangable medias and therefore always return B_OK.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 01:38:20 +00:00
Oliver Ruiz Dorantes
3f664b99dc - Schedule event interrupt transfer with the maximun possible event size, => reduces the number of callbacks for bigger packages
- Add debug options for dumping incoming usb buffers
- Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 17:50:41 +00:00
Michael Lotz
12f584636c Fix subtle but important error in transfer length calculation. That calculation
does calculate the remaining bytes, not the transferred ones, so obviously that
number has to be subtracted from the expected buffer size! Albeit severe, this
wasn't hit that often, because this calculation will only be used when the
transferred size doesn't match the handed in buffer size exactly. So things like
HID or mass storage, that mostly know the exact transfer size weren't affected.
But it could very well explain #4101 where the size isn't previously know.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 00:06:15 +00:00
Axel Dörfler
e15498973c * The read/write routines were pretty much broken. This was the cause of #4317.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-24 15:49:08 +00:00
Jérôme Duval
8ddc0909e1 added an id with reversed_eamp_polarity on
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-23 18:09:23 +00:00
Michael Lotz
46e94fad77 Initialize last part of byte to 0, just in case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-23 17:20:20 +00:00
Rudolf Cornelissen
d44a7fae51 fixed a typo in dump_edid.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-23 16:07:33 +00:00
Rudolf Cornelissen
efe3fb34a0 implemented haiku-specific hook GET_EDID_INFO. Haiku's screen prefs panel now indicates the brand name of the screen and only offers fully compatible modes for a connected screen if I understand it correctly. Now working for digital connected screens.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-23 11:57:56 +00:00
Rudolf Cornelissen
9b53cf03cd implemented haiku-specific hook GET_ACCELERANT_DEVICE_INFO. Haiku's screen prefs panel now indicates the brand name of the screen and only offers fully compatible modes for a connected screen if I understand it correctly. Note: currently only working for analog connected screens, digital connected screens coming up next. Updated docs, bumped version to 0.96.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-23 08:48:58 +00:00
Michael Lotz
b7f73c6e2a Update and enable the debugging device selection check. Might shed some light on
the problem in #4308.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 16:41:17 +00:00
Michael Lotz
7f5799140f Enlarge the timeout for data transfers. It was 2 seconds before and under a bit
of load, when using large enough block sizes or when simply having a slow device
this is by far not enough. It is now at 15 seconds, which should reduce timeout
problems to those cases where the device actually get's stuck (because of us
doing something wrong).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 16:12:36 +00:00
Jérôme Duval
99e369b76e add libswscale arch files, needed when INCLUDE_GPL_ADDONS is activated on x86
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 13:25:38 +00:00
Jérôme Duval
9a5d35d09d obviously forgot these
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 12:44:13 +00:00
Jérôme Duval
d44c1412ce * the ac3 frames detection doesn't work nice with big frames (1792) and buffer size of 2048
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 12:24:19 +00:00
Jérôme Duval
f0bdc7699c * synced with ffmpeg-r19678, keeping gcc2 compiler #ifdef we introduced, build only tested on Haiku gcc2
* activated ac3 audio file format support
* uses format metadata to keep the codec context extra data (now needed for flac)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 12:16:20 +00:00
Michael Lotz
b5172954bb Better watch your bools in C code. In C99, the bool type of the argument to
send_bit() causes a type conversion from the value handed in to 0 or 1. This
clashed with the usage in send_byte(), that hands over a shifted byte. The
argument was converted to true when it had any value other than 0, whereas
before (where a bool simply was an int) it would have just handed over the value
directly. Therefore the logic in send_bit() that simply masked off the lowest
bit of the value would now not work anymore.
This fixes EDID failing on GCC4 and therefore fixes #2275, the last issue of
#4084 and may also affect #2780.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 01:03:10 +00:00
Bryce Groff
93134c5eb2 * Added parameter parsing to the userland side.
* Added support for logical partition headers in partitioning info.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 22:22:48 +00:00
Bryce Groff
d0f743e740 * Added parameter passing to/from the kernel to userland.
* Removed dependency on deprecated ep_validate_create_child()
* Removed hard coded sector size.
* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 22:19:47 +00:00
Jérôme Duval
1f5d96afb8 we now print a warning message in the log when the interrupt comes in the second half of a buffer: this should mean the interrupt comes earlier than expected.
Please report such warnings, they can help to investigate timing issues with some hda codecs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 21:55:40 +00:00
Philippe Houdoin
4271a1354c Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 21:50:30 +00:00
Philippe Houdoin
6059eef66a Better use user_memcpy() to return battery [extended] info to userland caller.
Also add some paranoid checks: ACPI BIOSes implementation can be... wild.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 20:29:00 +00:00
Michael Lotz
c9c3b32d3b Rework incoming report handling. We need to notify all reports when one comes in
because all reports schedule transfers on the same endpoint and therefore need
to possibly reschedule. Previously if we got a report that we didn't listen on
all further reports would stop, because noone would schedule a new transfer.
This fixes extra keys not working on my natural keyboard.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 18:46:24 +00:00
Axel Dörfler
8759c47161 * We need to cast to BFile instead of BNode, as BNode is not a subclass of
BPositionIO. This fixes ticket #4299.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 14:05:45 +00:00
Ryan Leavengood
7f0af426b2 Fix the build. Sorry for the breakage.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 13:39:42 +00:00
Ryan Leavengood
e58f5f3d02 Extract libjpeg from the JPEGTranslator and make it a standalone lib. Added to
image and DevelopmentMin optional package. This is the original libjpeg (6b),
which I will updated to version 7 within the next few days. I need to
understand better the modifications made to it before updating.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 02:17:42 +00:00
Michael Lotz
9dbe55ebcc Fix typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 02:07:11 +00:00
Michael Lotz
c265fd23cd We cannot use the condition codes to determine if a transfer descriptor is
processed. The controller may initialize it to any value when starting to
process the descriptor. If a controller did that it was possible that we thought
a transfer was already done even if it actually just started. Transfers would
then return that weren't processed, returning uninitialized buffers.
Instead of relying on the condition codes we now check that the head and tail
pointers are the same. This guarantees that all transfer descriptors of the
endpoint at hand are completed.
Reverted r32534 again as this one fixes the problem for real. The same things
that were mentioned there could happen here essentially, so in the worst case
the device or controller could stall because of freeing in-use structures.
Fixes #4067.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 00:14:50 +00:00
Rudolf Cornelissen
4caccc456d modified the 100kHz timing inside the DDC common accelerant code. If delays with values near the timer resolution are required, the values should always have one resolution step added since otherwise the minimum delay isn't quaranteed. the 400khz timing needs fixing as well I guess... This modification fixes at least ticket #4084 where a DDC monitor isn't detected otherwise.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 16:41:39 +00:00
Rudolf Cornelissen
f72c42f862 reverting part of the I2C delay between writing SCL and DAT since the hardware design does not suffer from the read-modify-write issue I thought it might be.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 16:33:33 +00:00
Michael Lotz
840cdc9efc When adding a transfer, the current tail descriptor of the endpoint will be
reused and overwritten by the first descriptor of the new transfer and the first
descriptor will become the new tail. We anticipate this situation in
_AddPendingTransfer() and set the first_descriptor of the transfer data to the
tail already. Since the tail was pretty much cleared to zero, this introduced
a race condition. After adding the pending transfer it can already be found
in the finisher thread. If this happened before actually switching the tail
and first descriptor it would find a descriptor with a condition of 0, meaning
"No Error" and would process the transfer incorrectly. Depending on the count
of descriptors and the timing of the switch taking place this could have
resulted in aborted transfers with actual length 0 or with the correct actual
length but invalid data. In the very worst case it could have freed things still
in use by the controller, resulting in all sorts of device errors. Sadly it
doesn't fix #4067.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 07:24:49 +00:00
Michael Lotz
5f92e39f7b That's actually not how it works. OHCI does the dirty work of splitting up the
transfer descriptors into individual packets. The descriptors are more a
logical thing. As such we do not generate one descriptor per packet but one
for each block of two pages at max. Therefore we only set the initial toggle bit
to the one we stored on the first descriptor and let OHCI use the carry bit for
subsequet descriptors. That error would only be visible on transfers above two
pages in size though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 04:45:13 +00:00
Michael Lotz
b0a2e9e7aa Even though the specs say the toggle carry field contains the value of the last
retired descriptor, it actually contains the value that is to be used next.
Confirmed that by cross-referencing FreeBSD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 02:43:40 +00:00
Michael Lotz
abe8e8a2c2 A try at actual data toggle handling. Since we do not properly ensure that the
toggle carry stays valid, we better make sure we set it correctly. Additionally
even if the toggle carry wasn't clobbered, there are conditions the toggle is
reset without the controller being able to notice (as in clearing a halt state).
Since I don't have any OHCI hardware this is untested, but should fix bug #4067
if correct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 04:45:02 +00:00
Ryan Leavengood
97c9909772 Fixing MIME signatures, though these are probably somewhat pointless. Some
still had obos though...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 03:22:57 +00:00
Michael Pfeiffer
b0678ed3e2 Removed PrintTransportAddOn.cpp from libprintutils.a.
Use kits/print/PrintTransportAddOn.cpp in transport add-ons.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-18 18:56:21 +00:00
Michael Pfeiffer
85e4dd94e6 Using libprintutils.a init|exit_tranport symbols were not part of the add-on.
For now copied PrintTransportAddOn.cpp from kits/print into each tranport add-on folder and use that instead.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-18 07:24:34 +00:00
Rudolf Cornelissen
203116954e added small delay between outputting clock and data signals on I2C buses to prevent possible read-modify-write errors. hopefully fixes ticket #4084.. bumped driverversion to 0.95.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 19:24:54 +00:00
Michael Lotz
40b708f776 Do not base the device number on the device count. Fixes bug #4267.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 17:51:26 +00:00
François Revol
e5b9797ec1 Fix signedness warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 13:39:03 +00:00
François Revol
d74f1e1ecb Fix DEBUG build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 13:36:37 +00:00
Axel Dörfler
bebab154d9 * Added a fake overlay support, allowing you to test overlay support in the
app_server without having a card that actually supports this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 12:47:58 +00:00
Jonas Sundström
c49f6ad7af Cleanup. Make window also look non-resizable, as in practice it's not, for now. This fixes part 2 of ticket #4265.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 12:28:52 +00:00
Jonas Sundström
655f15bdd2 * Clean up * Inserted window-covering view in layout hierarchy. (I removed SetLayout(). Is everything as it should be now?) * Moved creation and resizing of bitmap around and added some temporary printfs trying to figure out the drawing glitch to the right of the barberpole. The view has its view color set to B_TRANSPARENT_COLOR, but that should not affect the area to the right, outside of it. This might be unrelated, but for some reason the activity view fails to keep its barberpole bitmap bounds in sync with the view bounds. The bitmap gets created to match view bounds in AllAttached(), gets recreated by FrameResized() and yet in Draw() it does not always match the view's bounds.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 14:10:20 +00:00
Jonas Sundström
4dc6088201 Make fileCount a data member and reset it between zip runs. Trim double space in output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:18:12 +00:00
Jonas Sundström
7f8618292d Changing the layout code as suggested. Something's not right. White background not intended. Presenting zip output as a file count instead, to work around excessive window resizing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:35:02 +00:00
Ryan Leavengood
39a60d7f1e We need this here too, I guess for gcc4 (which is what I'm using now.)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:28:33 +00:00
Ingo Weinhold
ffdaa11d3c cdda_read_dir(): Removed user buffer handling. We're only getting kernel
buffers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 18:38:05 +00:00
François Revol
24c219c1a9 Add newline in about.
Fix ZETA build as yes, I still test stuff in ZETA :p
Thanks Rene for noticing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 17:05:10 +00:00
Jonas Sundström
c6cc22d032 Closer to preferred use of layout facilities. Fingers crossed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 16:53:20 +00:00
Axel Dörfler
8f935c23a8 * Don't export the overlay hooks on hardware where the overlay reportedly does
not work yet. This fixes #4215 the easy way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 16:03:30 +00:00
Rene Gollent
f930131dca Fix IconVader build, though afaik it's not currently in the image anyhow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 15:50:09 +00:00
Ingo Weinhold
0d4487f933 The dir has been renamed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 15:45:27 +00:00
Rene Gollent
b3f63c9f68 Rename directory to match rest of repository.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 15:36:34 +00:00
Stefano Ceccherini
fa7645f124 Fix gcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 15:29:52 +00:00
Axel Dörfler
b2a75cf56c * Fixed mixup of the VGA compatibility layer - if the bit is set, it means the
device is not compatible, after all.
* No longer accept color changes if the mode is not an 8 bit one. I think that
  BWindowScreen does that after changing the mode, so that is messes up the
  colors, at least that's the theory, will test on real iron now.
* Use VGA as a fallback if setting the palette via VBE failed. This brings back
  the colors for ParticlesII in Qemu (but not in VirtualBox, which seems to be
  completely broken in this regard).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 14:30:01 +00:00
Axel Dörfler
8fb1f94f42 * Reverted accidental commit, fixes the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 14:15:02 +00:00
Fredrik Modeen
c8a2ddf280 Apparently there was a newer version, this one are not dependent on the path to terminal.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 14:09:55 +00:00
Axel Dörfler
2384335649 * Changed the way the device type is tested/set. There shouldn't be any functional
changes.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 13:02:52 +00:00
Jonas Sundström
4316f9d931 Cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 12:19:47 +00:00
Axel Dörfler
bb693d7764 * Added VESA capabilities field to the kernel args.
* The vesa driver no longer uses VGA programming if the chip does not support
  VGA compatibility.
* The VESA driver now tries to set the DAC to 8 bits per color gun.
* In VESA modes, the driver no longer tries to use VGA programming; introduced
  the new vesa_set_indexed_colors() that is now used for palette programming.
  This should fix wrong colors of 8 bit BWindowScreen users with VESA on real
  hardware (emulators usually didn't mind either way).
* Note that the app_server needs to maintain a palette per 8 bit screen, as
  right now, the colors are garbled after a workspace switch. Stefano, are you
  looking into that already?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 09:49:28 +00:00
Ryan Leavengood
7fb3d929c8 Added an rdef file with the Terminal icon and other information and modified
the Jamfile to use it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 07:32:48 +00:00
Fredrik Modeen
be454e17a1 - Added Chris Roberts OpenTerminal.
- Added him to Contributors
- Missing a icon thoug, any thoughts about how it should look?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 22:54:05 +00:00
Jonas Sundström
f99cf5726b Using the new layout facilities the window resizes madly while zipping. Fun fun fun. Advice welcome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 21:00:53 +00:00
François Revol
a2577dbfd1 [ARM]
Stubbed out config_manager and pci bus_manager arch code.
Now really use the boot floppy tgz for the netbsd uimage as it all builds, but with other kernel arch code not yet commited.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 17:29:46 +00:00
Axel Dörfler
801535c8ed * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 13:33:08 +00:00
Ingo Weinhold
996aa11b17 Spotted by "Blub": After unmounting we didn't delete the Volume object.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 17:52:44 +00:00
Axel Dörfler
a068dcb15a * cdda_read_dir() could copy too many bytes into the provided buffer (worst
case was an unterminated string, though).
* fix_dirent() did not copy the trailing null-byte.
* Not yet entirely sure why, but this caused #4214.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-11 15:46:07 +00:00
Bryce Groff
1987b05aa0 * Added open_partition to disk_device_manager
* Rewrote PartitionMapWriter
* Updated style to match current style guide for the intel partitioning system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-10 22:28:47 +00:00
Axel Dörfler
bce831ef4a * Don't reset fSeparateSubTransactions but restore its previous value. This
fixes bug #4201.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-10 14:20:59 +00:00
Jonas Sundström
06103a3046 As cdtext extraction preempts a cddb lookup, make sure we got useful data from cdtext. Out of the 30 CDs I've tried all get reported as having cdtext but only one renders any useful data. This should at least give cddb a shot.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 23:23:45 +00:00
Stephan Aßmus
5de5d05605 Fixed error in FFmpeg code that defined a function which is only enabled in
GPL mode. Later in the code, the function would only be used in GPL compile mode,
but this fixes the linking in non-GPL mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 21:55:15 +00:00
Stephan Aßmus
38d967a3ea Include GPL code in the FFmpeg plugin during compilation, if the Haiku build
system has been configured to include GPL add-ons. This cannot be switched on
the fly without rebuilding all of the FFmpeg plugin, since the change in the
Jamfile defines will not automatically trigger a rebuild. So if you change your
configuration with regards to --include-gpl-addons, you have to touch config.h
(this commit touches it anyway).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 17:19:32 +00:00
Stephan Aßmus
630f5e2579 Disabled the rest of the GPL code as per the FFmpeg 0.5 README.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 15:21:37 +00:00
Stephan Aßmus
6d15d13087 * Disabled GPL H.264 ASM code
* Enabled WAV muxer.
* Updated configure line in config.h to be closer to what it could have been
  to produce the current config.h, but a lot of encoders and muxers are enabled
  manually at the moment, so this line wouldn't produce the config.h as is.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 14:54:17 +00:00
Stephan Aßmus
23190db721 Sorry, reverted r32185, as it was complete bogus and didn't even compile (got
confused about what I already compiled here). The sample format was already
specified.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 13:54:18 +00:00
Stephan Aßmus
e48452878e * In the AVCodecDecoder, use the audio format of the original input format,
but specify it to 16bits/sample if it's still a wildcard. Make sure to
  allocate the scrub buffer with the correct sample size (was hardcoded to 2
  bytes per sample).
* In the AVFormatReader, specify the sample format for B_MEDIA_ENCODED_AUDIO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 13:18:26 +00:00
Axel Dörfler
f7be7fea76 * Setting the depth to 1 for VGA mode in frame_buffer_console_init() was not
a good idea; it didn't have any consequences in there, but actually broke
  the app_server's support for the VGA mode.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-07 11:07:14 +00:00
Rene Gollent
7e14656cf7 Patch by Blub\0: fix bfs build with DEBUG defined on gcc4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 17:56:57 +00:00
Stefano Ceccherini
ceeeb99a7e further cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 17:05:57 +00:00
Stefano Ceccherini
bdaaeb0c37 Applied the logic in r31871 to jpeg2000 translator too. Fixes bug #4139.
Also cleaned up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 17:05:42 +00:00
François Revol
5a9c3ff54c Alpha sort.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 16:36:32 +00:00
Axel Dörfler
1a60fd72cf * Replaced the Inode::GetTree() method with a simple getter - the tree is
always created for directories since quite some time now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 11:18:26 +00:00
Axel Dörfler
134e1b04d4 * Somehow I forgot to update the parent directory's time stamps on file
creation, removal, and name changes...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 11:02:08 +00:00
Axel Dörfler
b7d46b7558 * Also the indirect array indices can point to a sparse point if they are 0;
this fixes problems with large files with sparse ranges (for example, Haiku
  images).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 14:23:13 +00:00
Stephan Aßmus
b9b5bf07db Fixed bugs when freeing the AVCodecEncoder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 10:40:06 +00:00
Stephan Aßmus
6780c24d36 Encoder:
* Fleshed out the Encoder API to support parameter setters/getters and returning
  a BView for configuration. (Not yet sure if this is a good idea.)

BMediaTrack:
* Implemented all but one of the unimplemented methods in BMediaTrack. It should
  be working as far as that class is concerned, unless I missed some of the
  vision. ReplaceFrames() remains a stub, added a comment on why it probably
  stays that way.
* Release the Encoder reference in the destructor.

FFmpeg plugin:
* Refactoring to delay opening the AVCodec until encoding the first chunk,
  so that we can still adjust parameters.
* Support adjusting parameters via [Set|Get]EncodeParameters(). Currently,
  only quality is supported, added TODOs about supporting the bit_rate setup
  versus the automatically calculated bit_rate.
* Extended EncoderDescription by a bit_rate scale. The Encoder calculates the
  raw bitrate needed by the current media format, and then divides that
  number by the specific codec's bit_rate_scale, while taking into account the
  desired quality. This seems to work very well already (tested with MPEG4),
  although a lot more parameters could be specified for libavcodec, depending
  on the desired quality.
* Enabled the ogg muxer in libavformat, although it is currently still disabled
  in MuxerTable.cpp, because it rejects unknown codecs. Added TODO to this
  effect.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 10:21:36 +00:00
Stephan Aßmus
037d052235 I have no idea how that ended up there... set the decoded audio format correctly
again. Should fix playback of any file where the ffmpeg plugin was responsible
for sound. (The symptoms were a crash into the debugger because of an unspecified
audio format...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-04 07:21:22 +00:00
Stephan Aßmus
b785870101 Free the AVFifoBuffer data in the destructor...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 22:59:23 +00:00
Stephan Aßmus
6e567425c6 Now supports encoded audio. Added Dolby Digital (AC-3) encoding to test this.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 22:53:52 +00:00
Stephan Aßmus
0c72a8aed4 * AVWriter::StreamCookie::~StreamCookie() incorrectly freed packet data that it
didn't own.
* We are supposed to open the AVCodecContext in the writer, even though we never
  use it. According to libav-users mailing list, this is necessary, since that
  will allocate and initialize some structures that are later needed in
  av_write_header(). How this is supposed to work for encoders that libavcodec
  does not support, or which we don't know how to map, I do not yet know. For
  now it doesn't matter and resolves the problem that audio tracks report the
  wrong stream duration.
* Some more improvements with regards to what information we need to fill out
  and which we don't.
* Use more sensible defaults for the stream bitrate, so that we get better
  quality video by default. This and other parameters can be calculated when
  we implement setting the quality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 21:32:03 +00:00
Ingo Weinhold
6a0a77e2fa Patch by Bryce Groff with small change by myself:
* Don't leak the driver settings handle.
* No need to get the "active" parameter in ValidateCreateChild() -- either
  way is fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 19:11:14 +00:00
Ingo Weinhold
5e243bb30e Patch by Bryce Groff: Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 18:58:21 +00:00
Jonas Sundström
2680698b6d Have the application do a single BAlert on a BApplication::QuitRequested()-event in multi-window situations. Move reading/writing of settings from window to application. Cascade-offset the most recent window when they collide.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 18:17:14 +00:00
François Revol
17a815e0ad Add pc_serial to the build. No, it's not yet usable in Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 17:30:18 +00:00
Stephan Aßmus
3ca4a7b1be Implemented audio track encoding. There is something wrong with the PTS
generation for the packets and how I set the time_base in the AVStream and
AVStream->codec structures. This results in the audio streams of the written
files to report a much too long duration.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 09:35:30 +00:00
Stephan Aßmus
1e3ef6135f Quiet down some debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-01 01:59:34 +00:00
Stephan Aßmus
54897d5c06 * Also pass the media_codec_info to the Writer::AllocateCookie(), since that
info is not part of the media_format otherwise.
* Finished enough in the AVFormatWriter and AVCodecEncoder that we can now
  actually create AVIs and MPGs and encode MPEG1, MPEG2 and MPEG4 video.
  But no audio as of yet. Also, there is no bit-rate/quality setup, so it seems
  libavformat is using the least possible bit-rate/quality.
* Enable some more muxers and encoders in the FFmpeg libs.
* Uses pixel format conversion from libswsscale, need to read the documentation
  again, but I think it makes the plugin GPL.
* Fixed includes in libswscale/swscale.h, this is now an unmodified FFmpeg 0.5
  header again (AFAICT).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-01 01:16:12 +00:00
Stephan Aßmus
7a97958b0b This should fix the GCC 4 build. The avformat code expects a non-const buffer
for the write() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 22:12:03 +00:00
Stephan Aßmus
4384acf6c1 * Tweaked the Writer API. Basically, we need an Init() method that takes the
media_file_format as input, so that the Writer knows what kind of file is
  needed.
* Also, since information about the stream format is going to be needed at the
  Writer level as well, the AllocateCookie() method gets the stream
  media_format.
* Fleshed out some aspects of AVFormatWriter, many TODOs are left.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 15:29:08 +00:00
Stephan Aßmus
f9acacb7d1 Enabled a couple encoders and muxers, included files in build which we need
for that...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 15:25:57 +00:00
Axel Dörfler
3bde1f121a * If the VESA accelerant has EDID information, it will now also pass it to
create_display_modes().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 14:07:19 +00:00
Axel Dörfler
7badc72cf1 * Missing EDID video modes are now added from the base mode list, resolving
a TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 14:05:27 +00:00
Stephan Aßmus
2e9d65abf5 Implemented static Write and Seek hooks to be passed to libavformat...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 13:49:11 +00:00
Stephan Aßmus
313fedacc1 * Let the Encoders use the media_codec_info.sub_id field for their own purposes.
* Implemented some of AVCodecEncoder. Maybe video encoding already works, but
  we don't know until the AVFormatWriter is more than just stubs... but I doubt
  it. :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 13:06:34 +00:00
Stephan Aßmus
3ae83fe3c7 * Automatic whitespace cleanup.
* media_decode_info member was never used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 13:04:14 +00:00
Stephan Aßmus
fa770e4c84 * Writer::WriteChunk() takes media_encode_info* instead of flags.
* Improved Encoder API towards what we need for the get_next_encoder() variants
  and the BMediaTrack API.
* Implemented the rest of MediaWriter. Still undecided what to make of
  AddTrackInfo(). BMediaEncoder has that as well, which hints that this is
  something the Encoder needs to support. But it could also be that this is
  only possible to support in Writer.
* Wired a lot of previously unimplemented methods in BMediaFile and BMediaTrack
  needed for write support. If I have not overlooked anything, only the
  parameter stuff is still unimplemented now.

This is all untested, since the FFMpeg Encoder and Writer are still only stubs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 10:46:58 +00:00
Stephan Aßmus
6033e52a83 Implemented support for get_next_encoder() variations from MediaFormats.h.
The AddOnManager in the media_server registers one encoder entry per
successful EncoderPlugin::RegisterNextEncoder(). This gives us a first idea
what media_format_family and input/output media_type is supported. The
mechanism may have to be extended, or the Encoder needs an API to specialize
a format further. In that case, the get_next_encoder() version that takes
optional _acceptedInput/OutputFormat needs to instantiate the plugin and
needs to ask the Encoder. But AFAIK, no app uses it like that anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 00:46:36 +00:00
Stephan Aßmus
435924897f Hack to automatically deinterlace video, this needs to be improved later on,
but is better than before in any case. The deinterlacing is nothing fancy,
basically, it just drops the first field... the implementation to use this
is also not as efficient as it could be, it currently allocates a temporary
frame always...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 20:49:04 +00:00
Stephan Aßmus
eeb4be0c7f Hack for interlaced video. We cannot know if video is interlaced from the
current libavformat API. FFmpeg is a little inconsistent in this regard. For
interlaced video, it will report a frame rate which is the field rate, but
still decode both fields into a single frame. For the time being, we reduce
the frame rate from 50.0 to 25.0 and handle interlaced video transparently
for the clients. This needs to be fixed later on...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 20:47:05 +00:00
Stephan Aßmus
0876f8d08e Stubbed out implementation of an Encoder and EncoderPlugin. This will probably
need to work differently, such that supported media_formats come into play,
I will know soon when I implement some of the stuff from MediaFormats.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 20:42:26 +00:00
Stephan Aßmus
c98ea33596 Let's call it WriteChunk() instead of WriteNextChunk() and make the signature
consistent everywhere (according to BMediaTracker::WriteChunk()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 17:54:03 +00:00
Clemens Zeidler
09596a6bbc Remove some debug output and disable debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 17:52:34 +00:00
Michael Lotz
0fa107fd5d Don't spam for expected error returns. We do repeat key handling through
timeouts, so B_TIMED_OUT is expected at this point.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 15:18:45 +00:00
Ingo Weinhold
07745f2a0b Added support for new notify_io_request() function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 14:12:47 +00:00
Stephan Aßmus
6ac391b3ea Stubbed out Writer and WriterPlugin implementation. So far, Clockwerk shows
"AVI (Audio Video Interleave)" in the available output formats popup... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 00:17:53 +00:00
Axel Dörfler
0f779d495b * Transaction::UnlockInodes() may start a new transaction, but we cannot reuse
the one just closed anymore. The fSeparateSubTransactions mechanism should
  make sure that this won't happen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 00:06:02 +00:00
Axel Dörfler
65e04b057d * When a reentered fs function reuses a transaction of its caller, the
Transaction::UnlockInodes() method was never called, leading to bug #4155.
* In order to make sure that inodes are still going to be reverted, we actually
  need to move them into the parent transaction which we now do. This should
  fix #4155.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 23:46:56 +00:00
Jérôme Duval
4b57427974 uses different preferred media formats for input and output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 22:17:37 +00:00
Jérôme Duval
a4df31984d actually publish input and output formats and rates
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 22:16:14 +00:00
Axel Dörfler
dd825d5556 * The inode list link was supposed to be secured by the journal log - so it was
definitely not a good idea to move _UnlockInodes() after the Journal::Unlock()
  call (which was done to achieve a revertable inode).
* Instead, Journal::Unlock() is now responsible for calling the now public
  Transaction::UnlockInodes(), and always does this at the right time while
  holding the journal log.
* While I don't understand how #4155 can happen, this bug should be the one that
  caused it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 21:37:53 +00:00
Axel Dörfler
529c716df3 * Improved bfs_inode command.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 21:34:57 +00:00
Michael Lotz
3b1e4fd549 Fix pointer access. Thanks to Blub for spotting, I would've certainly spent a
lot of time finding this one!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 20:36:54 +00:00
Oliver Tappe
31a41b605d Fixing #3460:
* resolved a couple of redundant function declaration in our public headers
* adjusted zipomatic accordingly - everything else built fine

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 19:45:09 +00:00
Axel Dörfler
64b145930e * checkfs is now also able to fix name mismatches (when the inode contains a
different name than the directory entry pointing to it). The BeOS BFS is known
  to create such problems from time to time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 19:24:21 +00:00
Jonas Sundström
6e64586530 Clean-up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 19:13:29 +00:00
Axel Dörfler
1857ae604e * Let the transaction abort that caused the transaction to get too large. This
fixes that the next action failed after the problem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 17:50:01 +00:00
Axel Dörfler
3f1684d92c * Removed the superfluous "magic" stuff - if structures are broken, then please
let it crash!
* Made some headers self-contained.
* Always lock, regardless of "reenter" (we're using a recursive lock, so this
  doesn't matter at all).
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 15:40:28 +00:00
Ingo Weinhold
2ea893b2a0 Patch by Bryce Groff: Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 13:15:12 +00:00
Ingo Weinhold
53ef70a0df Patch by Bryce Groff: Fixed return values of the identify() hook.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 13:12:48 +00:00
Axel Dörfler
533cba7eff bonefish + axeld:
* Reverted r31809 as it introduced a race condition; if the I/O request had been
  notified, it could already been deleted at that point.
* Instead, we need to notify the request in each file system/driver that uses
  it. Added new notify_io_request() function that does that exactly.
* Added a TODO comment to the userlandfs where the request notification needs
  a bit more thought.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 12:16:15 +00:00
Axel Dörfler
e542ec0575 * Don't unlock the inodes before knowing that writing back the transaction
succeeded.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 11:05:13 +00:00
Axel Dörfler
877d64eeb1 * The gcc2 demangler didn't like functions without any arguments.
* first_argument() never returns NULL, so we don't have to check for it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 10:50:43 +00:00
Jonas Sundström
3f4b183da1 Partial clean-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 08:39:38 +00:00
Jonas Sundström
b2bb7643ee Barberpole drawing glitches fixed. Disabled mode now too shows a barberpole - a gray one. Stop button disabled when done zipping.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 04:50:29 +00:00
Rene Gollent
391e314cb3 Fix build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 02:27:26 +00:00
Axel Dörfler
c881516f65 * Accidently committed the wrong bash history line... these are the files that
were supposed to be deleted/changed with the previous commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 01:31:19 +00:00
Axel Dörfler
c6e2291fc2 * Removed old disk_scanner left-overs.
* Fixed warnings in the session partitioning module.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 01:23:47 +00:00
Jérôme Duval
d936f5e31f * now uses only one buffer_ready semaphore, this way the buffer exchange is done asap, useful when rates/formats are different between playback and record.
* checked what offsets my hardware my hardware really had: it affected only playback, and was 192 for 16 bits and 256 for 20/24 bits. With these values, playback and record are crystal clear. 
As I can't find any references for such offset values anywhere, sorry it's not supposed to work out of the box on all hardware. Maybe we could adjust the offset at runtime.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 22:36:13 +00:00
Stefano Ceccherini
c212b8f649 Applied patch by richy_rich which removes BAlerts from jpeg
and jpeg2000 translators.
Fixes bug #3044


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 22:00:09 +00:00
Axel Dörfler
121805b410 * We need to update the status change time as well with each write, as required
by POSIX semantics.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 21:55:11 +00:00
Stefano Ceccherini
b20d13f4a6 The JPEG translator config view was using its own layouting code,
and its own version of a BTabView. This worked correctly on beos, but since it
hardcoded some things, didn't look correct on haiku (due to the new look).
I just removed the layouting code, and adapted the rest to fit well.
This fixed the weird white line which was
showing up. Note that the jpeg2000 translator needs to be fixed in the same way.
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 21:51:02 +00:00
Jérôme Duval
4489296bf4 * dumps format and rates supported by audio group, input and output widgets.
Damn my hardware only supports 20bits input, though this explains why it doesn't work with 24bits input..


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 21:39:11 +00:00
Axel Dörfler
b77d5a6cbf * Almost all Transaction::Done() return values are now honoured.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 21:08:04 +00:00
Michael Lotz
49f0ed06ee * A more scalable way of initializing the LED items to NULL.
* Tiny coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 21:04:01 +00:00
Axel Dörfler
4e64310788 * Some preparations to be able to split transactions if they become too large
for the log.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 20:55:26 +00:00
Axel Dörfler
0bad839702 * When aborting a transaction, we also need to revert any changes made to the
cached bfs_inode of all changes inodes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 20:33:39 +00:00
Axel Dörfler
85c5c0b4d0 * We need to reset fUnwrittenTransactions when we abort a transaction without
a sub transaction, or else we would try to continue using it.
* It doesn't make any sense to increase fUnwrittenTransactions when
  _WriteTransactionToLog() failed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 19:58:44 +00:00
Axel Dörfler
2a3a8bfa9a * Journal::_WriteTransactionToLog()'s return value was ignored previously,
leading BFS to report success on actually failed transactions. Those
  transactions were even kept open, leading to a panic when starting the next
  transaction.
* Transaction::Done() now returns a status - currently, this is only handled
  correctly where this is likely to happen without a disk fault, ie. if the
  transaction was too large to be written back safely.
* Improved "bfs_journal" command output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 15:55:48 +00:00
Axel Dörfler
639f60b9b2 * vcache is now using an rw_lock instead of a semaphore.
* Got rid of the lock typedef.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 13:06:27 +00:00
François Revol
c2bf32c770 Some links about a card I'm interested in...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 08:21:23 +00:00
Michael Lotz
92781ad394 Actually the index values cannot be larger than 16 bits as otherwise they would
cross usage page boundaries.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 01:14:55 +00:00
Michael Lotz
ab1a1f9423 * Allow key-like items from the consumer page to be recognized as well.
* Make the key arrays take the full range of possible index values (32-bits).
* Forward all unmapped keys with their HID usage as keycode.
* Remove some superflous debug output.

With this many of the extra keys on keyboards should be forwarded as unmapped
keys. An application could now watch for them (B_UNMAPPED_KEY{UP|DOWN} messages)
and interpret them based on their keycode which matches the HID usage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 01:05:15 +00:00
Axel Dörfler
152d6bdcca * Replaced diri_mark_dirty() with a diri_make_writable(), and fixed its usage
throughout the code.
* Got rid of the transactions - they weren't really used, and thus only created
  unnecessary overhead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 00:58:26 +00:00
Michael Lotz
55ae61312c Add disabled debug-helper to dump all reports of a device.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 01:29:10 +00:00
Michael Lotz
6522cd6090 Remove unused variable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 01:28:35 +00:00
Stephan Aßmus
5147963dcd headers/private/kernel/util/OpenHashTable.h, Hugo's version, is a bit nicer than
Tracker's OpenHashTable.h which it should eventually replace. We've renamed the
class to BOpenHashTable and changed the interface slightly so that HashTableLink
became superfluous.
Adapted all the code that used it. Since the OpenHashTables no longer clash,
this should fix the GCC4 build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 00:39:12 +00:00
Michael Lotz
8e1857f795 * Completely rework the USB HID driver to make use of the HID framework
introduced earlier.
* Reworked the previous device classes to make them ProtocolHandlers handling
  their respective input_server <-> driver protocol.
* Implement setting report item data and building/sending reports based on that.
* Remove the old HID parsing code.

This enables us to use all HID devices as we now parse and use the HID
descriptors/reports. Non-boot-porotocol devices should therefore work.

The next step will be to implement a generic input/output framework in userland
that can communicate with a generic protocol handler in usb_hid. This will then
enable applications to make use of all the non-mapped HID stuff directly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 00:35:21 +00:00
Stephan Aßmus
a0f0618739 Enlarge the OpenSound buffer size a bit to reduce the chance of
skipping audio.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 23:41:56 +00:00
Axel Dörfler
b5a51254dc * Don't use Inode::Remove() when the inode could not be opened, because it
actually relies on that.
* Instead, _RemoveInvalidNode() now manipulates the parent tree manually.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 14:29:05 +00:00
Axel Dörfler
e66295e5e5 * The inode may actually not be known when calling _RemoveInvalidNode(), this
could cause a KDL.
* Added a "force" argument to Inode::Remove() which should make it remove inodes
  more reliably for checkfs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 14:01:27 +00:00
Axel Dörfler
84ce48c248 * checkfs should now also remove unaccessible files. Not yet tested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:45:12 +00:00
Axel Dörfler
71e439ea3e * Moved most utility functions from bfs.h to Utility.h.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:44:31 +00:00
Axel Dörfler
450a9b8e7e * AllocateBlocks() now guarantees that the returned allocation size is a
multiple of "minimum".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:30:05 +00:00
Axel Dörfler
a4f9af2a40 Fixed a number of issues with double indirect blocks:
* The "index" was not correctly updated when the next indirect block was about
  to be used, which lead the code to write the runs to a wrong block, causing
  slight corruption, as well as the known invalid block_run(0,0,0) problem.
* blocksRequested is now always a multiple of "minimum" as well.
* When the file size grew beyond the max_double_indirect_range, the minimum was
  not adjusted, leading to too many extra allocations that had to be reverted
  afterwards again.
* If an allocation was not a multiple of NUM_ARRAY_BLOCKS, but also smaller than
  this limit (could happen due to the bug above), an endless loop could be
  entered. This was actually a regression introduced in r974.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:28:43 +00:00
Axel Dörfler
f1d9ec9840 * Always drop into the debugger if KDEBUG is used when BFS detects a corruption
that causes it switch to read-only mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-26 13:15:26 +00:00
Stephan Aßmus
329189542a Patch by idefix: Allow spaces in volume names. Thanks a lot!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 21:15:27 +00:00
Axel Dörfler
2990bea766 * The bitmap size was computed incorrectly, and thus, StopChecking() could
access the block bitmap out of bounds (which usually resulted in a crash).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 16:46:57 +00:00
Rudolf Cornelissen
3b5534fdd9 added 1366x768 mode support, modeline fetched and tested on packard bell viseo 190W monitor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-25 11:50:28 +00:00
Axel Dörfler
d0ed3c5f45 * On second thought, ignoring those characters make more sense than writing
basically garbage to the name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 13:38:11 +00:00
Axel Dörfler
df51dda6c4 * Added a comment mentioning the missing handling of characters out of the UCS-2
range.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 13:26:45 +00:00
Axel Dörfler
c6efb0f437 * Added missing "name" parameter to efi_gpt_create_child(), and
efi_gpt_validate_create_child() hooks.
* Implemented setting the name to the partition for real.
* Implemented to_ucs2().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-23 12:06:23 +00:00
Ingo Weinhold
a8d54837a8 Patch by Bryce Groff: Use the same name for BFS as <DiskDeviceTypes.h> does.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-22 14:59:27 +00:00
Axel Dörfler
1ad5198c09 * Reset keyboard state when an emergency key has been processed - it's likely
that we lost a few keystrokes, and would make keys (like SysReq) stick.
  Thanks to Rene for the note!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-22 08:02:51 +00:00
Clemens Zeidler
387cda1a6a Move watching part from the driver cookie to a device cookie.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-21 19:18:56 +00:00
Axel Dörfler
14aeff5f47 * The SysReq key was determined incorrectly - you have to press Alt, not Ctrl to
turn Print-Screen into SysReq. Now, getting into the debugger works via USB
  keyboards as well.
* I switched the break/pause key detection to Alt, too, although I could not
  find any such mechanism on PS/2 keyboards. Someone knows better how to deal
  with this one? (the key actually produces two scancodes, 0x1d + 0x45 on PS/2
  keyboards)
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-21 11:42:42 +00:00
Axel Dörfler
cf2a64ba52 * Added untested supported for the new emergency keys. Will test next.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-21 09:25:36 +00:00
Michael Lotz
0aea5c18d4 Make that queue_request() call into a clear_feature() call, as that's how it was
probably meant to be. The call as it was made no sense at all, as it hardcoded
the endpoint number and tried to supply data to a non-data request. It also
wasn't using a synchronous call, possibly triggering the callback function with
an incompletely set-up device structure, depending on how quickly the request
would return. This caused bug #4107.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-21 02:00:46 +00:00
Axel Dörfler
c755ecfe96 * Added an emergency key mechanism to the kernel, inspired by Jan Klötzke's
patch from about a year ago (I couldn't use any code of his yet, though,
  but there are a few things left). The emergency keys are triggered by
  pressing Alt-SysReq + key.
* By default, only Alt-SysReq+'d' is used as a means to deliberately enter
  the kernel debugger. F12 belongs to userland again, now :-)
* Debugger add-ons now have another optional method to implement their own
  emergency keys - 'd' for the debugger cannot be overridden, though.
* The mechanism can be turned off via a new kernel setting, so it's not that
  easy anymore to "crash" Haiku if you don't want to.
* Right now, the PS/2 driver, and the pre-input_server in-kernel debugger
  keyboard mini-driver support this, USB not yet.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-20 20:39:37 +00:00
Axel Dörfler
8ef9253a59 * Fixed relative include.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-20 20:33:35 +00:00
Ingo Weinhold
7f96148cac Patch by Bryce Groff with changes by myself:
* Added missing name parameter to the partitioning system module child creation
  and child creation validation hooks. Pass the name to them.
* Added BPartitionParameterEditor interface, which is/will be used for editing
  disk system specific parameters.
* Implemented partition parameter editors for BFS initialization and Intel
  partition map child creation.
* Fixed the incorrect supported child partition type iteration in the Intel
  partition map add-on. It does now return actual types.
* Handle the "active" flag parameter in the Intel partitioning system module.
* DriveSetup:
  - Replaced the "Create" submenu by a simple menu item. The type can now by
    chosen in the dialog.
  - Make use of initialization and child creation parameter editors. Some
    non-generic code has been moved to the respective editor implementations
    (BFS, intel partitioning system).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-20 20:29:16 +00:00
François Revol
591eab0aba - add PowerOnSensor() virtual,
- Add Or/And reg helpers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-18 15:34:51 +00:00
François Revol
586b09a499 Add method ProbeByIICSignature().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-18 14:52:45 +00:00
François Revol
e48c731ca7 Add a name to UVC cams.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-18 14:03:24 +00:00
Stephan Aßmus
c854f14029 * Cleanup
* Added TODO note with regards to BDataIO streams.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-17 11:58:33 +00:00
Stephan Aßmus
f06ec9ec92 Fallback to detecting the stream duration from the AVFormatContext, if the
AVStream does not provide it. For my test Flash Videos, I can at least get
a duration now, although seeking is pretty broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-17 09:32:09 +00:00
Stephan Aßmus
c340785238 * Added support for Flash Video (VP6F video and MP3 audio tested only).
* Seeking does not work, since the duration extraction from libavformat does
  not work for this container (maybe there are ways/workarounds but I didn't
  look into it).
* Automatic white space cleanup.

TODO: Add MIME type with sniffer rule.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-16 12:59:54 +00:00
Michael Lotz
63d557f06f Fixing random GCC4 warnings. Mostly missing consts, some parentheses, some braces... Should all be harmless and not change anything.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-16 02:42:03 +00:00
Jérôme Duval
6e94d29882 added flac to the codec table and the demuxer table.
audio format is now taken into account by the decoder when negociating the media output format.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 22:28:13 +00:00
Ingo Weinhold
fbe19a11f8 * Fixed several build issues.
* Removed the broken character conversion functions of the Haiku "port".
  Instead map the 4 unused wchar/locale support functions to panic().
  Eventually we might want to provide minimalistic wchar support in the kernel
  instead, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 21:17:17 +00:00
Bruno G. Albuquerque
808cb201de - Small clean-up. Change relevant function names to more appropriate and
non-ambiguous names (as pointed out by Ingo).
- This file has a lot of code that is Haiku only and is not in the original
  ntfs-3g code. maybe we should try to clean this up and merge the changes
  upstream.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 16:52:08 +00:00
Bruno G. Albuquerque
137ded7516 - Use ntfschar instead of wchar_t where applicable. libntfs assumed that the
size of wchar was 16 bits, which was not true anymore after recent changes.
- Considering the changes were inside libntfs, which is 3rd party code, I am
  not sure this is the correct way to apply this fix (if you have a better
  idea, let me know.
- This fixes bug #4075.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 15:39:09 +00:00
Axel Dörfler
78888c44da Applied patch by Ma Jie adding functionality needed by mDNSResponder:
* added new protocol method process_ancillary_data_no_container() that does not
  need a container to fill the cmsghdr data.
* Added support for the IP_RECVDSTADDR option using this call.
* Implemented support for IP_MULTICAST_IF.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 11:53:29 +00:00
Jérôme Duval
b739c6a866 recognizes the ac3 codec as part of the WAV format family (the one published by ac3_decoder).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-14 23:23:52 +00:00
Jérôme Duval
6fd02522ea fix debug mode
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-14 23:14:42 +00:00
Jérôme Duval
487862c6bc uses B_ORIGIN when drawing the bitmap. helps with blender
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-13 21:57:54 +00:00
Stephan Aßmus
691c650397 Do not set the pixel_*_aspect fields wrongly, just leave them at 0, which
hopefully any app interpretes as to be ignored.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 17:49:50 +00:00
Stephan Aßmus
c463715d25 Fix the GCC2 build, though I have no idea why this worked on Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 16:56:13 +00:00
Stephan Aßmus
4cc0f297e9 This seems to be the only change required for the GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:41:02 +00:00
Stephan Aßmus
4c3fe04bd3 * More cleanup and removal of code duplication in the Jamfiles. Moved
the HAIKU_FFMPEG_DEFINES and friends to the toplevel ffmpeg Jamfile.
* Define the X86 CPU acceleration features in global Jamfile variables,
  so that we can build specific source files depending on those defines
  later (used for libavcodec_x86.a).
* In config.h, a whole bunch of parsers were defined off, which was the
  actual reason why plain old .MPG files and also my .MTS streams with
  H.264 video gave only scrambled video.
* Removed some files from the build by comparing which files are build
  by a pristine FFmpeg libavcodec Makefile.

Attention: The following changes may break the GCC2 build:
* Remove Haiku specific changes from
	- libavcodec/x86/cavsdsp_mmx.c
	- libavcodec/x86/dsputil_mmx.c
	- libavcodec/x86/h264dsp_mmx.c

I will test this next after switching my GCC. If you are impatiant, the
following changes were previously done to the pristine FFmpeg 0.5 files:

libavcodec/x86/cavsdsp_mmx.c:
* commented out line 426 to 429

libavcodec/x86/h264dsp_mmx.c
* h264_loop_filter_strength_mmx2() was commented out.

libavcodec/x86/dsputil_mmx.c
* gmc_mmx() was commented out.
* commented out line 2665 (assigning c->gmc)
* commented out line 2786 (assigning c->h264_loop_filter_strength)

However, I would now make similar changes by checking the GCC version. Also,
the libavcodec/x86/dsputil_mmx.c:2786 was still assigning the dummy
h264_loop_filter_strength_mmx2() version.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:34:11 +00:00
Stephan Aßmus
8ca0ccd187 * Fixed compilation with TRACE_IO defined.
* Improved Seek(). If wence is not SEEK_SET, make sure to check the current
  source position and adjust it to what the stream points to. Also, return
  just -1 on error since this is used for libavformat code. And don't set
  the stream position to the error return value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:23:47 +00:00
Stephan Aßmus
219858ad31 * Simplified "extra data" handling/allocation code a bit.
* Added debugging facility to dump the first 100 packets of a video stream
  to a debug file on the Desktop.
* When needing to flush packets, avcodec_flush_buffers() is unfortunately
  not reliable. For audio codecs, the work around was to close and reopen
  the codec in Seek(). Do this also for video codecs. Makes H.264 more
  reliable here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-10 14:20:48 +00:00
Clemens Zeidler
34fc10ad1f Work in progress of the battery driver.
TODO: 
- Move watching stuff from driver to device cookie so it can be used by multiple instances. 
- Find out why we only get notified about AC / battery changes.
- Fetch _BMD info.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-09 16:42:30 +00:00
Clemens Zeidler
8c042be3d7 - Fix the timeout from millisecond to our microsecond spin/ wait functions.
- The timeout in Wait was ignored because B_RELATIVE_TIMEOUT was missing.
- Some cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-09 16:25:54 +00:00
Clemens Zeidler
2f0441f7e3 Already get the DCP module when init the ACPI modul.
Doing it on demand in AcpiOsExecute leads to kernel panic on my machine.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-09 16:06:40 +00:00
Stephan Aßmus
c85e773511 Forgot to remove invalid TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-09 13:10:29 +00:00
Stephan Aßmus
0f3f344fb4 * Implemented calculating the correct display aspect ratio.
* Removed some dead code.
* Fixed a style violation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-09 13:09:23 +00:00
Stephan Aßmus
f9aac21f11 Define the proper FFmpeg flag.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-09 13:08:00 +00:00
Jérôme Duval
1001e99388 This file is based on previous work in fwcontrol from FreeBSD. Adjusted the header accordingly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 21:52:54 +00:00
Jérôme Duval
c7ec967019 added raw dv format support. tested with PAL DV, I don't know for NTSC though
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 21:41:31 +00:00
Ingo Weinhold
1cc5e46925 Added offset and size parameters to create_child_partition() and
KPartition::CreateChild(). CreateChild() calls AddChild(), which publishes
the new partition, though at that point offset and size were not set, so that
the published devices would not be usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 20:26:43 +00:00
Stephan Aßmus
dec28f85e0 * Better debug output.
* We can actually tell libavformat to discard packets for streams that
  we are not interested in. Found this in the ffplay code. This should hopefully
  avoid the efficiency impact of using one AVFormatContext per stream.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 11:09:49 +00:00
Stephan Aßmus
12a9eb5d93 * Coding style cleanup, some removal of dead code.
* Refactored NegotiateOutputFormat() and Decode() into two separate private
  methods each, one for video and one for audio.
* Keep reading chunks when video decoding, until we have got a picture. This
  gets us scrambled video instead of a black picture for h264 in mpegts.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 09:43:06 +00:00
Stephan Aßmus
0c4d88d353 Added "mpegts" to the supported demuxers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 09:41:00 +00:00
Stephan Aßmus
274f43b917 * Virtualize the stream index and implement finding streams when the
context has AVPrograms. I gather this feature is for container streams
  that contain multiple "groups of streams" like how it would work for
  satilite mpeg-ts streams with multiple TV channels in one stream. For this
  to be properly supported, we should extend the BMediaFile/Track API. For
  now, the AVFormatReader uses the first program, if one is there. This
  was also needed to get make mpegts demuxer work, but it is not yet enabled
  for other reasons.
* Read more probe data. 1024 bytes were not enough to detect "mpegts" properly
  for example.
* For now, I disabled the locking in the AVFormatReader hooks themselves,
  this should not be necessary, though I hope libavformat is reentrant as
  long as you have your own AVFormatContext for each thread. So far everything
  hints that it is the case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 08:51:31 +00:00
Ingo Weinhold
f379415697 Partition type strings that we hand out we should also be able to handle. I.e.
we need to parse the "Unrecognized Type ..." strings we produce for partition
type IDs we can't match to a name. This fixes the "Failed to prepare
modifications" error the userland tools would produce when a partition with
such a type was encountered.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 01:32:09 +00:00
Oliver Ruiz Dorantes
8fe1949531 Patch by Monni, wrong debug output for btCoreData module pointer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 21:45:46 +00:00
Ingo Weinhold
ff1a0e63f8 Linking kernel add-ons against the shared libsupc++ really spoils the fun. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 18:34:34 +00:00
Oliver Tappe
16d5c24e53 * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
Stephan Aßmus
5d9b65c488 * Dump the libavformat string again in Sniff().
* Separate TRACE output for seeking related methods.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 22:52:49 +00:00
Stephan Aßmus
a612697fc9 Actually, use a more style compliant name, and since the flags don't contain
just architecture specific flags, call them just HAIKU_FFMPEG_DEFINES.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 22:05:00 +00:00
Stephan Aßmus
7486c08251 Avoid some code duplication for setting the architecture depending Cc and C++
flags, using a global variable FFMPEG_PLATFORM_DEFINES.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 21:57:08 +00:00
Stephan Aßmus
922c7be61c Do not leak the first StreamCookie that we used in Sniff() and do not free
in FreeCookie().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 15:05:52 +00:00
Stephan Aßmus
f0eb77fee4 Doh, of course we had ASF before! Sorry about that. Must have been blind.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 14:52:50 +00:00
Stephan Aßmus
fcb875cdf4 Do no re-use the same packet again if not supposed to. Was not a problem with
how everything currently worked. (Packet peaking was only done once in Init().)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 14:40:09 +00:00
Stephan Aßmus
7965dde0ca Get the AVFormatReader into a usable state. DemuxerTable.cpp controls which
container formats we support. I hope I have turned on only those that don't
have an implementation already (did we support ASF already?). I mostly tested
with AVI and that works reasonably well, but I only tested raw audio so far.
However, the backend for Marcus' avi_reader is much nicer than FFmpeg, so I
think it should stay and have disabled the support for AVI in AVFormatReader.
A big disappointment is that MPG containers only give scrambled video. It may
be a problem of the AVCodecDecoder, but I am not so sure. After all, it works
fine for other container formats. If I am not mistaken, VLC also does not use
the mpeg demuxer from FFmpeg. :-\ On top of that, libavformat detects the
time_base and stream duration wrongly for one of my test MPGs.
As for the implementation: Although seeking in libavformat happens for an
individual stream, in reality, the packets for all other streams need to be
flushed (that's also what happens in the libavformat tutorials I've seen).
Since our MediaKit API allows to seek tracks indivually, this is of course
a no-go, since then all other tracks would be out of sync. My solution is to
simply open the demuxer once for each stream and then completely ignore the
packets of the respective other streams. This also works around the problem
that libavformat is unable to provide packets by stream, requiring the
API user to queue the packets that he needs not now, but later for other
streams. It also means we have to no memory copies, since we can directly
use the packet buffer until the next call to GetNextChunk().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 13:43:02 +00:00
Stephan Aßmus
db627302b7 Support MP2 audio also in MPEG containers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 13:31:38 +00:00
Ingo Weinhold
ce3bb4fb88 Don't perform input processing when writing to the slave end (output written to
terminal was interpreted like input). Fixes #2409.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 11:39:49 +00:00
Michael Pfeiffer
a269184003 Rotate page contents in landscape mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-04 07:19:51 +00:00
Stephan Aßmus
827faf77a4 * Fleshed out some more of the format detection.
* Moved stuff from testing in Sniff() into class members.
* Added function to gfx_utils() that converts an FFmpeg pix_fmt to color_space.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-03 21:40:19 +00:00
Rudolf Cornelissen
3dd8670617 sometimes it's hard to not make copy and paste errors. This fixes modes showing up in screenprefs for higher vertical resolutions than the screen can display.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-03 19:14:35 +00:00
Axel Dörfler
2dd3063164 * Fixed getsockopt(), patch by Ma Jie - it would always assume IP_MULTICAST_TTL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-03 16:54:23 +00:00
Stephan Aßmus
a244fc3ac7 * It actually helps a lot to turn on all the demuxers if you want to use any.
* The URLProtocol idea seems not to work out, so I removed that code, but
  the other idea of setting up a ByteIOContext actually works, once I seek
  back to the beginning of the stream after reading the initial probe buffer,
  we may also offset the buffer pointer in the ByteIOContext to where we
  have already read, but I am not sure of possible side effects of that.

We can now probe for the correct demuxer and detect streams.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-03 00:26:11 +00:00
Stephan Aßmus
b4ef57412c Work in Progress of trying to get libavformat to detect anything...
unsuccessful so far.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-02 13:31:50 +00:00
Stephan Aßmus
668ed70bd0 * Use a static global object to initialize libavformat and libavcodec.
* Turn off tracing in the AVCodecDecoder which I accidentally turned on in
  a previous commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 21:16:55 +00:00
Stephan Aßmus
53db45b7d3 * Added libavcodec to include dirs of libavformat
* Removed inclusion of internal.h from libavcodec.h, it's not there in the
  plain FFmpeg 0.5 version of the file.
The last item fixes the GCC2 build, at least AFAICT.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 20:39:18 +00:00
Rudolf Cornelissen
dd92605394 and fix the PLL setting dumping code for extended PLL's. BIOS settings now make sense on extended PLL's. This fix does not change the drivers behaviour.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 20:18:15 +00:00
Rudolf Cornelissen
4bc3f15ce3 fixed digitally connected panel at crtc2 detection, stupid typo. This lead to the driver exporting and accepting zero modes if a panel was at crtc2. Result was a black screen. Error was introduced when updating for EDID use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 19:54:23 +00:00
Stephan Aßmus
5f25b3a353 Removed ffmpeg build system left-over.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 19:20:52 +00:00
Stephan Aßmus
27f6fb6ce7 * Renamed avcodec folder to ffmpeg.
* Cleaned up plugins Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 19:19:49 +00:00
Stephan Aßmus
043eaa5c3f Cleaned up the source file names and code locations in the avcodec plugin,
unified the Reader and Decoder plugins and renamed the add-on to "ffmpeg".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 18:52:48 +00:00
Stephan Aßmus
cd170ddc34 * Added libavformat. I would like to rename the plugin from "avcodec" to
"ffmpeg" and export multiple plugin types from the same plugin (Decoder and
  Reader).
* Work in progress on an libavformat based Reader plugin, does nothing yet.
* Moved config.h from libavcodec subfolder up one level, so that it's used
  by libavformat as well. Adjusted libavutil/common.h accordingly.
* Turned off GPL code in config.h
* Turned off BeOS muxers in config.h
* Turned on HAVE_THREADS and HAVE_PTHREADS, although that is nowhere used
  in the ffmpeg code (it appears).
* Indentation cleanup in avcodecplugin.h

I have built this with GCC4, but last night I built libavformat.a with GCC2
so I am hoping this doesn't break the GCC2 built.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-01 14:45:20 +00:00
Jérôme Duval
05218580c7 * fix warnings
* add usb_midi to the image


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-30 19:07:26 +00:00
Rudolf Cornelissen
646357964f fixed panel detection for NV11, I accidentally broke that with a recent commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-30 18:35:32 +00:00
Rudolf Cornelissen
2cdfd70e42 small cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-30 18:12:23 +00:00
Jérôme Duval
e602845c35 the first index is zero, not one
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-29 22:12:20 +00:00
Jérôme Duval
bb52f762f2 typo fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-29 21:19:23 +00:00