Lines Matching defs:unit_size
52 size_t unit_size = row_bytes * 6 / 10 / units;
53 if (unit_size < 1) return false;
54 size_t bytes_required = unit_size * units;
58 memset(pos, 0, unit_size);
59 pos += unit_size * 2;
60 memset(pos, 0, unit_size);
61 pos += unit_size * 2;
63 memset(pos, 0, bits[bit] ? unit_size * 2: unit_size);
64 pos += unit_size * 3;
66 memset(pos, 0, unit_size);
67 pos += unit_size * 2;
68 memset(pos, 0, unit_size);
69 pos += unit_size;
111 double unit_size = (i[1] + i[2] + i[3] + i[4]) / 4;
113 if (i[0] > unit_size * 2 || i[0] < unit_size / 2) valid = false;
114 if (i[1] > unit_size * 2 || i[1] < unit_size / 2) valid = false;
115 if (i[2] > unit_size * 2 || i[2] < unit_size / 2) valid = false;
116 if (i[3] > unit_size * 2 || i[3] < unit_size / 2) valid = false;
119 if (i[0] > unit_size / 2 && i[0] <= unit_size * 1.5 &&
120 i[1] > unit_size * 1.5 && i[1] <= unit_size * 3) {
122 } else if (i[1] > unit_size / 2 && i[1] <= unit_size * 1.5 &&
123 i[0] > unit_size * 1.5 && i[0] <= unit_size * 3) {
131 if (i[0] > unit_size * 2 || i[0] < unit_size / 2) valid = false;
132 if (i[1] > unit_size * 2 || i[1] < unit_size / 2) valid = false;
133 if (i[2] > unit_size * 2 || i[2] < unit_size / 2) valid = false;