1/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18package android.media.videoeditor;
19
20
21/**
22 * This class allows to render a crossfade (dissolve) effect transition between
23 * two videos
24 * {@hide}
25 */
26public class TransitionCrossfade extends Transition {
27    /**
28     * An object of this type cannot be instantiated by using the default
29     * constructor
30     */
31    @SuppressWarnings("unused")
32    private TransitionCrossfade() {
33        this(null, null, null, 0, 0);
34    }
35
36    /**
37     * Constructor
38     *
39     * @param transitionId The transition id
40     * @param afterMediaItem The transition is applied to the end of this
41     *      media item
42     * @param beforeMediaItem The transition is applied to the beginning of
43     *      this media item
44     * @param durationMs duration of the transition in milliseconds
45     * @param behavior behavior is one of the behavior defined in Transition
46     *      class
47     *
48     * @throws IllegalArgumentException if behavior is not supported.
49     */
50    public TransitionCrossfade(String transitionId, MediaItem afterMediaItem,
51            MediaItem beforeMediaItem, long durationMs, int behavior) {
52        super(transitionId, afterMediaItem, beforeMediaItem, durationMs, behavior);
53    }
54
55    /*
56     * {@inheritDoc}
57     */
58    @Override
59    void generate() {
60        super.generate();
61    }
62}
63