more cleanup, warnings fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2564 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi
2001-10-30 17:38:09 +00:00
parent 704ca0fcef
commit 734198df19
5 changed files with 43 additions and 23 deletions
+10 -6
View File
@@ -7,20 +7,20 @@
#include "mp_msg.h"
#include "help_mp.h"
#include "libao2/afmt.h"
extern int verbose; // defined in mplayer.c
#ifdef USE_FAKE_MONO
int fakemono=0;
#endif
#include "stream.h"
#include "demuxer.h"
#include "codec-cfg.h"
#include "stheader.h"
#include "dec_audio.h"
//==========================================================================
#include "libao2/afmt.h"
#include "dll_init.h"
#include "mp3lib/mp3.h"
@@ -34,6 +34,10 @@ int fakemono=0;
#include "ima4.h"
#ifdef USE_FAKE_MONO
int fakemono=0;
#endif
#ifdef USE_DIRECTSHOW
#include "loader/DirectShow/DS_AudioDec.h"
#endif
+24 -15
View File
@@ -1,6 +1,4 @@
#define USE_XANIM
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -9,17 +7,11 @@
#include "mp_msg.h"
#include "help_mp.h"
extern int verbose; // defined in mplayer.c
extern int divx_quality;
extern double video_time_usage;
extern double vout_time_usage;
extern int frameratecode2framerate[16];
#include "linux/timer.h"
#include "linux/shmem.h"
extern int verbose; // defined in mplayer.c
#include "stream.h"
#include "demuxer.h"
#include "parse_es.h"
@@ -27,17 +19,26 @@ extern int frameratecode2framerate[16];
#include "codec-cfg.h"
#include "stheader.h"
#include "dll_init.h"
//#include <inttypes.h>
//#include "libvo/img_format.h"
#ifdef USE_LIBVO2
#include "libvo2/libvo2.h"
#else
#include "libvo/video_out.h"
#endif
#include "dec_video.h"
// ===================================================================
extern double video_time_usage;
extern double vout_time_usage;
extern int frameratecode2framerate[16];
#include "dll_init.h"
//#include <inttypes.h>
//#include "libvo/img_format.h"
#include "libmpeg2/mpeg2.h"
#include "libmpeg2/mpeg2_internal.h"
@@ -45,6 +46,7 @@ extern int frameratecode2framerate[16];
extern picture_t *picture; // exported from libmpeg2/decode.c
int divx_quality=0;
#ifdef USE_DIRECTSHOW
#include "loader/DirectShow/DS_VideoDec.h"
@@ -71,6 +73,8 @@ extern picture_t *picture; // exported from libmpeg2/decode.c
#include <decore.h>
#endif
#define USE_XANIM
#ifdef USE_XANIM
#include "xacodec.h"
#endif
@@ -224,6 +228,11 @@ void uninit_video(sh_video_t *sh_video){
case VFM_MPEG:
mpeg2_free_image_buffers (picture);
break;
#ifdef USE_XANIM
case VFM_XANIM:
xacodec_exit();
break;
#endif
}
if(sh_video->our_out_buffer){
free(sh_video->our_out_buffer);
+2
View File
@@ -15,3 +15,5 @@ extern int get_video_quality_max(sh_video_t *sh_video);
extern void set_video_quality(sh_video_t *sh_video,int quality);
int set_video_colors(sh_video_t *sh_video,char *item,int value);
extern int divx_quality;
+3 -2
View File
@@ -97,6 +97,9 @@ static int max_framesize=0;
#include "stheader.h"
#include "parse_es.h"
#include "dec_audio.h"
#include "dec_video.h"
extern picture_t *picture; // exported from libmpeg2/decode.c
int frameratecode2framerate[16] = {
@@ -132,8 +135,6 @@ static int benchmark=0;
// static int play_in_bg=0;
// options:
int divx_quality=0;
static int auto_quality=0;
static int output_quality=0;
+4
View File
@@ -112,3 +112,7 @@ typedef struct {
unsigned char *mem;
} xacodec_image_t;
int xacodec_init_video(sh_video_t *vidinfo, int out_format);
xacodec_image_t* xacodec_decode_frame(uint8_t *frame, int frame_size, int skip_flag);
int xacodec_exit();