Commit Graph

632 Commits

Author SHA1 Message Date
Uoti Urpala d9cea6a98b vo_vdpau: Allocate one large surface for EOSD content
Create a single large bitmap surface for EOSD objects and pack all the
bitmap rectangles inside that. The old code created a separate bitmap
surface for every bitmap and then resized the cached surfaces when
drawing later frames. The number of surfaces could be large (at least
about 2000 for one sample subtitle script) so this was very
inefficient. The old code also used a very simple strategy for pairing
existing surfaces to new bitmaps; it could resize tiny surfaces to
hold large glyphs while using existing large surfaces to hold tiny
glyphs and as a result allocate arbitrarily much more total surface
area than was necessary.

The new code only supports using a single surface, freeing it and
allocating a larger one if necessary. It would be possible to support
multiple surfaces in case of hitting the maximum bitmap surface size,
but I'll wait to see if that is actually needed before implementing
it. NVIDIA seems to support bitmap surface sizes up to 8192x8192, so
it would take either a really pathological subtitle script rendered at
a high resolution or an implementation with lower limits before
multiple surfaces would be necessary.

The packing algorithm should successfully pack the bitmaps into a
surface of size w*h as long as the total area of the bitmaps does not
exceed 16/17 (w-max_bitmap_width)*(h-max_bitmap_height), so there
should be no totally catastrophic failure cases. The 16/17 factor
comes from approximate sorting used in the algorithm. On average
performance should be better than this minimum guaranteed level.
2009-09-05 06:25:47 +03:00
Uoti Urpala 575331d73c Merge branch 'vdpau_old' into vdpau 2009-08-31 22:18:51 +03:00
Uoti Urpala dc44507f2a vo_vdpau: Add template file for VDPAU functions
Add a template file that contains a single listing of various
information needed about the VDPAU interface functions, and is then
included multiple times to create required declarations and tables.
Previously some of the information needed to be duplicated for each of
those uses.
2009-08-29 20:18:42 +03:00
Uoti Urpala 0eb321bf2c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
diego 6e9cbdc104 whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-13 02:58:57 +00:00
siretart 5e08e6c4b5 commit remaining binary_codecs.sh changes from debian.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29228 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-23 21:01:07 +00:00
siretart 0688204a7d check for missing libstdc++
this version of the check assumes that we run on a system with apt-get
installed and configured. We should probably check that this is actually
true. Or more ideally add support for yum for fedora systems.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29227 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-23 20:59:46 +00:00
siretart fc7d8af3b4 more cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29226 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-23 20:56:59 +00:00
diego 72451328bc whitespace cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29225 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-23 18:54:22 +00:00
siretart e3f02a93cc Part 3 of syncing binary_codecs.sh with Debian
This patch contains no functional changes again, only whitespace fixes
that has been misse from Part 1 have been included.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29223 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-23 08:46:05 +00:00
siretart 23f4613d63 Part 2 of syncing binary_codecs.sh with Debian
This patch contains the OKed parts of Diego's review from 23. Apr 2009


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29222 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-23 08:37:20 +00:00
siretart 329513035e Part 1 of syncing binary_codecs.sh with Debian
This patch contains no functional changes, only whitespace fixes from
Debian.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29220 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-22 20:46:33 +00:00
diego e530d4b467 Replace duplicated code by a macro.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28938 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-12 11:55:26 +00:00
diego 143a63fd9e Fix and restructure fastmemcpybench. It is now one binary that runs all
available memcpy variants and prints benchmark results about them.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28929 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-10 10:05:09 +00:00
reimar 591ce556b7 Make fastmemcpybench almost working - only thing missing is a way to
override HAVE_MMX etc. from config.h.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28906 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 12:59:14 +00:00
diego 807b942713 comment/output cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28904 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 11:32:43 +00:00
diego a0bce02b7c whitespace cosmetics:
- Remove all tabs and trailing whitespace.
- Indent with 4 spaces.
- K&R-ify and prettyprint some parts.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28903 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 11:28:31 +00:00
michael 1f61255588 Add test for C memcpy()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28894 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-08 15:56:20 +00:00
michael 1a493bf6a8 Resurrect script needed for easy use of fastmemcpybench.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28893 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-08 15:43:52 +00:00
michael b638947171 Revert
r3082 | michael | 2001-11-23 13:00:40 +0100 (Fri, 23 Nov 2001) | 2 lines
	missaligned arrays, as nick requested
Reason: idiotic idea


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28890 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-08 15:20:14 +00:00
diego 6d7d713ac9 Remove now unnecessary linking hacks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28781 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-01 15:51:43 +00:00
diego b598021ed9 HAVE_WINSOCK2_H is now a 0/1 definition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28443 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-01 15:15:07 +00:00
diego 824abb5a65 Add missing 'void' keyword to parameterless function declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28267 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-05 14:48:03 +00:00
diego 21f5949d4a Relicense to GPLv2 or later with the author's permission.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28230 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-02 11:46:34 +00:00
diego 15fd1a1636 Fix reference to wrong DLL filename in header comment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28229 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-02 11:45:39 +00:00
diego c2913af38f Fix confused references to DLL filenames.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28228 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-01 23:16:36 +00:00
diego 26b29f4f2d Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'.
We were using an inconsistent mix of the three variants and 'volatile' should
be the most correct and portable variant.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27791 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 20:17:56 +00:00
diego 6b52a2e974 Change all occurrences of asm and __asm to __asm__, same as was done for FFmpeg.
Neither variant is valid C99 syntax, but __asm__ is the most portable variant.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27788 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 18:59:27 +00:00
diego 17f509905c Rename stream/netstream.h to stream/stream_netstream.h; netstream.h to make it
clearer that netstream.h belongs to stream_netstream.c.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27779 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-16 17:01:40 +00:00
diego 78066d185e Remove MinGW cruft.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27695 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-03 23:44:40 +00:00
diego a2ad015203 cosmetics: prettyprinting
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27668 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-28 10:14:45 +00:00
diego 4ca1fa0a08 Upgrade license of LGPL 2 or later files to LGPL 2.1 or later.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27614 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-15 05:40:29 +00:00
diego 583ba8dcb7 Remove encode2mpeglight, it is only an outdated stripped-down version of the
tool maintained externally at http://encode2mpeg.sf.net/.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27537 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-07 12:58:23 +00:00
diego 5e5c1feb69 license header cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27536 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-06 18:39:12 +00:00
diego f2b8ab9994 Fix incorrect FSF address in license header.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27535 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-06 18:21:18 +00:00
diego 3af860b877 Rename HAVE_WINSOCK preprocessor condition to HAVE_WINSOCK_H.
This is what it is called in FFmpeg and more consistent with other
names for similar conditionals. This fixes a potential compilation
failure on MinGW, as described in Bugzilla #1262.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27493 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-29 20:05:08 +00:00
diego e588ab056d Change a bunch of video-output-specific preprocessor directives from a HAVE_
prefix to a CONFIG_ prefix.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27397 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-02 17:38:11 +00:00
diego 9c355fec91 Rename binary-codecs.sh to binary_codecs.sh as it is called in Debian.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27384 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-31 22:40:22 +00:00
diego 8b9c830dc3 Revert previous broken rename of binary-codecs.sh that had random changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27383 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-31 22:38:34 +00:00
diego 26a047a816 Rename binary-codecs.sh once more to binary_codecs.sh as it is called in Debian.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27382 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-31 09:49:16 +00:00
diego afc12ef42b Rename install-w32codecs.sh --> binary-codecs.sh.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27381 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-31 09:36:18 +00:00
diego 6ab83c724c Run bash-specific shell scripts with bash, not sh.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27231 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-07 09:32:21 +00:00
diego badc033ef7 Give all shell scripts a .sh suffix for consistency.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27230 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-07 09:30:22 +00:00
diego 1ebc859ff8 Replace bash-specific [[]] construct by proper a proper [] test.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27229 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-07 06:47:01 +00:00
diego 07e557c6d9 Replace == in []/test constructs with =, == is a bashism.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27228 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-07 06:43:45 +00:00
diego 9713f2a22f Remove unnecessary function keyword from shell script function declarations,
it is a bashism.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27227 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-07 06:30:24 +00:00
diego f9810c0dfb Fix the linking of TOOLS/netstream and TOOLS/vivodump.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26995 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-06 13:28:25 +00:00
diego 5423c418c2 cosmetics: Remove useless parentheses from return statements.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26791 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-16 09:42:28 +00:00
diego b10c35e0ed Use standard license headers with standard formatting.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26775 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-14 18:02:27 +00:00
diego 5af496679d Remove loader/wine/avifmt.h #include, the AVI types declared there conflict
with the ones from libmpdemux/aviheader.h, which is #included below.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26612 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-30 14:06:33 +00:00
diego 4180db130e Add missing string.h #include to fix a bunch of implicit declaration warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26611 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-30 14:03:32 +00:00
diego b5ea65c04f Remove unused fast_memcpy() function and link against the object that
contains fast_memcpy() instead.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26610 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-30 14:00:32 +00:00
diego 375be23d2c Disable unused function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26608 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-30 13:57:15 +00:00
diego c5d5fe98b2 Mark all functions that are only used within the file as static.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26607 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-30 13:53:40 +00:00
diego e8d9d7db4e Remove useless 0 flag from s printf conversion specifier, fixes the warning:
TOOLS/movinfo.c:332: warning: '0' flag used with '%s' printf format


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26506 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-23 09:24:54 +00:00
diego f19af4d788 Remove redundant definitions that are already present on the command line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26488 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-22 08:52:05 +00:00
diego 88961299aa Merge TOOLS/Makefile into the top-level Makefile.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26487 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-22 08:50:38 +00:00
diego 513aaf0695 Remove pointless '0' flag from fprintf call, fixes the warning:
warning: '0' flag ignored with precision and '%d' printf format


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26481 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-21 05:43:49 +00:00
diego 71d7b8f747 Add $(EXESUF) to netstream rule.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26480 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-20 22:11:38 +00:00
diego a3271c2409 Only build modify_reg on x86.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26479 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-20 22:08:10 +00:00
diego d989dc71e2 Simplify list of files to remove on make clean.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26478 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-20 22:07:34 +00:00
diego 30028e3e7b fastmemcpybench is a phony target. Do not try to remove a file by that name.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26477 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-20 21:59:19 +00:00
diego 293e11bc0f Remove Win32 linker option for netstream. Other winsock using code does not
need it, it should be set from configure and the reason why it was set in
the first place has been lost in the mists of time.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26387 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-11 07:37:27 +00:00
diego 24ce48897e Do not build subrip with debugging symbols.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26371 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-09 17:03:08 +00:00
diego 4eea61ddb3 cosmetics: Group dependency declarations together.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26370 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-09 17:02:22 +00:00
diego 2c6ac409a5 Remove redundant compilation commands that shadow builtin rules.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26369 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-09 17:00:42 +00:00
diego 47a0430fea List libraries to link to in dependency list.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26368 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-09 16:54:49 +00:00
diego 58983c3d2e cosmetics: Add CFLAGS to compilation commands everywhere.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26367 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-09 16:50:30 +00:00
diego e74dfd1bd1 Remove unnecessary ../libmpcodecs/img_format.o from list subrip objects.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26366 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-09 16:42:18 +00:00
diego ad908d5198 Update for latest changes to linking dependencies.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26365 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-04-09 16:39:07 +00:00
diego 6063301513 Add MPLAYER_ prefix to multiple inclusion guard of generated file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26089 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-24 12:53:11 +00:00
diego 962433eda2 Add multiple inclusion guards to generated header file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25893 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-27 18:42:00 +00:00
diego 2697136bbb Change format string so that the table is nicely aligned.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25892 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-27 18:40:01 +00:00
diego 7a1f275849 The alaw tables should be const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25891 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-27 18:38:47 +00:00
diego 72b5d885bc Move compare.c to TOOLS, add it to the Makefile and document it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25830 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-23 00:05:48 +00:00
reimar 2ce545224d Fix usage example comment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25798 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-19 14:28:48 +00:00
reimar ced77b5b8f Add the edge-enhancement filter based on edgedetect I had lying around.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25789 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-19 10:49:21 +00:00
diego 1660147878 Relicense to GPL v2 or later with Reimar's permission.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25633 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 21:19:59 +00:00
diego 6da8e4a81d Remove compilation command from source file, it is already in the Makefile.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25571 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 19:53:51 +00:00
diego 4a36933f7b Fix license header to read Lesser General Public License 2.1,
a Lesser General Public License 2 never existed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25570 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 19:52:23 +00:00
diego 9cf25c26ad unrarlib.o no longer exists, link against unrar_exec.o.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25569 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 19:43:36 +00:00
diego 8c0a903ccb Fix printf format string length modifiers, removes about a trillion warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25341 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 14:39:19 +00:00
diego 0cfa7f03f7 Comment out unused variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25340 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 14:13:34 +00:00
diego f059a5570e Remove unused parameters from main(), fixes the warnings:
netstream.c:340: warning: unused parameter 'argc'
netstream.c:340: warning: unused parameter 'argv'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25338 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 13:18:27 +00:00
diego d123fad2bd Fix printf format string length modifiers, removes the warnings:
vivodump.c:213: warning: format '%08X' expects type 'unsigned int', but argument 2 has type 'long int'
vivodump.c:220: warning: format '%08X' expects type 'unsigned int', but argument 2 has type 'long int'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25337 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 13:16:10 +00:00
diego 0822727933 Fix printf format string length modifiers, removes the warnings:
asfinfo.c: In function 'print_wave_header':
asfinfo.c:114: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
asfinfo.c:115: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
asfinfo.c: In function 'print_video_header':
asfinfo.c:140: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
asfinfo.c:141: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
asfinfo.c:142: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
asfinfo.c:145: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
asfinfo.c:146: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
asfinfo.c: In function 'main':
asfinfo.c:174: warning: format '%X' expects type 'unsigned int', but argument 2 has type 'long int'
asfinfo.c:220: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25336 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 13:11:26 +00:00
ivo 56f0494615 suppress silly messages when checktree is not called from the root of the tree
but nevertheless has no specific arguments to work with. it will traverse
the tree from there, but obviously cannot find our externals.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25312 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:44:31 +00:00
ivo 86edf7b297 only check source code for gnuisms
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25311 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:41:59 +00:00
ivo 64d1a0d366 simpler and more easily expandable test whether we need a shortlist that
only contains .[ch] files


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25310 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:39:01 +00:00
ivo 9495e9701b test for presence of .svn directory if we are supposed to traverse the tree
according to svn info
.svn might be missing (i.e. after svn export)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25309 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 23:36:03 +00:00
ivo a46d864303 when gathering the list of files to check via svn info, also include
libpostproc.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25305 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 17:42:56 +00:00
ivo 2ac12d82d8 cosmetics/indentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25289 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 21:45:43 +00:00
ivo 284673cbf5 when gathering the list of files to check via svn info, also include
externals (libav*)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25288 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 21:43:48 +00:00
ivo 66a1addb00 add functions that are not specifically marked as being deprecated or obsolete,
but which are dangerous to use (possible race conditions, undefined filemode,
et cetera; use tmpfile(3) instead).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25287 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 21:40:54 +00:00
reimar 844c8ffc48 Mark several uses of vo_functions_t as const to stop some of the current
hacks e.g. in vidix code from spreading.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25247 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 14:24:23 +00:00
ivo d3fbd9a436 10l for me. I should read my own comments just above it ;)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25220 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 23:02:32 +00:00
ivo dd9d075405 less code for initializing default settings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25219 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 23:01:30 +00:00
ivo 33ef887d5b add test for deprecated and obsolete functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25218 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 22:52:56 +00:00
compn 962a99ead2 simple avoid wine complaints fix by sherpya
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24797 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-17 02:24:50 +00:00
diego c8ae1836e6 cosmetics: misc typo fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24615 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-25 16:34:23 +00:00
diego 06facf3a90 According to MSDN a thread must call CoUninitialize once for each successful
call it has made to CoInitialize or CoInitializeEx, including any call that
returns S_FALSE. Only the CoUninitialize call corresponding to the CoInitialize
or CoInitializeEx call that initialized the library can close it.
patch by Gianluigi Tiesi, mplayer netfarm it


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24596 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-23 20:37:33 +00:00
compn a4e3bde0af vfw2menc works on linux/windows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24547 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-16 18:34:20 +00:00
compn 7207dc5fd4 vfw2menc works on linux and windows x86 only
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24544 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-16 15:14:56 +00:00
diego c20f7e99c4 Mark xx function as returning char, fixes:
avi-fix.c:18: warning: return type defaults to 'int'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24255 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 10:41:16 +00:00
diego c66a69924b Remove nonsensical #ifdef.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24254 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 10:38:35 +00:00
diego e6eeef436b Simplify the addition of -g to some CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24244 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 12:00:55 +00:00
diego b7ffad3d0a Move common link libs/objects into a variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24243 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 11:58:37 +00:00
diego 11caf018fd consistent linking order
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24242 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 11:52:21 +00:00
diego 449e6746e3 Simplify linkage parameters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24240 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 11:12:12 +00:00
diego 068d66d0a0 warning fixes:
realcodecs/drv4.c: In function 'RV20toYUV420CustomMessage':
realcodecs/drv4.c:151: warning: unused variable 'temp'
realcodecs/drv4.c:150: warning: unused variable 'pp1'
realcodecs/drv4.c: In function 'build_crc':
realcodecs/drv4.c:263: warning: unused variable 'b'
realcodecs/drv4.c: In function 'RV20toYUV420Transform':
realcodecs/drv4.c:295: warning: unused variable 'crc2'
realcodecs/drv4.c:295: warning: unused variable 'crc1'
realcodecs/drv4.c:295: warning: unused variable 'len'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24239 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 11:08:19 +00:00
diego 952b64b0d3 warning fixes:
realcodecs/drv3.c: In function 'build_crc':
realcodecs/drv3.c:291: warning: unused variable 'b'
realcodecs/drv3.c: In function 'RV20toYUV420Transform':
realcodecs/drv3.c:323: warning: unused variable 'crc2'
realcodecs/drv3.c:323: warning: unused variable 'crc1'
realcodecs/drv3.c:323: warning: unused variable 'len'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24238 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 11:05:40 +00:00
diego 686cfb9f05 warning fixes:
realcodecs/drv2.c: In function 'build_crc':
realcodecs/drv2.c:316: warning: unused variable 'b'
realcodecs/drv2.c: In function 'RV20toYUV420Transform':
realcodecs/drv2.c:348: warning: unused variable 'crc2'
realcodecs/drv2.c:348: warning: unused variable 'crc1'
realcodecs/drv2.c:348: warning: unused variable 'len'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24237 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 11:04:10 +00:00
diego df14a8fe9e warning fixes:
realcodecs/sipr.c: In function 'RAInitDecoder':
realcodecs/sipr.c:348: warning: unused variable 'temp2'
realcodecs/sipr.c:347: warning: unused variable 'temp'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24236 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:59:12 +00:00
diego cd9abbea80 warning fixes:
realcodecs/ra.c: In function 'RASetFlavor':
realcodecs/ra.c:344: warning: unused variable 'property'
realcodecs/ra.c:343: warning: unused variable 'flavor'
realcodecs/ra.c:343: warning: unused variable 'numflavors'
realcodecs/ra.c:342: warning: unused variable 'result1'
realcodecs/ra.c:342: warning: unused variable 'numprop'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24235 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:58:30 +00:00
diego 4bdae7c94a warning fixes:
realcodecs/28_8.c: In function 'RAInitDecoder':
realcodecs/28_8.c:238: warning: unused variable 'temp2'
realcodecs/28_8.c:237: warning: unused variable 'temp'
realcodecs/28_8.c: In function 'RASetFlavor':
realcodecs/28_8.c:273: warning: unused variable 'property'
realcodecs/28_8.c:272: warning: unused variable 'flavor'
realcodecs/28_8.c:272: warning: unused variable 'numflavors'
realcodecs/28_8.c:271: warning: unused variable 'result1'
realcodecs/28_8.c:271: warning: unused variable 'numprop'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24234 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:56:48 +00:00
diego 2c013c1875 warning fixes:
realcodecs/14_4.c: In function 'RAInitDecoder':
realcodecs/14_4.c:238: warning: unused variable 'temp2'
realcodecs/14_4.c:237: warning: unused variable 'temp'
realcodecs/14_4.c: In function 'RASetFlavor':
realcodecs/14_4.c:273: warning: unused variable 'property'
realcodecs/14_4.c:272: warning: unused variable 'flavor'
realcodecs/14_4.c:272: warning: unused variable 'numflavors'
realcodecs/14_4.c:271: warning: unused variable 'result1'
realcodecs/14_4.c:271: warning: unused variable 'numprop'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24233 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:55:27 +00:00
diego bccfdf2cd0 Remove unnecessary fastmemcpybench prerequisite.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24232 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:51:48 +00:00
diego 2c12e91a23 Remove unused #include.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24231 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:50:58 +00:00
diego fa364a03dc Fix a ton of warnings:
warning: incompatible implicit declaration of built-in function 'memset'
warning: incompatible implicit declaration of built-in function 'memcpy'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24230 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:32:46 +00:00
diego 42d1af3f6a Simplify bmovl-test compilation call.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24229 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:29:25 +00:00
diego 70261e715f Fix "incompatible implicit declaration of built-in function 'exit'" warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24228 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:16:10 +00:00
diego 53cdcdb4d3 Mark phony targets as such.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24227 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:13:11 +00:00
diego b0d0866059 Move fastmemcpybench objects to link against into prerequisites.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24226 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 10:10:12 +00:00
diego 14b2c39cd6 warning fix:
fastmemcpybench.c: At top level:
fastmemcpybench.c:29: warning: 'mga_next_frame' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24225 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 09:59:23 +00:00
diego a1d3c0aeaf warning fix:
fastmemcpybench.c: In function 'mga_init':
fastmemcpybench.c:36: warning: unused variable 'frame_mem'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24224 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 09:58:35 +00:00
diego 80226b8d77 warning fix:
vivodump.c: In function 'main':
vivodump.c:293: warning: control reaches end of non-void function


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24223 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 09:52:55 +00:00
diego 8826704061 warning fixes:
movinfo.c: In function 'video_stream_info':
movinfo.c:80: warning: control reaches end of non-void function
movinfo.c: In function 'audio_stream_info':
movinfo.c:99: warning: control reaches end of non-void function
movinfo.c: In function 'userdata_info':
movinfo.c:152: warning: control reaches end of non-void function


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24222 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 09:47:17 +00:00
diego 7728f7bd12 Get netstream closer to linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24201 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 17:52:29 +00:00
diego f04257530a warning fix:
modify_reg.c: In function 'remove_key':
modify_reg.c:39: warning: unused variable 'tmp_name'
modify_reg.c:39: warning: unused variable 'tmp_val'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24200 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 17:39:15 +00:00
diego 7117b5b121 Fix subrip and vivodump linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24199 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 17:36:57 +00:00
diego 4ed5da4ad7 Mark vfw2menc as Windows-only.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24197 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 17:33:35 +00:00
cehoyos 70ea6c25d8 Added Alan Nisotas modify_reg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24016 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-06 09:58:15 +00:00
diego 5acbb3c611 Remove unused variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24012 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-04 21:26:54 +00:00
reimar 02b7254f93 Add a dummy guiMessageBox so it still compiles when MPlayer was configured with
--enable-gui


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24009 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-04 15:58:43 +00:00
ivo bb195ba780 Make the printoption function take the default values from the variable
names related to the flag name, with the possibility to override it if the
variable name is not the same as the flag name. This simplifies printing of
the help message and reduces the possibility of future errors.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23971 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 15:10:10 +00:00
ivo 58af77f9d8 cosmetics, indentation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23970 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 14:51:56 +00:00
ivo f621fa2961 Shorten (un)setting of all test flags
Now that we have a list of all flags, we can set them to yes or no with a
for-loop.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23969 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 14:50:44 +00:00
ivo c9be32501b Much smaller command line parser
This removes all code duplication for setting and unsetting -(no)flags specified
on the command line


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23968 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 14:48:13 +00:00
ivo ce138ecc7f Update copyright info and license
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23960 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 08:17:35 +00:00
ivo 5e4f641679 cosmetics, break overly long lines
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23959 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 08:11:18 +00:00
ivo a5bda2e7af replace ^I by $TAB now that TAB is global
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23958 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 08:06:37 +00:00
ivo 446403aa3d only test for stupid code and reserved identifiers if there are any .c or .h
files


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23957 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 07:55:22 +00:00
ivo c5bf6bb1bd 10l, forgot to make TAB global
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23956 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 07:49:24 +00:00
ivo 59e2d4d3c9 Test for reserved identifiers.
Identifiers with two initial underscores or an initial underscore followed by
an uppercase letter are reserved globally for use by the compiler.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23955 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 07:45:06 +00:00
ivo 4b2e3c4a82 Add test for GNUisms
It currently tests for case ... ranges only, but other tests (like GNU
extensions to libc) can be added later



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23947 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 18:08:26 +00:00
diego b000a6a519 ISO8859-1 --> UTF-8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23754 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-09 19:50:36 +00:00
diego 50a2b32983 Remove unused variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23720 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-04 20:03:17 +00:00
diego cf59dbbd17 Mark main() function as a function that takes no parameters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23682 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-27 23:04:36 +00:00
diego 7f811fc47b Fix "control reaches end of non-void function" warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23679 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-27 13:04:29 +00:00
diego dc208e99cb Fix unused variable warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23678 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-27 13:01:43 +00:00