Lines Matching defs:bytes

231 /* number of bytes needed by GetVbrTag to parse header */
237 pull out Xing bytes
242 bytes = number of bytes before MPEG header. skip this many bytes
244 return value: number of bytes in VBR header, including syncword
247 check_vbr_header(PMPSTR mp, int bytes)
256 for (i = 0; i < bytes; ++i) {
277 /* check first bytes for Xing header */
304 * return number of bytes in mp, before the header
315 /* get 4 bytes */
324 /* not enough data to read 4 bytes */
410 int i, iret, bits, bytes;
423 /* bytes= number of bytes before header */
424 bytes = sync_buffer(mp, 0);
427 if (mp->bsize >= bytes + XING_HEADER_SIZE) {
428 /* vbrbytes = number of bytes in entire vbr header */
429 vbrbytes = check_vbr_header(mp, bytes);
441 if (bytes + vbrbytes > mp->bsize) {
450 lame_report_fnc(mp->report_dbg, "hip: found xing header, skipping %i bytes\n", vbrbytes + bytes);
452 for (i = 0; i < vbrbytes + bytes; ++i)
462 bytes = sync_buffer(mp, 1);
466 if (bytes < 0) {
467 /* lame_report_fnc(mp->report_err,"hip: need more bytes %d\n", bytes); */
470 if (bytes > 0) {
471 /* there were some extra bytes in front of header.
479 lame_report_fnc(mp->report_err, "hip: bitstream problem, resyncing skipping %d bytes...\n", bytes);
486 /* skip some bytes, buffer the rest */
491 lame_report_fnc(mp->report_err, "hip: wordpointer trashed. size=%i (%i) bytes=%i \n",
492 size, MAXFRAMESIZE, bytes);
498 we want to add 'bytes' worth of data, but do not
499 exceed MAXFRAMESIZE, so we through away 'i' bytes */
500 i = (size + bytes) - MAXFRAMESIZE;
502 --bytes;
506 copy_mp(mp, bytes, mp->wordpointer);
507 mp->fsizeold += bytes;
555 /* read just as many bytes as necessary before decoding */
563 "hip: error audio data exceeds framesize by %d bytes\n",
570 "hip: %d bits needed to parse layer III frame, number of bytes to read before decoding dsize = %d\n",
644 bytes = sync_buffer(mp, 1);
645 if (bytes < 0)
647 mp->framesize = bytes + mp->ssize + mp->dsize;
658 bytes = mp->framesize - (mp->ssize + mp->dsize);
659 if (bytes > mp->bsize) {
663 if (bytes > 0) {
667 while (bytes > 512) {
669 bytes--;
673 copy_mp(mp, bytes, mp->wordpointer);
674 mp->wordpointer += bytes;