]> git.sesse.net Git - vlc/blob - modules/codec/mpeg_video/idct/idct_decl.h
* ./modules/*: moved plugins to the new tree. Yet untested builds include
[vlc] / modules / codec / mpeg_video / idct / idct_decl.h
1 /*****************************************************************************
2  * idct_decl.h : common declarations, must be included at the very end
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  * $Id: idct_decl.h,v 1.1 2002/08/04 17:23:42 sam Exp $
6  *
7  * Author: 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 /*****************************************************************************
25  * Final declarations
26  *****************************************************************************/
27 static void IDCTCopy( dctelem_t * p_block, yuv_data_t * p_dest,
28                      int i_stride, void * p_unused, int i_unused )
29 {
30     IDCT( p_block );
31     CopyBlock( p_block, p_dest, i_stride );
32 }
33
34 static void IDCTAdd( dctelem_t * p_block, yuv_data_t * p_dest,
35                      int i_stride, void * p_unused, int i_unused )
36 {
37     IDCT( p_block );
38     AddBlock( p_block, p_dest, i_stride );
39 }
40
41 static void * IDCTFunctions[] =
42     { InitIDCT, NormScan, SparseIDCTAdd, SparseIDCTCopy, IDCTAdd, IDCTCopy };
43
44 /*****************************************************************************
45  * Functions exported as capabilities. They are declared as static so that
46  * we don't pollute the namespace too much.
47  *****************************************************************************/
48 static int Open( vlc_object_t *p_this )
49 {
50     p_this->p_private = IDCTFunctions;
51     return VLC_SUCCESS;
52 }
53