本文整理汇总了Java中com.googlecode.mp4parser.util.Matrix.fromByteBuffer方法的典型用法代码示例。如果您正苦于以下问题:Java Matrix.fromByteBuffer方法的具体用法?Java Matrix.fromByteBuffer怎么用?Java Matrix.fromByteBuffer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.googlecode.mp4parser.util.Matrix
的用法示例。
在下文中一共展示了Matrix.fromByteBuffer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: _parseDetails
import com.googlecode.mp4parser.util.Matrix; //导入方法依赖的package包/类
@Override
public void _parseDetails(ByteBuffer content) {
parseVersionAndFlags(content);
if (getVersion() == 1) {
creationTime = DateHelper.convert(IsoTypeReader.readUInt64(content));
modificationTime = DateHelper.convert(IsoTypeReader.readUInt64(content));
trackId = IsoTypeReader.readUInt32(content);
IsoTypeReader.readUInt32(content);
duration = IsoTypeReader.readUInt64(content);
} else {
creationTime = DateHelper.convert(IsoTypeReader.readUInt32(content));
modificationTime = DateHelper.convert(IsoTypeReader.readUInt32(content));
trackId = IsoTypeReader.readUInt32(content);
IsoTypeReader.readUInt32(content);
duration = IsoTypeReader.readUInt32(content);
} // 196
IsoTypeReader.readUInt32(content);
IsoTypeReader.readUInt32(content);
layer = IsoTypeReader.readUInt16(content); // 204
alternateGroup = IsoTypeReader.readUInt16(content);
volume = IsoTypeReader.readFixedPoint88(content);
IsoTypeReader.readUInt16(content); // 212
matrix = Matrix.fromByteBuffer(content);
width = IsoTypeReader.readFixedPoint1616(content); // 248
height = IsoTypeReader.readFixedPoint1616(content);
}
示例2: _parseDetails
import com.googlecode.mp4parser.util.Matrix; //导入方法依赖的package包/类
@Override
public void _parseDetails(ByteBuffer content) {
parseVersionAndFlags(content);
if (getVersion() == 1) {
creationTime = DateHelper.convert(IsoTypeReader.readUInt64(content));
modificationTime = DateHelper.convert(IsoTypeReader.readUInt64(content));
timescale = IsoTypeReader.readUInt32(content);
duration = IsoTypeReader.readUInt64(content);
} else {
creationTime = DateHelper.convert(IsoTypeReader.readUInt32(content));
modificationTime = DateHelper.convert(IsoTypeReader.readUInt32(content));
timescale = IsoTypeReader.readUInt32(content);
duration = IsoTypeReader.readUInt32(content);
}
rate = IsoTypeReader.readFixedPoint1616(content);
volume = IsoTypeReader.readFixedPoint88(content);
IsoTypeReader.readUInt16(content);
IsoTypeReader.readUInt32(content);
IsoTypeReader.readUInt32(content);
matrix = Matrix.fromByteBuffer(content);
previewTime = content.getInt();
previewDuration = content.getInt();
posterTime = content.getInt();
selectionTime = content.getInt();
selectionDuration = content.getInt();
currentTime = content.getInt();
nextTrackId = IsoTypeReader.readUInt32(content);
}