Mercurial > jmeCapture
comparison src/com/aurellem/capture/video/AbstractVideoRecorder.java @ 39:784a3f4e6202
updating capture-video
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 03 Nov 2011 16:00:46 -0700 |
parents | 5dfc9e768816 |
children | 6a1b28f060e6 |
comparison
equal
deleted
inserted
replaced
38:adeb88787645 | 39:784a3f4e6202 |
---|---|
17 import com.jme3.texture.FrameBuffer; | 17 import com.jme3.texture.FrameBuffer; |
18 import com.jme3.util.BufferUtils; | 18 import com.jme3.util.BufferUtils; |
19 import com.jme3.util.Screenshots; | 19 import com.jme3.util.Screenshots; |
20 | 20 |
21 /** | 21 /** |
22 * <code>VideoProcessor</code> copies the frames it receives to video. | 22 * <code>VideoRecorder</code> copies the frames it receives to video. |
23 * To ensure smooth video at a constant framerate, you should set your | 23 * To ensure smooth video at a constant framerate, you should set your |
24 * application's timer to a new {@link IsoTimer}. This class will | 24 * application's timer to a new <code>IsoTimer</code>. This class will |
25 * auto-determine the framerate of the video based on the time difference | 25 * auto-determine the framerate of the video based on the time difference |
26 * between the first two frames it receives, although you can manually set | 26 * between the first two frames it receives, although you can manually set |
27 * the framerate by calling <code>setFps(newFramerate)</code>. Be sure to | 27 * the framerate by calling <code>setFps(newFramerate)</code>. Be sure to |
28 * place this processor *after* any other processors whose effects you want | 28 * place this processor *after* any other processors whose effects you want |
29 * to be included in the output video. You can attach multiple | 29 * to be included in the output video. You can attach multiple |
42 * @author Robert McIntyre | 42 * @author Robert McIntyre |
43 * | 43 * |
44 */ | 44 */ |
45 | 45 |
46 public abstract class AbstractVideoRecorder | 46 public abstract class AbstractVideoRecorder |
47 implements SceneProcessor, IVideoRecorder, AppState{ | 47 implements SceneProcessor, VideoRecorder, AppState{ |
48 | 48 |
49 final File output; | 49 final File output; |
50 Camera camera; | 50 Camera camera; |
51 int width; | 51 int width; |
52 int height; | 52 int height; |