Lines Matching defs:header

141     memcpy(&bs->buf[bs->buf_byte_idx], esv->header[esv->w_ptr].buf, cfg->sideinfo_len);
166 assert(esv->header[esv->w_ptr].write_timing >= bs->totbit);
167 if (esv->header[esv->w_ptr].write_timing == bs->totbit) {
268 /*write N bits into the header */
273 int ptr = esv->header[esv->h_ptr].ptr;
279 esv->header[esv->h_ptr].buf[ptr >> 3]
283 esv->header[esv->h_ptr].ptr = ptr;
304 CRC_writeheader(lame_internal_flags const *gfc, char *header)
310 crc = CRC_update(((unsigned char *) header)[2], crc);
311 crc = CRC_update(((unsigned char *) header)[3], crc);
313 crc = CRC_update(((unsigned char *) header)[i], crc);
316 header[4] = crc >> 8;
317 header[5] = crc & 255;
330 esv->header[esv->h_ptr].ptr = 0;
331 memset(esv->header[esv->h_ptr].buf, 0, cfg->sideinfo_len);
470 /* (jo) error_protection: add crc16 information to header */
471 CRC_writeheader(gfc, esv->header[esv->h_ptr].buf);
476 assert(esv->header[old].ptr == cfg->sideinfo_len * 8);
479 esv->header[esv->h_ptr].write_timing = esv->header[old].write_timing + bitsPerFrame;
482 /* yikes! we are out of header buffer space */
809 first_ptr = esv->w_ptr; /* first header to add to bitstream */
810 last_ptr = esv->h_ptr - 1; /* last header to add to bitstream */
815 flushbits = esv->header[last_ptr].write_timing - gfc->bs.totbit;
848 DEBUGF(gfc, "last header write_timing = %i \n", esv->header[last_ptr].write_timing);
849 DEBUGF(gfc, "first header write_timing = %i \n", esv->header[first_ptr].write_timing);
869 int last_ptr = esv->h_ptr - 1; /* last header to add to bitstream */
880 assert(esv->header[last_ptr].write_timing + getframebits(gfc)
902 esv->header[i].write_timing += 8;
913 a series of main_data() blocks, with header and side information
953 "header and sideinfo: %i \n"
978 esv->header[i].write_timing -= gfc->bs.totbit;
1086 * this info will be written into the Xing/LAME header for seeking
1102 esv->header[esv->h_ptr].write_timing = 0;