Mercurial > libavcodec.hg
comparison mlib/dsputil_mlib.c @ 628:f596db4aa871 libavcodec
sun solaris compilation bugfix, patch by (Martin Olschewski <olschewski at zpr dot uni-koeln dot de>)
author | michaelni |
---|---|
date | Fri, 30 Aug 2002 18:17:20 +0000 |
parents | 718a22dc121f |
children | 8be211ca9db9 |
comparison
equal
deleted
inserted
replaced
627:79c43f519d02 | 628:f596db4aa871 |
---|---|
16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 */ | 18 */ |
19 | 19 |
20 #include "../dsputil.h" | 20 #include "../dsputil.h" |
21 #include "../mpegvideo.h" | |
21 | 22 |
22 #include <mlib_types.h> | 23 #include <mlib_types.h> |
23 #include <mlib_status.h> | 24 #include <mlib_status.h> |
24 #include <mlib_sys.h> | 25 #include <mlib_sys.h> |
25 #include <mlib_video.h> | 26 #include <mlib_video.h> |
123 mlib_VideoDCT8x8_S16_S16 (data, data); | 124 mlib_VideoDCT8x8_S16_S16 (data, data); |
124 } | 125 } |
125 | 126 |
126 void dsputil_init_mlib(void) | 127 void dsputil_init_mlib(void) |
127 { | 128 { |
128 av_fdct = ff_fdct_mlib; | |
129 ff_idct = ff_idct_mlib; | 129 ff_idct = ff_idct_mlib; |
130 | 130 |
131 put_pixels_tab[0] = put_pixels_mlib; | 131 put_pixels_tab[0] = put_pixels_mlib; |
132 put_pixels_tab[1] = put_pixels_x2_mlib; | 132 put_pixels_tab[1] = put_pixels_x2_mlib; |
133 put_pixels_tab[2] = put_pixels_y2_mlib; | 133 put_pixels_tab[2] = put_pixels_y2_mlib; |
140 | 140 |
141 put_no_rnd_pixels_tab[0] = put_pixels_mlib; | 141 put_no_rnd_pixels_tab[0] = put_pixels_mlib; |
142 | 142 |
143 add_pixels_clamped = add_pixels_clamped_mlib; | 143 add_pixels_clamped = add_pixels_clamped_mlib; |
144 } | 144 } |
145 | |
146 void MPV_common_init_mlib(MpegEncContext *s) | |
147 { | |
148 if(s->avctx->dct_algo==FF_DCT_AUTO || s->avctx->dct_algo==FF_DCT_MLIB){ | |
149 s->fdct = ff_fdct_mlib; | |
150 } | |
151 } |