@ -238,7 +238,7 @@ static void vc1_h_loop_filter16_c(uint8_t *src, int stride, int pq)
}
/* Do inverse transform on 8x8 block */
static void vc1_inv_trans_8x8_dc_c ( uint8_t * dest , int linesiz e, int16_t * block )
static void vc1_inv_trans_8x8_dc_c ( uint8_t * dest , ptrdiff_t strid e, int16_t * block )
{
int i ;
int dc = block [ 0 ] ;
@ -255,7 +255,7 @@ static void vc1_inv_trans_8x8_dc_c(uint8_t *dest, int linesize, int16_t *block)
dest [ 5 ] = av_clip_uint8 ( dest [ 5 ] + dc ) ;
dest [ 6 ] = av_clip_uint8 ( dest [ 6 ] + dc ) ;
dest [ 7 ] = av_clip_uint8 ( dest [ 7 ] + dc ) ;
dest + = linesiz e;
dest + = strid e;
}
}
@ -329,7 +329,7 @@ static void vc1_inv_trans_8x8_c(int16_t block[64])
}
/* Do inverse transform on 8x4 part of block */
static void vc1_inv_trans_8x4_dc_c ( uint8_t * dest , int linesiz e, int16_t * block )
static void vc1_inv_trans_8x4_dc_c ( uint8_t * dest , ptrdiff_t strid e, int16_t * block )
{
int i ;
int dc = block [ 0 ] ;
@ -346,11 +346,11 @@ static void vc1_inv_trans_8x4_dc_c(uint8_t *dest, int linesize, int16_t *block)
dest [ 5 ] = av_clip_uint8 ( dest [ 5 ] + dc ) ;
dest [ 6 ] = av_clip_uint8 ( dest [ 6 ] + dc ) ;
dest [ 7 ] = av_clip_uint8 ( dest [ 7 ] + dc ) ;
dest + = linesiz e;
dest + = strid e;
}
}
static void vc1_inv_trans_8x4_c ( uint8_t * dest , int linesiz e, int16_t * block )
static void vc1_inv_trans_8x4_c ( uint8_t * dest , ptrdiff_t strid e, int16_t * block )
{
int i ;
register int t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 ;
@ -395,10 +395,10 @@ static void vc1_inv_trans_8x4_c(uint8_t *dest, int linesize, int16_t *block)
t3 = 22 * src [ 8 ] + 10 * src [ 24 ] ;
t4 = 22 * src [ 24 ] - 10 * src [ 8 ] ;
dest [ 0 * linesiz e] = av_clip_uint8 ( dest [ 0 * linesiz e] + ( ( t1 + t3 ) > > 7 ) ) ;
dest [ 1 * linesiz e] = av_clip_uint8 ( dest [ 1 * linesiz e] + ( ( t2 - t4 ) > > 7 ) ) ;
dest [ 2 * linesiz e] = av_clip_uint8 ( dest [ 2 * linesiz e] + ( ( t2 + t4 ) > > 7 ) ) ;
dest [ 3 * linesiz e] = av_clip_uint8 ( dest [ 3 * linesiz e] + ( ( t1 - t3 ) > > 7 ) ) ;
dest [ 0 * strid e] = av_clip_uint8 ( dest [ 0 * strid e] + ( ( t1 + t3 ) > > 7 ) ) ;
dest [ 1 * strid e] = av_clip_uint8 ( dest [ 1 * strid e] + ( ( t2 - t4 ) > > 7 ) ) ;
dest [ 2 * strid e] = av_clip_uint8 ( dest [ 2 * strid e] + ( ( t2 + t4 ) > > 7 ) ) ;
dest [ 3 * strid e] = av_clip_uint8 ( dest [ 3 * strid e] + ( ( t1 - t3 ) > > 7 ) ) ;
src + + ;
dest + + ;
@ -406,7 +406,7 @@ static void vc1_inv_trans_8x4_c(uint8_t *dest, int linesize, int16_t *block)
}
/* Do inverse transform on 4x8 parts of block */
static void vc1_inv_trans_4x8_dc_c ( uint8_t * dest , int linesiz e, int16_t * block )
static void vc1_inv_trans_4x8_dc_c ( uint8_t * dest , ptrdiff_t strid e, int16_t * block )
{
int i ;
int dc = block [ 0 ] ;
@ -419,11 +419,11 @@ static void vc1_inv_trans_4x8_dc_c(uint8_t *dest, int linesize, int16_t *block)
dest [ 1 ] = av_clip_uint8 ( dest [ 1 ] + dc ) ;
dest [ 2 ] = av_clip_uint8 ( dest [ 2 ] + dc ) ;
dest [ 3 ] = av_clip_uint8 ( dest [ 3 ] + dc ) ;
dest + = linesiz e;
dest + = strid e;
}
}
static void vc1_inv_trans_4x8_c ( uint8_t * dest , int linesiz e, int16_t * block )
static void vc1_inv_trans_4x8_c ( uint8_t * dest , ptrdiff_t strid e, int16_t * block )
{
int i ;
register int t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 ;
@ -464,14 +464,14 @@ static void vc1_inv_trans_4x8_c(uint8_t *dest, int linesize, int16_t *block)
t3 = 9 * src [ 8 ] - 16 * src [ 24 ] + 4 * src [ 40 ] + 15 * src [ 56 ] ;
t4 = 4 * src [ 8 ] - 9 * src [ 24 ] + 15 * src [ 40 ] - 16 * src [ 56 ] ;
dest [ 0 * linesiz e] = av_clip_uint8 ( dest [ 0 * linesiz e] + ( ( t5 + t1 ) > > 7 ) ) ;
dest [ 1 * linesiz e] = av_clip_uint8 ( dest [ 1 * linesiz e] + ( ( t6 + t2 ) > > 7 ) ) ;
dest [ 2 * linesiz e] = av_clip_uint8 ( dest [ 2 * linesiz e] + ( ( t7 + t3 ) > > 7 ) ) ;
dest [ 3 * linesiz e] = av_clip_uint8 ( dest [ 3 * linesiz e] + ( ( t8 + t4 ) > > 7 ) ) ;
dest [ 4 * linesiz e] = av_clip_uint8 ( dest [ 4 * linesiz e] + ( ( t8 - t4 + 1 ) > > 7 ) ) ;
dest [ 5 * linesiz e] = av_clip_uint8 ( dest [ 5 * linesiz e] + ( ( t7 - t3 + 1 ) > > 7 ) ) ;
dest [ 6 * linesiz e] = av_clip_uint8 ( dest [ 6 * linesiz e] + ( ( t6 - t2 + 1 ) > > 7 ) ) ;
dest [ 7 * linesiz e] = av_clip_uint8 ( dest [ 7 * linesiz e] + ( ( t5 - t1 + 1 ) > > 7 ) ) ;
dest [ 0 * strid e] = av_clip_uint8 ( dest [ 0 * strid e] + ( ( t5 + t1 ) > > 7 ) ) ;
dest [ 1 * strid e] = av_clip_uint8 ( dest [ 1 * strid e] + ( ( t6 + t2 ) > > 7 ) ) ;
dest [ 2 * strid e] = av_clip_uint8 ( dest [ 2 * strid e] + ( ( t7 + t3 ) > > 7 ) ) ;
dest [ 3 * strid e] = av_clip_uint8 ( dest [ 3 * strid e] + ( ( t8 + t4 ) > > 7 ) ) ;
dest [ 4 * strid e] = av_clip_uint8 ( dest [ 4 * strid e] + ( ( t8 - t4 + 1 ) > > 7 ) ) ;
dest [ 5 * strid e] = av_clip_uint8 ( dest [ 5 * strid e] + ( ( t7 - t3 + 1 ) > > 7 ) ) ;
dest [ 6 * strid e] = av_clip_uint8 ( dest [ 6 * strid e] + ( ( t6 - t2 + 1 ) > > 7 ) ) ;
dest [ 7 * strid e] = av_clip_uint8 ( dest [ 7 * strid e] + ( ( t5 - t1 + 1 ) > > 7 ) ) ;
src + + ;
dest + + ;
@ -479,7 +479,7 @@ static void vc1_inv_trans_4x8_c(uint8_t *dest, int linesize, int16_t *block)
}
/* Do inverse transform on 4x4 part of block */
static void vc1_inv_trans_4x4_dc_c ( uint8_t * dest , int linesiz e, int16_t * block )
static void vc1_inv_trans_4x4_dc_c ( uint8_t * dest , ptrdiff_t strid e, int16_t * block )
{
int i ;
int dc = block [ 0 ] ;
@ -492,11 +492,11 @@ static void vc1_inv_trans_4x4_dc_c(uint8_t *dest, int linesize, int16_t *block)
dest [ 1 ] = av_clip_uint8 ( dest [ 1 ] + dc ) ;
dest [ 2 ] = av_clip_uint8 ( dest [ 2 ] + dc ) ;
dest [ 3 ] = av_clip_uint8 ( dest [ 3 ] + dc ) ;
dest + = linesiz e;
dest + = strid e;
}
}
static void vc1_inv_trans_4x4_c ( uint8_t * dest , int linesiz e, int16_t * block )
static void vc1_inv_trans_4x4_c ( uint8_t * dest , ptrdiff_t strid e, int16_t * block )
{
int i ;
register int t1 , t2 , t3 , t4 ;
@ -526,10 +526,10 @@ static void vc1_inv_trans_4x4_c(uint8_t *dest, int linesize, int16_t *block)
t3 = 22 * src [ 8 ] + 10 * src [ 24 ] ;
t4 = 22 * src [ 24 ] - 10 * src [ 8 ] ;
dest [ 0 * linesiz e] = av_clip_uint8 ( dest [ 0 * linesiz e] + ( ( t1 + t3 ) > > 7 ) ) ;
dest [ 1 * linesiz e] = av_clip_uint8 ( dest [ 1 * linesiz e] + ( ( t2 - t4 ) > > 7 ) ) ;
dest [ 2 * linesiz e] = av_clip_uint8 ( dest [ 2 * linesiz e] + ( ( t2 + t4 ) > > 7 ) ) ;
dest [ 3 * linesiz e] = av_clip_uint8 ( dest [ 3 * linesiz e] + ( ( t1 - t3 ) > > 7 ) ) ;
dest [ 0 * strid e] = av_clip_uint8 ( dest [ 0 * strid e] + ( ( t1 + t3 ) > > 7 ) ) ;
dest [ 1 * strid e] = av_clip_uint8 ( dest [ 1 * strid e] + ( ( t2 - t4 ) > > 7 ) ) ;
dest [ 2 * strid e] = av_clip_uint8 ( dest [ 2 * strid e] + ( ( t2 + t4 ) > > 7 ) ) ;
dest [ 3 * strid e] = av_clip_uint8 ( dest [ 3 * strid e] + ( ( t1 - t3 ) > > 7 ) ) ;
src + + ;
dest + + ;