~ubuntu-dev/mplayer/ubuntu-feisty

« back to all changes in this revision

Viewing changes to libavcodec/ppc/fdct_altivec.c

  • Committer: William Grant
  • Date: 2007-02-03 03:16:07 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: william.grant@ubuntu.org.au-20070203031607-08gc2ompbz6spt9i
Update to 1.0rc1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * AltiVec optimized library for the FFMPEG Multimedia System
3
3
 * Copyright (C) 2003  James Klicman <james@klicman.org>
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
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
 
18
 * License along with FFmpeg; if not, write to the Free Software
17
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
20
 */
19
21
 
196
198
void fdct_altivec(int16_t *block)
197
199
{
198
200
POWERPC_PERF_DECLARE(altivec_fdct, 1);
199
 
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
200
 
POWERPC_PERF_START_COUNT(altivec_fdct, 1);
201
 
    void ff_jpeg_fdct_islow(int16_t *block);
202
 
    ff_jpeg_fdct_islow(block);
203
 
POWERPC_PERF_STOP_COUNT(altivec_fdct, 1);
204
 
#else /* ALTIVEC_USE_REFERENCE_C_CODE */
205
201
    vector signed short *bp;
206
202
    vector float *cp;
207
203
    vector float b00, b10, b20, b30, b40, b50, b60, b70;
492
488
    /* }}} */
493
489
 
494
490
POWERPC_PERF_STOP_COUNT(altivec_fdct, 1);
495
 
#endif /* ALTIVEC_USE_REFERENCE_C_CODE */
496
491
}
497
492
 
498
493
/* vim:set foldmethod=marker foldlevel=0: */