diff options
| author | 2011-02-04 18:23:20 -0800 | |
|---|---|---|
| committer | 2011-02-04 18:23:20 -0800 | |
| commit | ab280b8db6743b826f7412ec1de70e203b91c23d (patch) | |
| tree | 379f82515e90829291810095b4e09e7398962763 | |
| parent | b894f8959c6be2de5a0c89fedb9824012783dd14 (diff) | |
Fix issue 3426489 Overlay background changed when exported
Change-Id: I53d05732f6de6363cfb64fc84b2539e957adfcd6
| -rw-r--r-- | media/java/android/media/videoeditor/MediaArtistNativeHelper.java | 14 | ||||
| -rwxr-xr-x | media/java/android/media/videoeditor/Transition.java | 20 |
2 files changed, 19 insertions, 15 deletions
diff --git a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java index 806b2845baa8..8214e7fffeb4 100644 --- a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java +++ b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java @@ -2555,6 +2555,14 @@ class MediaArtistNativeHelper { final List<Effect> effects = m.getAllEffects(); final List<Overlay> overlays = m.getAllOverlays(); + + for (Overlay overlay : overlays) { + effectSettings[i] = getOverlaySettings((OverlayFrame)overlay); + adjustEffectsStartTimeAndDuration(effectSettings[i], beginCutTime, endCutTime); + effectSettings[i].startTime += storyBoardTime; + i++; + } + for (Effect effect : effects) { if (effect instanceof EffectColor) { effectSettings[i] = getEffectSettings((EffectColor)effect); @@ -2564,12 +2572,6 @@ class MediaArtistNativeHelper { } } - for (Overlay overlay : overlays) { - effectSettings[i] = getOverlaySettings((OverlayFrame)overlay); - adjustEffectsStartTimeAndDuration(effectSettings[i], beginCutTime, endCutTime); - effectSettings[i].startTime += storyBoardTime; - i++; - } return i; } diff --git a/media/java/android/media/videoeditor/Transition.java b/media/java/android/media/videoeditor/Transition.java index 4d1bafbc6a32..95f002c442f2 100755 --- a/media/java/android/media/videoeditor/Transition.java +++ b/media/java/android/media/videoeditor/Transition.java @@ -288,6 +288,16 @@ public abstract class Transition { List<EffectSettings> effectSettings = new ArrayList<EffectSettings>(); EffectSettings tmpEffectSettings; + overlays = m.getAllOverlays(); + for (Overlay overlay : overlays) { + tmpEffectSettings = mNativeHelper.getOverlaySettings((OverlayFrame)overlay); + mNativeHelper.adjustEffectsStartTimeAndDuration(tmpEffectSettings, + clipSettings.beginCutTime, clipSettings.endCutTime); + if (tmpEffectSettings.duration != 0) { + effectSettings.add(tmpEffectSettings); + } + } + effects = m.getAllEffects(); for (Effect effect : effects) { if (effect instanceof EffectColor) { @@ -303,15 +313,7 @@ public abstract class Transition { } } } - overlays = m.getAllOverlays(); - for (Overlay overlay : overlays) { - tmpEffectSettings = mNativeHelper.getOverlaySettings((OverlayFrame)overlay); - mNativeHelper.adjustEffectsStartTimeAndDuration(tmpEffectSettings, - clipSettings.beginCutTime, clipSettings.endCutTime); - if (tmpEffectSettings.duration != 0) { - effectSettings.add(tmpEffectSettings); - } - } + return effectSettings; } |