]> git.sesse.net Git - vlc/commitdiff
* Makefile :
authorMichel Kaempf <maxx@videolan.org>
Mon, 17 Jan 2000 21:51:35 +0000 (21:51 +0000)
committerMichel Kaempf <maxx@videolan.org>
Mon, 17 Jan 2000 21:51:35 +0000 (21:51 +0000)
- rajout de ac3_decoder ;
- rajout de l'option MMX ;

* Makefile.dep :
- suppression de lignes vides ;

* include/audio_decoder.h, audio_decoder/audio_decoder.c :
- remplacement de AOUT_FRAME_SIZE par ADEC_FRAME_SIZE et aout_frame_t par
adec_frame_t ;

* include/audio_constants.h :
- mise en commentaire du tableau inutilis� ADEC_FRAME_SIZE ;

* include/audio_output.h :
- corrections typographiques ;

* include/vlc.h :
- rajout de ac3_decoder.h ;

Makefile
Makefile.dep
include/audio_constants.h
include/audio_decoder.h
include/audio_output.h
include/vlc.h
src/audio_decoder/audio_decoder.c

index ea5907f08f365a3557e5118aeaa5c21f3d4ed688..91256c5cbaf354efcc803dd6cd6c9b1e01d9e38e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ VIDEO=X11
 
 # Target architecture and optimization
 #ARCH=
-#ARCH=MMX
+ARCH=MMX
 #ARCH=PPC
 
 # Decoder choice - ?? old decoder will be removed soon
@@ -175,6 +175,8 @@ audio_output_obj =          audio_output/audio_output.o \
 video_output_obj =             video_output/video_output.o \
                                                video_output/video_$(video).o
 
+ac3_decoder_obj =              ac3_decoder/ac3_decoder.o
+
 audio_decoder_obj =            audio_decoder/audio_decoder.o \
                                                audio_decoder/audio_math.o
 
@@ -219,6 +221,7 @@ C_OBJ = $(interface_obj) \
                $(input_obj) \
                $(audio_output_obj) \
                $(video_output_obj) \
+               $(ac3_decoder_obj) \
                $(audio_decoder_obj) \
                $(generic_decoder_obj) \
                $(video_parser_obj) \
index 0a57b2e9658ef305ef00b9b8bdcbc70a4a552045..3bc8479994fe87bb54cdb3a30bb009c20e18b412 100644 (file)
@@ -33,5 +33,3 @@ $(dependancies): dep/%.d: %.c
                | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
                dep\/$(subst /,\/,$*).d : /g'\'' > $@; \
                [ -s $@ ] || rm -f $@'
-
-
index 8b650a7f2a0708a79634a6939573f193373d6593..03daaec4bcd1bbb959974580306788dd5d579b0c 100644 (file)
  * The frame sizes are stored in the following array :
  * frame_size = ADEC_FRAME_SIZE[ 128*layer + 64*padding_bit + 16*sampling_frequency + bitrate_index ]
  ******************************************************************************/
+#if 0
 #define ADEC_FRAME_SIZE \
 { \
     /* Layer == `00' (reserved) */ \
             /* sampling_frequency == `11' (reserved) */ \
                 0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,    0 \
 }
+#endif
 
 
 /******************************************************************************
index 11a4db717c4a38f5c5ab887df2696de867fccf15..7d99258b24a3f817d16d3860a0048d8585dffad9 100644 (file)
  *   directement sur le flux PES ?
  */
 
+#define ADEC_FRAME_SIZE 384
+
+/******************************************************************************
+ * adec_frame_t
+ ******************************************************************************/
+typedef s16 adec_frame_t[ ADEC_FRAME_SIZE ];
+
 /******************************************************************************
  * adec_bank_t
  ******************************************************************************/
@@ -73,13 +80,6 @@ typedef struct adec_thread_s
 
 } adec_thread_t;
 
-#define AOUT_FRAME_SIZE 384
-
-/******************************************************************************
- * aout_frame_t
- ******************************************************************************/
-typedef s16 aout_frame_t[ AOUT_FRAME_SIZE ];
-
 /******************************************************************************
  * Prototypes
  ******************************************************************************/
index 237f1854085afe2801f28d32aefa568f0e4321b8..b1f7a20b2ce12b403d7bb4abf52c5ebc3b7f48b8 100644 (file)
 #define AOUT_DEFAULT_RATE       44100
 #define AOUT_MAX_RATE           48000
 
-/* Number of audio samples (s16 integers) contained in an audio output frame...
- * - Layer I        : a decoded frame contains 384 samples
- * - Layer II & III : a decoded frame contains 1152 = 3*384 samples */
-/*
-#define AOUT_FRAME_SIZE         384
-*/
-
 /* Number of audio output frames contained in an audio output fifo.
  * (AOUT_FIFO_SIZE + 1) must be a power of 2, in order to optimise the
  * %(AOUT_FIFO_SIZE + 1) operation with an &AOUT_FIFO_SIZE.
@@ -116,11 +109,6 @@ typedef struct
 
 } aout_increment_t;
 
-/******************************************************************************
- * aout_frame_t
- ******************************************************************************/
-/*typedef s16 aout_frame_t[ AOUT_FRAME_SIZE ];*/
-
 /******************************************************************************
  * aout_fifo_t
  ******************************************************************************/
index 3334f972cd17a3613407b2107c8595251061cc03..40f97c28f9999e7660f42e552d4eff0da5a2a7de 100644 (file)
@@ -65,6 +65,7 @@
 /* Audio */
 #include "audio_output.h"
 #include "audio_decoder.h"
+#include "ac3_decoder.h"
 
 /* Video */
 #include "video.h"
@@ -77,5 +78,3 @@
 #include "interface.h"
 
 #include "main.h"
-
-
index 936260aaadf4311f9d095836006fa5f5e765ad10..fba0b7fc4b55ebb905a0b474a2c2c809b701b5d6 100644 (file)
@@ -47,6 +47,7 @@ static void     RunThread               ( adec_thread_t * p_adec );
 static void     ErrorThread             ( adec_thread_t * p_adec );
 static void     EndThread               ( adec_thread_t * p_adec );
 
+/*
 static int      adec_Layer1_Mono        ( adec_thread_t * p_adec );
 static int      adec_Layer1_Stereo      ( adec_thread_t * p_adec );
 static int      adec_Layer2_Mono        ( adec_thread_t * p_adec );
@@ -56,6 +57,7 @@ static byte_t   GetByte                 ( bit_stream_t * p_bit_stream );
 static void     NeedBits                ( bit_stream_t * p_bit_stream, int i_bits );
 static void     DumpBits                ( bit_stream_t * p_bit_stream, int i_bits );
 static int      FindHeader              ( adec_thread_t * p_adec );
+*/
 
 /******************************************************************************
  * adec_CreateThread: creates an audio decoder thread
@@ -489,7 +491,7 @@ static __inline__ int adec_Layer2_Stereo( adec_thread_t * p_adec )
 #define NEXT_BUF \
 /* fprintf(stderr, "%p\n", p_adec->p_aout_fifo->buffer); */ \
 /* fprintf(stderr, "l_end_frame == %li, %p\n", l_end_frame, (aout_frame_t *)p_adec->p_aout_fifo->buffer + l_end_frame); */ \
-    p_s16 = ((aout_frame_t *)p_adec->p_aout_fifo->buffer)[ l_end_frame ]; \
+    p_s16 = ((adec_frame_t *)p_adec->p_aout_fifo->buffer)[ l_end_frame ]; \
 /* fprintf(stderr, "p_s16 == %p\n", p_s16); */ \
     l_end_frame += 1; \
     l_end_frame &= AOUT_FIFO_SIZE;
@@ -762,7 +764,7 @@ static int InitThread( adec_thread_t * p_adec )
             return( -1 );
     }
 
-    aout_fifo.l_frame_size = AOUT_FRAME_SIZE;
+    aout_fifo.l_frame_size = ADEC_FRAME_SIZE;
 
     /* Creating the audio output fifo */
     if ( (p_adec->p_aout_fifo = aout_CreateFifo(p_adec->p_aout, &aout_fifo)) == NULL )