cehoyos
7c774fd5ce
Add a default to switch(image_format), suppresses a warning after a future patch.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29869 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 09:52:43 +00:00
reimar
4b55351e28
Fix compilation of teletext code without freetype support
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29864 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-09 15:17:06 +00:00
reimar
509475ec2c
Change type of teletext color specification from unsigned char
...
to static const uint8_t
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29863 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-09 15:11:54 +00:00
cehoyos
2a5611473c
Remove CONFIG_TV_TELETEXT.
...
DVB teletext support is nearly finished, it will be possible to read
teletext from file, it will not be depending on reception any more.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29851 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-07 16:40:42 +00:00
cehoyos
a10b3f08bf
Add new VDPAU feature high-quality-scaling (and require newer library).
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29823 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-04 15:30:13 +00:00
reynaldo
11cc4bcadb
Remove unneeded initialization
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29818 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-03 20:46:54 +00:00
corey
0746f99a0a
Slightly change behavior of "none" if fstype specification.
...
In a list of enabled fstypes, "none" now clears the list rather than
disabling all fstypes and interrupting the parser. To enable only one
(or more) fstypes, list the types to enable after "none".
For example:
"-fstype none" is the same as before: all disabled
"-fstype none,fullscreen" enables only the fullscreen type
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29805 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-30 22:18:29 +00:00
cehoyos
a9474b0b39
Move teletext specific code from stream into libmpcodecs.
...
Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29801 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-29 22:13:04 +00:00
cehoyos
7800998a95
Cosmetics: Reindent after last commit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29799 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-27 08:29:07 +00:00
cehoyos
29c937fe80
Allow image format BGRA when using vo vdpau.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29798 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-27 08:28:08 +00:00
diego
3d264d7b55
Move some variable initializations to the beginning of vo_x11_fullscreen().
...
Fixes the warnings:
libvo/x11_common.c:1344: warning: 'h' may be used uninitialized in this function
libvo/x11_common.c:1344: warning: 'w' may be used uninitialized in this function
libvo/x11_common.c:1344: warning: 'y' may be used uninitialized in this function
libvo/x11_common.c:1344: warning: 'x' may be used uninitialized in this function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29795 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-24 12:35:18 +00:00
cehoyos
fbf26ecb14
Implement VFCAP_FLIP for vo_vdpau.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29794 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-23 18:26:42 +00:00
cehoyos
4a8b396b31
Free memory allocated in ff_vdpau_add_data_chunk() on uninit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29793 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-22 18:44:39 +00:00
diego
59d4f35fc3
Fix aspect test program linking.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29785 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-19 10:09:58 +00:00
cehoyos
c34564f2f6
Try to recover from VDPAU display pre-emptions.
...
Original patch by Uoti.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29777 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-17 15:15:07 +00:00
cehoyos
14c5e64fd9
Support SMPTE-240M colourspace in vo_vdpau.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29771 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-12 21:17:38 +00:00
cehoyos
83fe8c63c5
Add colorspace option to vo_vdpau.
...
Allows to use ITU-R BT.709 instead of the default ITU-R BT.601.
Patch by Lauri Mylläri, lauri D myllari gmail
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29769 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-10 20:53:42 +00:00
diego
50f563f927
cosmetics: Remove some pointless parentheses from return calls.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29759 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-08 11:25:01 +00:00
diego
77bc2b34b7
cosmetics: Break two more lines.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29758 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-08 10:48:12 +00:00
diego
95e061d93b
K&R coding style and whitespace cosmetics
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29755 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-06 08:45:20 +00:00
adrian
28f36c3656
Add keycode definitions for older versions of OSX. Fixes compilation on 10.4.
...
Patch by Aaro Koskinen, aaro D koskinen A iki D fi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29754 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-06 08:21:52 +00:00
cehoyos
23235a0ed0
Fix definition of KEY_PAGE_DOWN.
...
Patch by Aaro Koskinen, aaro D koskinen A iki D fi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29749 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-10-04 21:10:13 +00:00
reimar
a531e51297
Set sensible write frequency/priority values for AllocateMemoryMESA
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29723 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-27 14:33:45 +00:00
reimar
f78f32c864
Print error instead of crashing when mesa-buffer is used on systems
...
that do not support it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29722 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-27 14:31:35 +00:00
reimar
fe3b9a88ce
Also check GLX client and server strings for extensions
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29721 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-27 14:24:15 +00:00
cehoyos
4c86e46cca
Fix teletext font autoscaling.
...
Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29702 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-22 22:06:51 +00:00
adrian
7bc4102a08
Fix vo_corevideo with shared buffer after r29606: Only do GUI dependent display config if shared buffer is not enabled.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29699 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-20 19:07:57 +00:00
reimar
bf52efc804
Re-add some ifdefs, partially reverting r29688, since mDisplay and
...
mScreen are undefined during a Windows build without X11 support.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29690 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-18 18:46:12 +00:00
reimar
f5c7d8c92f
Use vo_w32_window directly instead of via the vo_window macro in Windows-only code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29689 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-18 18:25:17 +00:00
reimar
2eab60ecf3
Get rid of several (probably) pointless ifdefs
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29688 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-18 16:51:19 +00:00
reimar
dffa8cb272
Use ecx instead of ebx to avoid unnecessary issues with PIC.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29687 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-17 19:03:31 +00:00
reimar
b3a789863e
Add standard license header and move a misplaced comment.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29649 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-05 08:48:48 +00:00
reimar
76d4cd713f
Factor out duplicated code to set play video scaled by a certain factor.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29646 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-04 18:43:28 +00:00
reimar
5f76d2416b
Subopt parser subopts should now be const.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29645 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-04 18:21:28 +00:00
reimar
d0c1992160
Consistently use sizeof(variable) instead of sizeof(type) where easily possible.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29632 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 14:18:01 +00:00
reimar
25cc492d90
Cosmetics: get rid of many pointless ()
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29631 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 14:11:30 +00:00
reimar
7a7c246709
Reduce code duplication for half/normal/double video size handling.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29630 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 14:02:15 +00:00
reimar
001e4be0ba
Remove unused variable.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29629 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 11:38:18 +00:00
reimar
144b7f5989
vo_quartz: change deallocation/uninit to more reliably free allocated data.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29618 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 09:51:38 +00:00
reimar
1b3c42472d
Make glContext a local variable, it is not needed outside the function
...
where it is allocated, reference counting takes care of freeing it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29617 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 21:16:58 +00:00
reimar
9ad17fad92
Add a dealloc function to corevideo to reduce the memleaks from
...
(for my sample) about 12 MB to 2 MB.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29616 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 21:12:33 +00:00
reimar
cb9e32c88c
Fix some of the major memleaks of vo_corevideo with -fixed-vo
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29615 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 20:09:01 +00:00
reimar
e8d5289623
Do not do a unmap/map cycle on Windows given with -wid, with some window
...
managers this has the ugly side-effect of moving the window.
Instead call XInstallColormap to ensure the Colormap is installed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29614 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 16:39:46 +00:00
reimar
a1f744cb07
Check setGlWindow return value to fail properly instead of crashing if e.g.
...
no OpenGL support is available.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29612 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 15:20:05 +00:00
reimar
7b7302b096
Make shm_fd a local variable and close it when we need it no longer, thus
...
fixing a file descriptor leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29609 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 12:12:45 +00:00
reimar
0f7fe32725
Reduce vo_corevideo memleaks by initializing static context etc. only once
...
in preinit and freeing the video-specific data before reallocating in config.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29608 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 10:48:47 +00:00
reimar
b125a31886
Fix memleak when using fontconfig without a font name.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29607 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 10:17:22 +00:00
reimar
d7676e783e
Use MPlayer's standard aspect handling functions in corevideo
...
instead of reimplementing them incompletely.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29606 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-01 09:36:04 +00:00
reimar
311db2c468
Port feature from corevideo: remember half/double size settings and reapply
...
them after an aspect change.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29579 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 14:39:42 +00:00
reimar
b7c7318352
Make aspect switching work again (used the wrong variable and always
...
switched to the original aspect).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29578 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 14:38:44 +00:00
reimar
cc1b58e348
Fix implicit declaration of mp_input_.. functions.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29577 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 14:02:32 +00:00
reimar
6497662b92
1l, use sizeof for snprintf size instead of hard-coding the current value.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29576 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 13:30:32 +00:00
reimar
fde99e3c5d
Reuse the osx_common convert_key function to convert OSX keycodes to MPlayer
...
keycodes instead of its own switch-case in vo_corevideo.m
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29575 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 13:29:07 +00:00
reimar
4ce7a48748
Move aspect change handling from vo_quartz to osx_common.
...
This could probably be even moved to video_out, though the names should
be improved.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29574 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 13:25:30 +00:00
reimar
0dadcc7bf0
Add osx_common.c and move the keycode conversion (OSX to MPlayer) there.
...
Also get rid of our own defines for the keycodes and instead use the
predefined ones from Carbon.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29573 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 12:54:33 +00:00
reimar
1ba0432474
Use the standard MPlayer aspect handling instead of reimplementing our own in vo_quartz.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29572 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-28 08:36:51 +00:00
reimar
6901602578
Remove unused movie_aspect extern declaration.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29571 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 23:40:36 +00:00
reimar
a4566be905
Use lookup_keymap_table function with data structure instead of huge switch-case
...
for mapping OSX keys onto MPlayer keys in vo_quartz.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29570 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 23:13:37 +00:00
reimar
435a7803d0
Enable calc_src_dst_rects for windowed aspect and panscan.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29569 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 19:13:19 +00:00
reimar
8082e89f6e
Remove panscan related conditions and code that only breaks future windowed
...
aspect and panscan without any real benefit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29568 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 18:51:02 +00:00
reimar
f6e58b8a99
Make gl2 code capable of windowed aspect and panscan (no user option to enable it yet though).
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29567 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 18:42:08 +00:00
reimar
6765091bfa
Add infrastructure and test code to enable aspect scaling and panscan in windowed mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29566 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 18:36:51 +00:00
reimar
26d8e6a696
Fix video placement with -vo gl2 -fs -wid.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29565 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 14:12:38 +00:00
reimar
f10dcbacd5
-vo gl2 resize does not need to modify its arguments, so pass int instead of int *.
...
In particular, this avoids modifying vo_dwidth/vo_dheight which should only
be modified by the "windowing layer" (w32_common, x11_common).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29564 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 14:10:38 +00:00
reimar
c3067ee82f
Simplify -vo gl ass border etc. dimension calculation one bit more.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29563 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 14:07:15 +00:00
reimar
c2edb80335
Remove useless code that has no effect.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29562 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 14:01:39 +00:00
reimar
082c7b9446
Simplify and fix ass border calculations for -vo gl and -wid -fs mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29561 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 13:54:53 +00:00
reimar
6ec672e3cc
Make panscan cover the same range in -wid -fs mode as in normal mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29560 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 13:31:12 +00:00
reimar
16c2a6660a
Disable -keepaspect with -wid in w32_common code.
...
This does not work in a useful way and was unintentionally "enabled"
when -wid was made to use a separate window.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29559 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 13:20:21 +00:00
reimar
e18b64611c
Fix aspect_fit to work correctly when borders need to be added on top and
...
bottom, previous code accidentally compared against screen dimensions,
resulting in cropping instead of added borders.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29558 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 12:38:22 +00:00
reimar
4cbff98bad
Forgotten changes to aspect code to handle -wid with -fs.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29557 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 12:35:23 +00:00
reimar
e8429f1f5b
First attempts at supporting -fs with -wid, -vo gl on X11 only so far
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29556 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-27 12:03:02 +00:00
diego
e5751ced4f
Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-26 19:53:00 +00:00
reimar
95dcb65379
Use memcpy_pic2 instead of reimplementing it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29402 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 16:20:15 +00:00
reimar
32a7d61acc
Close /dev/tty again on uninit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29401 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 15:41:34 +00:00
reimar
158aca92ae
Fix indentation broken in last patch
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29400 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 15:39:35 +00:00
reimar
fc24a623a2
Get rid of completely pointless vt_doit variable
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29399 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 15:38:40 +00:00
reimar
83ed88fb96
10l, use fopen directly instead of open + fdopen
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29398 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 15:28:30 +00:00
reimar
b3e1578828
Use a single err_out in fb_preinit, also fixes a leak when vo_dbpp has an
...
unexpected value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29397 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 15:22:15 +00:00
reimar
e56dbbfd3c
Use FFALIGN and FFMAX3
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29396 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 15:14:48 +00:00
reimar
96de64de92
Remove useless casts
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29395 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 14:43:03 +00:00
reimar
2b19b2dcba
fbdev: remove pointless ()
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29394 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 14:40:31 +00:00
reimar
eeb99c1c14
Use the RESET_GEOMETRY macro in one more place instead of duplicating its code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29392 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 13:41:01 +00:00
reimar
8e2054934a
100l, RESET_GEOMETRY must reset values to INT_MIN, not -1, -1 is a
...
valid value for e.g. the offsets.
Patch by Benson Mitchell [benson mitchell gmail com]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29391 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 13:34:40 +00:00
attila
cdf00c3db3
fix missing event on move that breaks xmga window movement
...
broken in r28541
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29374 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-19 20:21:58 +00:00
siretart
9b57e55ee5
enable fontconfig support by default. This change takes only in effect,
...
if fontconfig support is actually compiled in.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29370 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-17 09:16:19 +00:00
adrian
af16d3f120
When used with shared_buffer, there's no need for a NSApp object, which causes MPlayer to be marked as unresponsive.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29314 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-18 21:19:11 +00:00
adrian
faa665d3e7
When used with shared_buffer, autorelease in each flip_page so objects don't accumulate until exit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29313 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-18 21:00:35 +00: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
cehoyos
238df952ef
Do not use flag CWBackPixel when calling vo_x11_create_vo_window():
...
It leads to VDPAU errors after video aspect ratio changes.
Patch by Stephen Warren.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29276 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-08 15:43:54 +00:00
diego
d9ded9284c
Add missing 'void' to parameterless function declarations.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29254 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-04 17:35:26 +00:00
diego
27bc918ffe
Rename macosx video output driver to corevideo.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29252 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-04 16:55:05 +00:00
diego
51a6bec160
Replace QuickTime.h #include with Carbon.h, which is really needed.
...
patch by Emanuele Giaquinta
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29249 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-04 14:40:22 +00:00
reimar
d6cf125d94
Change getdladdr to always use dlopen, dlsym and then dlclose.
...
Performance is not really important and dlsym(0, ...) is
not defined while the more correct dlsym(RTLD_DEFAULT, ...)
is a GNUism (although POSIX does reserve RTLD_DEFAULT).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29224 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-23 10:18:32 +00:00
gpoirier
424caeb920
Fix a signedness issue that caused a warning to be wrongfully printed at runtime.
...
Patch by Adrian Stutz %adrian A sttz P ch%
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29218 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-21 08:19:22 +00:00
diego
641a93a0e1
Unify error message output and update error messages.
...
patch by Adrian Stutz, adrian sttz ch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29211 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-20 18:20:37 +00:00
rik
a0bd74f06d
follow renaming of pbBufPtr() to put_bits_ptr() by stefano
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29178 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-13 21:43:57 +00:00
gpoirier
d9e794a24f
fix a memory leak leading to ~80 bytes being leaked at each call to flip_page.
...
Patch by Alexander Strange %astrange A ithinksw.com%
Original thread:
date: Thu, Apr 9, 2009 at 4:47 AM
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29177 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-13 20:07:03 +00:00
ramiro
ca242e5f73
Rename RUNTIME_CPUDETECT to CONFIG_RUNTIME_CPUDETECT and always define it.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29154 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-08 20:21:21 +00:00
diego
2e903f7c75
Remove unnecessary malloc.h #includes and related #ifdeffery.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-02 09:20:48 +00:00
cehoyos
a0dab6c1c0
Prefer vo vdpau over vo xv where available.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29118 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-31 22:06:40 +00:00
reimar
6b57f53f6f
Get rid of nonsensical limits on -geometry x, y,w and h values, they only
...
cause confusion on multi-monitor setups.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29112 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-31 16:16:12 +00:00
cehoyos
f7891c8e53
Support IMGFMT_NV12 for vo vdpau.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29109 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-30 21:17:42 +00:00
reimar
79568f8ea5
Make sure we do not accidentally use the vdp_get_error_string from the
...
previous initialization.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29106 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-30 12:11:12 +00:00
cehoyos
05be65cb86
Add support for IMGFMT_YUY2 and IMGFMT_UYVY to vo vdpau.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29105 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-29 19:43:52 +00:00
cehoyos
c7990f8893
VDPAU supports IMGFMT_I420 and IMGFMT_IYUV.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29104 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-29 19:25:22 +00:00
reimar
b4f5702c0a
Consistently use MP_MAX_PLANES as size for plane pointer/stride arrays in libvo.
...
This might avoid some issues since sws_scale in some cases assumes these
have at least 4 valid entries.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29101 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-29 14:37:21 +00:00
cehoyos
bdbf4f617d
Cosmetics: Reindent after last commit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29094 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-29 11:16:14 +00:00
cehoyos
aa549a325b
10l: Don't use MP_IMGFIELD_TOP_FIRST if MP_IMGFIELD_ORDERED is not set.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29093 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-29 11:15:22 +00:00
cehoyos
38116c1f73
Simplify vdpau deinterlacing code and fix timing for deint=2.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29061 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-25 23:32:27 +00:00
cehoyos
a0f0db79f4
New VDPAU deinterlacing code needs one reference surface less for software decoding.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29053 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-24 21:49:08 +00:00
cehoyos
c266ad4de4
New vdpau deinterlacing code needs one reference surface less.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29052 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-24 21:47:56 +00:00
cehoyos
7ab8e44842
Stephen Warren reported that VDPAU deinterlacing did not work correctly.
...
New static function push_deint_surface() by Reimar.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29051 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-24 21:45:39 +00:00
cehoyos
9e8112128e
Change function call order in config().
...
This stops creating a window even if hardware decoding is certainly
going to fail.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29040 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-22 23:58:40 +00:00
cehoyos
9970706263
10l: Only try to create vdpau decoder if hardware decoding is intended.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29028 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-21 22:53:18 +00:00
cehoyos
a331f3fd15
Test if create_vdp_decoder() might succeed by calling it from config()
...
with a small value for max_reference_frames.
This does not make automatic recovery by using software decoder possible,
but lets MPlayer fail more graciously on - actually existing - buggy
hardware that does not support certain H264 widths when using
hardware accelerated decoding (784, 864, 944, 1024, 1808, 1888 pixels on
NVIDIA G98) and if the user tries to hardware-decode more samples at
the same time than supported.
Might break playback of H264 Intra-Only samples on hardware with very
little video memory.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29027 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-21 20:11:05 +00:00
cehoyos
9f47d4d37c
Change return value for create_vdp_decoder().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29026 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-21 19:59:35 +00:00
cehoyos
8c820cce48
Factorize create_vdp_decoder().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29024 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-21 17:10:19 +00:00
cehoyos
115bfb9762
Allow to use vdpau temporal deinterlacers with hardware accelerated decoding.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28991 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-18 17:02:29 +00:00
cehoyos
02c87f0578
Add chroma-deint option to vo vdpau (nochroma-deint speeds up deinterlacing).
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28979 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-16 23:03:18 +00:00
reimar
91dd12b122
Check mpi type before returning an DR buffer in get_image, fixes jerkiness
...
with MPEG1/2 and -dr -slices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28974 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-16 14:25:03 +00:00
cehoyos
773c611884
Move initialisation of deint_surfaces[] to free_video_specific().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28971 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 22:19:05 +00:00
cehoyos
2ec3f259e5
Update -vo vdpau command line help.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28970 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 21:48:52 +00:00
cehoyos
7f3ddffb67
Cosmetics: Fix whitespace.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28969 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 21:26:10 +00:00
cehoyos
e8113dc1c7
Initial support for advanced VDPAU deinterlacers (software-decoded video
...
only).
With a lot of help from Reimar
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28968 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 21:20:06 +00:00
iive
2db1a43c2e
Fix warning: Add forgotten 'int' to variable declaration.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28965 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 20:02:45 +00:00
diego
a21feef029
cosmetics: Remove file names from file header, it only causes trouble.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28959 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 12:45:16 +00:00
diego
8484309af2
Remove obsolete extra elements from opt_t struct initialization.
...
Fixes a bunch of 'excess elements in struct initializer' warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28957 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 10:03:09 +00:00
diego
17d0933e57
Get rid of pointless preprocessor condition indirection and use ARCH_X86
...
directly instead of CAN_COMPILE_X86_ASM.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28956 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 10:01:02 +00:00
diego
7155671f37
"MPlayer - The Movie Player" should be used as the player name.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28955 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 09:47:51 +00:00
diego
bf1c189439
cosmetics: typo fix
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28954 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 09:47:09 +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
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
1753d37fc7
Merge two preprocessor conditions in order to drop one duplicated #else case.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28902 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 11:02:54 +00:00
greg
708819105f
Change default OSD/subtitle font sizes.
...
This was discussed on -dev-eng and IRC. The consensus seems to be that
3-4% of the diagonal is a good default, and most people use something
along these lines.
The subtitle font size is set to 3.5% and the OSD is kept a little bigger
with 4%.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28900 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 01:48:42 +00:00
diego
41bd5a75fd
cosmetics: spelling fixes
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28872 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-07 17:41:34 +00:00
diego
1e94c915a2
cosmetics: Reformat file header.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28871 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-07 13:45:48 +00:00
reimar
fca7818668
Setting vo_fs is handled by x11_common.c, so remove that code from vo_xv/vo_xvmc.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28864 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-07 08:52:57 +00:00
reimar
05119ecaf6
Make data related to suboption parsing const in libvo
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28863 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-07 08:51:40 +00:00
reimar
b33adcdd02
Refactor smalltex/tinytex EOSD optimization in vo_gl
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28849 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 12:56:13 +00:00
reimar
175cfc985c
Simplify EOSD code by rendering it in VOCTRL_DRAW_EOSD instead of genEOSD,
...
just like vo_vdpau.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28843 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 10:53:30 +00:00
reimar
eb761e688f
Remove duplicate OSD drawing introduced due to a conflict between r28840 and r28839.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28842 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 10:50:43 +00:00
reimar
d4748622fa
As for vo_gl, do not rely on draw_osd to render EOSD.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28840 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 10:39:58 +00:00
greg
658bcd5e35
Draw EOSD with VOCTRL_DRAW_EOSD instead of along with OSD.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28839 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 10:38:27 +00:00
reimar
397c4db88b
Do not rely on draw_osd to render the EOSD, instead draw it already at the
...
end of genOSD.
Fixes that the EOSD was drawn one frame too late.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28838 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-06 10:33:35 +00:00
reimar
81ce92ba78
Make sure all output_surfaces are initialized in preinit.
...
Patch by Dan Oscarsson [Dan Oscarsson (at) tietoenator com]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28809 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-04 19:37:07 +00:00
reimar
76f7f3aa0d
Make sure vo_x11_create_vo_window sets vo_dwidth and vo_dheight right
...
when we were in fullscreen mode and stay there.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28806 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-04 08:37:54 +00:00
reimar
8864662b13
Make WinID a 64 bit integer, this should avoid issues with valid Window
...
handles on windows being interpreted as "no wid set".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28795 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-02 11:24:20 +00:00
cehoyos
40fb81669a
Use M_PI for pi.
...
Suggested by Reimar.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28764 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-28 15:45:24 +00:00
cehoyos
f099431791
Make VdpVideoMixerAttribute attributes[] static const.
...
Suggested by Reimar.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28763 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-28 15:42:17 +00:00