]> git.sesse.net Git - vlc/commitdiff
fichiers oubli�s qui faisaient que �a compile pas
authorSam Hocevar <sam@videolan.org>
Mon, 24 Jan 2000 06:53:03 +0000 (06:53 +0000)
committerSam Hocevar <sam@videolan.org>
Mon, 24 Jan 2000 06:53:03 +0000 (06:53 +0000)
include/config.h
include/vpar_synchro.h

index de28cb598aaaf83bb7c385f7ba63ccd37e2d5b83..9d8e92ad8d76980c3973db4a0b303cd7cf4d65dc 100644 (file)
  * at least VOUT_IDLE_SLEEP plus the time required to render a few
  * images, to avoid trashing of decoded images */
 /* ?? this constant will probably evolve to a calculated value */
-#define VOUT_DISPLAY_DELAY              100000
+#define VOUT_DISPLAY_DELAY              500000
 
 /* Delay (in microseconds) between increments in idle levels */
 #define VOUT_IDLE_DELAY                 5000000000000
index 96c346171bcc298b5f139dbe5b646f5a8ec5a179..6016ceacd474080ff631081a72624af9e1763e8e 100644 (file)
@@ -25,15 +25,35 @@ typedef struct video_synchro_tab_s
     
 } video_synchro_tab_t;
 
+typedef struct video_synchro_fifo_s
+{
+    /* type of image to be decoded, and decoding date */
+    int i_image_type;
+    mtime_t decode_date;
+    
+} video_synchro_fifo_t;
+
 typedef struct video_synchro_s
 {
-    int modulo;
+    /* fifo containing decoding dates */
+    video_synchro_fifo_t fifo[16];
+    unsigned int i_fifo_start;
+    unsigned int i_fifo_stop;
+
+    /* 0: I
+     * 1: P
+     * 2: B
+     */
+    mtime_t decode_time;
+    
+    /* il manquait un compteur */
+    unsigned int modulo;
 
     /* P images since the last I */
-    int current_p_count;
+    unsigned int current_p_count;
     double p_count_predict;
     /* B images since the last I */
-    int current_b_count;
+    unsigned int current_b_count;
     double b_count_predict;
 
     /* 1 for linear count, 2 for binary count, 3 for ternary count */