Searched defs:targetTimeScale (Results 1 - 1 of 1) sorted by relevance

/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/
H A DChangeTimeScaleTrack.java46 * @param targetTimeScale the resulting time scale of this track.
49 public ChangeTimeScaleTrack(Track source, long targetTimeScale, long[] syncSamples) { argument
51 this.timeScale = targetTimeScale;
52 double timeScaleFactor = (double) targetTimeScale / source.getTrackMetaData().getTimescale();
54 tts = adjustTts(source.getDecodingTimeEntries(), timeScaleFactor, syncSamples, getTimes(source, syncSamples, targetTimeScale));
57 private static long[] getTimes(Track track, long[] syncSamples, long targetTimeScale) { argument
70 syncSampleTimes[currentSyncSampleIndex++] = (currentDuration * targetTimeScale) / track.getTrackMetaData().getTimescale();

Completed in 71 milliseconds