]> git.sesse.net Git - vlc/commitdiff
. dernier fichier n�cessaire � la compilation du subtitle decoder
authorSam Hocevar <sam@videolan.org>
Wed, 19 Jan 2000 06:06:08 +0000 (06:06 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 19 Jan 2000 06:06:08 +0000 (06:06 +0000)
include/subtitle_decoder.h [new file with mode: 0644]

diff --git a/include/subtitle_decoder.h b/include/subtitle_decoder.h
new file mode 100644 (file)
index 0000000..a12eb48
--- /dev/null
@@ -0,0 +1,39 @@
+/******************************************************************************
+ * subtitle_decoder.h : subtitle decoder thread interface
+ * (c)1999 VideoLAN
+ ******************************************************************************/
+
+/******************************************************************************
+ * subtdec_thread_t : subtitle decoder thread descriptor
+ ******************************************************************************/
+typedef struct subtdec_thread_s
+{
+    /*
+     * Thread properties and locks
+     */
+    boolean_t           b_die;                                  /* `die' flag */
+    boolean_t           b_run;                                  /* `run' flag */
+    boolean_t           b_active;                            /* `active' flag */
+    boolean_t           b_error;                              /* `error' flag */
+    vlc_thread_t        thread_id;                 /* id for thread functions */
+
+    /*
+     * Input properties
+     */
+    decoder_fifo_t      fifo;                   /* stores the PES stream data */
+    /* The bit stream structure handles the PES stream at the bit level */
+    bit_stream_t        bit_stream;
+
+    /*
+     * Decoder properties
+     */
+    unsigned int        total_bits_read;
+    /* ... */
+
+} subtdec_thread_t;
+
+/******************************************************************************
+ * Prototypes
+ ******************************************************************************/
+subtdec_thread_t *      subtdec_CreateThread( input_thread_t * p_input );
+void                    subtdec_DestroyThread( subtdec_thread_t * p_subtdec );