www.pudn.com > core.rar > dct.h
/***************************************************************************** * dct.h: h264 encoder library ***************************************************************************** * Copyright (C) 2003 Laurent Aimar * $Id: dct.h,v 1.1 2003/11/09 23:25:04 fenrir Exp $ * * Authors: Laurent Aimar* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. *****************************************************************************/ #ifndef _DCT_H #define _DCT_H 1 typedef struct { void (*dct4x4) ( int16_t dct[4][4], int16_t diff[4][4] ); void (*dct4x4dc) ( int16_t dct[4][4], int16_t diff[4][4] ); void (*idct4x4) ( int16_t diff[4][4], int16_t dct[4][4] ); void (*idct4x4dc)( int16_t diff[4][4], int16_t dct[4][4] ); void (*dct2x2dc) ( int16_t dct[2][2], int16_t diff[2][2] ); void (*idct2x2dc)( int16_t diff[2][2], int16_t dct[2][2] ); } x264_dct_function_t; void x264_dct_init( int cpu, x264_dct_function_t *dctf ); #endif