~ubuntu-branches/ubuntu/edgy/gstreamer0.10-ffmpeg/edgy

« back to all changes in this revision

Viewing changes to gst-libs/ext/ffmpeg/libavcodec/alpha/dsputil_alpha.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-04-01 16:13:43 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060401161343-n621cgjlujio0otg
Tags: upstream-0.10.1
Import upstream version 0.10.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU Lesser General Public
16
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 */
19
19
 
20
20
#include "asm.h"
28
28
                        int line_size, int h);
29
29
void put_pixels_clamped_mvi_asm(const DCTELEM *block, uint8_t *pixels,
30
30
                                int line_size);
31
 
void add_pixels_clamped_mvi_asm(const DCTELEM *block, uint8_t *pixels, 
 
31
void add_pixels_clamped_mvi_asm(const DCTELEM *block, uint8_t *pixels,
32
32
                                int line_size);
33
33
void (*put_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels,
34
34
                                 int line_size);
35
 
void (*add_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels, 
 
35
void (*add_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels,
36
36
                                 int line_size);
37
37
 
38
38
void get_pixels_mvi(DCTELEM *restrict block,
48
48
#if 0
49
49
/* These functions were the base for the optimized assembler routines,
50
50
   and remain here for documentation purposes.  */
51
 
static void put_pixels_clamped_mvi(const DCTELEM *block, uint8_t *pixels, 
 
51
static void put_pixels_clamped_mvi(const DCTELEM *block, uint8_t *pixels,
52
52
                                   int line_size)
53
53
{
54
54
    int i = 8;
72
72
    } while (--i);
73
73
}
74
74
 
75
 
void add_pixels_clamped_mvi(const DCTELEM *block, uint8_t *pixels, 
 
75
void add_pixels_clamped_mvi(const DCTELEM *block, uint8_t *pixels,
76
76
                            int line_size)
77
77
{
78
78
    int h = 8;
97
97
        shorts0 ^= signs0;
98
98
        /* Clamp. */
99
99
        shorts0 = maxsw4(shorts0, 0);
100
 
        shorts0 = minsw4(shorts0, clampmask);   
 
100
        shorts0 = minsw4(shorts0, clampmask);
101
101
 
102
102
        /* Next 4.  */
103
103
        pix1    = unpkbw(ldl(pixels + 4));
142
142
 
143
143
static inline uint64_t avg2(uint64_t a, uint64_t b)
144
144
{
145
 
    return (a | b) - (((a ^ b) & BYTE_VEC(0xfe)) >> 1);    
 
145
    return (a | b) - (((a ^ b) & BYTE_VEC(0xfe)) >> 1);
146
146
}
147
147
 
148
148
#if 0
353
353
 
354
354
    put_pixels_clamped_axp_p = c->put_pixels_clamped;
355
355
    add_pixels_clamped_axp_p = c->add_pixels_clamped;
356
 
    
 
356
 
357
357
    c->idct_put = simple_idct_put_axp;
358
358
    c->idct_add = simple_idct_add_axp;
359
359
    c->idct = simple_idct_axp;