@Override protected void getContent(ByteBuffer byteBuffer) { IsoTypeWriter.writeUInt32(byteBuffer, bufferSizeDb); IsoTypeWriter.writeUInt32(byteBuffer, maxBitrate); IsoTypeWriter.writeUInt32(byteBuffer, avgBitrate); }
@Override protected void getContent(ByteBuffer byteBuffer) { for (long trackId : trackIds) { IsoTypeWriter.writeUInt32(byteBuffer, trackId); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt32(byteBuffer, trackId); IsoTypeWriter.writeUInt32(byteBuffer, defaultSampleDescriptionIndex); IsoTypeWriter.writeUInt32(byteBuffer, defaultSampleDuration); IsoTypeWriter.writeUInt32(byteBuffer, defaultSampleSize); defaultSampleFlags.getContent(byteBuffer); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt32(byteBuffer, sampleNumber.length); for (long aSampleNumber : sampleNumber) { IsoTypeWriter.writeUInt32(byteBuffer, aSampleNumber); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt32(byteBuffer, chunkOffsets.length); for (long chunkOffset : chunkOffsets) { IsoTypeWriter.writeUInt32(byteBuffer, chunkOffset); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUtf8String(byteBuffer, schemeIdUri); IsoTypeWriter.writeUtf8String(byteBuffer, value); IsoTypeWriter.writeUInt32(byteBuffer, timescale); IsoTypeWriter.writeUInt32(byteBuffer, presentationTimeDelta); IsoTypeWriter.writeUInt32(byteBuffer, eventDuration); IsoTypeWriter.writeUInt32(byteBuffer, id); byteBuffer.put(messageData); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); for (Entry entry : entries) { IsoTypeWriter.writeUInt32(byteBuffer, entry.getFirstChunk()); IsoTypeWriter.writeUInt32(byteBuffer, entry.getSamplesPerChunk()); IsoTypeWriter.writeUInt32(byteBuffer, entry.getSampleDescriptionIndex()); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt32(byteBuffer, mfraSize); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt32(byteBuffer, entries.size()); for (Entry entry : entries) { IsoTypeWriter.writeUInt32(byteBuffer, entry.getCount()); byteBuffer.putInt(entry.getOffset()); } }
@Override protected void getContent(ByteBuffer byteBuffer) { byteBuffer.put(IsoFile.fourCCtoBytes(majorBrand)); IsoTypeWriter.writeUInt32(byteBuffer, minorVersion); for (String compatibleBrand : compatibleBrands) { byteBuffer.put(IsoFile.fourCCtoBytes(compatibleBrand)); } }
@Override protected void getContent(ByteBuffer bb) { bb.put(new byte[]{0, 0, 0, 0, 0, 0}); IsoTypeWriter.writeUInt16(bb, dataReferenceIndex); bb.putInt(reserved1); IsoTypeWriter.writeUInt32(bb, flags); bb.putInt(timeScale); bb.putInt(frameDuration); IsoTypeWriter.writeUInt8(bb, numberOfFrames); IsoTypeWriter.writeUInt24(bb, reserved2); bb.put(rest); }
public void getBox(WritableByteChannel writableByteChannel) throws IOException { ByteBuffer header = ByteBuffer.allocate(8); IsoTypeWriter.writeUInt32(header, getSize()); header.put(IsoFile.fourCCtoBytes(getType())); writableByteChannel.write((ByteBuffer) header.rewind()); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt64(byteBuffer, systemId.getMostSignificantBits()); IsoTypeWriter.writeUInt64(byteBuffer, systemId.getLeastSignificantBits()); ByteBuffer data = protectionSpecificHeader.getData(); data.rewind(); IsoTypeWriter.writeUInt32(byteBuffer, data.limit()); byteBuffer.put(data); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); byteBuffer.put(IsoFile.fourCCtoBytes(dataReferenceType)); IsoTypeWriter.writeUInt32(byteBuffer, dataReferenceSize); byteBuffer.put(Utf8.convert(dataReference)); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); if (getVersion() == 0x01) { IsoTypeWriter.writeUInt64(byteBuffer, fragmentAbsoluteTime); IsoTypeWriter.writeUInt64(byteBuffer, fragmentAbsoluteDuration); } else { IsoTypeWriter.writeUInt32(byteBuffer, fragmentAbsoluteTime); IsoTypeWriter.writeUInt32(byteBuffer, fragmentAbsoluteDuration); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt32(byteBuffer, chunkOffsets.length); for (long chunkOffset : chunkOffsets) { IsoTypeWriter.writeUInt64(byteBuffer, chunkOffset); } }
@Override public void getBox(WritableByteChannel writableByteChannel) throws IOException { writableByteChannel.write(getHeader()); ByteBuffer versionFlagNumOfChildBoxes = ByteBuffer.allocate(8); IsoTypeWriter.writeUInt8(versionFlagNumOfChildBoxes, version); IsoTypeWriter.writeUInt24(versionFlagNumOfChildBoxes, flags); IsoTypeWriter.writeUInt32(versionFlagNumOfChildBoxes, getBoxes().size()); writableByteChannel.write((ByteBuffer) versionFlagNumOfChildBoxes.rewind()); writeContainer(writableByteChannel); }
public void getBox(WritableByteChannel writableByteChannel) throws IOException { ByteBuffer header = ByteBuffer.allocate(l2i(getSize())); IsoTypeWriter.writeUInt32(header, getSize()); header.put(IsoFile.fourCCtoBytes(getType())); header.put(Utf8.convert(content)); writableByteChannel.write((ByteBuffer) header.rewind()); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); if (getVersion() == 1) { IsoTypeWriter.writeUInt64(byteBuffer, baseMediaDecodeTime); } else { IsoTypeWriter.writeUInt32(byteBuffer, baseMediaDecodeTime); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); if (getVersion() == 1) { IsoTypeWriter.writeUInt64(byteBuffer, fragmentDuration); } else { IsoTypeWriter.writeUInt32(byteBuffer, fragmentDuration); } }