[MPlayer-cvslog] CVS: main/libmpdemux demuxer.c, 1.178, 1.179 tv.c, 1.68, 1.69 tvi_bsdbt848.c, 1.14, 1.15 tvi_v4l.c, 1.72, 1.73 tvi_v4l2.c, 1.18, 1.19
Alex Beregszaszi
syncmail at mplayerhq.hu
Mon Dec 27 18:30:19 CET 2004
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs ad_dvdpcm.c, 1.8, 1.9 ad_hwac3.c, 1.11, 1.12 ad_internal.h, 1.1, 1.2 ad_pcm.c, 1.15, 1.16 ad_ra1428.c, 1.2, 1.3 ad_sample.c, 1.3, 1.4 dec_audio.c, 1.33, 1.34
- Next message: [MPlayer-cvslog] CVS: main/libao2 Makefile, 1.31, 1.32 ao_alsa.c, 1.10, 1.11 ao_alsa5.c, 1.20, 1.21 ao_arts.c, 1.9, 1.10 ao_dsound.c, 1.5, 1.6 ao_dxr2.c, 1.8, 1.9 ao_esd.c, 1.9, 1.10 ao_jack.c, 1.5, 1.6 ao_macosx.c, 1.6, 1.7 ao_mpegpes.c, 1.21, 1.22 ao_nas.c, 1.16, 1.17 ao_null.c, 1.12, 1.13 ao_oss.c, 1.45, 1.46 ao_pcm.c, 1.22, 1.23 ao_plugin.c, 1.26, 1.27 ao_polyp.c, 1.3, 1.4 ao_sdl.c, 1.38, 1.39 ao_win32.c, 1.18, 1.19 audio_out.c, 1.45, 1.46 audio_plugin.h, 1.13, 1.14 pl_delay.c, 1.8, 1.9 pl_eq.c, 1.8, 1.9 pl_extrastereo.c, 1.5, 1.6 pl_format.c, 1.8, 1.9 pl_resample.c, 1.13, 1.14 pl_surround.c, 1.14, 1.15 pl_volnorm.c, 1.7, 1.8 pl_volume.c, 1.4, 1.5 afmt.h, 1.9, NONE afmt.c, 1.8, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Alex Beregszaszi
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv24154/libmpdemux
Modified Files:
demuxer.c tv.c tvi_bsdbt848.c tvi_v4l.c tvi_v4l2.c
Log Message:
removing AFMT_ dependancy
Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -r1.178 -r1.179
--- demuxer.c 21 Dec 2004 12:25:59 -0000 1.178
+++ demuxer.c 27 Dec 2004 17:30:14 -0000 1.179
@@ -18,7 +18,7 @@
#include "stheader.h"
#include "mf.h"
-#include "../libao2/afmt.h"
+#include "../libaf/af_format.h"
#include "../libvo/fastmemcpy.h"
// Should be set to 1 by demux module if ids it passes to new_sh_audio and
@@ -91,7 +91,7 @@
sh = demuxer->a_streams[id];
// set some defaults
sh->samplesize=2;
- sh->sample_format=AFMT_S16_NE;
+ sh->sample_format=AF_FORMAT_S16_NE;
sh->audio_out_minsize=8192;/* default size, maybe not enough for Win32/ACM*/
if (identify && !demux_aid_vid_mismatch)
mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_AUDIO_ID=%d\n", id);
Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- tv.c 19 Nov 2004 13:04:24 -0000 1.68
+++ tv.c 27 Dec 2004 17:30:14 -0000 1.69
@@ -29,8 +29,7 @@
#include "demuxer.h"
#include "stheader.h"
-#include "../libao2/afmt.h"
-#include "../libao2/audio_out.h"
+#include "../libaf/af_format.h"
#include "../libvo/img_format.h"
#include "../libvo/fastmemcpy.h"
@@ -516,6 +515,7 @@
{
int audio_format;
int sh_audio_format;
+ char buf[128];
/* yeah, audio is present */
@@ -527,24 +527,24 @@
switch(audio_format)
{
- case AFMT_U8:
- case AFMT_S8:
- case AFMT_U16_LE:
- case AFMT_U16_BE:
- case AFMT_S16_LE:
- case AFMT_S16_BE:
- case AFMT_S32_LE:
- case AFMT_S32_BE:
+ case AF_FORMAT_U8:
+ case AF_FORMAT_S8:
+ case AF_FORMAT_U16_LE:
+ case AF_FORMAT_U16_BE:
+ case AF_FORMAT_S16_LE:
+ case AF_FORMAT_S16_BE:
+ case AF_FORMAT_S32_LE:
+ case AF_FORMAT_S32_BE:
sh_audio_format = 0x1; /* PCM */
break;
- case AFMT_IMA_ADPCM:
- case AFMT_MU_LAW:
- case AFMT_A_LAW:
- case AFMT_MPEG:
- case AFMT_AC3:
+ case AF_FORMAT_IMA_ADPCM:
+ case AF_FORMAT_MU_LAW:
+ case AF_FORMAT_A_LAW:
+ case AF_FORMAT_MPEG2:
+ case AF_FORMAT_AC3:
default:
mp_msg(MSGT_TV, MSGL_ERR, "Audio type '%s (%x)' unsupported!\n",
- audio_out_format_name(audio_format), audio_format);
+ af_fmt2str(audio_format, &buf, 128), audio_format);
goto no_audio;
}
Index: tvi_bsdbt848.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_bsdbt848.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- tvi_bsdbt848.c 18 Jun 2004 13:01:18 -0000 1.14
+++ tvi_bsdbt848.c 27 Dec 2004 17:30:14 -0000 1.15
@@ -61,6 +61,7 @@
#endif
#endif
+#include "../libaf/af_format.h"
#include "../libvo/img_format.h"
#include "tv.h"
@@ -246,7 +247,7 @@
case TVI_CONTROL_AUD_GET_FORMAT:
{
- (int)*(void **)arg = AFMT_S16_LE;
+ (int)*(void **)arg = AF_FORMAT_S16_LE;
return(TVI_CONTROL_TRUE);
}
case TVI_CONTROL_AUD_GET_CHANNELS:
Index: tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- tvi_v4l.c 1 May 2004 18:15:29 -0000 1.72
+++ tvi_v4l.c 27 Dec 2004 17:30:14 -0000 1.73
@@ -41,7 +41,7 @@
#endif
#include "mp_msg.h"
-#include "../libao2/afmt.h"
+#include "../libaf/af_format.h"
#include "../libvo/img_format.h"
#include "../libvo/fastmemcpy.h"
#include "../libvo/videodev_mjpeg.h"
@@ -1285,7 +1285,7 @@
/* ========== AUDIO controls =========== */
case TVI_CONTROL_AUD_GET_FORMAT:
{
- *(int *)arg = AFMT_S16_LE;
+ *(int *)arg = AF_FORMAT_S16_LE;
return(TVI_CONTROL_TRUE);
}
case TVI_CONTROL_AUD_GET_CHANNELS:
Index: tvi_v4l2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l2.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- tvi_v4l2.c 22 Dec 2004 13:19:30 -0000 1.18
+++ tvi_v4l2.c 27 Dec 2004 17:30:15 -0000 1.19
@@ -43,7 +43,7 @@
#include "videodev2.h"
#include "../mp_msg.h"
#include "../libvo/img_format.h"
-#include "../libao2/afmt.h"
+#include "../libaf/af_format.h"
#include "tv.h"
#include "audio_in.h"
@@ -731,7 +731,7 @@
}
return TVI_CONTROL_TRUE;
case TVI_CONTROL_AUD_GET_FORMAT:
- *(int *)arg = AFMT_S16_LE;
+ *(int *)arg = AF_FORMAT_S16_LE;
mp_msg(MSGT_TV, MSGL_V, "%s: get audio format: %d\n",
info.short_name, *(int *)arg);
return TVI_CONTROL_TRUE;
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs ad_dvdpcm.c, 1.8, 1.9 ad_hwac3.c, 1.11, 1.12 ad_internal.h, 1.1, 1.2 ad_pcm.c, 1.15, 1.16 ad_ra1428.c, 1.2, 1.3 ad_sample.c, 1.3, 1.4 dec_audio.c, 1.33, 1.34
- Next message: [MPlayer-cvslog] CVS: main/libao2 Makefile, 1.31, 1.32 ao_alsa.c, 1.10, 1.11 ao_alsa5.c, 1.20, 1.21 ao_arts.c, 1.9, 1.10 ao_dsound.c, 1.5, 1.6 ao_dxr2.c, 1.8, 1.9 ao_esd.c, 1.9, 1.10 ao_jack.c, 1.5, 1.6 ao_macosx.c, 1.6, 1.7 ao_mpegpes.c, 1.21, 1.22 ao_nas.c, 1.16, 1.17 ao_null.c, 1.12, 1.13 ao_oss.c, 1.45, 1.46 ao_pcm.c, 1.22, 1.23 ao_plugin.c, 1.26, 1.27 ao_polyp.c, 1.3, 1.4 ao_sdl.c, 1.38, 1.39 ao_win32.c, 1.18, 1.19 audio_out.c, 1.45, 1.46 audio_plugin.h, 1.13, 1.14 pl_delay.c, 1.8, 1.9 pl_eq.c, 1.8, 1.9 pl_extrastereo.c, 1.5, 1.6 pl_format.c, 1.8, 1.9 pl_resample.c, 1.13, 1.14 pl_surround.c, 1.14, 1.15 pl_volnorm.c, 1.7, 1.8 pl_volume.c, 1.4, 1.5 afmt.h, 1.9, NONE afmt.c, 1.8, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list