2
2
* MMI optimized DSP utils
3
3
* Copyright (c) 2000, 2001 Fabrice Bellard.
5
* This library is free software; you can redistribute it and/or
5
* This file is part of FFmpeg.
7
* FFmpeg is free software; you can redistribute it and/or
6
8
* modify it under the terms of the GNU Lesser General Public
7
9
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
12
* FFmpeg is distributed in the hope that it will be useful,
11
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
15
* Lesser General Public License for more details.
15
17
* You should have received a copy of the GNU Lesser General Public
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
18
* License along with FFmpeg; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
* MMI optimization by Leon van Stuivenberg <leonvs@iae.nl>
21
* MMI optimization by Leon van Stuivenberg
20
22
* clear_blocks_mmi() by BroadQ
133
135
"bgtz %2, 1b \n\t"
135
137
: "+r" (block), "+r" (pixels), "+r" (h) : "r" (line_size)
136
: "$8", "$9", "$10", "$11", "$12", "$13", "memory" );
138
: "$8", "$9", "$10", "$11", "$12", "$13", "memory" );
150
152
c->put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi;
152
154
c->get_pixels = get_pixels_mmi;
154
156
if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_PS2){
155
157
c->idct_put= ff_mmi_idct_put;
156
158
c->idct_add= ff_mmi_idct_add;