diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-12-09 05:54:59 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-12-09 05:54:59 +0000 |
commit | 91823a6efd6a036e76bca0b6bb7bc98de3a8cf8c (patch) | |
tree | 2e321ee54cd8333d614b66b83e38f4014342fc6c /libavcodec/simple_idct.c | |
parent | e2270b4e1e0e9cd8c3a6894df4f39b6a1563c3b0 (diff) | |
download | ffmpeg-91823a6efd6a036e76bca0b6bb7bc98de3a8cf8c.tar.gz |
Add 4x4 IDCT
Originally committed as revision 11198 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/simple_idct.c')
-rw-r--r-- | libavcodec/simple_idct.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/simple_idct.c b/libavcodec/simple_idct.c index 50d785761a..7bf0836aa4 100644 --- a/libavcodec/simple_idct.c +++ b/libavcodec/simple_idct.c @@ -585,3 +585,17 @@ void ff_simple_idct48_add(uint8_t *dest, int line_size, DCTELEM *block) } } +void ff_simple_idct44_add(uint8_t *dest, int line_size, DCTELEM *block) +{ + int i; + + /* IDCT4 on each line */ + for(i=0; i<4; i++) { + idct4row(block + i*8); + } + + /* IDCT4 and store */ + for(i=0; i<4; i++){ + idct4col_add(dest + i, line_size, block + i); + } +} |