Skip to content

Commit 240550b

Browse files
author
Uoti Urpala
committed
Merge svn changes up to r30848
2 parents 9895f23 + fbb74e1 commit 240550b

23 files changed

+457
-553
lines changed

DOCS/man/en/mplayer.1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,13 +3114,16 @@ Fixes fullscreen switching on OpenBox 1.x.
31143114
.PD 1
31153115
.
31163116
.TP
3117-
.B \-geometry x[%][:y[%]] or [WxH][+x+y]
3117+
.B \-geometry x[%][:y[%]] or [WxH][+-x+-y]
31183118
Adjust where the output is on the screen initially.
31193119
The x and y specifications are in pixels measured from the top-left of the
31203120
screen to the top-left of the image being displayed, however if a percentage
31213121
sign is given after the argument it turns the value into a percentage of the
31223122
screen size in that direction.
3123-
It also supports the standard X11 \-geometry option format.
3123+
It also supports the standard X11 \-geometry option format, in which e.g.
3124+
+10-50 means "place 10 pixels from the left border and 50 pixels from the lower
3125+
border" and "--20+-10" means "place 20 pixels beyond the right and 10 pixels
3126+
beyond the top border".
31243127
If an external window is specified using the \-wid option, then the x and
31253128
y coordinates are relative to the top-left corner of the window rather
31263129
than the screen.

DOCS/man/zh_CN/mplayer.1

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.\" sync with en/mplayer.1 rev. 30677
1+
.\" sync with en/mplayer.1 rev. 30822
22
.\" Encoding: UTF-8
33
.\" Reminder of hard terms which need better/final solution later:
44
.\" /capture; playtree in parent list; colorkey; retrace; desync; downmix;
@@ -2676,11 +2676,11 @@ OS/2 KAI 音频输出驱动
26762676
.PD 0
26772677
.RSs
26782678
.IPs uniaud
2679-
强制使用 UNIAUD 模式
2679+
强制使用 UNIAUD 模式
26802680
.IPs dart
2681-
强制使用 DART 模式
2681+
强制使用 DART 模式
26822682
.IPs (no)share
2683-
以共享或独占模式打开音频
2683+
以共享或独占模式打开音频
26842684
.IPs bufsize=<size>
26852685
设置缓冲大小为 <size>,以采样数为单位(默认值:2048)。
26862686
.RE
@@ -2946,13 +2946,14 @@ VESA 帧缓冲不支持改变模式。
29462946
.PD 1
29472947
.
29482948
.TP
2949-
.B \-geometry x[%][:y[%]] or [WxH][+x+y]
2949+
.B \-geometry x[%][:y[%]] [WxH][+-x+-y]
29502950
调整屏幕输出的初始位置。
29512951
x 和 y 代表从屏幕左上角到显示图像左上角的距离(以像素为单位)。
29522952
不过如果在参数值后有百分号记号, 参数值就变为该方向上的屏幕尺寸的百分数。
2953-
它也支持标准 X11 的 \-geometry 选项格式。
2954-
如果使用 \-wid 选项指定了外部窗口,
2955-
那么 x 和 y 坐标是相对于窗口而不是屏幕的左上角。
2953+
它也支持标准 X11 的 \-geometry 选项格式。在这种方式下,例如,‘+10-50’表示“放在距左
2954+
边界 10 个像素,距下边界 50 个像素的地方”,而‘--20+-10’表示“放在越出右边界 20 个像
2955+
素,越出上边界 10 个像素的地方。”
2956+
如果使用 \-wid 选项指定了外部窗口,那么 x 和 y 坐标是相对于窗口而不是屏幕的左上角。
29562957
坐标是相对于 \-xineramascreen 选项给出的屏幕,该屏幕用于完全支持 \-xineramascreen 的
29572958
视频输出的驱动(direct3d、gl、gl2、vdpau、x11、xv、xvmc、corevideo)。
29582959
The coordinates are relative to the screen given with \-xineramascreen for
@@ -5427,6 +5428,10 @@ Completely empties the filter list.
54275428
计数值,用以决定多少帧后 cropdetect 将重置先前侦测到的最大视频区域,并重
54285429
新侦测当前的最优切割区域。该选项在电视台台标影响了视频区域时可能有用。0
54295430
表示从不重置而是返回播放过程中遇到的最大区域。(默认值:0)。
5431+
计数值,用以决定多少帧后 cropdetect 将重置先前侦测到的最大视频区域,并
5432+
重新开始侦测当前的最优切割区域(默认值:0)。
5433+
该选项在频道台标破坏了视频区域的情况下很有效。
5434+
0 代表从不重置并返回整个播放过程中遇到的最大视频区域。
54305435
.RE
54315436
.PD 1
54325437
.

DOCS/tech/mirrors/update_mplayer_rsync

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/bin/sh
22
# MPlayer mirroring script
33
# $Id$
44

@@ -10,7 +10,7 @@ MAILADR=<report_mail_to_adr>
1010
#TMPDIR = /tmp
1111
#export TMPDIR
1212

13-
TMPFILE=`mktemp -t mplayer.XXXXXXXXXXX`
13+
TMPFILE=$(mktemp -t mplayer.XXXXXXXXXXX)
1414

1515
# Check to see if another sync is in progress
1616
if lockfile -! -l 43200 -r 0 "$LOCK"; then
@@ -30,9 +30,8 @@ rsync -pxlrHtWv --delete --delete-after --exclude '/benchmark' \
3030
--exclude '/old_stuff' --exclude '/tests' rsync.mplayerhq.hu::ftp/ \
3131
MPlayer >> $TMPFILE 2>&1
3232

33-
x=`wc -l $TMPFILE | awk '{print $1}'`
34-
if [ "$x" -ne "10" ]
35-
then
33+
x=$(wc -l $TMPFILE | awk '{print $1}')
34+
if [ "$x" -ne "10" ]; then
3635
mailx -s "MPlayer mirror" $MAILADR < $TMPFILE
3736
fi
3837
rm -f $TMPFILE

DOCS/tech/nut.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

DOCS/tech/oggless-xiph-codecs.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

DOCS/tech/svn-howto.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ http://svnbook.org/
2121

2222
For more information about the Subversion project, visit
2323

24-
http://subversion.tigris.org/
24+
http://subversion.apache.org/
2525

2626
Consult these resources whenever you have problems, they are quite exhaustive.
2727

28+
You do not need a special checkout that works through ssh or similar in order
29+
to be able to commit changes. All you need is the username and password pair
30+
that you received from the MPlayer Subversion server admin.
31+
2832
What follows now is a basic introduction to Subversion and some MPlayer-specific
2933
guidelines. Read it at least once, if you are granted commit privileges to the
3034
MPlayer project you are expected to be familiar with these rules.

DOCS/xml/en/video.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,10 +1754,6 @@ If you want to do software transcoding you should have at least a 1GHz CPU.
17541754
<para>
17551755
Configure should detect your DVB card. If it did not, force detection with
17561756
<screen>./configure --enable-dvb</screen>
1757-
If you have ost headers at a non-standard path, set the path with
1758-
<screen>
1759-
./configure --with-extraincdir=<replaceable>DVB source directory</replaceable>/ost/include
1760-
</screen>
17611757
Then compile and install as usual.</para>
17621758

17631759
<formalpara><title>USAGE</title>

configure

Lines changed: 21 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ Video output:
353353
--enable-ivtv enable IVTV TV-Out video output [autodetect]
354354
--enable-v4l2 enable V4L2 Decoder audio/video output [autodetect]
355355
--enable-dvb enable DVB video output [autodetect]
356-
--enable-dvbhead enable DVB video output (HEAD version) [autodetect]
357356
--enable-mga enable mga_vid video output [autodetect]
358357
--enable-xmga enable mga_vid X11 video output [autodetect]
359358
--enable-xv enable Xv video output [autodetect]
@@ -551,7 +550,6 @@ _svga=auto
551550
_vesa=auto
552551
_fbdev=auto
553552
_dvb=auto
554-
_dvbhead=auto
555553
_dxr2=auto
556554
_dxr3=auto
557555
_ivtv=auto
@@ -921,8 +919,6 @@ for ac_option do
921919
--disable-fbdev) _fbdev=no ;;
922920
--enable-dvb) _dvb=yes ;;
923921
--disable-dvb) _dvb=no ;;
924-
--enable-dvbhead) _dvbhead=yes ;;
925-
--disable-dvbhead) _dvbhead=no ;;
926922
--enable-dxr2) _dxr2=yes ;;
927923
--disable-dxr2) _dxr2=no ;;
928924
--enable-dxr3) _dxr3=yes ;;
@@ -3827,6 +3823,17 @@ fi
38273823
echores "$_setenv"
38283824

38293825

3826+
echocheck "setmode()"
3827+
_setmode=no
3828+
def_setmode='#define HAVE_SETMODE 0'
3829+
cat > $TMPC << EOF
3830+
#include <io.h>
3831+
int main(void) { setmode(0, 0); return 0; }
3832+
EOF
3833+
cc_check && _setmode=yes && def_setmode='#define HAVE_SETMODE 1'
3834+
echores "$_setmode"
3835+
3836+
38303837
if sunos; then
38313838
echocheck "sysi86()"
38323839
cat > $TMPC << EOF
@@ -4707,72 +4714,34 @@ cat >$TMPC << EOF
47074714
#include <stdio.h>
47084715
#include <time.h>
47094716
#include <unistd.h>
4710-
#include <ost/dmx.h>
4711-
#include <ost/frontend.h>
4712-
#include <ost/sec.h>
4713-
#include <ost/video.h>
4714-
#include <ost/audio.h>
4715-
int main(void) {return 0;}
4716-
EOF
4717-
for _inc_tmp in "" "-I/usr/src/DVB/ost/include" ; do
4718-
cc_check $_inc_tmp && _dvb=yes && \
4719-
extra_cflags="$extra_cflags $_inc_tmp" && break
4720-
done
4721-
fi
4722-
echores "$_dvb"
4723-
if test "$_dvb" = yes ; then
4724-
def_dvb='#define CONFIG_DVB 1'
4725-
def_dvbin='#define CONFIG_DVBIN 1'
4726-
_aomodules="mpegpes(dvb) $_aomodules"
4727-
_vomodules="mpegpes(dvb) $_vomodules"
4728-
fi
4729-
4730-
echocheck "DVB HEAD"
4731-
if test "$_dvbhead" = auto ; then
4732-
_dvbhead=no
4733-
4734-
cat >$TMPC << EOF
4735-
#include <poll.h>
4736-
#include <sys/ioctl.h>
4737-
#include <stdio.h>
4738-
#include <time.h>
4739-
#include <unistd.h>
47404717
#include <linux/dvb/dmx.h>
47414718
#include <linux/dvb/frontend.h>
47424719
#include <linux/dvb/video.h>
47434720
#include <linux/dvb/audio.h>
47444721
int main(void) {return 0;}
47454722
EOF
47464723
for _inc_tmp in "" "-I/usr/src/DVB/include" ; do
4747-
cc_check $_inc_tmp && _dvbhead=yes && \
4724+
cc_check $_inc_tmp && _dvb=yes && \
47484725
extra_cflags="$extra_cflags $_inc_tmp" && break
47494726
done
47504727
fi
4751-
echores "$_dvbhead"
4752-
if test "$_dvbhead" = yes ; then
4728+
echores "$_dvb"
4729+
if test "$_dvb" = yes ; then
4730+
_dvbin=yes
4731+
_inputmodules="dvb $_inputmodules"
47534732
def_dvb='#define CONFIG_DVB 1'
4754-
def_dvb_head='#define CONFIG_DVB_HEAD 1'
47554733
def_dvbin='#define CONFIG_DVBIN 1'
47564734
_aomodules="mpegpes(dvb) $_aomodules"
47574735
_vomodules="mpegpes(dvb) $_vomodules"
4758-
fi
4759-
4760-
if test "$_dvbhead" = no && test "$_dvb" = no ; then
4736+
else
4737+
_dvbin=no
4738+
_noinputmodules="dvb $_noinputmodules"
47614739
def_dvb='#undef CONFIG_DVB'
4762-
def_dvb_head='#undef CONFIG_DVB_HEAD'
47634740
def_dvbin='#undef CONFIG_DVBIN '
47644741
_aomodules="mpegpes(file) $_aomodules"
47654742
_vomodules="mpegpes(file) $_vomodules"
47664743
fi
47674744

4768-
if test "$_dvb" = yes || test "$_dvbhead" = yes ; then
4769-
_dvbin=yes
4770-
_inputmodules="dvb $_inputmodules"
4771-
else
4772-
_dvbin=no
4773-
_noinputmodules="dvb $_noinputmodules"
4774-
fi
4775-
47764745

47774746
if darwin; then
47784747

@@ -5884,7 +5853,7 @@ fi
58845853
echocheck "VCD support"
58855854
if test "$_vcd" = auto; then
58865855
_vcd=no
5887-
if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos; then
5856+
if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || os2; then
58885857
_vcd=yes
58895858
elif mingw32; then
58905859
cat > $TMPC << EOF
@@ -8241,6 +8210,7 @@ $def_nanosleep
82418210
$def_posix_select
82428211
$def_select
82438212
$def_setenv
8213+
$def_setmode
82448214
$def_shm
82458215
$def_strsep
82468216
$def_swab
@@ -8445,7 +8415,6 @@ $def_directfb
84458415
$def_directfb_version
84468416
$def_directx
84478417
$def_dvb
8448-
$def_dvb_head
84498418
$def_dvbin
84508419
$def_dxr2
84518420
$def_dxr3

libao2/ao_mpegpes.c

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030

3131
#include "config.h"
3232

33-
#ifdef CONFIG_DVB
34-
#include <poll.h>
35-
#include <sys/ioctl.h>
36-
#endif
37-
3833
#include "audio_out.h"
3934
#include "audio_out_internal.h"
4035

@@ -46,14 +41,11 @@
4641
#include "help_mp.h"
4742

4843
#ifdef CONFIG_DVB
49-
#ifndef CONFIG_DVB_HEAD
50-
#include <ost/audio.h>
51-
audioMixer_t dvb_mixer={255,255};
52-
#else
44+
#include <poll.h>
45+
#include <sys/ioctl.h>
5346
#include <linux/dvb/audio.h>
5447
audio_mixer_t dvb_mixer={255,255};
5548
#endif
56-
#endif
5749

5850
#define true 1
5951
#define false 0
@@ -116,13 +108,8 @@ static int freq_id=0;
116108
static int init_device(int card)
117109
{
118110
char ao_file[30];
119-
#ifndef CONFIG_DVB_HEAD
120-
mp_msg(MSGT_VO,MSGL_INFO, "Opening /dev/ost/audio\n");
121-
sprintf(ao_file, "/dev/ost/audio");
122-
#else
123111
mp_msg(MSGT_VO,MSGL_INFO, "Opening /dev/dvb/adapter%d/audio0\n", card);
124112
sprintf(ao_file, "/dev/dvb/adapter%d/audio0", card);
125-
#endif
126113
if((vo_mpegpes_fd2 = open(ao_file,O_RDWR|O_NONBLOCK)) < 0)
127114
{
128115
mp_msg(MSGT_VO, MSGL_ERR, "DVB AUDIO DEVICE: %s\n", strerror(errno));

libmpcodecs/vd_dmo.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
5555

5656
// init driver
5757
static int init(sh_video_t *sh){
58-
unsigned int out_fmt=sh->codec->outfmt[sh->outfmtidx];
58+
unsigned int out_fmt=sh->codec->outfmt[0];
5959
struct context *ctx;
6060
void *decoder;
6161
if(!(decoder=DMO_VideoDecoder_Open(sh->codec->dll,&sh->codec->guid, sh->bih, 0, 0))){
@@ -64,6 +64,8 @@ static int init(sh_video_t *sh){
6464
return 0;
6565
}
6666
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0;
67+
// mpcodecs_config_vo can change the format
68+
out_fmt=sh->codec->outfmt[sh->outfmtidx];
6769
sh->context = ctx = calloc(1, sizeof(*ctx));
6870
ctx->decoder = decoder;
6971
switch(out_fmt){

libmpcodecs/vd_dshow.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
6666

6767
// init driver
6868
static int init(sh_video_t *sh){
69-
unsigned int out_fmt=sh->codec->outfmt[sh->outfmtidx];
69+
unsigned int out_fmt=sh->codec->outfmt[0];
7070

7171
/* Hack for VSSH codec: new dll can't decode old files
7272
* In my samples old files have no extradata, so use that info
@@ -81,6 +81,8 @@ static int init(sh_video_t *sh){
8181
return 0;
8282
}
8383
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0;
84+
// mpcodecs_config_vo can change the format
85+
out_fmt=sh->codec->outfmt[sh->outfmtidx];
8486
switch(out_fmt){
8587
case IMGFMT_YUY2:
8688
case IMGFMT_UYVY:

0 commit comments

Comments
 (0)