~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/ps2/dsputil_mmi.c

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-25 15:47:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080225154712-qvr11ekcea4c9ry8
Tags: 1.1.6-0.1ubuntu1
* Merge from debian-multimedia (LP: #120003), Ubuntu Changes:
 - For ffmpeg-related build-deps, remove cvs from package names.
 - Standards-Version 3.7.3
 - Maintainer Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * MMI optimized DSP utils
3
3
 * Copyright (c) 2000, 2001 Fabrice Bellard.
4
4
 *
5
 
 * This library is free software; you can redistribute it and/or
 
5
 * This file is part of FFmpeg.
 
6
 *
 
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.
9
11
 *
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.
14
16
 *
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
18
20
 *
19
 
 * MMI optimization by Leon van Stuivenberg <leonvs@iae.nl>
 
21
 * MMI optimization by Leon van Stuivenberg
20
22
 * clear_blocks_mmi() by BroadQ
21
23
 */
22
24
 
80
82
        "pextlb $10, $0, $10    \n\t"
81
83
        "sq     $10, 80(%1)     \n\t"
82
84
        "pextlb $8, $0, $8      \n\t"
83
 
        "sq     $8, 96(%1)      \n\t"
 
85
        "sq     $8, 96(%1)      \n\t"
84
86
        "pextlb $9, $0, $9      \n\t"
85
87
        "sq     $9, 112(%1)     \n\t"
86
88
        ".set   pop             \n\t"
112
114
        asm volatile (
113
115
        ".set   push            \n\t"
114
116
        ".set   mips3           \n\t"
115
 
        "1:                     \n\t"
 
117
        "1:                     \n\t"
116
118
        "ldr    $8, 0(%1)       \n\t"
117
119
        "add    $11, %1, %3     \n\t"
118
120
        "ldl    $8, 7(%1)       \n\t"
133
135
        "bgtz   %2, 1b          \n\t"
134
136
        ".set   pop             \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" );
137
139
}
138
140
 
139
141
 
150
152
    c->put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi;
151
153
 
152
154
    c->get_pixels = get_pixels_mmi;
153
 
       
 
155
 
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;