changeset 6989:b2ba67f6203e

messages moved from dec_??d?o.c
author jaf
date Tue, 13 Aug 2002 16:04:16 +0000
parents d09524ea66b0
children 857bae3001e8
files help_mp-de.h help_mp-en.h libmpcodecs/dec_audio.c libmpcodecs/dec_video.c
diffstat 4 files changed, 44 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/help_mp-de.h	Tue Aug 13 14:59:12 2002 +0000
+++ b/help_mp-de.h	Tue Aug 13 16:04:16 2002 +0000
@@ -282,6 +282,21 @@
 #define MSGTR_AC3only48k "Nur 48000 Hz Streams werden unterstützt.\n"
 #define MSGTR_UnknownAudio "Unbekanntes/fehlendes Audioformat -> kein Ton\n"
 
+#define MSGTR_UsingExternalPP "[PP] Verwende externe Postprocessing Filter, max q = %d\n"
+#define MSGTR_UsingCodecPP "[PP] Verwende Postprocessing des Codecs, max q = %d\n"
+#define MSGTR_VideoAttributeNotSupportedByVO_VD "Videoeigenschaft '%s' wird nicht unterstützt vom ausgewählen vo & vd! \n"
+#define MSGTR_VideoCodecFamilyNotAvailable "Erforderliche Videocodec Familie [%s] (vfm=%d) nicht verfügbar (aktiviere sie beim Kompileren!)\n"
+#define MSGTR_AudioCodecFamilyNotAvailable "Erforderliche Audiocodec Familie [%s] (afm=%d) nicht verfügbar (aktiviere sie beim Kompileren!)\n"
+#define MSGTR_OpeningVideoDecoder "Öffne Videodecoder: [%s] %s\n"
+#define MSGTR_OpeningAudioDecoder "Öffne Audiodecoder: [%s] %s\n"
+#define MSGTR_UninitVideo "Uninitialisiere Video: %d  \n"
+#define MSGTR_UninitAudio "Uninitialisiere Audio: %d  \n"
+#define MSGTR_VDecoderInitFailed "Initialisierung des Videodecoder fehlgeschlagen :(\n"
+#define MSGTR_ADecoderInitFailed "Initialisierung des Audiodecoder fehlgeschlagen :(\n"
+#define MSGTR_ADecoderPreinitFailed "Preinitialisierung des Audiodecoder fehlgeschlagen :(\n"
+#define MSGTR_AllocatingBytesForInputBuffer "dec_audio: Reserviere %d Bytes für Eingangsbuffer\n"
+#define MSGTR_AllocatingBytesForOutputBuffer "dec_audio: Reserviere %d + %d = %d Bytes füs Ausgabebuffer\n"
+			 
 // LIRC:
 #define MSGTR_SettingUpLIRC "Initialisiere LIRC Unterstützung...\n"
 #define MSGTR_LIRCdisabled "Verwenden der Fernbedienung nicht möglich\n"
--- a/help_mp-en.h	Tue Aug 13 14:59:12 2002 +0000
+++ b/help_mp-en.h	Tue Aug 13 16:04:16 2002 +0000
@@ -283,6 +283,21 @@
 #define MSGTR_AC3only48k "Only 48000 Hz streams supported.\n"
 #define MSGTR_UnknownAudio "Unknown/missing audio format, using nosound\n"
 
+#define MSGTR_UsingExternalPP "[PP] Using external postprocessing filter, max q = %d\n"
+#define MSGTR_UsingCodecPP "[PP] Using codec's postprocessing, max q = %d\n"
+#define MSGTR_VideoAttributeNotSupportedByVO_VD "Video attribute '%s' isn't supported by selected vo & vd! \n"
+#define MSGTR_VideoCodecFamilyNotAvailable "Requested video codec family [%s] (vfm=%d) not available (enable it at compile time!)\n"
+#define MSGTR_AudioCodecFamilyNotAvailable "Requested audio codec family [%s] (afm=%d) not available (enable it at compile time!)\n"
+#define MSGTR_OpeningVideoDecoder "Opening video decoder: [%s] %s\n"
+#define MSGTR_OpeningAudioDecoder "Opening audio decoder: [%s] %s\n"
+#define MSGTR_UninitVideo "uninit video: %d  \n"
+#define MSGTR_UninitAudio "uninit audio: %d  \n"
+#define MSGTR_VDecoderInitFailed "VDecoder init failed :(\n"
+#define MSGTR_ADecoderInitFailed "ADecoder init failed :(\n"
+#define MSGTR_ADecoderPreinitFailed "ADecoder preinit failed :(\n"
+#define MSGTR_AllocatingBytesForInputBuffer "dec_audio: Allocating %d bytes for input buffer\n"
+#define MSGTR_AllocatingBytesForOutputBuffer "dec_audio: Allocating %d + %d = %d bytes for output buffer\n"
+			 
 // LIRC:
 #define MSGTR_SettingUpLIRC "Setting up lirc support...\n"
 #define MSGTR_LIRCdisabled "You won't be able to use your remote control\n"
--- a/libmpcodecs/dec_audio.c	Tue Aug 13 14:59:12 2002 +0000
+++ b/libmpcodecs/dec_audio.c	Tue Aug 13 16:04:16 2002 +0000
@@ -34,12 +34,12 @@
 	mpadec=mpcodecs_ad_drivers[i]; break;
     }
   if(!mpadec){
-      mp_msg(MSGT_DECAUDIO,MSGL_ERR,"Requested audio codec family [%s] (afm=%d) not available (enable it at compile time!)\n",
+      mp_msg(MSGT_DECAUDIO,MSGL_ERR,MSGTR_AudioCodecFamilyNotAvailable,
           sh_audio->codec->name, sh_audio->codec->driver);
       return 0; // no such driver
   }
   
-  mp_msg(MSGT_DECAUDIO,MSGL_INFO,"Opening audio decoder: [%s] %s\n",mpadec->info->short_name,mpadec->info->name);
+  mp_msg(MSGT_DECAUDIO,MSGL_INFO,MSGTR_OpeningAudioDecoder,mpadec->info->short_name,mpadec->info->name);
 
   // reset in/out buffer size/pointer:
   sh_audio->a_buffer_size=0;
@@ -64,14 +64,14 @@
   
   if(!mpadec->preinit(sh_audio))
   {
-      mp_msg(MSGT_DECAUDIO,MSGL_ERR,"ADecoder preinit failed :(\n");
+      mp_msg(MSGT_DECAUDIO,MSGL_ERR,MSGTR_ADecoderPreinitFailed);
       return 0;
   }
 
 /* allocate audio in buffer: */
   if(sh_audio->audio_in_minsize>0){
       sh_audio->a_in_buffer_size=sh_audio->audio_in_minsize;
-      mp_msg(MSGT_DECAUDIO,MSGL_V,"dec_audio: Allocating %d bytes for input buffer\n",
+      mp_msg(MSGT_DECAUDIO,MSGL_V,MSGTR_AllocatingBytesForInputBuffer,
           sh_audio->a_in_buffer_size);
       sh_audio->a_in_buffer=malloc(sh_audio->a_in_buffer_size);
       memset(sh_audio->a_in_buffer,0,sh_audio->a_in_buffer_size);
@@ -81,7 +81,7 @@
 /* allocate audio out buffer: */
   sh_audio->a_buffer_size=sh_audio->audio_out_minsize+MAX_OUTBURST; /* worst case calc.*/
 
-  mp_msg(MSGT_DECAUDIO,MSGL_V,"dec_audio: Allocating %d + %d = %d bytes for output buffer\n",
+  mp_msg(MSGT_DECAUDIO,MSGL_V,MSGTR_AllocatingBytesForOutputBuffer,
       sh_audio->audio_out_minsize,MAX_OUTBURST,sh_audio->a_buffer_size);
 
   sh_audio->a_buffer=malloc(sh_audio->a_buffer_size);
@@ -93,7 +93,7 @@
   sh_audio->a_buffer_len=0;
 
   if(!mpadec->init(sh_audio)){
-      mp_msg(MSGT_DECAUDIO,MSGL_WARN,"ADecoder init failed :(\n");
+      mp_msg(MSGT_DECAUDIO,MSGL_WARN,MSGTR_ADecoderInitFailed);
       uninit_audio(sh_audio); // free buffers
       return 0;
   }
@@ -119,7 +119,7 @@
     if(sh_audio->a_in_buffer) free(sh_audio->a_in_buffer);
     sh_audio->a_in_buffer=NULL;
     if(!sh_audio->inited) return;
-    mp_msg(MSGT_DECAUDIO,MSGL_V,"uninit audio: %d  \n",sh_audio->codec->driver);
+    mp_msg(MSGT_DECAUDIO,MSGL_V,MSGTR_UninitAudio,sh_audio->codec->driver);
     mpadec->uninit(sh_audio);
     sh_audio->inited=0;
 }
--- a/libmpcodecs/dec_video.c	Tue Aug 13 14:59:12 2002 +0000
+++ b/libmpcodecs/dec_video.c	Tue Aug 13 16:04:16 2002 +0000
@@ -49,14 +49,14 @@
   if(vf){
     int ret=vf->control(vf,VFCTRL_QUERY_MAX_PP_LEVEL,NULL);
     if(ret>0){
-      mp_msg(MSGT_DECVIDEO,MSGL_INFO,"[PP] Using external postprocessing filter, max q = %d\n",ret);
+      mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_UsingExternalPP,ret);
       return ret;
     }
   }
   if(mpvdec){
     int ret=mpvdec->control(sh_video,VDCTRL_QUERY_MAX_PP_LEVEL,NULL);
     if(ret>0){
-      mp_msg(MSGT_DECVIDEO,MSGL_INFO,"[PP] Using codec's postprocessing, max q = %d\n",ret);
+      mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_UsingCodecPP,ret);
       return ret;
     }
   }
@@ -93,7 +93,7 @@
     if(mpvdec)
 	if( mpvdec->control(sh_video,VDCTRL_SET_EQUALIZER, item, (int *)value)
 	    == CONTROL_OK) return 1;
-    mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Video attribute '%s' isn't supported by selected vo & vd! \n",item);
+    mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_VideoAttributeNotSupportedByVO_VD,item);
     return 0;
 }
 
@@ -135,7 +135,7 @@
 
 void uninit_video(sh_video_t *sh_video){
     if(!sh_video->inited) return;
-    mp_msg(MSGT_DECVIDEO,MSGL_V,"uninit video: %d  \n",sh_video->codec->driver);
+    mp_msg(MSGT_DECVIDEO,MSGL_V,MSGTR_UninitVideo,sh_video->codec->driver);
     mpvdec->uninit(sh_video);
     vf_uninit_filter_chain(sh_video->vfilter);
     sh_video->inited=0;
@@ -164,7 +164,7 @@
 	    if(mpcodecs_vd_drivers[i]->info->id==sh_video->codec->driver) break;
 	mpvdec=mpcodecs_vd_drivers[i];
 	if(!mpvdec){ // driver not available (==compiled in)
-	    mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Requested video codec family [%s] (vfm=%d) not available (enable it at compile time!)\n",
+	    mp_msg(MSGT_DECVIDEO,MSGL_WARN,MSGTR_VideoCodecFamilyNotAvailable,
 		sh_video->codec->name, sh_video->codec->driver);
 	    continue;
 	}
@@ -181,9 +181,9 @@
 	    }
 	}
 	// init()
-	mp_msg(MSGT_DECVIDEO,MSGL_INFO,"Opening video decoder: [%s] %s\n",mpvdec->info->short_name,mpvdec->info->name);
+	mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_OpeningVideoDecoder,mpvdec->info->short_name,mpvdec->info->name);
 	if(!mpvdec->init(sh_video)){
-	    mp_msg(MSGT_DECVIDEO,MSGL_INFO,"VDecoder init failed :(\n");
+	    mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_VDecoderInitFailed);
 	    continue; // try next...
 	}
 	// Yeah! We got it!