1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

Declare externally used variables from vd.c as extern in vd.h.

This saves declaring them as extern all over the place.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30695 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-02-22 09:51:44 +00:00
parent 22e310b9ae
commit 36a14ac50c
14 changed files with 18 additions and 31 deletions

View File

@ -20,7 +20,7 @@
#define MPLAYER_CFG_COMMON_OPTS_H
#include "config.h"
#include "libmpcodecs/vd.h"
#include "osdep/priority.h"
// ------------------------- common options --------------------

View File

@ -28,11 +28,6 @@ extern char *mp_msg_charset;
extern int mp_msg_color;
extern int mp_msg_module;
// codec/filter opts: (defined at libmpcodecs/vd.c)
extern float screen_size_xy;
extern int softzoom;
extern int flip;
/* defined in codec-cfg.c */
extern char * codecs_file;

View File

@ -24,6 +24,7 @@
*/
#include "cfg-common.h"
#include "libmpcodecs/vd.h"
#include "libvo/vo_zr.h"
extern int key_fifo_size;
@ -39,11 +40,6 @@ extern float vo_panscanrange;
/* only used at startup (setting these values from configfile) */
extern char *vo_geometry;
extern int opt_screen_size_x;
extern int opt_screen_size_y;
extern int fullscreen;
extern int vidmode;
extern char *ao_outputfilename;
extern int ao_pcm_waveheader;

View File

@ -28,6 +28,7 @@
#include "m_config.h"
#include "m_option.h"
#include "get_path.h"
#include "libmpcodecs/vd.h"
#include "libvo/sub.h"
#include "libvo/video_out.h"
#include "stream/stream.h"

View File

@ -39,6 +39,7 @@
#include "get_path.h"
#include "mp_core.h"
#include "mplayer.h"
#include "libmpcodecs/vd.h"
#include "libvo/x11_common.h"
#include "libvo/video_out.h"
#include "libvo/font_load.h"

View File

@ -31,8 +31,6 @@ extern int mplMiddleMenu;
extern char * dvd_device;
extern char * cdrom_device;
extern int fullscreen;
extern int flip;
void mplInit( void * disp );

View File

@ -26,6 +26,7 @@
#include "config.h"
#include "help_mp.h"
#include "libmpcodecs/vd.h"
#include "libvo/x11_common.h"
#include "libvo/video_out.h"
#include "input/input.h"

View File

@ -38,8 +38,15 @@ typedef struct vd_functions_s
// NULL terminated array of all drivers
extern const vd_functions_t * const mpcodecs_vd_drivers[];
extern int flip;
extern int fullscreen;
extern int opt_screen_size_x;
extern int opt_screen_size_y;
extern int softzoom;
extern int vd_use_slices;
extern int vidmode;
extern float movie_aspect;
extern float screen_size_xy;
#define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */
#define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */

View File

@ -34,6 +34,7 @@
#include "img_format.h"
#include "mp_image.h"
#include "vd.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"
@ -67,9 +68,6 @@ static const struct vf_priv_s {
unsigned char* dirty_rows;
} vf_priv_dflt;
extern int opt_screen_size_x;
extern int opt_screen_size_y;
extern ass_track_t* ass_track;
extern float sub_delay;
extern int sub_visibility;

View File

@ -26,6 +26,7 @@
#include "img_format.h"
#include "mp_image.h"
#include "vd.h"
#include "vf.h"
#include "m_option.h"
@ -39,9 +40,6 @@ static const struct vf_priv_s {
-1,-1
};
extern int opt_screen_size_x;
extern int opt_screen_size_y;
//===========================================================================//
static int config(struct vf_instance *vf,

View File

@ -28,6 +28,7 @@
#include "img_format.h"
#include "mp_image.h"
#include "vd.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"
@ -70,9 +71,6 @@ static struct vf_priv_s {
0
};
extern int opt_screen_size_x;
extern int opt_screen_size_y;
//===========================================================================//
#ifdef OSD_SUPPORT

View File

@ -27,6 +27,7 @@
#include "img_format.h"
#include "mp_image.h"
#include "vd.h"
#include "vf.h"
#include "cmmx.h"
@ -97,9 +98,6 @@ struct vf_priv_s {
static const struct frame_stats ppzs = {PPZ,PPZ,PPZ,PPZ,PPZ,PPZ,PPZ,0,0,9999};
static const struct frame_stats pprs = {PPR,PPR,PPR,PPR,PPR,PPR,PPR,0,0,9999};
extern int opt_screen_size_x;
extern int opt_screen_size_y;
#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif

View File

@ -27,6 +27,7 @@
#include "img_format.h"
#include "mp_image.h"
#include "vd.h"
#include "vf.h"
#include "fmt-conversion.h"
#include "mpbswap.h"
@ -58,10 +59,6 @@ static struct vf_priv_s {
NULL
};
extern int opt_screen_size_x;
extern int opt_screen_size_y;
extern float screen_size_xy;
//===========================================================================//
void sws_getFlagsAndFilterFromCmdLine(int *flags, SwsFilter **srcFilterParam, SwsFilter **dstFilterParam);

View File

@ -31,6 +31,7 @@
#include "video_out_internal.h"
#include "fastmemcpy.h"
#include "input/input.h"
#include "libmpcodecs/vd.h"
#include "osdep/keycodes.h"
#include "input/mouse.h"
#include "mp_msg.h"
@ -90,8 +91,6 @@ static float window_aspect;
static BOOL (WINAPI* myGetMonitorInfo)(HMONITOR, LPMONITORINFO) = NULL;
static RECT last_rect = {0xDEADC0DE, 0xDEADC0DE, 0xDEADC0DE, 0xDEADC0DE};
extern int vidmode;
/*****************************************************************************
* DirectDraw GUIDs.
* Defining them here allows us to get rid of the dxguid library during