[FFmpeg-devel] [PATCH] Add 4x4 IDCT
Kostya
kostya.shishkov
Sat Dec 8 12:42:04 CET 2007
Here's a patch that adds missing 4x4 IDCT (will be used by VC-1 decoder).
-------------- next part --------------
Index: simple_idct.c
===================================================================
--- simple_idct.c (revision 11185)
+++ simple_idct.c (working copy)
@@ -585,3 +585,17 @@
}
}
+void 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);
+ }
+
+ /* IDCT8 and store */
+ for(i=0; i<4; i++){
+ idct4col_add(dest + i, line_size, block + i);
+ }
+}
Index: simple_idct.h
===================================================================
--- simple_idct.h (revision 11125)
+++ simple_idct.h (working copy)
@@ -42,5 +42,6 @@
void simple_idct84_add(uint8_t *dest, int line_size, DCTELEM *block);
void simple_idct48_add(uint8_t *dest, int line_size, DCTELEM *block);
+void simple_idct44_add(uint8_t *dest, int line_size, DCTELEM *block);
#endif /* FFMPEG_SIMPLE_IDCT_H */
More information about the ffmpeg-devel
mailing list