]> mj.ucw.cz Git - libucw.git/commitdiff
safe image-clusters aligning
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Tue, 12 Sep 2006 09:02:53 +0000 (11:02 +0200)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Tue, 12 Sep 2006 09:02:53 +0000 (11:02 +0200)
images/signature.h

index 27bd2bb15ac693454a29d9463e452e8d9d749baf..94a0813d0633266624683bb2cb92ec9e41076f61 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _IMAGES_SIGNATURE_H
 #define _IMAGES_SIGNATURE_H
 
+#include "lib/fastbuf.h"
+
 /* Configuration */
 extern uns image_sig_min_width, image_sig_min_height;
 extern uns *image_sig_prequant_thresholds;
@@ -42,13 +44,13 @@ struct image_cluster {
   union {
     struct {
       s32 dot;                 /* Dot product of the splitting plane */
-      s8 vec[IMAGE_VEC_F];     /* Normal vector of the splitting plane */
-    } PACKED;
+      byte vec[IMAGE_VEC_F];   /* Normal vector of the splitting plane */
+    };
     struct {
       u64 pos;                 /* Cluster size in bytes */
-    } PACKED;
-  } PACKED;
-} PACKED;
+    };
+  };
+};
 
 static inline uns
 image_signature_size(uns len)