comparison src/com/aurellem/capture/video/VideoRecorder.java @ 39:784a3f4e6202

updating capture-video
author Robert McIntyre <rlm@mit.edu>
date Thu, 03 Nov 2011 16:00:46 -0700
parents
children 3dc1f15e1e13
comparison
equal deleted inserted replaced
38:adeb88787645 39:784a3f4e6202
1 package com.aurellem.capture.video;
2
3 import java.awt.image.BufferedImage;
4
5 public interface VideoRecorder{
6
7 /**
8 * Write this image to video, disk, etc.
9 * @param image the image to write
10 */
11 void record(BufferedImage image);
12
13 /**
14 * stop recording temporarally. The recording can be started again
15 * with start()
16 */
17 void pause();
18
19 /**
20 * start the recording.
21 */
22 void start();
23
24 /**
25 * closes the video file, writing appropriate headers, trailers, etc.
26 * After this is called, no more recording can be done.
27 */
28 void finish();
29 }