summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cfg-mplayer.h4
-rw-r--r--libvo/video_out.c11
-rw-r--r--libvo/video_out.h9
-rw-r--r--libvo/x11_common.c6
-rw-r--r--mplayer.c16
5 files changed, 30 insertions, 16 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index f1e5501d5f..99fbb4b4aa 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -31,7 +31,7 @@ struct config conf[]={
{"bg", &play_in_bg, CONF_TYPE_FLAG, 0, 0, 1},
{"nobg", &play_in_bg, CONF_TYPE_FLAG, 0, 1, 0},
{"sb", &seek_to_byte, CONF_TYPE_INT, CONF_MIN, 0, 0},
- {"ss", &seek_to_sec, CONF_TYPE_INT, CONF_MIN, 0, 0},
+// {"ss", &seek_to_sec, CONF_TYPE_INT, CONF_MIN, 0, 0},
{"sound", &has_audio, CONF_TYPE_FLAG, 0, 0, 1},
{"nosound", &has_audio, CONF_TYPE_FLAG, 0, 1, 0},
{"abs", &audio_buffer_size, CONF_TYPE_INT, CONF_MIN, 0, 0},
@@ -65,7 +65,7 @@ struct config conf[]={
{"zoom", &softzoom, CONF_TYPE_FLAG, 0, 0, 1},
{"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0},
- {"bpp", &user_bpp, CONF_TYPE_INT, CONF_RANGE, 0, 32},
+ {"bpp", &vo_dbpp, CONF_TYPE_INT, CONF_RANGE, 0, 32},
{"idx", &no_index, CONF_TYPE_FLAG, 0, 1, 0},
{"noidx", &no_index, CONF_TYPE_FLAG, 0, 0, 1},
diff --git a/libvo/video_out.c b/libvo/video_out.c
index ec317e00e8..05898ea7ba 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -31,6 +31,17 @@
#include "../linux/shmem.h"
+// currect resolution/bpp on screen: (should be autodetected by vo_init())
+int vo_depthonscreen=0;
+int vo_screenwidth=0;
+int vo_screenheight=0;
+
+// requested resolution/bpp: (-x -y -bpp options)
+int vo_dwidth=0;
+int vo_dheight=0;
+int vo_dbpp=0;
+
+
//
// Externally visible list of all vo drivers
//
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 4dcb19a570..0eb6cbacee 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -105,4 +105,13 @@ typedef struct vo_functions_s
// NULL terminated array of all drivers
extern vo_functions_t* video_out_drivers[];
+// currect resolution/bpp on screen: (should be autodetected by vo_init())
+extern int vo_depthonscreen;
+extern int vo_screenwidth;
+extern int vo_screenheight;
+
+// requested resolution/bpp: (-x -y -bpp options)
+extern int vo_dwidth;
+extern int vo_dheight;
+extern int vo_dbpp;
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 9402e97e19..b3e10a40be 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -15,12 +15,6 @@
#include <X11/Xutil.h>
#include <X11/Xatom.h>
-int vo_depthonscreen=0;
-int vo_screenwidth=0;
-int vo_screenheight=0;
-int vo_dwidth=0;
-int vo_dheight=0;
-
static int dpms_disabled=0;
static int timeout_save=0;
diff --git a/mplayer.c b/mplayer.c
index 94a2bec9e7..fc87cca68a 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -433,7 +433,7 @@ float font_factor=0.75;
char *sub_name=NULL;
float sub_delay=0;
float sub_fps=0;
-int user_bpp=0;
+//int user_bpp=0;
#include "cfg-mplayer.h"
printf("%s",banner_text);
@@ -858,17 +858,17 @@ has_video=sh_video->codec->driver;
printf("Found video codec: [%s] drv:%d (%s)\n",sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
-if(user_bpp)printf("Trying user defined depth of %dbpp\n", user_bpp);
+//if(user_bpp)printf("Trying user defined depth of %dbpp\n", user_bpp);
for(i=0;i<CODECS_MAX_OUTFMT;i++){
out_fmt=sh_video->codec->outfmt[i];
- if(user_bpp){
- if( ((out_fmt & IMGFMT_BGR_MASK) == IMGFMT_BGR) && ((out_fmt & 0xff) == user_bpp) || (out_fmt & IMGFMT_BGR_MASK) != IMGFMT_BGR){
- if(video_out->query_format(out_fmt)) break;
- }
- }else{
+// if(user_bpp){
+// if( ((out_fmt & IMGFMT_BGR_MASK) == IMGFMT_BGR) && ((out_fmt & 0xff) == user_bpp) || (out_fmt & IMGFMT_BGR_MASK) != IMGFMT_BGR){
+// if(video_out->query_format(out_fmt)) break;
+// }
+// }else{
if(video_out->query_format(out_fmt)) break;
- }
+// }
}
if(i>=CODECS_MAX_OUTFMT){
printf("Sorry, selected video_out device is incompatible with this codec.\n");