@ -29,10 +29,6 @@
# include "idct.h"
# include "idct.h"
# include "idctdsp_arm.h"
# include "idctdsp_arm.h"
/* XXX: local hack */
static void ( * put_pixels_clamped ) ( const int16_t * block , uint8_t * pixels , int line_size ) ;
static void ( * add_pixels_clamped ) ( const int16_t * block , uint8_t * pixels , int line_size ) ;
void ff_add_pixels_clamped_arm ( const int16_t * block , uint8_t * dest ,
void ff_add_pixels_clamped_arm ( const int16_t * block , uint8_t * dest ,
int line_size ) ;
int line_size ) ;
@ -41,25 +37,25 @@ void ff_add_pixels_clamped_arm(const int16_t *block, uint8_t *dest,
static void j_rev_dct_arm_put ( uint8_t * dest , int line_size , int16_t * block )
static void j_rev_dct_arm_put ( uint8_t * dest , int line_size , int16_t * block )
{
{
ff_j_rev_dct_arm ( block ) ;
ff_j_rev_dct_arm ( block ) ;
put_pixels_clamped ( block , dest , line_size ) ;
ff_ put_pixels_clamped( block , dest , line_size ) ;
}
}
static void j_rev_dct_arm_add ( uint8_t * dest , int line_size , int16_t * block )
static void j_rev_dct_arm_add ( uint8_t * dest , int line_size , int16_t * block )
{
{
ff_j_rev_dct_arm ( block ) ;
ff_j_rev_dct_arm ( block ) ;
add_pixels_clamped ( block , dest , line_size ) ;
ff_ add_pixels_clamped( block , dest , line_size ) ;
}
}
static void simple_idct_arm_put ( uint8_t * dest , int line_size , int16_t * block )
static void simple_idct_arm_put ( uint8_t * dest , int line_size , int16_t * block )
{
{
ff_simple_idct_arm ( block ) ;
ff_simple_idct_arm ( block ) ;
put_pixels_clamped ( block , dest , line_size ) ;
ff_ put_pixels_clamped( block , dest , line_size ) ;
}
}
static void simple_idct_arm_add ( uint8_t * dest , int line_size , int16_t * block )
static void simple_idct_arm_add ( uint8_t * dest , int line_size , int16_t * block )
{
{
ff_simple_idct_arm ( block ) ;
ff_simple_idct_arm ( block ) ;
add_pixels_clamped ( block , dest , line_size ) ;
ff_ add_pixels_clamped( block , dest , line_size ) ;
}
}
av_cold void ff_idctdsp_init_arm ( IDCTDSPContext * c , AVCodecContext * avctx ,
av_cold void ff_idctdsp_init_arm ( IDCTDSPContext * c , AVCodecContext * avctx ,
@ -67,9 +63,6 @@ av_cold void ff_idctdsp_init_arm(IDCTDSPContext *c, AVCodecContext *avctx,
{
{
int cpu_flags = av_get_cpu_flags ( ) ;
int cpu_flags = av_get_cpu_flags ( ) ;
put_pixels_clamped = c - > put_pixels_clamped ;
add_pixels_clamped = c - > add_pixels_clamped ;
if ( ! avctx - > lowres & & ! high_bit_depth ) {
if ( ! avctx - > lowres & & ! high_bit_depth ) {
if ( ( avctx - > idct_algo = = FF_IDCT_AUTO & & ! ( avctx - > flags & CODEC_FLAG_BITEXACT ) ) | |
if ( ( avctx - > idct_algo = = FF_IDCT_AUTO & & ! ( avctx - > flags & CODEC_FLAG_BITEXACT ) ) | |
avctx - > idct_algo = = FF_IDCT_ARM ) {
avctx - > idct_algo = = FF_IDCT_ARM ) {