Lines Matching defs:code_bits
1978 int code_bits; // number of valid bits
2086 j->code_buffer |= b << (24 - j->code_bits);
2087 j->code_bits += 8;
2088 } while (j->code_bits <= 24);
2100 if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
2108 if (s > j->code_bits)
2111 j->code_bits -= s;
2127 j->code_bits -= 16;
2131 if (k > j->code_bits)
2141 j->code_bits -= k;
2155 if (j->code_bits < n) stbi__grow_buffer_unsafe(j);
2156 if (j->code_bits < n) return 0; // ran out of bits from stream, return 0s intead of continuing
2162 j->code_bits -= n;
2170 if (j->code_bits < n) stbi__grow_buffer_unsafe(j);
2171 if (j->code_bits < n) return 0; // ran out of bits from stream, return 0s intead of continuing
2175 j->code_bits -= n;
2182 if (j->code_bits < 1) stbi__grow_buffer_unsafe(j);
2183 if (j->code_bits < 1) return 0; // ran out of bits from stream, return 0s intead of continuing
2186 --j->code_bits;
2213 if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
2232 if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
2238 if (s > j->code_bits) return stbi__err("bad huffman code", "Combined length longer than code bits available");
2240 j->code_bits -= s;
2269 if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
2310 if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
2316 if (s > j->code_bits) return stbi__err("bad huffman code", "Combined length longer than code bits available");
2318 j->code_bits -= s;
2936 j->code_bits = 0;
2968 if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);
3000 if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);
3031 if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);
3060 if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);