TransitionFadeBlack.java revision fa3d263131ba775bf62c406ff0f85abb8366d70f
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
17package android.media.videoeditor;
18
19
20/**
21 * This class is used to render a fade to black and fade from black transition
22 * between two media items.
23 * {@hide}
24 */
25public class TransitionFadeBlack extends Transition {
26    /**
27     * An object of this type cannot be instantiated by using the default
28     * constructor
29     */
30    @SuppressWarnings("unused")
31    private TransitionFadeBlack() {
32        this(null, null, null, 0, 0);
33    }
34
35    /**
36     * Constructor
37     *
38     * @param transitionId The transition id
39     * @param afterMediaItem The transition is applied to the end of this
40     *      media item
41     * @param beforeMediaItem The transition is applied to the beginning of
42     *      this media item
43     * @param durationMs duration of the transition
44     * @param behavior behavior is one of the behavior defined in Transition
45     *            class
46     *
47     * @throws IllegalArgumentException if behavior is not supported.
48     */
49    public TransitionFadeBlack(String transitionId, MediaItem afterMediaItem,
50            MediaItem beforeMediaItem, long durationMs, int behavior) {
51        super(transitionId, afterMediaItem, beforeMediaItem, durationMs, behavior);
52    }
53
54    /*
55     * {@inheritDoc}
56     */
57    @Override
58    void generate() {
59    }
60}
61