]> git.sesse.net Git - vlc/blob - modules/codec/mpeg_video/decoder.h
a3d0d42178cd0b3d5736f1a8fd6881991fa158e6
[vlc] / modules / codec / mpeg_video / decoder.h
1 /*****************************************************************************
2  * decoder.h : video decoder thread
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  * $Id: decoder.h,v 1.2 2002/08/07 00:29:36 sam Exp $
6  *
7  * Authors: Christophe Massiot <massiot@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  * 
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23  
24 VLC_DECLARE_STRUCT(vpar_thread_t)
25 VLC_DECLARE_STRUCT(vdec_thread_t)
26 VLC_DECLARE_STRUCT(vdec_pool_t)
27
28 /*****************************************************************************
29  * vdec_thread_t: video decoder thread descriptor
30  *****************************************************************************/
31 struct vdec_thread_t
32 {
33     VLC_COMMON_MEMBERS
34
35     /* IDCT iformations */
36     void *        p_idct_data;
37
38     /* Input properties */
39     vdec_pool_t * p_pool;
40 };
41
42 /*****************************************************************************
43  * Prototypes
44  *****************************************************************************/
45 void            vdec_InitThread         ( vdec_thread_t * );
46 void            vdec_EndThread          ( vdec_thread_t * );
47 void            vdec_DecodeMacroblockBW ( vdec_thread_t *, macroblock_t * );
48 void            vdec_DecodeMacroblock420( vdec_thread_t *, macroblock_t * );
49 void            vdec_DecodeMacroblock422( vdec_thread_t *, macroblock_t * );
50 void            vdec_DecodeMacroblock444( vdec_thread_t *, macroblock_t * );
51 vdec_thread_t * vdec_CreateThread       ( vdec_pool_t * );
52 void            vdec_DestroyThread      ( vdec_thread_t * );
53