Lines Matching refs:stream

67         var stream = this.bitstream;
68 if (!stream.available(32))
72 if ((stream.read(15) & 0x7FFF) !== 0x7FFC)
75 var isVarSize = stream.read(1), // variable block size stream code
76 bsCode = stream.read(4), // block size
77 srCode = stream.read(4), // sample rate code
78 chMode = stream.read(4), // channel mode
79 bpsCode = stream.read(3); // bits per sample
81 stream.advance(1); // reserved bit
110 while (stream.read(1) === 1)
113 var frame_or_sample_num = stream.read(7 - ones);
115 stream.advance(2); // == 2
116 frame_or_sample_num = (frame_or_sample_num << 6) | stream.read(6);
123 this.blockSize = stream.read(8) + 1;
125 this.blockSize = stream.read(16) + 1;
134 sampleRate = stream.read(8) * 1000;
136 sampleRate = stream.read(16);
138 sampleRate = stream.read(16) * 10;
142 stream.advance(8); // skip CRC check
148 stream.align();
149 stream.advance(16); // skip CRC frame footer
204 stream = this.bitstream,
217 if (stream.read(1))
220 var type = stream.read(6);
222 if (stream.read(1)) {
224 while (!stream.read(1))
234 var tmp = stream.read(this.curr_bps, true);
241 decoded[channel][i] = stream.read(bps, true);
261 stream = this.bitstream,
266 decoded[i] = stream.read(bps, true);
313 var stream = this.bitstream,
320 decoded[i] = stream.read(bps, true);
323 var coeff_prec = stream.read(4) + 1;
327 var qlevel = stream.read(5, true);
333 coeffs[i] = stream.read(coeff_prec, true);
435 var stream = this.bitstream,
436 method_type = stream.read(2);
441 var rice_order = stream.read(4),
452 var tmp = stream.read(method_type === 0 ? 4 : 5);
455 tmp = stream.read(5);
457 decoded[sample++] = stream.read(tmp, true);
595 var stream = this.stream;
597 if (!this.readHeader && stream.available(4)) {
598 if (stream.readString(4) !== 'fLaC')
604 while (stream.available(1) && !this.last) {
606 var tmp = stream.readUInt8();
609 this.size = stream.readUInt24();
615 if (!stream.available(this.size))
627 var bitstream = new AV.Bitstream(stream);
649 stream.advance(16); // skip MD5 hashes
663 … if(stream.peekUInt32(0) == 0xFFFFFFFF && stream.peekUInt32(1) == 0xFFFFFFFF)
666 stream.advance(18);
668 if(stream.readUInt32() > 0)
672 var samplenum = stream.readUInt32();
673 if(stream.readUInt32() > 0)
677 var offset = stream.readUInt32();
679 stream.advance(2);
689 var len = stream.readUInt32(true);
691 this.metadata.vendor = stream.readString(len);
692 var length = stream.readUInt32(true);
695 len = stream.readUInt32(true);
696 var str = stream.readString(len, 'utf8'),
706 var type = stream.readUInt32();
708 stream.advance(this.size - 4);
710 var mimeLen = stream.readUInt32(),
711 mime = stream.readString(mimeLen),
712 descLen = stream.readUInt32(),
713 description = stream.readString(descLen),
714 width = stream.readUInt32(),
715 height = stream.readUInt32(),
716 depth = stream.readUInt32(),
717 colors = stream.readUInt32(),
718 length = stream.readUInt32(),
719 picture = stream.readBuffer(length);
729 stream.advance(this.size);
737 while (stream.available(1) && this.last) {
738 var buffer = stream.readSingleBuffer(stream.remainingBytes());
761 this.stream = new AV.Stream(this.list);
765 var stream = this.stream;
768 stream.advance(5); // magic
769 if (stream.readUInt8() != 1)
772 stream.advance(3);
773 if (stream.peekString(0, 4) != 'fLaC')
776 this.flac = AV.Demuxer.find(stream.peekSingleBuffer(0, stream.remainingBytes()));