# HG changeset patch # User mru # Date 1268015782 0 # Node ID c166792100a09e597c3079e49ce1a5e37dde1b10 # Parent bb19a598f066e081798ae40030fead6fd609f3b9 sh4: move dsputil prototypes to header file diff -r bb19a598f066 -r c166792100a0 sh4/dsputil_align.c --- a/sh4/dsputil_align.c Mon Mar 08 02:36:16 2010 +0000 +++ b/sh4/dsputil_align.c Mon Mar 08 02:36:22 2010 +0000 @@ -23,6 +23,7 @@ #include "libavcodec/avcodec.h" #include "libavcodec/dsputil.h" +#include "dsputil_sh4.h" #define LP(p) *(uint32_t*)(p) diff -r bb19a598f066 -r c166792100a0 sh4/dsputil_sh4.c --- a/sh4/dsputil_sh4.c Mon Mar 08 02:36:16 2010 +0000 +++ b/sh4/dsputil_sh4.c Mon Mar 08 02:36:22 2010 +0000 @@ -22,6 +22,7 @@ #include "libavcodec/avcodec.h" #include "libavcodec/dsputil.h" +#include "dsputil_sh4.h" #include "sh4.h" static void memzero_align8(void *dst,size_t size) @@ -51,7 +52,6 @@ memzero_align8(blocks,sizeof(DCTELEM)*6*64); } -void idct_sh4(DCTELEM *block); static void idct_put(uint8_t *dest, int line_size, DCTELEM *block) { int i; @@ -89,8 +89,6 @@ } } -void dsputil_init_align(DSPContext* c, AVCodecContext *avctx); - void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx) { const int idct_algo= avctx->idct_algo; diff -r bb19a598f066 -r c166792100a0 sh4/dsputil_sh4.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sh4/dsputil_sh4.h Mon Mar 08 02:36:22 2010 +0000 @@ -0,0 +1,25 @@ +/* + * 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_SH4_DSPUTIL_SH4_H +#define AVCODEC_SH4_DSPUTIL_SH4_H + +void idct_sh4(DCTELEM *block); +void dsputil_init_align(DSPContext* c, AVCodecContext *avctx); + +#endif diff -r bb19a598f066 -r c166792100a0 sh4/idct_sh4.c --- a/sh4/idct_sh4.c Mon Mar 08 02:36:16 2010 +0000 +++ b/sh4/idct_sh4.c Mon Mar 08 02:36:22 2010 +0000 @@ -21,6 +21,7 @@ */ #include "libavcodec/dsputil.h" +#include "dsputil_sh4.h" #include "sh4.h" #define c1 1.38703984532214752434 /* sqrt(2)*cos(1*pi/16) */