Christian Heimke
Blimp v.0.4 (2004-11-15)
Christian Heimke commited 3ea07c8 at 2011-07-15 09:16:10
BlinkenMovie.java
/* BlinkenLightsInteractiveMovieProgram
* version 0.4 date 2004-11-15
* Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info>
* Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
* a blinkenarea.org project
* powered by eventphone.de
*/
import java.util.*;
import java.util.regex.*;
import java.io.*;
public class BlinkenMovie
{
private int height;
private int width;
private int channels;
private int maxval;
private int infoCnt;
private String[][] infos;
private int frameCnt;
private BlinkenFrame[] frames;
BlinkenMovie( int height, int width, int channels, int maxval )
{
if( height < 1 ) height = 1;
if( height > 1024 ) height = 1024;
if( width < 1 ) width = 1;
if( width > 1024 ) width = 1024;
if( channels < 1 ) channels = 1;
if( channels > 16 ) channels = 16;
if( maxval < 1 ) maxval = 1;
if( maxval > 255 ) maxval = 255;
this.height = height;
this.width = width;
this.channels = channels;
this.maxval = maxval;
infoCnt = 0;
infos = new String[0][2];
frameCnt = 0;
frames = new BlinkenFrame[0];
}
BlinkenMovie( BlinkenMovie movie )
{
int i;
height = movie.height;
width = movie.width;
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX