@ -184,11 +184,11 @@ static inline int vertClassify_altivec(uint8_t src[], int stride, PPContext *c)
if ( numEq > c - > ppMode . flatnessThreshold ) {
const vector unsigned char mmoP1 = ( const vector unsigned char )
AVV ( 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f ,
0x00 , 0x01 , 0x12 , 0x13 , 0x08 , 0x09 , 0x1A , 0x1B ) ;
{ 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f ,
0x00 , 0x01 , 0x12 , 0x13 , 0x08 , 0x09 , 0x1A , 0x1B } ;
const vector unsigned char mmoP2 = ( const vector unsigned char )
AVV ( 0x04 , 0x05 , 0x16 , 0x17 , 0x0C , 0x0D , 0x1E , 0x1F ,
0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f ) ;
{ 0x04 , 0x05 , 0x16 , 0x17 , 0x0C , 0x0D , 0x1E , 0x1F ,
0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f , 0x1f } ;
const vector unsigned char mmoP = ( const vector unsigned char )
vec_lvsl ( 8 , ( unsigned char * ) 0 ) ;
@ -350,8 +350,8 @@ static inline void doVertLowPass_altivec(uint8_t *src, int stride, PPContext *c)
COMPUTE_VR ( 7 , 8 , 9 ) ;
const vector signed char neg1 = vec_splat_s8 ( - 1 ) ;
const vector unsigned char permHH = ( const vector unsigned char ) AVV ( 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F ) ;
const vector unsigned char permHH = ( const vector unsigned char ) { 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F } ;
# define PACK_AND_STORE(i) \
{ const vector unsigned char perms # # i = \
@ -505,8 +505,8 @@ static inline void doVertDefFilter_altivec(uint8_t src[], int stride, PPContext
const vector unsigned char st5 = vec_packsu ( vb5plusd , ( vector signed short ) zero ) ;
const vector signed char neg1 = vec_splat_s8 ( - 1 ) ;
const vector unsigned char permHH = ( const vector unsigned char ) AVV ( 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F ) ;
const vector unsigned char permHH = ( const vector unsigned char ) { 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F } ;
# define STORE(i) \
{ const vector unsigned char perms # # i = \
@ -566,8 +566,8 @@ static inline void dering_altivec(uint8_t src[], int stride, PPContext *c) {
vector unsigned char v_avg ;
{
const vector unsigned char trunc_perm = ( vector unsigned char )
AVV ( 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 ,
0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 , 0x18 ) ;
{ 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 , 0x08 ,
0x11 , 0x12 , 0x13 , 0x14 , 0x15 , 0x16 , 0x17 , 0x18 } ;
const vector unsigned char trunc_src12 = vec_perm ( src1 , src2 , trunc_perm ) ;
const vector unsigned char trunc_src34 = vec_perm ( src3 , src4 , trunc_perm ) ;
const vector unsigned char trunc_src56 = vec_perm ( src5 , src6 , trunc_perm ) ;
@ -605,11 +605,11 @@ static inline void dering_altivec(uint8_t src[], int stride, PPContext *c) {
DECLARE_ALIGNED ( 16 , signed int , S [ 8 ] ) ;
{
const vector unsigned short mask1 = ( vector unsigned short )
AVV ( 0x0001 , 0x0002 , 0x0004 , 0x0008 ,
0x0010 , 0x0020 , 0x0040 , 0x0080 ) ;
{ 0x0001 , 0x0002 , 0x0004 , 0x0008 ,
0x0010 , 0x0020 , 0x0040 , 0x0080 } ;
const vector unsigned short mask2 = ( vector unsigned short )
AVV ( 0x0100 , 0x0200 , 0x0000 , 0x0000 ,
0x0000 , 0x0000 , 0x0000 , 0x0000 ) ;
{ 0x0100 , 0x0200 , 0x0000 , 0x0000 ,
0x0000 , 0x0000 , 0x0000 , 0x0000 } ;
const vector unsigned int vuint32_16 = vec_sl ( vec_splat_u32 ( 1 ) , vec_splat_u32 ( 4 ) ) ;
const vector unsigned int vuint32_1 = vec_splat_u32 ( 1 ) ;
@ -706,33 +706,33 @@ static inline void dering_altivec(uint8_t src[], int stride, PPContext *c) {
const vector unsigned int vuint32_4 = vec_splat_u32 ( 4 ) ;
const vector unsigned char permA1 = ( vector unsigned char )
AVV ( 0x00 , 0x01 , 0x02 , 0x10 , 0x11 , 0x12 , 0x1F , 0x1F ,
0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F ) ;
{ 0x00 , 0x01 , 0x02 , 0x10 , 0x11 , 0x12 , 0x1F , 0x1F ,
0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F } ;
const vector unsigned char permA2 = ( vector unsigned char )
AVV ( 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x10 , 0x11 ,
0x12 , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F ) ;
{ 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x10 , 0x11 ,
0x12 , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F , 0x1F } ;
const vector unsigned char permA1inc = ( vector unsigned char )
AVV ( 0x01 , 0x01 , 0x01 , 0x01 , 0x01 , 0x01 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ) ;
{ 0x01 , 0x01 , 0x01 , 0x01 , 0x01 , 0x01 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ;
const vector unsigned char permA2inc = ( vector unsigned char )
AVV ( 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x01 , 0x01 ,
0x01 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ) ;
{ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x01 , 0x01 ,
0x01 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ;
const vector unsigned char magic = ( vector unsigned char )
AVV ( 0x01 , 0x02 , 0x01 , 0x02 , 0x04 , 0x02 , 0x01 , 0x02 ,
0x01 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ) ;
{ 0x01 , 0x02 , 0x01 , 0x02 , 0x04 , 0x02 , 0x01 , 0x02 ,
0x01 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ;
const vector unsigned char extractPerm = ( vector unsigned char )
AVV ( 0x10 , 0x10 , 0x10 , 0x01 , 0x10 , 0x10 , 0x10 , 0x01 ,
0x10 , 0x10 , 0x10 , 0x01 , 0x10 , 0x10 , 0x10 , 0x01 ) ;
{ 0x10 , 0x10 , 0x10 , 0x01 , 0x10 , 0x10 , 0x10 , 0x01 ,
0x10 , 0x10 , 0x10 , 0x01 , 0x10 , 0x10 , 0x10 , 0x01 } ;
const vector unsigned char extractPermInc = ( vector unsigned char )
AVV ( 0x00 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x00 , 0x01 ,
0x00 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x00 , 0x01 ) ;
{ 0x00 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x00 , 0x01 ,
0x00 , 0x00 , 0x00 , 0x01 , 0x00 , 0x00 , 0x00 , 0x01 } ;
const vector unsigned char identity = vec_lvsl ( 0 , ( unsigned char * ) 0 ) ;
const vector unsigned char tenRight = ( vector unsigned char )
AVV ( 0x00 , 0x10 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ) ;
{ 0x00 , 0x10 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } ;
const vector unsigned char eightLeft = ( vector unsigned char )
AVV ( 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x08 ) ;
{ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 ,
0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x08 } ;
# define F_INIT(i) \
@ -979,8 +979,8 @@ static inline void RENAME(tempNoiseReducer)(uint8_t *src, int stride,
}
const vector signed char neg1 = vec_splat_s8 ( - 1 ) ;
const vector unsigned char permHH = ( const vector unsigned char ) AVV ( 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F ) ;
const vector unsigned char permHH = ( const vector unsigned char ) { 0x00 , 0x01 , 0x02 , 0x03 , 0x04 , 0x05 , 0x06 , 0x07 ,
0x18 , 0x19 , 0x1A , 0x1B , 0x1C , 0x1D , 0x1E , 0x1F } ;
# define PACK_AND_STORE(src, i) \
const vector unsigned char perms # # src # # i = \