]> git.sesse.net Git - vlc/blobdiff - plugins/mpeg_adec/mpeg_adec.h
All decoders (audio, video, subtitles) are now modules.
[vlc] / plugins / mpeg_adec / mpeg_adec.h
similarity index 77%
rename from src/audio_decoder/audio_decoder.h
rename to plugins/mpeg_adec/mpeg_adec.h
index 07e93bb302d4557346267eb1c8ee18577d46e06d..0f21100171c49d36d591d81e65b4707e2fc97a28 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
- * audio_decoder.h : audio decoder thread interface
+ * mpeg_adec.h : audio decoder thread interface
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: audio_decoder.h,v 1.7 2001/05/01 04:18:18 sam Exp $
+ * $Id: mpeg_adec.h,v 1.1 2001/11/13 12:09:18 henri Exp $
  *
  * Authors: Michel Kaempf <maxx@via.ecp.fr>
  *
  *****************************************************************************/
 typedef struct adec_thread_s
 {
-    /*
-     * Thread properties
+    /* 
+     * Sync Information
      */
-    vlc_thread_t        thread_id;                /* id for thread functions */
-
+    int                 i_sync;
     /*
      * Input properties
      */
@@ -38,7 +37,7 @@ typedef struct adec_thread_s
     /* The bit stream structure handles the PES stream at the bit level */
     bit_stream_t        bit_stream;
     int                 i_read_bits;
-    adec_config_t *     p_config;
+    decoder_config_t *  p_config;
 
     /*
      * Decoder properties
@@ -58,9 +57,9 @@ typedef struct adec_thread_s
 /*****************************************************************************
  * Prototypes
  *****************************************************************************/
-vlc_thread_t adec_CreateThread   ( adec_config_t * p_config );
-int          adec_Init           ( adec_thread_t * p_adec );
-int          adec_SyncFrame      ( adec_thread_t * p_adec,
-                                   adec_sync_info_t * p_sync_info );
-int          adec_DecodeFrame    ( adec_thread_t * p_adec, s16 * buffer );
 
+/*
+ * From adec_generic.c
+ */
+int adec_SyncFrame( adec_thread_t *, adec_sync_info_t * );
+int adec_DecodeFrame( adec_thread_t * , s16 * );