Commit 8c50ffd8 authored by gpoirier's avatar gpoirier

Altivec version of h264_(h|v)_loop_filter_luma

patch by Graham Booker % perian A cod3r P com% with some minor fixes by me.
historic of the patch: http://trac.perian.org/ticket/113
Original thread:
Date: May 11, 2007 9:45 PM
Subject: [FFmpeg-devel] [PATCH] Altivec version of-altivec h264_h-v_loop_filter_luma


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9264 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent da10421b
......@@ -101,6 +101,17 @@ do { \
h = vec_mergel (D2, H2); \
} while (0)
/** \brief loads unaligned vector \a *src with offset \a offset
and returns it */
static inline vector unsigned char unaligned_load(int offset, uint8_t *src)
{
register vector unsigned char first = vec_ld(offset, src);
register vector unsigned char second = vec_ld(offset+15, src);
register vector unsigned char mask = vec_lvsl(offset, src);
return vec_perm(first, second, mask);
}
#endif /* HAVE_ALTIVEC */
#endif /* _DSPUTIL_ALTIVEC_ */
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment