Commit Graph

132 Commits

Author SHA1 Message Date
Uoti Urpala acf319b3ed Create a struct for X11 state
Will be used for common data between X11 VOs. The main reasons for
making it a separate struct rather than extra fields in the main VO
struct are that some field definitions need X headers and that the code
keeps basic X state such as the display connection over opening and
closing of individual VOs.
2008-04-23 13:41:07 +03:00
Uoti Urpala 1ebfddd812 Allocate vo struct with talloc
Also allocate the private vo_xv struct as a child and remove explicit
free() for it.
2008-04-23 13:41:06 +03:00
Uoti Urpala bfe569b76e Move vo_ontop to options struct
Add a 'struct vo *vo' argument to the x11_common.c functions that
access the variable so it's available as vo->opts->vo_ontop. To keep
VOs using the old API working create a global vo variable that is set
to the currently used old vo. "vo_ontop" will be #defined to
"global_vo->opts->vo_ontop", and x11_common.h will add defines like
the following when it is included by old VOs:
 #define vo_x11_ontop() vo_x11_ontop(global_vo)
so that they will call the function according to the new declaration.
2008-04-23 13:41:06 +03:00
Uoti Urpala 8ec90e5e4f Add option pointer to vo struct 2008-04-23 13:41:06 +03:00
Uoti Urpala 2bcfe1e077 Add new video driver API
Create new video driver API that has a per-instance context structure
and does not rely on keeping status in global or static variables.
Existing drivers are not yet converted to this API; instead there is a
wrapper which translates calls to them.

In the new API, an old API call vo_functions->xyz(args) is generally
replaced by vo_xyz(vo_instance, args).

The changes to keep the vesa, dxr2 and xover drivers compiling have
not been tested.
2008-04-23 13:41:04 +03:00
Uoti Urpala 3bb140d847 video_out.c: Cosmetic changes
Reformat some code, rename local variable, remove trailing whitespace.
2008-04-23 13:41:03 +03:00
diego b5fb7e831e Add a separate definition for quartz.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26245 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-15 09:49:14 +00:00
diego 5e49bb2dd2 MACOSX_COREVIDEO --> corevideo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26241 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-15 09:19:38 +00:00
diego 01b301602c Remove unnecessary #ifdef nesting.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26192 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-07 17:20:04 +00:00
diego 77eb726c3d Remove pointless #ifdefs around extern declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26039 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-20 08:51:53 +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
diego be2c2bdccb Purge looooong obsolete remnants of vo_fsdga.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24290 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-29 10:18:47 +00:00
reimar 2824218de5 add XVR-100 vo, patch by Balatoni Denes (dbalatoni interware hu)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24004 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-03 17:14:35 +00:00
ben b61b018062 v4l2 audio/video outputs for linux 2.6.22+ kernels (outputs formerly known as ivtv)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23925 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-29 19:20:55 +00:00
diego 8b51dfe0e2 Remove vo_syncfb, which was unused for 5 years.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23834 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-20 18:17:58 +00:00
reimar 510ccabfc2 10, checked for the wrong thing. Do aspect scaling only in config_video_out
if the vo responds that it supports this scheme by providing VOCTRL_UPDATE_SCREENINFO.
Fixes vo_xmga


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22342 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-25 14:35:53 +00:00
reimar baf7535196 Fix 10 in r22250, do not use screendimensions if not set
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22267 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-18 21:24:26 +00:00
reimar 187318ba5c Revert r22255 on iive's request.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22264 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-18 20:19:47 +00:00
reimar e77a7954de Avoid parts of xvmc reinit when source format does not change
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22255 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-18 09:33:45 +00:00
reimar 0fe4207dfb Move common vo initialization code to video_out.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22250 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 20:58:55 +00:00
diego c73a53ddf5 Create proper define for DFBMGA.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20216 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-14 18:00:26 +00:00
ben 8b3e340df9 new vo driver for ivtv cards tv-out through internal h/w mpeg decoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19142 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-19 22:02:09 +00:00
diego f89a7da604 Remove support for obsolete and non-free divx4/odivx libraries.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19087 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 17:14:16 +00:00
diego 49c22997d3 Remove remnants of old libmp1e support.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19026 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-12 13:03:40 +00:00
gpoirier 47e525833d Add YUY2 and back end scaling on S3 Virge chips in combination with fbdev.
Patch by Mark Sanderson < mmp AH kiora POIS ath POIS cx>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18536 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-17 20:56:49 +00:00
reynaldo 3a406e94d7 Get ride of the several if(identify) messy lines and rearangment of some of the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 07:20:34 +00:00
reynaldo 78417bf0dd Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with lots of corrections
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18235 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 04:23:53 +00:00
reimar 7f3d9de556 Fix and improve xinerama support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18117 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-16 13:38:28 +00:00
rathann e7db4ccf1a Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
iive bfd33f656b prevent xvmc from been loaded before xv, and generally before any autoprobed output
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17424 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-18 18:11:02 +00:00
diego d53fa09eac vo_tdfxfb should be preferred over vo_3dfx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17070 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-01 11:58:44 +00:00
joey 8901ee0b0a add a switch, slave command, and vo control to toggle borderless window.
includes documentation.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16969 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-10 22:25:54 +00:00
reimar 9b53e64cc5 Forgot to actually enable vo_gl on Windows...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16182 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-06 13:38:00 +00:00
gpoirier 9dd8f241ac adds some more -identify output, patch by kiriuja < mplayer DASH patches PAM en DASH directo POUM net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15790 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-20 23:07:35 +00:00
nplourde 6516ffdb7d do not define video_out_macosx if corevideo is not present
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15348 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-05-05 00:17:27 +00:00
nplourde 382d7cbca8 macosx core video module
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15292 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-29 11:41:07 +00:00
joey 9e7ca454b4 added -wid support for vo_directx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14208 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-21 20:33:51 +00:00
rfelker 16e078118e it's stupid for the default to be something both slower (for xv+dr) and visually incorrect.. use -nodouble if you want old behavior
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14067 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-11-30 07:42:08 +00:00
diego 5b0d96c6b4 Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-28 01:15:53 +00:00
ivo 241d339efd Add --enable and --disable options for vo_pnm and vo_md5sum to configure.
It's now possible to compile libvo without pnm and/or md5sum support.
Default is enable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13745 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-23 22:43:19 +00:00
alex 1fc371c73a move the file writers after vo_null so they don't get autoselected - following the same logic as in libao2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13552 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-04 19:36:12 +00:00
ivo 8cffc7853a Removal of vo_pgm and vo_md5, because they have been replaced by vo_pnm
and vo_md5sum. If one tries to use the old video output drivers, a message
is printed to direct them to the new drivers.

Manual page is updated (or is this called downdated? :-) ).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13508 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-29 01:46:30 +00:00
ivo a63a6ac5cb This patch enables the compilation and linking of vo_md5sum to libvo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13399 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-20 01:35:43 +00:00
ivo e5029c75b6 This patch enables the compilation and linking of vo_pnm (the portable
anymap video output driver) to libvo.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13398 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-20 01:31:26 +00:00
nplourde 41508ab12e add var vo_rootwin and -rootwin switch for mac osx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12913 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-07-29 14:59:48 +00:00
nplourde 84f523587e moved vo_quartz higher in the list
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12602 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-06-17 01:07:53 +00:00
nplourde d9bfb0c89e vo_quartz now default vo on OSX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12513 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-05-30 19:16:31 +00:00
faust3 a011baa532 keepaspect and nokeepaspect are now useable by all vos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12372 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-05-01 14:52:15 +00:00
alex 99b14d0fa3 libcaca video output driver by Howell Tam
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12130 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-06 00:04:48 +00:00
alex fac2bcf4f9 Quartz/MacOSX video output module by Nicolas Plourde
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12121 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-05 21:20:19 +00:00