Lines Matching refs:offset

130       var buf, chunk, offset, _i, _len;
132 offset = 0;
135 buf.set(chunk, offset);
136 offset += chunk.length;
383 Bitstream.prototype.offset = function() { method in Bitstream
384 return 8 * this.stream.offset + this.bitPosition;
405 Bitstream.prototype.seek = function(offset) { argument
407 curOffset = this.offset();
408 if (offset > curOffset) {
409 return this.advance(offset - curOffset);
410 } else if (offset < curOffset) {
411 return this.rewind(curOffset - offset);
862 this.offset = 0;
876 result.offset = this.offset;
893 this.offset += bytes;
902 if (bytes > this.offset) {
910 this.offset -= bytes;
919 if (position > this.offset) {
920 return this.advance(position - this.offset);
921 } else if (position < this.offset) {
922 return this.rewind(this.offset - position);
933 this.offset += 1;
941 Stream.prototype.peekUInt8 = function(offset) { argument
943 if (offset == null) {
944 offset = 0;
946 if (!this.available(offset + 1)) {
949 offset = this.localOffset + offset;
952 if (buffer.length > offset) {
953 return buffer.data[offset];
955 offset -= buffer.length;
977 Stream.prototype.peek = function(bytes, offset, littleEndian) { argument
984 uint8[i] = this.peekUInt8(offset + i);
988 uint8[bytes - i - 1] = this.peekUInt8(offset + i);
998 Stream.prototype.peekInt8 = function(offset) { argument
999 if (offset == null) {
1000 offset = 0;
1002 this.peek(1, offset);
1011 Stream.prototype.peekUInt16 = function(offset, littleEndian) { argument
1012 if (offset == null) {
1013 offset = 0;
1015 this.peek(2, offset, littleEndian);
1024 Stream.prototype.peekInt16 = function(offset, littleEndian) { argument
1025 if (offset == null) {
1026 offset = 0;
1028 this.peek(2, offset, littleEndian);
1040 Stream.prototype.peekUInt24 = function(offset, littleEndian) { argument
1041 if (offset == null) {
1042 offset = 0;
1045 return this.peekUInt16(offset, true) + (this.peekUInt8(offset + 2) << 16);
1047 return (this.peekUInt16(offset) << 8) + this.peekUInt8(offset + 2);
1059 Stream.prototype.peekInt24 = function(offset, littleEndian) { argument
1060 if (offset == null) {
1061 offset = 0;
1064 return this.peekUInt16(offset, true) + (this.peekInt8(offset + 2) << 16);
1066 return (this.peekInt16(offset) << 8) + this.peekUInt8(offset + 2);
1075 Stream.prototype.peekUInt32 = function(offset, littleEndian) { argument
1076 if (offset == null) {
1077 offset = 0;
1079 this.peek(4, offset, littleEndian);
1088 Stream.prototype.peekInt32 = function(offset, littleEndian) { argument
1089 if (offset == null) {
1090 offset = 0;
1092 this.peek(4, offset, littleEndian);
1101 Stream.prototype.peekFloat32 = function(offset, littleEndian) { argument
1102 if (offset == null) {
1103 offset = 0;
1105 this.peek(4, offset, littleEndian);
1139 Stream.prototype.peekFloat64 = function(offset, littleEndian) { argument
1140 if (offset == null) {
1141 offset = 0;
1143 this.peek(8, offset, littleEndian);
1178 Stream.prototype.peekFloat80 = function(offset, littleEndian) { argument
1179 if (offset == null) {
1180 offset = 0;
1182 this.peek(10, offset, littleEndian);
1196 Stream.prototype.peekBuffer = function(offset, length) { argument
1198 if (offset == null) {
1199 offset = 0;
1204 to[i] = this.peekUInt8(offset + i);
1216 Stream.prototype.peekSingleBuffer = function(offset, length) { argument
1218 result = this.list.first.slice(this.localOffset + offset, length);
1229 Stream.prototype.peekString = function(offset, length, encoding) { argument
1230 if (offset == null) {
1231 offset = 0;
1236 return decodeString.call(this, offset, length, encoding, false);
1239 decodeString = function(offset, length, encoding, advance) { argument
1246 end = offset + length;
1251 while (offset < end && (c = this.peekUInt8(offset++)) !== nullEnd) {
1257 while (offset < end && (b1 = this.peekUInt8(offset++)) !== nullEnd) {
1261 b2 = this.peekUInt8(offset++) & 0x3f;
1264 b2 = this.peekUInt8(offset++) & 0x3f;
1265 b3 = this.peekUInt8(offset++) & 0x3f;
1268 b2 = this.peekUInt8(offset++) & 0x3f;
1269 b3 = this.peekUInt8(offset++) & 0x3f;
1270 b4 = this.peekUInt8(offset++) & 0x3f;
1293 if (length < 2 || (bom = this.peekUInt16(offset)) === nullEnd) {
1295 this.advance(offset += 2);
1300 offset += 2;
1302 while (offset < end && (w1 = this.peekUInt16(offset, littleEndian)) !== nullEnd) {
1303 offset += 2;
1310 w2 = this.peekUInt16(offset, littleEndian);
1315 offset += 2;
1319 offset += 2;
1326 this.advance(offset);
1425 var error, offset, packet;
1427 offset = this.bitstream.offset();
1441 this.bitstream.seek(offset);
1452 this.stream.seek(seekPoint.offset);
1686 Demuxer.prototype.addSeekPoint = function(offset, timestamp) { argument
1690 offset: offset,
1722 offset: this.format.bytesPerPacket * timestamp / this.format.framesPerPacket property in Demuxer.seek.seekPoint
1738 var e, format, offset, stream, _i, _len;
1742 offset = stream.offset;
1750 stream.seek(offset);
1784 var buffer, format, offset, _ref;
1833 offset = this.stream.readUInt32();
1835 this.stream.advance(offset);
1955 …var buffer, byteOffset, cookie, entries, flags, i, key, metadata, offset, sampleOffset, value, _i,…
1996 offset = this.stream.offset + this.headerCache.size;
2000 this.stream.seek(offset);
2147 this.offsets.push(this.stream.offset + this.len);
2168 while (this.stream.offset >= this.offsets[this.offsets.length - 1]) {
2271 var offset;
2272 offset = this.stream.offset + this.len;
2274 return this.stream.seek(offset);
2396 …var i, j, offset, position, sampleIndex, size, stscIndex, sttsIndex, sttsSample, timestamp, _i, _j…
2405 offset = 0;
2414 offset: offset,
2419 offset += size;
2463 var bytes, chunkSize, length, numSamples, offset, sample, size, _i;
2466 this.mdatOffset = this.stream.offset;
2488 offset = this.track.chunkOffsets[this.chunkIndex] + this.tailOffset;
2490 if (!this.stream.available(offset - this.stream.offset)) {
2494 this.stream.seek(offset);
2518 if (offset + length !== this.track.chunkOffsets[this.chunkIndex]) {
2552 if (!this.stream.available(point.position - this.stream.offset + 32)) {
3665 this.offset = 0;
3683 _this.offset += buf.length;
3686 if (_this.offset < _this.length) {
3693 if (_this.offset === _this.length) {
3706 return _this.emit('progress', (_this.offset + e.loaded) / _this.length * 100);
3715 endPos = Math.min(this.offset + this.chunkSize, this.length);
3716 blob = this.file[this.slice](this.offset, endPos);
3730 return this.offset = 0;
3809 _this.offset += buffer.length;
3811 if (_this.offset >= _this.length) {
3815 if (!(_this.offset >= _this.length)) {
3822 return _this.emit('progress', (_this.offset + event.loaded) / _this.length * 100);
3838 endPos = Math.min(this.offset + this.chunkSize, this.length);
3839 this.xhr.setRequestHeader("Range", "bytes=" + this.offset + "-" + endPos);
3852 return this.offset = 0;