]> git.sesse.net Git - vlc/blob - src/video_parser/vpar_synchro.c
Le motion compensation. Notez que �a ne marche pas (encore).
[vlc] / src / video_parser / vpar_synchro.c
1 /*****************************************************************************
2  * vpar_motion.c : motion vectors parsing
3  * (c)1999 VideoLAN
4  *****************************************************************************/
5
6 /*****************************************************************************
7  * Preamble
8  *****************************************************************************/
9 #include <errno.h>
10 #include <stdlib.h>
11 #include <stdio.h>
12 #include <unistd.h>
13 #include <string.h>
14 #include <sys/uio.h>
15 #include <X11/Xlib.h>
16 #include <X11/extensions/XShm.h>
17
18 #include "config.h"
19 #include "common.h"
20 #include "mtime.h"
21 #include "vlc_thread.h"
22
23 #include "intf_msg.h"
24 #include "debug.h"                    /* ?? temporaire, requis par netlist.h */
25
26 #include "input.h"
27 #include "input_netlist.h"
28 #include "decoder_fifo.h"
29 #include "video.h"
30 #include "video_output.h"
31
32 #include "vdec_idct.h"
33 #include "video_decoder.h"
34 #include "vdec_motion.h"
35
36 #include "vpar_blocks.h"
37 #include "vpar_headers.h"
38 #include "video_fifo.h"
39 #include "vpar_synchro.h"
40 #include "video_parser.h"
41
42 /*
43  * Local prototypes
44  */
45
46 /*****************************************************************************
47  * vpar_SynchroChoose : Decide whether we will decode a picture or not
48  *****************************************************************************/
49 boolean_t vpar_SynchroChoose( vpar_thread_t * p_vpar, int i_coding_type,
50                               int i_structure )
51 {
52 //    return( 1 );
53     return( i_coding_type == I_CODING_TYPE || i_coding_type == P_CODING_TYPE );
54     //return( i_coding_type == I_CODING_TYPE );
55 }
56
57 /*****************************************************************************
58  * vpar_SynchroTrash : Update timers when we trash a picture
59  *****************************************************************************/
60 void vpar_SynchroTrash( vpar_thread_t * p_vpar, int i_coding_type,
61                         int i_structure )
62 {
63
64 }
65
66 /*****************************************************************************
67  * vpar_SynchroDecode : Update timers when we decide to decode a picture
68  *****************************************************************************/
69 mtime_t vpar_SynchroDecode( vpar_thread_t * p_vpar, int i_coding_type,
70                             int i_structure )
71 {
72     return mdate() + 3000000;
73 }
74
75 /*****************************************************************************
76  * vpar_SynchroEnd : Called when the image is totally decoded
77  *****************************************************************************/
78 void vpar_SynchroEnd( vpar_thread_t * p_vpar )
79 {
80
81 }
82
83
84