diff 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
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/com/aurellem/capture/video/VideoRecorder.java	Thu Nov 03 16:00:46 2011 -0700
     1.3 @@ -0,0 +1,29 @@
     1.4 +package com.aurellem.capture.video;
     1.5 +
     1.6 +import java.awt.image.BufferedImage;
     1.7 +
     1.8 +public interface VideoRecorder{
     1.9 +
    1.10 +	/**	
    1.11 +	 * Write this image to video, disk, etc.
    1.12 +	 * @param image the image to write
    1.13 +	 */
    1.14 +	void record(BufferedImage image);
    1.15 +	
    1.16 +	/**
    1.17 +	 * stop recording temporarally.  The recording can be started again
    1.18 +	 * with start()
    1.19 +	 */
    1.20 +	void pause();
    1.21 +	
    1.22 +	/**
    1.23 +	 * start the recording.
    1.24 +	 */
    1.25 +	void start();
    1.26 +	
    1.27 +	/**
    1.28 +	 * closes the video file, writing appropriate headers, trailers, etc.
    1.29 +	 * After this is called, no more recording can be done.
    1.30 +	 */
    1.31 +	void finish();	
    1.32 +}
    1.33 \ No newline at end of file