comparison sh4/dsputil_sh4.c @ 11400:c166792100a0 libavcodec

sh4: move dsputil prototypes to header file
author mru
date Mon, 08 Mar 2010 02:36:22 +0000
parents cf4d575b1982
children
comparison
equal deleted inserted replaced
11399:bb19a598f066 11400:c166792100a0
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */ 21 */
22 22
23 #include "libavcodec/avcodec.h" 23 #include "libavcodec/avcodec.h"
24 #include "libavcodec/dsputil.h" 24 #include "libavcodec/dsputil.h"
25 #include "dsputil_sh4.h"
25 #include "sh4.h" 26 #include "sh4.h"
26 27
27 static void memzero_align8(void *dst,size_t size) 28 static void memzero_align8(void *dst,size_t size)
28 { 29 {
29 int fpscr; 30 int fpscr;
49 static void clear_blocks_sh4(DCTELEM *blocks) 50 static void clear_blocks_sh4(DCTELEM *blocks)
50 { 51 {
51 memzero_align8(blocks,sizeof(DCTELEM)*6*64); 52 memzero_align8(blocks,sizeof(DCTELEM)*6*64);
52 } 53 }
53 54
54 void idct_sh4(DCTELEM *block);
55 static void idct_put(uint8_t *dest, int line_size, DCTELEM *block) 55 static void idct_put(uint8_t *dest, int line_size, DCTELEM *block)
56 { 56 {
57 int i; 57 int i;
58 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; 58 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
59 idct_sh4(block); 59 idct_sh4(block);
87 dest+=line_size; 87 dest+=line_size;
88 block+=8; 88 block+=8;
89 } 89 }
90 } 90 }
91 91
92 void dsputil_init_align(DSPContext* c, AVCodecContext *avctx);
93
94 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx) 92 void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx)
95 { 93 {
96 const int idct_algo= avctx->idct_algo; 94 const int idct_algo= avctx->idct_algo;
97 dsputil_init_align(c,avctx); 95 dsputil_init_align(c,avctx);
98 96