changeset 6007:3c37faa04193 libavcodec

Add 4x4 IDCT
author kostya
date Sun, 09 Dec 2007 05:54:59 +0000
parents ed7a232d570a
children 2c4164b26d53
files simple_idct.c simple_idct.h
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/simple_idct.c	Sun Dec 09 03:28:10 2007 +0000
+++ b/simple_idct.c	Sun Dec 09 05:54:59 2007 +0000
@@ -585,3 +585,17 @@
     }
 }
 
+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);
+    }
+}
--- a/simple_idct.h	Sun Dec 09 03:28:10 2007 +0000
+++ b/simple_idct.h	Sun Dec 09 05:54:59 2007 +0000
@@ -42,5 +42,6 @@
 
 void ff_simple_idct84_add(uint8_t *dest, int line_size, DCTELEM *block);
 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);
 
 #endif /* FFMPEG_SIMPLE_IDCT_H */