package freed.cam.apis.camera2.modules.capture;

import android.os.Build;
import android.util.Size;

import androidx.annotation.RequiresApi;

import freed.cam.apis.basecamera.modules.ModuleInterface;
import freed.image.EmptyTask;

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public class ContinouseYuvCapture extends ByteImageCapture {

    public ContinouseYuvCapture(Size size, int format, boolean setToPreview, ModuleInterface moduleInterface, String file_ending,int max_images) {
        super(size, format, setToPreview, moduleInterface, file_ending,max_images);
    }


    @Override
    protected void createTask() {
        task = new EmptyTask();
        if (image !=  null)
            image.close();
    }
}
