# HG changeset patch # User mru # Date 1268073813 0 # Node ID 4b6b3ffbaee38e02b19c095c6c33024401325b21 # Parent fb94047e23d2f1dc8783073d802d494debeac534 Move dctref prototypes to a header file diff -r fb94047e23d2 -r 4b6b3ffbaee3 dct-test.c --- a/dct-test.c Mon Mar 08 15:12:36 2010 +0000 +++ b/dct-test.c Mon Mar 08 18:43:33 2010 +0000 @@ -40,16 +40,12 @@ #include "faandct.h" #include "faanidct.h" #include "x86/idct_xvid.h" +#include "dctref.h" #undef printf void *fast_memcpy(void *a, const void *b, size_t c){return memcpy(a,b,c);}; -/* reference fdct/idct */ -void ff_ref_fdct(DCTELEM *block); -void ff_ref_idct(DCTELEM *block); -void ff_ref_dct_init(void); - void ff_mmx_idct(DCTELEM *data); void ff_mmxext_idct(DCTELEM *data); diff -r fb94047e23d2 -r 4b6b3ffbaee3 dctref.c --- a/dctref.c Mon Mar 08 15:12:36 2010 +0000 +++ b/dctref.c Mon Mar 08 18:43:33 2010 +0000 @@ -30,6 +30,8 @@ */ #include "libavutil/mathematics.h" +#include "dctref.h" + static double coefficients[8 * 8]; /** diff -r fb94047e23d2 -r 4b6b3ffbaee3 dctref.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dctref.h Mon Mar 08 18:43:33 2010 +0000 @@ -0,0 +1,31 @@ +/* + * reference discrete cosine transform (double precision) + * Copyright (C) 2009 Dylan Yudaken + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVCODEC_DCTREF_H +#define AVCODEC_DCTREF_H + +#include "dsputil.h" + +void ff_ref_fdct(DCTELEM *block); +void ff_ref_idct(DCTELEM *block); +void ff_ref_dct_init(void); + +#endif