avcodec: loongson delete invalid simple idct put and add optimization

Change-Id: I23a36c65915f01a1cf20e317c14b8eaaa62958b4
Signed-off-by: ZhouXiaoyong <zhouxiaoyong@loongson.cn>

Fixes Decoding of http://loongnix.org/ftp/multimedia/testing/nanocore_720p_24fps_mpeg4_ac3_short.avi

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
周晓勇 2015-09-02 18:00:24 +08:00 committed by Michael Niedermayer
parent 124b7cd485
commit a78656a187
2 changed files with 1 additions and 20 deletions

View File

@ -49,8 +49,6 @@ static av_cold void idctdsp_init_mmi(IDCTDSPContext *c, AVCodecContext *avctx,
(avctx->bits_per_raw_sample != 10) && (avctx->bits_per_raw_sample != 10) &&
(avctx->bits_per_raw_sample != 12) && (avctx->bits_per_raw_sample != 12) &&
(avctx->idct_algo == FF_IDCT_AUTO)) { (avctx->idct_algo == FF_IDCT_AUTO)) {
c->idct_put = ff_simple_idct_put_mmi;
c->idct_add = ff_simple_idct_add_mmi;
c->idct = ff_simple_idct_mmi; c->idct = ff_simple_idct_mmi;
c->perm_type = FF_IDCT_PERM_NONE; c->perm_type = FF_IDCT_PERM_NONE;
} }

View File

@ -54,7 +54,7 @@ DECLARE_ALIGNED(8, static const int16_t, coeffs)[]= {
C3, -C1, C3, -C1 C3, -C1, C3, -C1
}; };
static void simple_idct_mmi(int16_t *block) void ff_simple_idct_mmi(int16_t *block)
{ {
DECLARE_ALIGNED(8, int64_t, align_tmp)[16]; DECLARE_ALIGNED(8, int64_t, align_tmp)[16];
int16_t * const temp= (int16_t*)align_tmp; int16_t * const temp= (int16_t*)align_tmp;
@ -814,20 +814,3 @@ static void simple_idct_mmi(int16_t *block)
: "$10","$11" : "$10","$11"
); );
} }
void ff_simple_idct_mmi(int16_t *block)
{
simple_idct_mmi(block);
}
void ff_simple_idct_put_mmi(uint8_t *dest, int32_t line_size, int16_t *block)
{
simple_idct_mmi(block);
ff_put_pixels_clamped_mmi(block, dest, line_size);
}
void ff_simple_idct_add_mmi(uint8_t *dest, int32_t line_size, int16_t *block)
{
simple_idct_mmi(block);
ff_add_pixels_clamped_mmi(block, dest, line_size);
}