diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-05-19 13:30:59 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-05-19 13:30:59 +0000 |
commit | 3d2e8cce3a887e08705c5206383b4049db31e58b (patch) | |
tree | 49a5aa910d791e06b8b1343331e2f4d8a4f05895 /libavcodec/huffyuv.c | |
parent | 22493ab9cb9f7d6c609e5d6b0c93d874c39b9700 (diff) | |
download | ffmpeg-3d2e8cce3a887e08705c5206383b4049db31e58b.tar.gz |
ASV1 codec
with postprocessing support :)
Originally committed as revision 1891 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r-- | libavcodec/huffyuv.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 354d0058ee..fd4ec29527 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -117,24 +117,6 @@ static const unsigned char classic_add_chroma[256] = { 6, 12, 8, 10, 7, 9, 6, 4, 6, 2, 2, 3, 3, 3, 3, 2, }; -static inline void bswap_buf(uint32_t *dst, uint32_t *src, int w){ - int i; - - for(i=0; i+8<=w; i+=8){ - dst[i+0]= bswap_32(src[i+0]); - dst[i+1]= bswap_32(src[i+1]); - dst[i+2]= bswap_32(src[i+2]); - dst[i+3]= bswap_32(src[i+3]); - dst[i+4]= bswap_32(src[i+4]); - dst[i+5]= bswap_32(src[i+5]); - dst[i+6]= bswap_32(src[i+6]); - dst[i+7]= bswap_32(src[i+7]); - } - for(;i<w; i++){ - dst[i+0]= bswap_32(src[i+0]); - } -} - static inline int add_left_prediction(uint8_t *dst, uint8_t *src, int w, int acc){ int i; @@ -749,7 +731,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8 if (buf_size == 0) return 0; - bswap_buf((uint32_t*)s->bitstream_buffer, (uint32_t*)buf, buf_size/4); + s->dsp.bswap_buf((uint32_t*)s->bitstream_buffer, (uint32_t*)buf, buf_size/4); init_get_bits(&s->gb, s->bitstream_buffer, buf_size*8); @@ -1126,7 +1108,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, } }else{ flush_put_bits(&s->pb); - bswap_buf((uint32_t*)buf, (uint32_t*)buf, size); + s->dsp.bswap_buf((uint32_t*)buf, (uint32_t*)buf, size); } s->picture_number++; |