Commit Graph

25178 Commits

Author SHA1 Message Date
voroshil c30eaa2029 100l: Fix long standing copy-paste error:
TUN_SET_NORM should set norm value not get it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25105 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-19 09:05:23 +00:00
reimar ce11ba5de5 Add padding and unroll loop 4x for at least another 10% speedup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25104 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 22:13:49 +00:00
reimar 0f0e2f5f5b Change to a 64 bit accumulation variable instead of shifting.
Changing the way the loop is done is necessary to reduce register pressure.
About 20% speedup even on 32 bit x86.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25103 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 18:52:51 +00:00
reimar 13a205e075 100l, *ppc++ was supposed to be replaced by ppc[i] in r25100, but that is not any faster.
Just removing the += s->samples_overlap - s->num_channels; still provides a
ca. 20% speedup on x86 (AThlon X2 64) with gcc 3.4 (compiler stupidity?)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25102 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 18:33:45 +00:00
reimar 66c4759992 Use "long" instead of "int" for innermost loop variable.
About 12% faster on x86_64


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25101 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 17:44:11 +00:00
reimar 0bc7ce3b04 Rearrange scaletempo inner loop.
Speedup on x86 with gcc 3.4 36%, on x86_64 with gcc 4.1 5%


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25100 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 17:28:27 +00:00
nicodvb fdbceb63b9 warn users to disable dvdread internal (at least for the moment: there's
something that prevents the correct identification of languages that I don't
have time to investigate right now)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25099 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 16:19:03 +00:00
reimar 1c05db4406 100l, someone mixed up && and ||, so if allocation of only one buffers failed
that would not be detected.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25098 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 15:48:20 +00:00
reimar 4112aa7bcd Avoid some casts by changing int8_t* to void* in af_scaletempo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25097 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 14:57:59 +00:00
voroshil 5f8294fb14 Add all passed to VID_SET_FORMAT formats to the end of
available format list (but report call as failed, to
continue checking formats).

This gives small chance to build graph even if device
does not report about particular format as supported.

This makes mplayer be able to work with PVR-150 card
(card's driver does not report about yuy2 format, but
accepts connection and works with it).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25096 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 13:17:00 +00:00
voroshil a516b405d8 Ensure that when VID_GET_FORMAT ioctl is called,
video chain in graph is ready built.
Otherwise driver can return one format
while graph builder will negotiate another.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25095 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:36:57 +00:00
voroshil 8b33e65473 (cosmetics) Indentation fix of previous commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25094 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:15:14 +00:00
voroshil fa18524d05 New media format negotiation code:
loop through all available formats trying to
establish connection between pins.

Negotiation stops either when all formats are rejected
(error reported in this case) or when connection is
established (which can happen only when current media
format is accepted by both of the pins).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25093 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 11:13:28 +00:00
voroshil 1e663de892 Move setting media format code
closer to connection establishment routine.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25092 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 10:55:51 +00:00
voroshil 790cd7ec47 Pass all available formats to chain building routine and
establish connection with first of available formats.

This will make further format negotiation patch slightly
simpler. 

To avoid pins connection error due to unsuported format
at top of the list, put requested video format to the
top of list. This will also useful with upcoming patch -
negotiation will be started from requested format.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25091 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 10:51:22 +00:00
reimar 7342753348 100l, fix uint32_t* instead of uint32_t typo in demux_mf type->fourcc table
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25090 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 10:02:28 +00:00
voroshil b7ad0227fb Ignore video formats which are supported by device
but not supported by dshow driver.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25089 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 08:24:30 +00:00
voroshil 78a0719de9 Fix crash when pin connection fails.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25088 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 06:16:37 +00:00
voroshil 0da22f962f Prevent chains from building more than once.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25087 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:20:17 +00:00
voroshil c8b82b4b80 Handle "out of memory" error.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25086 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:07:51 +00:00
voroshil 5c684e7e4c Move chains building code into separate routines.
This makes code more readable and will allow
building particular chain before start().



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25085 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 05:02:49 +00:00
ulion afa755a662 Add a wish which is available in some filters and players on win32.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25084 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-18 04:20:03 +00:00
nicodvb a2e9769bae mention the new build system
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25083 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 21:34:00 +00:00
voroshil bf33c147fa (cosmetics) Lookup table alignment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25082 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:55:16 +00:00
voroshil 88cd527ad0 Service routine for constructing AM_MEDIA_TYPE structure from
given fourcc with help of lookup table.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25081 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:51:46 +00:00
voroshil e0f028b2a4 Disable terminating directshow chains with NullRenderer filter,
bacause this causes jerky video.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25080 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:32:18 +00:00
voroshil 66d7d00ea2 Fix bogus bits per pixel values in lookup table.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25079 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:08:03 +00:00
reimar ee1dd235b3 Cleanup sg_io_hdr initialization a bit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25078 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:07:04 +00:00
reimar 9494622558 We do not have any use for the sense data, so we don't need a buffer for it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25077 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 19:02:30 +00:00
voroshil b40c2c3057 (cosmetics) Indentation fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25076 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:52:43 +00:00
reimar e7b7e24cc9 Some more cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25075 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:52:42 +00:00
reimar 77d7b8c9e0 Move the zeroing directly before the other initialization code
for the array/struct


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25074 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:49:33 +00:00
reimar e40792bf0e Move everything that sets buffer values together.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25073 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:46:52 +00:00
reimar d9f35323fa Another place that can use AV_WB32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25072 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:40:46 +00:00
reimar be0a2badf7 Some cosmetics in dvd_set_speed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25071 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:35:36 +00:00
reimar e0720debf8 Move the DVD speed factor -> KB/s conversion into the case
branch where it is actually used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25070 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:31:26 +00:00
reimar dff474a1ce Add a missing close() to dvd_set_speed function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25069 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:27:17 +00:00
reimar 17a2278031 Open device file only right before we need it, so we do not
have to add close to all the abort code-paths


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25068 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:26:25 +00:00
reimar ed3b33cf03 Do not print Ok message when setting speed limit failed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25067 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:23:46 +00:00
reimar f647aa04e6 AV_WB16(..., 1000) more obviously represents one second that assigning
0x03 and 0xe8 (0x3e8 = 1000).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25066 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:22:42 +00:00
reimar 9424a3431d Use AV_WB32 instead of manual bit-fiddling when setting DVD speed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25065 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:20:04 +00:00
reimar 509ee9591c GPCMD_SET_STREAMING command is 12 bytes large, not 16
Patch by Sebastian Kemper (sebastian_ml gmx net)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25064 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:17:19 +00:00
rtogni de22a05645 Ignore stream id when checking rdt packet flags
Fixes bugzilla #930


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25063 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 18:08:53 +00:00
reimar aa93e8e60d Remove a pointless #ifdef
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25062 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 17:28:33 +00:00
reimar d0326807a7 Replace if-else constructs for type -> fourcc mapping by a table in demux_mf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25061 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 17:27:30 +00:00
ulion 647585034a Fix pausing_toggle not continue play bug when it follows a pause immediately.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25060 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-17 11:23:58 +00:00
nicodvb adb4813ca8 report why the dvd couldn't be opened. Patch by Jan Knutar jknutar+nic+fi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25059 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 21:32:09 +00:00
voroshil 1f2e78fe06 Add missed translatable string in my previous commit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25058 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 19:09:41 +00:00
voroshil 13df91222f Make sure that mplayer will receive actual media type
instead of requested value.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25057 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 18:59:35 +00:00
voroshil b4355b2f1d Fix FPS from bitrate calculation (was 8 times larger than real value).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25056 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-16 17:57:12 +00:00