Mercurial > libavcodec.hg
diff huffyuv.c @ 1273:a979fab41ed8 libavcodec
ASV1 codec
with postprocessing support :)
author | michaelni |
---|---|
date | Mon, 19 May 2003 13:30:59 +0000 |
parents | 5adfc8044c64 |
children | 77aafc141a39 |
line wrap: on
line diff
--- a/huffyuv.c Mon May 19 01:22:46 2003 +0000 +++ b/huffyuv.c Mon May 19 13:30:59 2003 +0000 @@ -117,24 +117,6 @@ 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 @@ 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 @@ } }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++;