[Mplayer-cvslog] CVS: main parse_es.h,NONE,1.1 parse_es.c,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Sun Jul 22 00:34:17 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv22494

Modified Files:
	parse_es.c 
Added Files:
	parse_es.h 
Log Message:
parse_es moved out from mplayer.c (it was included as .c file)

--- NEW FILE ---

#define MAX_VIDEO_PACKET_SIZE (224*1024+4)
#define VIDEOBUFFER_SIZE 0x100000

extern unsigned char* videobuffer;
extern int videobuf_len;
extern unsigned char videobuf_code[4];
extern int videobuf_code_len;

// sync video stream, and returns next packet code
int sync_video_packet(demux_stream_t *ds);

// return: packet length
int read_video_packet(demux_stream_t *ds);

// return: next packet code
int skip_video_packet(demux_stream_t *ds);


Index: parse_es.c
===================================================================
RCS file: /cvsroot/mplayer/main/parse_es.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- parse_es.c	14 Apr 2001 03:13:48 -0000	1.2
+++ parse_es.c	21 Jul 2001 22:34:15 -0000	1.3
@@ -1,14 +1,22 @@
-//=================== VIDEO PARSER =========================
+//=================== MPEG-ES VIDEO PARSER =========================
 
-#define MAX_VIDEO_PACKET_SIZE (224*1024+4)
-#define VIDEOBUFFER_SIZE 0x100000
+#include <stdio.h>
+#include <stdlib.h>
 
-//static unsigned char videobuffer[MAX_VIDEO_PACKET_SIZE];
-static unsigned char* videobuffer=NULL;
-static int videobuf_len=0;
+extern int verbose; // defined in mplayer.c
+
+#include "config.h"
+
+#include "stream.h"
+#include "demuxer.h"
 
-static unsigned char videobuf_code[4];
-static int videobuf_code_len=0;
+#include "parse_es.h"
+
+//static unsigned char videobuffer[MAX_VIDEO_PACKET_SIZE];
+unsigned char* videobuffer=NULL;
+int videobuf_len=0;
+unsigned char videobuf_code[4];
+int videobuf_code_len=0;
 
 // sync video stream, and returns next packet code
 int sync_video_packet(demux_stream_t *ds){




More information about the MPlayer-cvslog mailing list