1/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
12 * the License.
13 */
14
15package com.android.camera.burst;
16
17import java.io.File;
18
19/**
20 * Represents a media item generated by a burst.
21 */
22public interface BurstMediaItem {
23    /**
24     * Gets width of the media in pixels.
25     *
26     * @return width of the media in pixels
27     */
28    public int getWidth();
29
30    /**
31     * Gets height of the media in pixels.
32     *
33     * @return height of the media in pixels
34     */
35    public int getHeight();
36
37    /**
38     * Gets timestamp of the media in nanoseconds.
39     *
40     * @return timestamp of the media in nanoseconds
41     */
42    public long getTimestamp();
43
44    /**
45     * Gets the path to the media.
46     *
47     * @return the path to media file.
48     */
49    public File getFilePath();
50
51    /**
52     * Gets the mime type of the media.
53     *
54     * @return mime type of the media
55     */
56    public String getMimeType();
57
58    /**
59     * Gets the file extension of the media.
60     *
61     * @return file extension of the media
62     */
63    public String getExtension();
64
65    /**
66     * Returns whether the media file will support Exif data.
67     *
68     * @return true if the media type supports exif data, false otherwise
69     */
70    public boolean isSupportingExifData();
71}