Commit Graph

30858 Commits

Author SHA1 Message Date
sesse 45fd2e0457 Use the high-level QuickTime decoding APIs (DecompressSequenceFrameS and
friends) instead of the unsupported, internal ones (ImageCodecBeginBand
etc.). This is a prerequisite for, among others, Apple ProRes 4:2:2 support,
and simplifies the file by quite a bit.

Tested on Linux with all existing QuickTime codecs I could get to work in the
first place; qt261, qtavui, qtsvq3 have no change. qtcvid appears to not give
bit-exact the same output as before, but it looks just the same in playback
to me. qt3ivx stops crashing on exit (so works better than before). With some
extra patches and a codecs.conf entry, ProRes 4:2:2 also works, including on
Linux.

Since codec initialization is now actually done on decoder init instead of on
first frame, fallback should also work a bit better (although usually, qtvideo
is last in the chain). Also made the decoder complain explicitly if the
demuxer data is not there (ie., the user tried to run without -demuxer mov).

This patch is a cleaned up version of what Andrew Wason (rectalogic A
rectalogic D com) posted to mplayer-dev-eng in June.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30899 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-15 12:05:56 +00:00
komh 7092da127c Relocate -codecpath description in alphabetical order.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30898 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-15 09:32:53 +00:00
komh 8686b281f8 Add -codecpath option.
It allows to search binary codecs in non-standard directories.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30897 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-15 08:30:06 +00:00
diego 2c2097601e Add CONFIG_DCT and CONFIG_DWT to config.h as well as to config.mak for FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30896 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-15 06:39:21 +00:00
diego 6ca07e4c8b Get rid of pointless tmppath variable in set_path_env().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30895 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 23:42:03 +00:00
diego ee2ac03ccc variable renaming cosmetics: _have_yasm --> have_yasm
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30894 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 23:39:02 +00:00
diego 7d51464c27 Remove unused MMX_FFT Makefile variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30893 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 23:37:58 +00:00
diego 3aee1115a8 cosmetics: Simplify _codecsdir setting for MinGW and OS/2.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30892 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 23:00:06 +00:00
diego 0dd44a006e Add -Wstrict-prototypes to CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30891 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 22:58:20 +00:00
diego 70fafd7803 Use menu instead of GUI as example for an internal feature turned on by a flag.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30890 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 22:55:13 +00:00
cehoyos 299f7ad933 Fix compilation after FFmpeg r22522.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30889 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 22:50:15 +00:00
diego aee9749bca Replace separate Win32, XAnim and Real codec directories by one global dir.
Nowadays MPlayer does not use the codecs from other installed programs.
A runtime setting will soon take over the rare case that binary codecs
should be searched for in non-standard directories.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30888 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-14 16:13:32 +00:00
conrad 13d16eb051 fftheora supports 4:2:2 and 4:4:4 now
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30887 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-13 22:46:58 +00:00
jrash 2f46a41e3b sync with en/mplayer.1 rev. 30868
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30886 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-13 00:31:03 +00:00
reimar f6cef36bdb Add the 0xA109 format for speex, it is claimed to be officially registered (have
not verified).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30885 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-12 18:23:30 +00:00
reimar d06c04bb67 Support extradata format of the speex.acm windows codec formerly available
from openacm.org.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30884 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-12 18:19:51 +00:00
reimar fdd4ddccd4 Fix crash if speex_packet_to_header fails.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30883 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-12 17:29:48 +00:00
reimar e0c5806d44 Add newlines to generated fragment program to make both fragment program dump
with -v more readable and compiler error message more understandable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30882 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-12 17:21:05 +00:00
komh f74d169fc6 Include libavutil/avutil.h for FFMIN
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30881 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-10 11:33:02 +00:00
komh 6cbbdc49ea Include osdep/osdep.h instead of checking a platfrom specific macro to include
a platform specific header.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30880 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-10 10:00:59 +00:00
reimar e03ff1e0ef Return MP_NOPTS_VALUE if we can't figure out the pts, not 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30879 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 19:21:39 +00:00
reimar da87897b1b Improve handling of 0-size ogg packets.
Fixes bug 1664.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30878 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 19:19:32 +00:00
siretart cd4d5a8f2f unbreak compilation after cleanups in libavutil/common.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30877 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 18:34:14 +00:00
cehoyos 97ef28ad9a Fix alpabetical order.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30876 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 17:15:07 +00:00
cehoyos 12d78a9e5c Support SEGA CRI adx codec with demuxer lavf.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30875 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 14:33:11 +00:00
sesse 4abf80e24c Fix a syntax error in graph.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30874 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 13:19:25 +00:00
sesse 49471eaa3d Add copyright headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30873 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 13:18:52 +00:00
sesse f08a70d7df Style changes as requested by Diego.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30872 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 12:40:14 +00:00
cehoyos 27aa3db23e Fix help text for --disable-win32dll.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30871 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 12:01:42 +00:00
cehoyos b35edca8bf Commit files by Steinar Gunderson, forgotten in r30866.
Fixes compilation on x86-32.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30870 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 12:00:30 +00:00
siretart 26dbd2fc7c Fix compilation on powerpc with --disable-altivec
in case altivec is disabled, even compilation of code using altivec
keywords or asm must be avoided.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30869 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 08:07:34 +00:00
corey 39e9706f63 Document x264 VUI options.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30868 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 06:27:54 +00:00
corey 22f233f531 Add a note about what x264's 'aud' parameter is for.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30867 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-09 06:23:33 +00:00
sesse 18deeb4aff Implement DirectShow filter graph.
DirectShow specifies that a filter (codec) can expect JoinFilterGraph
to be called, and store a reference to the graph manager. Implement a
very bare-bones graph manager (all functions are stubs, and no extra
interfaces are implemented) and give it to the codec on init.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30866 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 19:57:37 +00:00
sesse 9b67104eb7 Correct QuickTime dpi output.
The dpi value for QuickTime codecs is stored as Fixed16 (16.16 fixed-point),
not int. Correct the output value accordingly.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30865 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 19:54:07 +00:00
reimar f6f655549b Check for allocation failure for c->lumMmx2FilterCode and c->chrMmx2FilterCode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30864 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 19:41:57 +00:00
reimar 4bd0c66548 Fix memleak due to incorrect VirtualFree arguments: size must be 0 for MEM_RELEASE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30863 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 19:37:10 +00:00
diego 73ab1c8339 We have some sort of DVD menu support nowadays.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30862 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 19:33:41 +00:00
sesse c7c74e1404 Implement ResumeThread and SignalObjectAndWait.
Relatively simplistic implementations of ResumeThread (stub) and
SignalObjectAndWait (bAlertable is ignored). Both are needed for ProRes 4:2:2
support on Linux.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30861 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-08 13:00:59 +00:00
iive 1ede72d581 Increase mplayer buffer padding size to match the new one from ffmpeg.
Allows compilation.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30860 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-07 23:18:37 +00:00
reimar 7f0c959ddc Use FBIOPAN_DISPLAY for switching between pages, seems to work for more
drivers and can be much faster.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30859 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-07 17:33:13 +00:00
reimar 16ec3a5a8a Add double-buffering support to vo_fbdev.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30858 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-07 15:55:52 +00:00
reimar 68d9451591 Use int64_t instead of long for variable containing current playback time.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30857 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-07 09:13:18 +00:00
stefano 5f43c89d8b Avoid duplication of usePal() macro.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30856 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 11:50:54 +00:00
stefano 387aa47084 Add support to BGR444/RGB444 foreign endian output in libswscale.
Patch by Janusz Krzysztofik |jkrzyszt ^ tis icnet pl|.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30855 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 11:27:31 +00:00
sesse a8804d4d71 Fix QuickTime emulated OSErr type.
The OSErr type on Mac OS X is int16_t, not int32_t (see
http://developer.apple.com/mac/library/documentation/QuickTime/Reference/QTRef_DataTypes/Reference/reference.html).
The upper 16 bits will typically be something random (they're entirely
undefined). Change the type so it's right; a few places tried to compensate
for this by masking out the upper bits, but a few places also missed them,
which made for unpredictable behavior.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30854 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 11:12:32 +00:00
sesse b951d42e4e Implement Win32 mutexes.
Implement Win32 mutexes; they used to just be mapped on top of events, which
is not the same thing at all.

The implementation is pretty much the obvious one, similar to the
current critical section implementation and the semaphore implementation;
a single lock count protected by a pthread mutex, and an event lockers can
sleep on to know when the mutex is available.

Also make CreateMutexA and ReleaseMutex available even if QuickTime codecs
support is not configured.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30853 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 10:13:37 +00:00
sesse 8e19e87761 Fix semaphore behavior in WaitForSingleObject.
Two simple bugfixes for semaphores in WaitForSingleObject:

First, semaphore count should be decreased on loading the semaphore, not
increased. The case for duration=0 had this wrong (duration=-1 was fine).

Second, the code for duration=-1 forgot to set the return value, so it
would always return WAIT_FAILED.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30852 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 10:07:39 +00:00
sesse 474c365479 Make Win32 mutex and thread linked lists thread safe.
loader/win32.c contains a global linked list of all existing mutexes
(whose head is called mlist), which is accessed from multiple threads,
and as such needs to be protected by a mutex. Fixed.

Same thing for the global linked list of all existing threads, whose
head is called list.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30851 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 10:05:10 +00:00
komh dd491c0d28 Define O_BINARY in stream/stream.h unless it is defined yet, and use it
in other places.

This removes platform specific checks and prevents repeated definitions
of O_BINARY.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30850 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 07:24:41 +00:00