1 /*
2  * Copyright (C) 2014 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 package com.android.camera.session;
18 
19 import android.net.Uri;
20 
21 import java.io.File;
22 
23 /**
24  * Used to store images that belong to the same stack.
25  */
26 public interface StackSaver {
27 
28     /**
29      * Save a single image from a stack/burst.
30      *
31      * @param inputImagePath the input image for the image.
32      * @param title the title of this image, without the file extension
33      * @param width the width of the image in pixels
34      * @param height the height of the image in pixels
35      * @param imageOrientation the image orientation in degrees
36      * @param captureTimeEpoch the capture time in millis since epoch
37      * @param mimeType the mime type of the image
38      * @return The Uri of the saved image, or null, of the image could not be
39      *         saved.
40      */
saveStackedImage(File inputImagePath, String title, int width, int height, int imageOrientation, long captureTimeEpoch, String mimeType)41     public Uri saveStackedImage(File inputImagePath, String title, int width, int height,
42             int imageOrientation, long captureTimeEpoch, String mimeType);
43 }
44