Lines Matching defs:last_ptr
808 int last_ptr, first_ptr;
810 last_ptr = esv->h_ptr - 1; /* last header to add to bitstream */
811 if (last_ptr == -1)
812 last_ptr = MAX_HEADER_BUF - 1;
815 flushbits = esv->header[last_ptr].write_timing - gfc->bs.totbit;
821 remaining_headers = 1 + last_ptr - first_ptr;
822 if (last_ptr < first_ptr)
823 remaining_headers = 1 + last_ptr - first_ptr + MAX_HEADER_BUF;
848 DEBUGF(gfc, "last header write_timing = %i \n", esv->header[last_ptr].write_timing);
851 DEBUGF(gfc, "first_ptr, last_ptr %i %i \n", first_ptr, last_ptr);
869 int last_ptr = esv->h_ptr - 1; /* last header to add to bitstream */
870 if (last_ptr == -1)
871 last_ptr = MAX_HEADER_BUF - 1;
880 assert(esv->header[last_ptr].write_timing + getframebits(gfc)