[Mplayer-cvslog] CVS: main aviheader.c,1.22,1.23 dec_video.c,1.23,1.24 demux_avi.c,1.18,1.19 demuxer.c,1.19,1.20 mplayer.c,1.214,1.215 demuxer.h,1.12,1.13
Arpi of Ize
arpi at mplayer.dev.hu
Sun Aug 12 17:46:12 CEST 2001
- Previous message: [Mplayer-cvslog] CVS: main configure,1.136,1.137
- Next message: [Mplayer-cvslog] CVS: main mplayer.c,1.215,1.216 demux_mpg.c,1.26,1.27 demuxer.c,1.20,1.21 Makefile,1.61,1.62
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv867
Modified Files:
aviheader.c dec_video.c demux_avi.c demuxer.c mplayer.c
demuxer.h
Log Message:
cleanup...
Index: aviheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/aviheader.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- aviheader.c 12 Aug 2001 02:00:14 -0000 1.22
+++ aviheader.c 12 Aug 2001 15:46:09 -0000 1.23
@@ -28,6 +28,7 @@
extern void print_avih_flags(MainAVIHeader *h);
extern void print_strh(AVIStreamHeader *h);
extern void print_wave_header(WAVEFORMATEX *h);
+extern void print_video_header(BITMAPINFOHEADER *h);
extern void print_index(AVIINDEXENTRY *idx,int idx_size);
void read_avi_header(demuxer_t *demuxer,int index_mode){
Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- dec_video.c 12 Aug 2001 01:56:30 -0000 1.23
+++ dec_video.c 12 Aug 2001 15:46:09 -0000 1.24
@@ -14,6 +14,7 @@
extern int frameratecode2framerate[16];
#include "linux/timer.h"
+#include "linux/shmem.h"
#include "stream.h"
#include "demuxer.h"
Index: demux_avi.c
===================================================================
RCS file: /cvsroot/mplayer/main/demux_avi.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- demux_avi.c 11 Aug 2001 20:37:33 -0000 1.18
+++ demux_avi.c 12 Aug 2001 15:46:09 -0000 1.19
@@ -348,8 +348,8 @@
return 1;
}
-extern int audio_id;
-extern int video_id;
+//extern int audio_id;
+//extern int video_id;
extern int index_mode; // -1=untouched 0=don't use index 1=use (geneate) index
extern int force_ni;
extern int pts_from_bps;
@@ -437,7 +437,7 @@
// exit(1);
}
sh_video=d_video->sh;sh_video->ds=d_video;
- if(audio_id!=-2){
+ if(d_audio->id!=-2){
if(verbose) printf("AVI: Searching for audio stream (id:%d)\n",d_audio->id);
if(!ds_fill_buffer(d_audio)){
printf("AVI: No Audio stream found... ->nosound\n");
Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/demuxer.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- demuxer.c 12 Aug 2001 01:57:01 -0000 1.19
+++ demuxer.c 12 Aug 2001 15:46:09 -0000 1.20
@@ -307,7 +307,7 @@
demux_stream_t* demux_avi_select_stream(demuxer_t *demux,unsigned int id);
-demuxer_t* demux_open(stream_t *stream,int file_format){
+demuxer_t* demux_open(stream_t *stream,int file_format,int audio_id,int video_id,int dvdsub_id){
//int file_format=(*file_format_ptr);
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.214
retrieving revision 1.215
diff -u -r1.214 -r1.215
--- mplayer.c 11 Aug 2001 22:49:18 -0000 1.214
+++ mplayer.c 12 Aug 2001 15:46:09 -0000 1.215
@@ -21,12 +21,6 @@
#include "version.h"
#include "config.h"
-#ifdef sun
-#define DEFAULT_CDROM_DEVICE "/vol/dev/aliases/cdrom0"
-#else
-#define DEFAULT_CDROM_DEVICE "/dev/cdrom"
-#endif
-
#include "cfgparser.h"
#include "cfg-mplayer-def.h"
@@ -57,8 +51,6 @@
#include "dvdauth.h"
#include "spudec.h"
-extern char* win32_codec_name; // must be set before calling DrvOpen() !!!
-
#include "linux/getch2.h"
#include "linux/keycodes.h"
#include "linux/timer.h"
@@ -148,17 +140,6 @@
char* encode_index_name=NULL;
int encode_bitrate=0;
-extern int asf_packetsize; // for seeking
-
-void read_avi_header(demuxer_t *demuxer,int index_mode);
-demux_stream_t* demux_avi_select_stream(demuxer_t *demux,unsigned int id);
-
-int asf_check_header(demuxer_t *demuxer);
-int read_asf_header(demuxer_t *demuxer);
-
-demuxer_t* demux_open(stream_t *stream,int file_format);
-int demux_seek(demuxer_t *demuxer,float rel_seek_secs,int flags);
-
int get_video_quality_max(sh_video_t *sh_video);
void set_video_quality(sh_video_t *sh_video,int quality);
int set_video_colors(sh_video_t *sh_video,char *item,int value);
@@ -166,10 +147,6 @@
// MPEG video stream parser:
#include "parse_es.h"
-extern int num_elementary_packets100; // for MPEG-ES fileformat detection
-extern int num_elementary_packets101;
-extern int num_elementary_packetsPES;
-
extern picture_t *picture; // exported from libmpeg2/decode.c
int frameratecode2framerate[16] = {
@@ -195,7 +172,7 @@
#endif
static ao_functions_t *audio_out=NULL;
-float c_total=0;
+static float c_total=0;
double video_time_usage=0;
double vout_time_usage=0;
@@ -217,13 +194,14 @@
// options:
int divx_quality=0;
-int auto_quality=0;
-int output_quality=0;
+static int auto_quality=0;
+static int output_quality=0;
int osd_level=2;
char *seek_to_sec=NULL;
off_t seek_to_byte=0;
int has_audio=1;
+
char *audio_codec=NULL; // override audio codec
char *video_codec=NULL; // override video codec
int audio_family=-1; // override audio codec family
@@ -245,10 +223,10 @@
//#endif
// streaming:
-int audio_id=-1;
-int video_id=-1;
-int dvdsub_id=-1;
-int vcd_track=0;
+static int audio_id=-1;
+static int video_id=-1;
+static int dvdsub_id=-1;
+static int vcd_track=0;
char *stream_dump_name=NULL;
int stream_dump_type=0;
int index_mode=-1; // -1=untouched 0=don't use index 1=use (geneate) index
@@ -271,13 +249,13 @@
// screen info:
char* video_driver=NULL; //"mga"; // default
char* audio_driver=NULL;
-int fullscreen=0;
-int vidmode=0;
-int softzoom=0;
-int flip=-1;
-int screen_size_x=0;//SCREEN_SIZE_X;
-int screen_size_y=0;//SCREEN_SIZE_Y;
-int screen_size_xy=0;
+static int fullscreen=0;
+static int vidmode=0;
+static int softzoom=0;
+static int flip=-1;
+static int screen_size_x=0;//SCREEN_SIZE_X;
+static int screen_size_y=0;//SCREEN_SIZE_Y;
+static int screen_size_xy=0;
// sub:
char *font_name=NULL;
@@ -289,7 +267,7 @@
/*DSP!!char *dsp=NULL;*/
float rel_seek_secs=0;
-float initial_pts_delay=0;
+//float initial_pts_delay=0;
extern char *vo_subdevice;
extern char *ao_subdevice;
@@ -347,7 +325,7 @@
exit(1);
}
-char* current_module=NULL; // for debugging
+static char* current_module=NULL; // for debugging
void exit_sighandler(int x){
static int sig_count=0;
@@ -381,6 +359,7 @@
extern void skip_audio_frame(sh_audio_t *sh_audio);
// dec_video.c:
+extern int video_read_properties(sh_video_t *sh_video);
extern int init_video(sh_video_t *sh_video);
#ifdef USE_LIBVO2
extern int decode_video(vo2_handle_t *video_out,sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame);
@@ -639,7 +618,7 @@
if(!has_audio) audio_id=-2; // do NOT read audio packets...
-demuxer=demux_open(stream,file_format);
+demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);
if(!demuxer) exit(1); // ERROR
file_format=demuxer->file_format;
@@ -1363,7 +1342,7 @@
if(!delay_corrected && d_audio->pts){
// float x=d_audio->pts-d_video->pts-(delay);
float x=d_audio->pts-d_video->pts-(delay+audio_delay);
- float y=-(delay+audio_delay);
+// float y=-(delay+audio_delay);
float bps_a_pts=(ds_tell(d_audio)-sh_audio->a_in_buffer_len)/(float)sh_audio->wf->nAvgBytesPerSec;
float bps_v_pts=d_video->pack_no*(float)sh_video->video.dwScale/(float)sh_video->video.dwRate;
printf("Initial PTS delay: %5.3f sec ->%5.3f (bps: %5.3f) audio_delay=%5.3f\n",x,2*sh_video->frametime,bps_a_pts-bps_v_pts-(delay+audio_delay),audio_delay);
@@ -1448,7 +1427,7 @@
set_video_quality(sh_video,output_quality);
}
#else
- float total=0.000001f * (GetTimer()-aq_total_time);
+// float total=0.000001f * (GetTimer()-aq_total_time);
// if(output_quality<auto_quality && aq_sleep_time>0.05f*total)
if(output_quality<auto_quality && aq_sleep_time>0)
++output_quality;
Index: demuxer.h
===================================================================
RCS file: /cvsroot/mplayer/main/demuxer.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- demuxer.h 12 Aug 2001 01:58:05 -0000 1.12
+++ demuxer.h 12 Aug 2001 15:46:09 -0000 1.13
@@ -145,5 +145,7 @@
return a*10+b;
}
+demuxer_t* demux_open(stream_t *stream,int file_format,int aid,int vid,int sid);
+int demux_seek(demuxer_t *demuxer,float rel_seek_secs,int flags);
- Previous message: [Mplayer-cvslog] CVS: main configure,1.136,1.137
- Next message: [Mplayer-cvslog] CVS: main mplayer.c,1.215,1.216 demux_mpg.c,1.26,1.27 demuxer.c,1.20,1.21 Makefile,1.61,1.62
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list