public void parse(ByteBuffer input) { super.parse(input); channelLayout = input.getInt(); channelBitmap = input.getInt(); int numDescriptions = input.getInt(); descriptions = new ChannelDescription[numDescriptions]; for (int i = 0; i < numDescriptions; i++) { descriptions[i] = new ChannelDescription(input.getInt(), input.getInt(), new float[] { Float.intBitsToFloat(input.getInt()), Float.intBitsToFloat(input.getInt()), Float.intBitsToFloat(input.getInt()) }); } }
public void parse(ByteBuffer input) { super.parse(input); channelLayout = input.getInt(); channelBitmap = input.getInt(); int numDescriptions = input.getInt(); descriptions = new ChannelDescription[numDescriptions]; for (int i = 0; i < numDescriptions; i++) { descriptions[i] = new ChannelDescription(input.getInt(), input.getInt(), new float[] { Float.intBitsToFloat(input.getInt()), Float.intBitsToFloat(input.getInt()), Float.intBitsToFloat(input.getInt()) }); } }
public void parse(ByteBuffer input) { super.parse(input); channelLayout = input.getInt(); channelBitmap = input.getInt(); int numDescriptions = input.getInt(); descriptions = new ChannelDescription[numDescriptions]; for (int i = 0; i < numDescriptions; i++) { descriptions[i] = new ChannelDescription(input.getInt(), input.getInt(), new float[] { Float.intBitsToFloat(input.getInt()), Float.intBitsToFloat(input.getInt()), Float.intBitsToFloat(input.getInt()) }); } }
public static void setLabels(Label[] labels, ChannelBox channel) { channel.setChannelLayout(ChannelLayout.kCAFChannelLayoutTag_UseChannelDescriptions.getCode()); ChannelDescription[] list = new ChannelDescription[labels.length]; for (int i = 0; i < labels.length; i++) list[i] = new ChannelBox.ChannelDescription(labels[i].getVal(), 0, new float[] { 0, 0, 0 }); channel.setDescriptions(list); }
public static void setLabels(Label[] labels, ChannelBox channel) { channel.setChannelLayout(ChannelLayout.kCAFChannelLayoutTag_UseChannelDescriptions.getCode()); ChannelDescription[] list = new ChannelDescription[labels.length]; for (int i = 0; i < labels.length; i++) list[i] = new ChannelBox.ChannelDescription(labels[i].getVal(), 0, new float[] { 0, 0, 0 }); channel.setDescriptions(list); }
public static void setLabels(Label[] labels, ChannelBox channel) { channel.setChannelLayout(kCAFChannelLayoutTag_UseChannelDescriptions.getCode()); ChannelDescription[] list = new ChannelDescription[labels.length]; for (int i = 0; i < labels.length; i++) list[i] = new ChannelBox.ChannelDescription(labels[i].getVal(), 0, new float[] { 0, 0, 0 }); channel.setDescriptions(list); }