All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.mp4parser.boxes.apple.TrackLoadSettingsAtom Maven / Gradle / Ivy

Go to download

A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)

There is a newer version: 1.1.22
Show newest version
package com.googlecode.mp4parser.boxes.apple;

import com.googlecode.mp4parser.AbstractBox;

import java.nio.ByteBuffer;

/**
 * 

4cc = "{@value #TYPE}"

* Track load settings atoms contain information that indicates how the * track is to be used in its movie. Applications that read QuickTime * files can use this information to process the movie data more efficiently. * Track load settings atoms have an atom type value of 'load'. */ public class TrackLoadSettingsAtom extends AbstractBox { public static final String TYPE = "load"; int preloadStartTime; int preloadDuration; int preloadFlags; int defaultHints; public TrackLoadSettingsAtom() { super(TYPE); } @Override protected long getContentSize() { return 16; } @Override protected void getContent(ByteBuffer byteBuffer) { byteBuffer.putInt(preloadStartTime); byteBuffer.putInt(preloadDuration); byteBuffer.putInt(preloadFlags); byteBuffer.putInt(defaultHints); } @Override protected void _parseDetails(ByteBuffer content) { preloadStartTime = content.getInt(); preloadDuration = content.getInt(); preloadFlags = content.getInt(); defaultHints = content.getInt(); } public int getPreloadStartTime() { return preloadStartTime; } public void setPreloadStartTime(int preloadStartTime) { this.preloadStartTime = preloadStartTime; } public int getPreloadDuration() { return preloadDuration; } public void setPreloadDuration(int preloadDuration) { this.preloadDuration = preloadDuration; } public int getPreloadFlags() { return preloadFlags; } public void setPreloadFlags(int preloadFlags) { this.preloadFlags = preloadFlags; } public int getDefaultHints() { return defaultHints; } public void setDefaultHints(int defaultHints) { this.defaultHints = defaultHints; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy