@Override protected void getContent(ByteBuffer byteBuffer) { IsoTypeWriter.writeUInt8(byteBuffer, (reserved1 << 6) + min_priorityId); IsoTypeWriter.writeUInt8(byteBuffer, (reserved2 << 6) + max_priorityId); }
public static void writeUInt16(ByteBuffer bb, int i) { i = i & 0xFFFF; writeUInt8(bb, i >> 8); writeUInt8(bb, i & 0xFF); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt8(byteBuffer, allBits); IsoTypeWriter.writeUInt8(byteBuffer, keyIndicatorLength); IsoTypeWriter.writeUInt8(byteBuffer, initVectorLength); }
public void getContent(ByteBuffer byteBuffer) { byteBuffer.put(IsoFile.fourCCtoBytes(vendor)); IsoTypeWriter.writeUInt8(byteBuffer, decoderVersion); IsoTypeWriter.writeUInt16(byteBuffer, modeSet); IsoTypeWriter.writeUInt8(byteBuffer, modeChangePeriod); IsoTypeWriter.writeUInt8(byteBuffer, framesPerSample); }
@Override protected void getContent(ByteBuffer byteBuffer) { IsoTypeWriter.writeUInt16(byteBuffer, tierID); IsoTypeWriter.writeUInt8(byteBuffer, profileIndication); IsoTypeWriter.writeUInt8(byteBuffer, profile_compatibility); IsoTypeWriter.writeUInt8(byteBuffer, levelIndication); IsoTypeWriter.writeUInt8(byteBuffer, reserved1); IsoTypeWriter.writeUInt16(byteBuffer, visualWidth); IsoTypeWriter.writeUInt16(byteBuffer, visualHeight); IsoTypeWriter.writeUInt8(byteBuffer, (discardable << 6) + (constantFrameRate << 4) + reserved2); IsoTypeWriter.writeUInt16(byteBuffer, frameRate); }
public static void writeZeroTermUtf8String(ByteBuffer bb, String string) { byte[] b = Utf8.convert(string); bb.put(b); writeUInt8(bb, 0); }
public static void writeUtf8String(ByteBuffer bb, String string) { bb.put(Utf8.convert(string)); writeUInt8(bb, 0); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); for (Entry entry : entries) { IsoTypeWriter.writeUInt8(byteBuffer, entry.value); } }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); for (Entry entry : entries) { IsoTypeWriter.writeUInt8(byteBuffer, entry.value); } }
public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, 6); writeSize(out, getContentSize()); IsoTypeWriter.writeUInt8(out, predefined); return out; }
@Override public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, 0x14); writeSize(out, getContentSize()); IsoTypeWriter.writeUInt8(out, profileLevelIndicationIndex); return out; }
public void getContent(ByteBuffer bb) { IsoTypeWriter.writeUInt16(bb, fontId); IsoTypeWriter.writeUInt8(bb, fontname.length()); bb.put(Utf8.convert(fontname)); }
@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); }
@Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeUInt24(byteBuffer, defaultAlgorithmId); IsoTypeWriter.writeUInt8(byteBuffer, defaultIvSize); byteBuffer.put(default_KID); }
@Override public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, tag); writeSize(out, getContentSize()); out.put(data.duplicate()); return out; }
public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, tag); writeSize(out, getContentSize()); out.put(bytes); return (ByteBuffer) out.rewind(); }
@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 ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, tag); writeSize(out, getContentSize()); out.put(serializeConfigBytes()); return (ByteBuffer) out.rewind(); }
@Override public void getBox(WritableByteChannel writableByteChannel) throws IOException { writableByteChannel.write(getHeader()); ByteBuffer versionFlagNumOfChildBoxes = ByteBuffer.allocate(6); IsoTypeWriter.writeUInt8(versionFlagNumOfChildBoxes, version); IsoTypeWriter.writeUInt24(versionFlagNumOfChildBoxes, flags); IsoTypeWriter.writeUInt16(versionFlagNumOfChildBoxes, getBoxes().size()); writableByteChannel.write((ByteBuffer) versionFlagNumOfChildBoxes.rewind()); writeContainer(writableByteChannel); }
@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); }