diff dsputil.h @ 34:2733a4c1c693 libavcodec

added block permutation functions
author glantau
date Tue, 07 Aug 2001 22:43:19 +0000
parents 82d4c9be9873
children 4ea4c10d03d8
line wrap: on
line diff
--- a/dsputil.h	Tue Aug 07 22:42:45 2001 +0000
+++ b/dsputil.h	Tue Aug 07 22:43:19 2001 +0000
@@ -15,6 +15,11 @@
 
 void (*av_fdct)(DCTELEM *block);
 
+/* encoding scans */
+extern UINT8 ff_alternate_horizontal_scan[64];
+extern UINT8 ff_alternate_vertical_scan[64];
+extern UINT8 zigzag_direct[64];
+
 /* pixel operations */
 #define MAX_NEG_CROP 384
 
@@ -62,6 +67,13 @@
 int pix_abs16x16_y2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h);
 int pix_abs16x16_xy2_c(UINT8 *blk1, UINT8 *blk2, int lx, int h);
 
+static inline int block_permute_op(int j)
+{
+    return (j & 0x38) | ((j & 6) >> 1) | ((j & 1) << 2);
+}
+
+void block_permute(INT16 *block);
+
 #ifdef HAVE_MMX
 
 #define MM_MMX    0x0001 /* standard MMX */