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 $
7 * Author: 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 /*****************************************************************************
26 *****************************************************************************/
27 static void IDCTCopy( dctelem_t * p_block, yuv_data_t * p_dest,
28 int i_stride, void * p_unused, int i_unused )
31 CopyBlock( p_block, p_dest, i_stride );
34 static void IDCTAdd( dctelem_t * p_block, yuv_data_t * p_dest,
35 int i_stride, void * p_unused, int i_unused )
38 AddBlock( p_block, p_dest, i_stride );
41 static void * IDCTFunctions[] =
42 { InitIDCT, NormScan, SparseIDCTAdd, SparseIDCTCopy, IDCTAdd, IDCTCopy };
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 )
50 p_this->p_private = IDCTFunctions;