public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, tag); writeSize(out, getContentSize()); IsoTypeWriter.writeUInt8(out, objectTypeIndication); int flags = (streamType << 2) | (upStream << 1) | 1; IsoTypeWriter.writeUInt8(out, flags); IsoTypeWriter.writeUInt24(out, bufferSizeDB); IsoTypeWriter.writeUInt32(out, maxBitRate); IsoTypeWriter.writeUInt32(out, avgBitRate); if (decoderSpecificInfo != null) { ByteBuffer bb = decoderSpecificInfo.serialize(); out.put(bb); } if (audioSpecificInfo != null) { ByteBuffer bb = audioSpecificInfo.serialize(); out.put(bb); } for (ProfileLevelIndicationDescriptor profileLevelIndicationDescriptor : profileLevelIndicationDescriptors) { out.put(profileLevelIndicationDescriptor.serialize()); } return (ByteBuffer) out.rewind(); }
decoderConfigDescriptor.setObjectTypeIndication(32); decoderConfigDescriptor.setStreamType(4); DecoderSpecificInfo decoderSpecificInfo = new DecoderSpecificInfo(); Sample s = createSampleObject(esdsStuff); byte[] data = new byte[l2i(s.getSize())]; s.asByteBuffer().get(data); decoderSpecificInfo.setData(data); decoderConfigDescriptor.setDecoderSpecificInfo(decoderSpecificInfo); esDescriptor.setDecoderConfigDescriptor(decoderConfigDescriptor);
public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, tag); writeSize(out, getContentSize()); out.put(bytes); return (ByteBuffer) out.rewind(); }
DecoderSpecificInfo info = configDescriptor.getDecoderSpecificInfo(); if (info != null) { log.debug("Decoder info found: {}", info.getTag());
int getContentSize() { int out = 13 + (audioSpecificInfo == null ? 0 : audioSpecificInfo.getSize()) + (decoderSpecificInfo == null ? 0 : decoderSpecificInfo.getSize()); for (ProfileLevelIndicationDescriptor profileLevelIndicationDescriptor : profileLevelIndicationDescriptors) { out += profileLevelIndicationDescriptor.getSize(); } return out; }
if (dcd1.getDecoderSpecificInfo() != null ? !dcd1.getDecoderSpecificInfo().equals(dcd2.getDecoderSpecificInfo()) : dcd2.getDecoderSpecificInfo() != null) { return null;
DecoderSpecificInfo info = configDescriptor.getDecoderSpecificInfo(); if (info != null) { log.debug("Decoder info found: {}", info.getTag());
int getContentSize() { int out = 13 + (audioSpecificInfo == null ? 0 : audioSpecificInfo.getSize()) + (decoderSpecificInfo == null ? 0 : decoderSpecificInfo.getSize()); for (ProfileLevelIndicationDescriptor profileLevelIndicationDescriptor : profileLevelIndicationDescriptors) { out += profileLevelIndicationDescriptor.getSize(); } return out; }
if (dcd1.getDecoderSpecificInfo() != null ? !dcd1.getDecoderSpecificInfo().equals(dcd2.getDecoderSpecificInfo()) : dcd2.getDecoderSpecificInfo() != null) { return null;
public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, tag); writeSize(out, getContentSize()); out.put(bytes); return (ByteBuffer) out.rewind(); }
if (decConf != null) { DecoderSpecificInfo decInfo = decConf.getDecoderSpecificInfo(); ByteBuffer byteBuffer = decInfo.serialize(); videoDecoderBytes = new byte[byteBuffer.limit()]; byteBuffer.get(videoDecoderBytes);
decoderConfigDescriptor.setObjectTypeIndication(32); decoderConfigDescriptor.setStreamType(4); DecoderSpecificInfo decoderSpecificInfo = new DecoderSpecificInfo(); Sample s = createSampleObject(esdsStuff); byte[] data = new byte[l2i(s.getSize())]; s.asByteBuffer().get(data); decoderSpecificInfo.setData(data); decoderConfigDescriptor.setDecoderSpecificInfo(decoderSpecificInfo); esDescriptor.setDecoderConfigDescriptor(decoderConfigDescriptor);
DecoderSpecificInfo info = configDescriptor.getDecoderSpecificInfo(); if (info != null) { log.debug("Decoder info found: {}", info.getTag());
public ByteBuffer serialize() { ByteBuffer out = ByteBuffer.allocate(getSize()); IsoTypeWriter.writeUInt8(out, tag); writeSize(out, getContentSize()); IsoTypeWriter.writeUInt8(out, objectTypeIndication); int flags = (streamType << 2) | (upStream << 1) | 1; IsoTypeWriter.writeUInt8(out, flags); IsoTypeWriter.writeUInt24(out, bufferSizeDB); IsoTypeWriter.writeUInt32(out, maxBitRate); IsoTypeWriter.writeUInt32(out, avgBitRate); if (decoderSpecificInfo != null) { ByteBuffer bb = decoderSpecificInfo.serialize(); out.put(bb); } if (audioSpecificInfo != null) { ByteBuffer bb = audioSpecificInfo.serialize(); out.put(bb); } for (ProfileLevelIndicationDescriptor profileLevelIndicationDescriptor : profileLevelIndicationDescriptors) { out.put(profileLevelIndicationDescriptor.serialize()); } return (ByteBuffer) out.rewind(); }
DecoderSpecificInfo info = configDescriptor.getDecoderSpecificInfo(); if (info != null) { log.debug("Decoder info found: {}", info.getTag());
if (decConf != null) { DecoderSpecificInfo decInfo = decConf.getDecoderSpecificInfo(); ByteBuffer byteBuffer = decInfo.serialize(); videoDecoderBytes = new byte[byteBuffer.limit()]; byteBuffer.get(videoDecoderBytes);