Lines Matching refs:flushbits
806 int flushbits, remaining_headers;
815 flushbits = esv->header[last_ptr].write_timing - gfc->bs.totbit;
816 *total_bytes_output = flushbits;
818 if (flushbits >= 0) {
819 /* if flushbits >= 0, some headers have not yet been written */
820 /* reduce flushbits by the size of the headers */
824 flushbits -= remaining_headers * 8 * cfg->sideinfo_len;
833 flushbits += bitsPerFrame;
843 if (flushbits < 0) {
845 /* if flushbits < 0, this would mean that the buffer looks like:
858 return flushbits;
868 int flushbits;
875 if ((flushbits = compute_flushbits(gfc, &nbytes)) < 0)
877 drain_into_ancillary(gfc, flushbits);
941 ERRORF(gfc, "Internal buffer inconsistency. flushbits <> ResvSize");