[PD-cvs] externals/pdp/scaf/include Makefile, 1.2, 1.3 pdp_ca.h, 1.3, 1.4
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Fri Dec 16 02:05:39 CET 2005
- Previous message: [PD-cvs] externals/pdp/scaf COPYING, 1.4, 1.5 Makefile, 1.5, 1.6 Makefile.config, 1.5, 1.6 Makefile.config.in, 1.4, 1.5 README, 1.5, 1.6 README.scaf, 1.4, 1.5 TODO, 1.4, 1.5 configure, 1.2, 1.3 configure.ac, 1.4, 1.5
- Next message: [PD-cvs] externals/pdp/scaf/compiler Makefile, 1.2, 1.3 kernel.scaf, 1.2, 1.3 optim.rules, 1.2, 1.3 scafc, 1.2, 1.3 scafc.pl, 1.2, 1.3 scafmacro.s, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/externals/pdp/scaf/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6756/scaf/include
Added Files:
Makefile pdp_ca.h
Log Message:
checking in pdp 0.12.4 from http://zwizwa.fartit.com/pd/pdp/pdp-0.12.4.tar.gz
--- NEW FILE: pdp_ca.h ---
/*
* Cellular Automata Extension Module for pdp - Main header file
* Copyright (c) by Tom Schouten <pdp at zzz.kotnet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public 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.
*
*/
#ifndef PDP_CA_H
#define PDP_CA_H
#include "pdp.h"
/* 2D CA DATA PACKET */
typedef struct
{
unsigned int encoding; /* CA data format */
unsigned int width; /* CA width (in 1 bit cells) */
unsigned int height; /* CA height (in 1 bit cells) */
unsigned int offset; /* bit offset of upper left corner */
unsigned int currow; /* current row to compute for 1D CA */
} t_ca;
/* CA encodings */
#define PDP_CA_STANDARD 1 /* rectangular CA */
/* pdp data packet types */
#define PDP_CA 2 /* 1bit toroidial shifted scanline encoded cellular automaton */
/* all symbols are C-style */
#ifdef __cplusplus
extern "C"
{
#endif
/* constructor */
int pdp_packet_new_ca(int encoding, int width, int height);
/* some utility methods for CA */
int pdp_packet_ca_isvalid(int packet);
int pdp_type_ca2grey(int packet);
int pdp_type_grey2ca(int packet, short int threshold);
/* returns a pointer to the ca subheader given the pdp header */
t_ca *pdp_type_ca_info(t_pdp *x);
/* mmx feeder routine */
unsigned long long scaf_feeder(void *tos, void *reg, void (*ca_rule)(void), void *env);
#ifdef __cplusplus
}
#endif
#endif //PDP_CA_H
--- NEW FILE: Makefile ---
current:
clean:
rm -f *~
- Previous message: [PD-cvs] externals/pdp/scaf COPYING, 1.4, 1.5 Makefile, 1.5, 1.6 Makefile.config, 1.5, 1.6 Makefile.config.in, 1.4, 1.5 README, 1.5, 1.6 README.scaf, 1.4, 1.5 TODO, 1.4, 1.5 configure, 1.2, 1.3 configure.ac, 1.4, 1.5
- Next message: [PD-cvs] externals/pdp/scaf/compiler Makefile, 1.2, 1.3 kernel.scaf, 1.2, 1.3 optim.rules, 1.2, 1.3 scafc, 1.2, 1.3 scafc.pl, 1.2, 1.3 scafmacro.s, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list