1 /*****************************************************************************
2 * video_decoder.h : video decoder thread
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
5 * $Id: video_decoder.h,v 1.22 2001/01/13 12:57:19 sam Exp $
7 * Authors: Christophe Massiot <massiot@via.ecp.fr>
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.
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.
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 *****************************************************************************/
24 /*****************************************************************************
34 *****************************************************************************/
36 /*****************************************************************************
37 * vdec_thread_t: video decoder thread descriptor
38 *****************************************************************************
40 *****************************************************************************/
41 typedef struct vdec_thread_s
43 /* Thread properties and locks */
44 boolean_t b_die; /* `die' flag */
45 boolean_t b_run; /* `run' flag */
46 boolean_t b_error; /* `error' flag */
47 boolean_t b_active; /* `active' flag */
48 vlc_thread_t thread_id; /* id for thread functions */
50 /* Thread configuration */
54 /* idct iformations */
55 dctelem_t p_pre_idct[64*64];
57 /* Input properties */
58 struct vpar_thread_s * p_vpar; /* video_parser thread */
62 u8 pi_crop_buf[VDEC_CROPRANGE];
67 /*****************************************************************************
69 *****************************************************************************/
73 /* Thread management functions */
75 int vdec_InitThread ( struct vdec_thread_s *p_vdec );
77 void vdec_DecodeMacroblock ( struct vdec_thread_s *p_vdec,
78 struct macroblock_s *p_mb );
79 void vdec_DecodeMacroblockC ( struct vdec_thread_s *p_vdec,
80 struct macroblock_s *p_mb );
81 void vdec_DecodeMacroblockBW ( struct vdec_thread_s *p_vdec,
82 struct macroblock_s *p_mb );
83 vdec_thread_t * vdec_CreateThread ( struct vpar_thread_s *p_vpar /*,
85 void vdec_DestroyThread ( vdec_thread_t *p_vdec /*,