1 /* 2 * Copyright (C) 2015 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.burst; 18 19 import com.android.camera.burst.EvictionHandler; 20 21 import javax.annotation.ParametersAreNonnullByDefault; 22 23 /** 24 * Helper for taking bursts. 25 */ 26 @ParametersAreNonnullByDefault 27 public interface BurstTaker { 28 /** 29 * Start the burst. 30 * 31 * @param evictionHandler the strategy to use for evicting frames from the 32 * internal ring buffer. 33 * @param burstController the instance for {@link BurstController}. 34 */ startBurst(EvictionHandler evictionHandler, BurstController burstController)35 public void startBurst(EvictionHandler evictionHandler, BurstController burstController); 36 37 /** 38 * Stop the burst. 39 */ stopBurst()40 public void stopBurst(); 41 } 42