Skip to content

Commit

Permalink
Adding comment to reference a GH issue relevant to time scaling funct…
Browse files Browse the repository at this point in the history
…ionality.
  • Loading branch information
develric committed May 20, 2021
1 parent 244a421 commit d8e90a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class Mp4ComposerBasic implements ComposerInterface {
private Listener listener;
private FillMode fillMode = FillMode.PRESERVE_ASPECT_FIT;
private FillModeCustomItem fillModeCustomItem;
// TODO: currently we do not use the timeScale feature. Also the timeScale ends up
// being converted into an int in the VideoComposer layer.
// See https://github.com/Automattic/stories-android/issues/685 for more context.
private float timeScale = 1f; // should be in range 0.125 (-8X) to 8.0 (8X)
private boolean isPitchChanged = false;
private boolean flipVertical = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ void setProgressCallback(ProgressCallback progressCallback) {
this.progressCallback = progressCallback;
}

// TODO: currently we do not use the timeScale feature. Also the timeScale ends up
// being converted into an int in the VideoComposer layer.
// See https://github.com/Automattic/stories-android/issues/685 for more context.
void compose(
final DataSource srcDataSource,
final String destSrc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ internal class VideoComposer {
private var encoderStarted: Boolean = false
var writtenPresentationTimeUs: Long = 0
private set
// TODO: currently we do not use the timeScale feature. Also the timeScale ends up
// being converted into an int in here being a float in upper layers.
// See https://github.com/Automattic/stories-android/issues/685 for more context.
private val timeScale: Int
private var useStaticBkg: Boolean = false
private var addedFrameCount = 0
Expand Down

0 comments on commit d8e90a1

Please sign in to comment.