uns i, j;
u32 cnt[IMAGE_REG_MAX];
+ if (cell_cols * cell_rows < 4)
+ {
+ DBG("Image is not textured.");
+ return;
+ }
+
DBG("Detecting textured image... cols=%u rows=%u cell_cols=%u cell_rows=%u", cols, rows, cell_cols, cell_rows);
/* Compute cells boundaries */
struct {
s32 dot; /* Dot product of the splitting plane */
s8 vec[IMAGE_VEC_F]; /* Normal vector of the splitting plane */
- };
+ } PACKED;
struct {
u64 pos; /* Cluster size in bytes */
- };
- };
+ } PACKED;
+ } PACKED;
} PACKED;
static inline uns