reimar
6023874828
Some ugly hacks to make compiling against a newer external version of libass work.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30107 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-24 10:51:24 +00:00
reimar
2908957147
Remove more direct includes of libass/ass.h
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30105 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-24 10:26:29 +00:00
reimar
acd1630d1b
Change %f to %e in generated fragment programs to avoid losing precision unnecessarily.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30078 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-20 14:32:34 +00:00
reimar
81783bceed
Slightly improve vo_gl suboption documentation.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30075 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 21:08:14 +00:00
reimar
763402d423
Define GL_GENERATE_MIPMAP ourselves if necessary.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30074 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 21:07:42 +00:00
reimar
300d40bed3
Add support for auto-generating mipmaps in vo_gl, should ease
...
implementing anything that needs blur filters with large support.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30072 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 20:53:34 +00:00
reimar
5dc258f4e8
Make -vo gl:customprog also work with RGB input (obviously those need to be
...
special RGB fragment programs).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30071 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 20:48:23 +00:00
reimar
89a2a84868
Fix a broken indentation.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30070 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 20:45:34 +00:00
reimar
213707b9e4
Enable running fragment programs with YUV_CONVERSION_NONE
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30069 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 20:44:55 +00:00
reimar
f97fd3eff0
Rename GL_* defines to CONFIG_GL_*
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30065 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 13:49:44 +00:00
reimar
140de2a9e2
Make the check for X11 and WIN32 backends for OpenGL separate.
...
This fixes compilation on Windows with X11 but no GLX available.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30063 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-19 10:52:32 +00:00
cehoyos
e3b42e3e96
Cosmetics: Reindent after r30050.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30051 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 13:27:15 +00:00
cehoyos
3303bb67ec
Slightly increase hardware decoding performance by always using more
...
video surfaces than absolutely necessary.
I will revert if somebody reports real-world resource issues introduced
by this commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30050 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 13:23:15 +00:00
adrian
d8fed1f04c
Cosmetics: reindent
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30049 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 10:57:40 +00:00
cehoyos
9182f6a97c
Improve VDPAU render performance by increasing number of output surfaces.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30048 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-17 02:16:12 +00:00
adrian
1078baf9aa
The fontconfig check added in r30044 wasn't safe. This makes it more robust.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30046 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-16 22:36:17 +00:00
adrian
067b817500
Fix a crash when fontconfig is unable to select a font. e.g. if no config directory could be found.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30044 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-16 11:11:31 +00:00
adrian
2a33cd01f6
Add support for -geometry to corevideo.
...
Based on a patch by Tim Wojtulewicz (timwoj at ieee dot org).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30043 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-15 20:38:54 +00:00
adrian
5f0b5dcaa9
Add -xineramascreen support to corevideo vo. Still prefer corevideo's own device_id parameter if it's set.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30042 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-15 20:25:50 +00:00
reimar
80981cd2d0
Use a fallback to make sure the basic OpenGL functions are available instead of
...
initializing them which does not work well with reinitializations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29984 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-09 17:50:07 +00:00
reimar
c13aaf85d1
Prefer GLAPIENTRY over APIENTRY, it is the better name and used more by OpenGL headers.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29983 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-09 17:36:55 +00:00
reimar
e64d47925a
Pass all OpenGL functions through a function pointer indirection.
...
This still needs more work, but should allow supporting e.g. GLX-OpenGL
and Win32-OpenGL with a single binary.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29981 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-08 23:32:51 +00:00
reimar
2661039ada
Very preliminary code to allow selecting the OpenGL backend at runtime.
...
Works in the currently supported cases for only Win32 and only X11,
the mixed case is not working yet though.
But applied anyway since the code is slightly less messy than the current one.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29980 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-12-08 06:42:46 +00:00
reimar
b379d40d90
100l, forgot to apply vo_w32_get_dc/vo_w32_release_dc declarations in w32_common.h
...
Should fix compilation on MinGW.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29960 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-22 14:46:43 +00:00
reimar
1bd34477aa
Print which visual glXChooseVisual chose when running in verbose mode.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29948 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-21 22:32:53 +00:00
reimar
c045f6525f
Move OpenGL-related messages that have large output from MSGL_V to MSGL_DGB2.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29947 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-21 22:30:33 +00:00
reimar
4805ea9864
Add support for Windows OpenGL rendering onto a device instead of into a window.
...
Has little use except for experimenting - on Windows 9x it could be used to
render on monitors that were not managed by Windows, but that feature was
removed in newer Windows versions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29946 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-21 22:27:40 +00:00
reimar
597c92ff7f
Support RGB48NE format in OpenGL vos (only really useful once they are modified
...
to actually use GLX/WGL visuals with more than 8 bits per component if available).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29944 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-21 18:59:52 +00:00
reimar
bd5ec5065e
Use calloc to allocate a rather large (currently 32k) array instead of
...
putting it on the stack, performance should not matter much here.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29938 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-20 23:36:16 +00:00
ptt
ab4bdb64e1
Added -name, -title and -use-filename-title options and implementation in X11 vos
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29904 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-12 09:21:53 +00:00
cehoyos
153cac185c
Do not dynamically load libvdpau.so.1, but link at compile time.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29903 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-11 22:26:38 +00:00
cehoyos
2b93a48ac8
Support VDPAU hardware accelerated decoding of MPEG-4 ASP on capable
...
hardware.
Original patch by NVIDIA corporation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29885 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 19:11:13 +00:00
cehoyos
78290719a6
100: Fix function parameters when calling create_vdp_decoder() from query_format().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29872 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 10:40:34 +00:00
cehoyos
88d80c2361
Cosmetics: Fix indentation after last commit.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29871 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 10:05:10 +00:00
cehoyos
3865c166c9
Fail in query_format() if a VDPAU decoder is not available.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29870 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-11-10 10:04:32 +00:00
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