~ubuntu-branches/ubuntu/quantal/mplayer2/quantal-proposed

« back to all changes in this revision

Viewing changes to ffmpeg-mt/libavfilter/x86/yadif_template.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2011-04-21 09:21:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110421092139-7a21foqroxvir3wr
Tags: 2.0-54-gd33877a-1
* New upstream version
* Bug fix: "internal MP3 decoder miscompiles with gcc 4.6", thanks to
  Norbert Preining (Closes: #623279). Fixed by no longer using internal
  mp3lib copy.
* drop build host specific optimizations

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>
3
3
 *
4
 
 * This file is part of FFmpeg.
 
4
 * This file is part of Libav.
5
5
 *
6
 
 * FFmpeg is free software; you can redistribute it and/or modify
 
6
 * Libav is free software; you can redistribute it and/or modify
7
7
 * it under the terms of the GNU General Public License as published by
8
8
 * the Free Software Foundation; either version 2 of the License, or
9
9
 * (at your option) any later version.
10
10
 *
11
 
 * FFmpeg is distributed in the hope that it will be useful,
 
11
 * Libav is distributed in the hope that it will be useful,
12
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
14
 * GNU General Public License for more details.
15
15
 *
16
16
 * You should have received a copy of the GNU General Public License along
17
 
 * with FFmpeg; if not, write to the Free Software Foundation, Inc.,
 
17
 * with Libav; if not, write to the Free Software Foundation, Inc.,
18
18
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
19
 */
20
20
 
105
105
 
106
106
void RENAME(ff_yadif_filter_line)(uint8_t *dst,
107
107
                                  uint8_t *prev, uint8_t *cur, uint8_t *next,
108
 
                                  int w, int refs, int parity, int mode)
 
108
                                  int w, int prefs, int mrefs, int parity, int mode)
109
109
{
110
110
    DECLARE_ALIGNED(16, uint8_t, tmp0[16]);
111
111
    DECLARE_ALIGNED(16, uint8_t, tmp1[16]);
226
226
            :[prev] "r"(prev),\
227
227
             [cur]  "r"(cur),\
228
228
             [next] "r"(next),\
229
 
             [prefs]"r"((x86_reg)refs),\
230
 
             [mrefs]"r"((x86_reg)-refs),\
 
229
             [prefs]"r"((x86_reg)prefs),\
 
230
             [mrefs]"r"((x86_reg)mrefs),\
231
231
             [mode] "g"(mode)\
232
232
        );\
233
233
        __asm__ volatile(MOV" "MM"1, %0" :"=m"(*dst));\