1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00
Commit Graph

29191 Commits

Author SHA1 Message Date
Uoti Urpala
0f590fce19 core: Clean up OSD seek info logic
Clean up the code and make the behavior more consistent. Before
bits of the OSD information were triggered in different places, and
various property commands that affect playback position only showed
the seek bar while the main seek command also triggered showing the
percentage in OSD text. Now only the seek and chapter commands trigger
all information and others nothing (which is consistent with most
property behavior).
2009-03-31 19:15:08 +03:00
Uoti Urpala
694c067e19 options: Move osd_level and osd_duration to options struct 2009-03-31 18:24:10 +03:00
Uoti Urpala
9156a396a5 vf_ass: Free private data at uninit 2009-03-31 18:24:10 +03:00
Uoti Urpala
8ca11dda9e VO: Don't force window position in X11 VOs
Disable by default the code that forcefully moved the video output
window to the middle of the screen whenever it was reconfigured or
created. That behavior was really annoying when switching video
streams within a file, and overriding the window manager like that is
not good default behavior for the initial creation of a window either.
Add a new option "-force-window-position" that can be used to restore
the old behavior.
2009-03-31 18:23:45 +03:00
Uoti Urpala
8d25a357ef Set the fullscreen option value too when fs state changes
If the fullscreen state was changed via keyboard commands or the slave
interface the option value was not changed. However that value is used
if the VO is reconfigured. Set the option too to avoid switching
back to the previous state in that case.
2009-03-29 22:44:27 +03:00
Uoti Urpala
73fb23c1cf Add improved relative seek mode
When the new mode is active relative seeks are converted to absolute
ones (current video pts + relative seek amount) and forward/backward
flag before being sent to the demuxer. This mode is used if the
demuxer has set the accurate_seek field in the demuxer struct and
there is a video stream. At the moment the mkv and lavf demuxers
enable the flag.

This change is useful for later Matroska ordered chapter support (and
for more general timelime editing), but also fixes problems in
existing functionality. The main problem with the old mode, where
relative seeks are passed directly to the demuxer, is that the user
wants to seek relative to the currently displayed position but the
demuxer does not know what that position is. There can be an arbitrary
amount of buffering between the demuxer read position and what is
displayed on the screen. In some situations this makes small seeks
fail to move backward at all (especially visible at high playback
speed, when audio needs to be demuxed and decoded further ahead to
fill the output buffers after resampling).

Some container formats that can be used with the lavf demuxer do not
always have reliable timestamps that could be used for unambiguous
absolute seeking. However I made the demuxer always enable the new
mode because it already converted all seeks to absolute ones before
sending them to libavformat, so cases without reliable absolute seeks
were failing already and this should only improve the working cases.
2009-03-24 04:05:04 +02:00
Uoti Urpala
3279403611 demux_mkv: Parse ordered chapter information
Parse the ordered chapter structure if present and place the
information in the public demuxer structure. Nothing uses the
information yet.
2009-03-22 04:42:25 +02:00
Uoti Urpala
4b33422c7b Allocate struct demuxer with talloc
Makes it possible to add data to it without explicit freeing code.
2009-03-21 05:42:41 +02:00
Uoti Urpala
e177fc3e8b demux_mkv: Some cleanup, fix duration printed at verbose level
Clean up demux_mkv_read_info() and demux_mkv_read_chapters() somewhat.
(Why do the names of static functions have a stupid prefix like that?
Didn't remove it now however).

Demux_mkv_read_info() now delays printing duration information until
the end of the function where we hopefully have the correct timescale
for converting it to seconds. The code to calculate the duration had
been fixed for that earlier but the message had not.
2009-03-21 05:37:43 +02:00
Uoti Urpala
ebcb5a7154 Fix video stream switch code typo
Restore accidentally dropped '!' to fixed-vo test in
reinit_video_chain(). It could have caused some issues when switching
video streams. Probably nobody noticed because files with multiple
video streams are rare.
2009-03-20 03:39:29 +02:00
Uoti Urpala
ae2faad666 Merge svn changes up to r28951 2009-03-14 23:52:45 +02:00
gpoirier
642162c074 sync w/r28950
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28951 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 20:58:18 +00:00
diego
366c3fa13d KVA vo driver for OS/2, patch by KO Myung-Hun, komh chollian net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28950 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 18:44:58 +00:00
diego
2adaae35cf Move page heading and table of contents out of the codec support table.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28949 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 17:01:28 +00:00
diego
0c7aa35c2a Give table headings more meaningful names.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28948 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 16:58:22 +00:00
cehoyos
dc518c0c13 Clarify that -vo vdpau:deint=n delays video output for n>2 by one frame.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28947 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 16:43:10 +00:00
diego
e7d3dce041 Add /usr/X11R7 to the list of directories in which to search for X11 includes
and libraries. patch by Bernd Ernesti, mplayer-dev-eng lists veego.de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28946 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 16:00:21 +00:00
diego
36910ebe97 Only compile fastmemcpybench on x86.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28945 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 15:56:16 +00:00
reimar
bc4e834998 Set DOCTYPE in xsl-generated HTML documentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28944 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 12:32:28 +00:00
sdrik
4acac0faf5 Make the source buffer operands parametrized in the YSCALEYUV2RGB_YA macro
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28943 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 08:11:03 +00:00
reimar
1f1b999cb9 Check for HAVE_EBX_AVAILABLE before enabling MMX code that needs the EBX register.
Makes things a bit simpler for everyone who insists on compiling MPlayer as PIE-code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28942 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-13 17:12:40 +00:00
reimar
f9f40364d7 Use the same code as in vf_decimate to select diff_MMX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28941 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-13 17:09:39 +00:00
reimar
2af2550175 Add missing ecx clobber in diff_MMX code (yes, that function is duplicated).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28940 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-13 17:02:15 +00:00
reimar
db0be49509 Fix compilation with --charset=noconv
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28939 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-13 16:42:42 +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
compn
4143892c3b add some info for acm and tips for searching
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28937 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-12 11:16:51 +00:00
diego
cb9716ac6e SSE3 support patch by Zhou Zongyi, zhouzongyi pset.suntec net
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28936 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-12 10:50:21 +00:00
greg
a0735f5859 Use ScaledBorderAndShadow: yes by default.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28935 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-11 22:55:23 +00:00
sdrik
437ee8cc61 Make MMX registers parametrized in the YSCALEYUV2PACKEDX_YA macro
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28934 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-11 14:44:22 +00:00
sdrik
7fee9f0101 In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos element is initialized on the wrong index (not evenly aligned). This fixes it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28933 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-11 14:22:53 +00:00
diego
c2410d6cc9 Update email address for Vajna, Miklós.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28932 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-11 00:25:23 +00:00
compn
842880eecb add sn40 binary codec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28931 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-10 23:23:01 +00:00
compn
4e7827edeb sn40 decodes with ffodivx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28930 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-10 20:16:16 +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
compn
cae6488255 typo nuppelvideo spotted by kostya
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28928 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-10 02:21:49 +00:00
cehoyos
919793e643 Output number of reference frames before creating H264 vdpau decoder.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28927 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 23:46:28 +00:00
diego
fa60631a76 Update entry for libdvdread; add entry for libdvdnav.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28926 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 23:19:16 +00:00
diego
ab1163d8c5 cosmetics: Add newlines for better readability, rename Homepage entry to URL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28925 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 23:15:26 +00:00
diego
6040551ed4 GraphEdit is also available in the Microsoft SDK nowadays.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28924 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 21:40:20 +00:00
kraymer
a06215d67a typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28923 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 21:31:36 +00:00
diego
e633583d8c libmpdemux/nuppelvideo.h was removed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28922 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 20:56:19 +00:00
diego
597bfd44bd partial further sync by patch by sevenfourk, sevenfourk gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28921 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 20:48:20 +00:00
ben
540847db7b Ensure the string we're trying to compare is actually not NULL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28920 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 20:31:03 +00:00
ben
571c0fb8a9 The first valid index is total count - 1 (usually 0)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28919 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 20:30:24 +00:00
reimar
2c64a71a29 Do not call waveOutReset in uninit if you should wait till playing finishes,
and retry waveOutClose if it fails due to still playing.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28918 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 19:15:20 +00:00
reimar
2853105459 Reuse libavutil fifo code instead of reimplementing it over and over.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28917 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 18:21:47 +00:00
kostya
72304af23b Mask all unused bits for packed pixel format instead of green and alpha mask only.
That fixes the case when converting 15-bit RGB/BGR to YUV and high bit is set
for input value(s).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28916 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 17:25:43 +00:00
reimar
37e7934dce Get rid of DEMUXER_TYPE_NUV define, it is no longer used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28915 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 15:01:53 +00:00
reimar
8c5b570b50 Get rid of nuppelvideo.h and its ugly packed struct and instead write the
frame header directly in nuv encoder.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28914 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 15:01:12 +00:00
compn
9545a4a211 people are forgetting to update the changelog
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28913 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 14:49:17 +00:00