3 * Copyright (C) 2004 AGAWA Koji <i (AT) atty (DOT) jp>
5 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
6 * See http://libmpeg2.sourceforge.net/ for updates.
8 * mpeg2dec is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * mpeg2dec is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 #include "attributes.h"
32 #include "mpeg2_internal.h"
34 /* defined in libavcodec */
36 extern void put_pixels16_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
37 extern void put_pixels16_x2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
38 extern void put_pixels16_y2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
39 extern void put_pixels16_xy2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
40 extern void put_pixels8_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
41 extern void put_pixels8_x2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
42 extern void put_pixels8_y2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
43 extern void put_pixels8_xy2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
44 extern void avg_pixels16_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
45 extern void avg_pixels16_x2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
46 extern void avg_pixels16_y2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
47 extern void avg_pixels16_xy2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
48 extern void avg_pixels8_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
49 extern void avg_pixels8_x2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
50 extern void avg_pixels8_y2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
51 extern void avg_pixels8_xy2_iwmmxt(uint8_t * dest
, const uint8_t * ref
, const int stride
, int height
);
53 mpeg2_mc_t mpeg2_mc_iwmmxt
= {
54 {put_pixels16_iwmmxt
, put_pixels16_x2_iwmmxt
, put_pixels16_y2_iwmmxt
, put_pixels16_xy2_iwmmxt
,
55 put_pixels8_iwmmxt
, put_pixels8_x2_iwmmxt
, put_pixels8_y2_iwmmxt
, put_pixels8_xy2_iwmmxt
}, \
56 {avg_pixels16_iwmmxt
, avg_pixels16_x2_iwmmxt
, avg_pixels16_y2_iwmmxt
, avg_pixels16_xy2_iwmmxt
,
57 avg_pixels8_iwmmxt
, avg_pixels8_x2_iwmmxt
, avg_pixels8_y2_iwmmxt
, avg_pixels8_xy2_iwmmxt
}, \