Logo Search packages:      
Sourcecode: xblast version File versions  Download package

shrinkdat.h

/*
 * Program XBLAST V2.0 or higher
 * (C) by Oliver Vogel (e-mail: vogel@ikp.uni-koeln.de)
 * May 16th 1996
 * started August 1993
 *
 * File: shrinkdat.h
 * data file for shrink.c
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public Licences as published
 * by the Free Software Foundation; either version 2; or (at your option)
 * any later version
 *
 * This program is distributed in the hope that it will entertaining,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Publis License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.
 * 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id: shrinkdat.h,v 1.1 1998/01/03 14:08:30 xblast Exp $
 * $Log: shrinkdat.h,v $
 * Revision 1.1  1998/01/03 14:08:30  xblast
 * Initial revision
 *
 */

#ifndef _SHRINKDAT_H
#define _SHRINKDAT_H

/* Spiral and compound shrink data */

static shri_data spiral_shri_data[] = {

  /* Level 0 */

  {0,12,0,0},{0,11,1,0},{0,10,2,0},{0,9,3,0},{0,8,4,0},{0,7,5,0},
  {0,6,6,0},{0,5,7,0},{0,4,8,0},{0,3,9,0},{0,2,10,0},{0,1,11,0},
  {0,0,12,0},{1,0,13,0},{2,0,14,0},{3,0,15,0},{4,0,16,0},{5,0,17,0},
  {6,0,18,0},{7,0,19,0},{8,0,20,0},{9,0,21,0},{10,0,22,0},{11,0,23,0},
  {12,0,24,0},{13,0,25,0},{14,0,26,0},{14,1,27,0},{14,2,28,0},{14,3,29,0},
  {14,4,30,0},{14,5,31,0},{14,6,32,0},{14,7,33,0},{14,8,34,0},{14,9,35,0},
  {14,10,36,0},{14,11,37,0},{14,12,38,0},{13,12,39,0},{12,12,40,0},{11,12,41,0},
  {10,12,42,0},{9,12,43,0},{8,12,44,0},{7,12,45,0},{6,12,46,0},{5,12,47,0},
  {4,12,48,0},{3,12,49,0},{2,12,50,0},{1,12,51,0},

  /* Level 1 */

  {1,11,0,1},{1,10,1,1},{1,9,2,1},{1,8,3,1},{1,7,4,1},{1,6,5,1},
  {1,5,6,1},{1,4,7,1},{1,3,8,1},{1,2,9,1},{1,1,10,1},{2,1,11,1},
  {3,1,12,1},{4,1,13,1},{5,1,14,1},{6,1,15,1},{7,1,16,1},{8,1,17,1},
  {9,1,18,1},{10,1,19,1},{11,1,20,1},{12,1,21,1},{13,1,22,1},{13,2,23,1},
  {13,3,24,1},{13,4,25,1},{13,5,26,1},{13,6,27,1},{13,7,28,1},{13,8,29,1},
  {13,9,30,1},{13,10,31,1},{13,11,32,1},{12,11,33,1},{11,11,34,1},{10,11,35,1},
  {9,11,36,1},{8,11,37,1},{7,11,38,1},{6,11,39,1},{5,11,40,1},{4,11,41,1},
  {3,11,42,1},{2,11,43,1},

  /* Level 2 */

  {2,10,0,2},{2,9,1,2},{2,8,2,2},{2,7,3,2},{2,6,4,2},{2,5,5,2},
  {2,4,6,2},{2,3,7,2},{2,2,8,2},{3,2,9,2},{4,2,10,2},{5,2,11,2},
  {6,2,12,2},{7,2,13,2},{8,2,14,2},{9,2,15,2},{10,2,16,2},{11,2,17,2},
  {12,2,18,2},{12,3,19,2},{12,4,20,2},{12,5,21,2},{12,6,22,2},{12,7,23,2},
  {12,8,24,2},{12,9,25,2},{12,10,26,2},{11,10,27,2},{10,10,28,2},{9,10,29,2},
  {8,10,30,2},{7,10,31,2},{6,10,32,2},{5,10,33,2},{4,10,34,2},{3,10,35,2},


  /* Level 3 */

  {3,9,0,3},{3,8,1,3},{3,7,2,3},{3,6,3,3},{3,5,4,3},{3,4,5,3},
  {3,3,6,3},{4,3,7,3},{5,3,8,3},{6,3,9,3},{7,3,10,3},{8,3,11,3},
  {9,3,12,3},{10,3,13,3},{11,3,14,3},{11,4,15,3},{11,5,16,3},{11,6,17,3},
  {11,7,18,3},{11,8,19,3},{11,9,20,3},{10,9,21,3},{9,9,22,3},{8,9,23,3},
  {7,9,24,3},{6,9,25,3},{5,9,26,3},{4,9,27,3},

  /* Level 4 */

  {4,8,0,4},{4,7,1,4},{4,6,2,4},{4,5,3,4},{4,4,4,4},{5,4,5,4},
  {6,4,6,4},{7,4,7,4},{8,4,8,4},{9,4,9,4},{10,4,10,4},{10,5,11,4},
  {10,6,12,4},{10,7,13,4},{10,8,14,4},{9,8,15,4},{8,8,16,4},{7,8,17,4},
  {6,8,18,4},{5,8,19,4},

  /* Level 5 */

  {5,7,0,5},{5,6,1,5},{5,5,2,5},{6,5,3,5},{7,5,4,5},{8,5,5,5},
  {9,5,6,5},{9,6,7,5},{9,7,8,5},{8,7,9,5},{7,7,10,5},{6,7,11,5},

  /* Terminator */
  {-1,-1,-1,-1}

};

static shri_xoff_data spiral_xoff[] =
  { 0,52,96,132,160,180,-1 };

/* Upward and downward shrink data */

static shri_data vertical_shri_data[] = {

  /* Level 0 */

  {0,0,7,0},{1,0,6,0},{2,0,5,0},{3,0,4,0},{4,0,3,0},{5,0,2,0},
  {6,0,1,0},{7,0,0,0},{8,0,1,0},{9,0,2,0},{10,0,3,0},{11,0,4,0},
  {12,0,5,0},{13,0,6,0},{14,0,7,0},

  /* Level 1 */

  {0,1,7,1},{1,1,6,1},{2,1,5,1},{3,1,4,1},{4,1,3,1},{5,1,2,1},
  {6,1,1,1},{7,1,0,1},{8,1,1,1},{9,1,2,1},{10,1,3,1},{11,1,4,1},
  {12,1,5,1},{13,1,6,1},{14,1,7,1},

  /* Level 2 */

  {0,2,7,2},{1,2,6,2},{2,2,5,2},{3,2,4,2},{4,2,3,2},{5,2,2,2},
  {6,2,1,2},{7,2,0,2},{8,2,1,2},{9,2,2,2},{10,2,3,2},{11,2,4,2},
  {12,2,5,2},{13,2,6,2},{14,2,7,2},

  /* Level 3 */

  {0,3,7,3},{1,3,6,3},{2,3,5,3},{3,3,4,3},{4,3,3,3},{5,3,2,3},
  {6,3,1,3},{7,3,0,3},{8,3,1,3},{9,3,2,3},{10,3,3,3},{11,3,4,3},
  {12,3,5,3},{13,3,6,3},{14,3,7,3},

  /* Level 4 */

  {0,4,7,4},{1,4,6,4},{2,4,5,4},{3,4,4,4},{4,4,3,4},{5,4,2,4},
  {6,4,1,4},{7,4,0,4},{8,4,1,4},{9,4,2,4},{10,4,3,4},{11,4,4,4},
  {12,4,5,4},{13,4,6,4},{14,4,7,4},

  /* Level 5 */

  {0,5,7,5},{1,5,6,5},{2,5,5,5},{3,5,4,5},{4,5,3,5},{5,5,2,5},
  {6,5,1,5},{7,5,0,5},{8,5,1,5},{9,5,2,5},{10,5,3,5},{11,5,4,5},
  {12,5,5,5},{13,5,6,5},{14,5,7,5},

  /* Level 6 */

  {0,6,7,6},{1,6,6,6},{2,6,5,6},{3,6,4,6},{4,6,3,6},{5,6,2,6},
  {6,6,1,6},{7,6,0,6},{8,6,1,6},{9,6,2,6},{10,6,3,6},{11,6,4,6},
  {12,6,5,6},{13,6,6,6},{14,6,7,6},

  /* Level 7 */

  {0,7,7,7},{1,7,6,7},{2,7,5,7},{3,7,4,7},{4,7,3,7},{5,7,2,7},
  {6,7,1,7},{7,7,0,7},{8,7,1,7},{9,7,2,7},{10,7,3,7},{11,7,4,7},
  {12,7,5,7},{13,7,6,7},{14,7,7,7},

  /* Level 8 */

  {0,8,7,8},{1,8,6,8},{2,8,5,8},{3,8,4,8},{4,8,3,8},{5,8,2,8},
  {6,8,1,8},{7,8,0,8},{8,8,1,8},{9,8,2,8},{10,8,3,8},{11,8,4,8},
  {12,8,5,8},{13,8,6,8},{14,8,7,8},

  /* Level 9 */

  {0,9,7,9},{1,9,6,9},{2,9,5,9},{3,9,4,9},{4,9,3,9},{5,9,2,9},
  {6,9,1,9},{7,9,0,9},{8,9,1,9},{9,9,2,9},{10,9,3,9},{11,9,4,9},
  {12,9,5,9},{13,9,6,9},{14,9,7,9},

  /* Level 10 */

  {0,10,7,10},{1,10,6,10},{2,10,5,10},{3,10,4,10},{4,10,3,10},{5,10,2,10},
  {6,10,1,10},{7,10,0,10},{8,10,1,10},{9,10,2,10},{10,10,3,10},{11,10,4,10},
  {12,10,5,10},{13,10,6,10},{14,10,7,10},

  /* Level 11 */

  {0,11,7,11},{1,11,6,11},{2,11,5,11},{3,11,4,11},{4,11,3,11},{5,11,2,11},
  {6,11,1,11},{7,11,0,11},{8,11,1,11},{9,11,2,11},{10,11,3,11},{11,11,4,11},
  {12,11,5,11},{13,11,6,11},{14,11,7,11},

  /* Level 12 */

  {0,12,7,12},{1,12,6,12},{2,12,5,12},{3,12,4,12},{4,12,3,12},{5,12,2,12},
  {6,12,1,12},{7,12,0,12},{8,12,1,12},{9,12,2,12},{10,12,3,12},{11,12,4,12},
  {12,12,5,12},{13,12,6,12},{14,12,7,12},

  /* Terminator */
  {-1,-1,-1,-1}

};

static shri_xoff_data vertical_xoff[] =
  { 0,8,16,24,32,40,48,56,64,72,80,88,96,-1 };

/* Quad shrink data */

static shri_data quad_shri_data[] = {

  /* Level 0 */

  {0,0,6,0},{0,1,5,0},{0,2,4,0},{0,3,3,0},{0,4,2,0},{0,5,1,0},
  {0,6,0,0},{0,7,1,0},{0,8,2,0},{0,9,3,0},{0,10,4,0},{0,11,5,0},
  {0,12,6,0},
  {14,0,6,0},{14,1,5,0},{14,2,4,0},{14,3,3,0},{14,4,2,0},{14,5,1,0},
  {14,6,0,0},{14,7,1,0},{14,8,2,0},{14,9,3,0},{14,10,4,0},{14,11,5,0},
  {14,12,6,0},
  {1,0,6,0},{2,0,5,0},{3,0,4,0},{4,0,3,0},{5,0,2,0},{6,0,1,0},
  {7,0,0,0},{8,0,1,0},{9,0,2,0},{10,0,3,0},{11,0,4,0},{12,0,5,0},
  {13,0,6,0},
  {1,12,6,0},{2,12,5,0},{3,12,4,0},{4,12,3,0},{5,12,2,0},{6,12,1,0},
  {7,12,0,0},{8,12,1,0},{9,12,2,0},{10,12,3,0},{11,12,4,0},{12,12,5,0},
  {13,12,6,0},

  /* Level 1 */

  {1,1,5,1},{1,2,4,1},{1,3,3,1},{1,4,2,1},{1,5,1,1},{1,6,0,1},
  {1,7,1,1},{1,8,2,1},{1,9,3,1},{1,10,4,1},{1,11,5,1},
  {13,1,5,1},{13,2,4,1},{13,3,3,1},{13,4,2,1},{13,5,1,1},{13,6,0,1},
  {13,7,1,1},{13,8,2,1},{13,9,3,1},{13,10,4,1},{13,11,5,1},
  {2,1,5,1},{3,1,4,1},{4,1,3,1},{5,1,2,1},{6,1,1,1},{7,1,0,1},
  {8,1,1,1},{9,1,2,1},{10,1,3,1},{11,1,4,1},{12,1,5,1},
  {2,11,5,1},{3,11,4,1},{4,11,3,1},{5,11,2,1},{6,11,1,1},{7,11,0,1},
  {8,11,1,1},{9,11,2,1},{10,11,3,1},{11,11,4,1},{12,11,5,1},

  /* Level 2 */

  {2,2,4,2},{2,3,3,2},{2,4,2,2},{2,5,1,2},{2,6,0,2},{2,7,1,2},
  {2,8,2,2},{2,9,3,2},{2,10,4,2},
  {12,2,4,2},{12,3,3,2},{12,4,2,2},{12,5,1,2},{12,6,0,2},{12,7,1,2},
  {12,8,2,2},{12,9,3,2},{12,10,4,2},
  {3,2,4,2},{4,2,3,2},{5,2,2,2},{6,2,1,2},{7,2,0,2},{8,2,1,2},
  {9,2,2,2},{10,2,3,2},{11,2,4,2},
  {3,10,4,2},{4,10,3,2},{5,10,2,2},{6,10,1,2},{7,10,0,2},{8,10,1,2},
  {9,10,2,2},{10,10,3,2},{11,10,4,2},

  /* Level 3 */

  {3,3,3,3},{3,4,2,3},{3,5,1,3},{3,6,0,3},{3,7,1,3},{3,8,2,3},
  {3,9,3,3},
  {11,3,3,3},{11,4,2,3},{11,5,1,3},{11,6,0,3},{11,7,1,3},{11,8,2,3},
  {11,9,3,3},
  {4,3,3,3},{5,3,2,3},{6,3,1,3},{7,3,0,3},{8,3,1,3},{9,3,2,3},
  {10,3,3,3},
  {4,9,3,3},{5,9,2,3},{6,9,1,3},{7,9,0,3},{8,9,1,3},{9,9,2,3},
  {10,9,3,3},

  /* Level 4 */

  {4,4,2,4},{4,5,1,4},{4,6,0,4},{4,7,1,4},{4,8,2,4},
  {10,4,2,4},{10,5,1,4},{10,6,0,4},{10,7,1,4},{10,8,2,4},
  {5,4,2,4},{6,4,1,4},{7,4,0,4},{8,4,1,4},{9,4,2,4},
  {5,8,2,4},{6,8,1,4},{7,8,0,4},{8,8,1,4},{9,8,2,4},

  /* Level 5 */

  {5,5,1,5},{5,6,0,5},{5,7,1,5},
  {9,5,1,5},{9,6,0,5},{9,7,1,5},
  {6,5,1,5},{7,5,0,5},{8,5,1,5},
  {6,7,1,5},{7,7,0,5},{8,7,1,5},

  /* Terminator */
  {-1,-1,-1,-1}

};

static shri_xoff_data quad_xoff[] =
  { 0,7,13,18,22,25,-1 };

/* Style data */

/* style_rise_2: Rises a block for 2 time frames */

static shri_style2 style_rise_2_xx[] = {
  {  0,  0, BTBlockRise},
  {  2,  0, BTBlock}
};

static shri_style style_rise_2 = {2, style_rise_2_xx};

/* style_rise_2_plus: Rises a block for 2 time frames, deletes blocks
   on previous levels */

static shri_style2 style_rise_2_plus_xx[] = {
  {  0,  0, BTBlockRise},
  {  2,  0, BTBlock},
  {  2, -1, BTVoid}
};

static shri_style style_rise_2_plus = {3, style_rise_2_plus_xx};

/* style_compound: Gives an 8 time frame warning on previous level before
   placing blocks on the current one */

static shri_style2 style_compound_xx[] = {
  { -8, -1, BTBlockRise},
  {  0, -1, BTVoid},
  {  0,  0, BTBlock}
};

static shri_style style_compound = {3, style_compound_xx};

/* style_compound_solid: Similar to above but rises the new blocks */

static shri_style2 style_compound_solid_xx[] = {
  {-16, -1, BTBlockRise},
  {-12, -1, BTBlock},
  { -6,  0, BTBlockRise},
  {  0,  0, BTBlock}
};

static shri_style style_compound_solid = {4, style_compound_solid_xx};

/* style_compound_extra: Compound style with extras */

static shri_style2 style_compound_extra_xx[] = {
  {-16, -2, BTBlockRise},
  {-12, -2, BTVoid},
  {-12, -1, BTBlock},
  { -4, -1, BTBlockRise},
  {  0, -1, BTVoid},
  {  0,  0, BTBlock},
  {  4,  0, BTBlockRise},
  {  8,  0, BTExtra},
  {  8, -1, BTBlock}
};

static shri_style style_compound_extra = {9, style_compound_extra_xx};

/* 2 levels of compound */

static shri_style2 style_savage_compound_xx[] = {
  {-10, -2, BTBlockRise},
  { -6, -2, BTVoid},
  { -6, -1, BTBlock},
  { -4, -1, BTBlockRise},
  {  0, -1, BTVoid},
  {  0,  0, BTBlock}
};

static shri_style style_savage_compound = {6, style_savage_compound_xx};

#endif
/*
 * end of file shrinkdat.h
 */

Generated by  Doxygen 1.6.0   Back to index