Cuniix-tsllibo

所属分类:嵌入式Linux
开发工具:Visual C++
文件大小:55KB
下载次数:5
上传日期:2012-06-10 17:53:51
上 传 者accompanys
说明:  比较好用的触摸屏校正程序源码码,在linux
(Relatively easy to use touch screen calibration procedure source code in linux)

文件列表:
Cuniix-tsllibo\tslib\AUTHORS (135, 2002-06-20)
Cuniix-tsllibo\tslib\autogen-clean.sh (290, 2002-06-20)
Cuniix-tsllibo\tslib\autogen.sh (420, 2002-08-30)
Cuniix-tsllibo\tslib\ChangeLog (6056, 2002-11-09)
Cuniix-tsllibo\tslib\config.h.in (1959, 2002-06-18)
Cuniix-tsllibo\tslib\configure.in (2326, 2002-06-18)
Cuniix-tsllibo\tslib\COPYING (25765, 2001-12-23)
Cuniix-tsllibo\tslib\CVS\Entries (494, 2003-01-22)
Cuniix-tsllibo\tslib\CVS\Entries.Log (58, 2003-01-22)
Cuniix-tsllibo\tslib\CVS\Repository (7, 2003-01-22)
Cuniix-tsllibo\tslib\CVS\Root (55, 2003-01-22)
Cuniix-tsllibo\tslib\etc\CVS\Entries (93, 2003-01-22)
Cuniix-tsllibo\tslib\etc\CVS\Repository (11, 2003-01-22)
Cuniix-tsllibo\tslib\etc\CVS\Root (55, 2003-01-22)
Cuniix-tsllibo\tslib\etc\Makefile.am (281, 2001-12-23)
Cuniix-tsllibo\tslib\etc\ts.conf (115, 2002-07-11)
Cuniix-tsllibo\tslib\INSTALL (0, 2001-12-23)
Cuniix-tsllibo\tslib\Makefile.am (284, 2001-12-23)
Cuniix-tsllibo\tslib\NEWS (0, 2001-12-23)
Cuniix-tsllibo\tslib\plugins\CVS\Entries (178, 2003-01-22)
Cuniix-tsllibo\tslib\plugins\CVS\Entries.Log (15, 2003-01-22)
Cuniix-tsllibo\tslib\plugins\CVS\Repository (15, 2003-01-22)
Cuniix-tsllibo\tslib\plugins\CVS\Root (55, 2003-01-22)
Cuniix-tsllibo\tslib\plugins\dejitter.c (3013, 2002-11-09)
Cuniix-tsllibo\tslib\plugins\linear.c (3602, 2002-11-09)
Cuniix-tsllibo\tslib\plugins\Makefile.am (869, 2002-06-20)
Cuniix-tsllibo\tslib\plugins\variance.c (4942, 2002-11-09)
Cuniix-tsllibo\tslib\src\CVS\Entries (701, 2003-01-22)
Cuniix-tsllibo\tslib\src\CVS\Repository (11, 2003-01-22)
Cuniix-tsllibo\tslib\src\CVS\Root (55, 2003-01-22)
Cuniix-tsllibo\tslib\src\Makefile.am (749, 2002-07-09)
Cuniix-tsllibo\tslib\src\tslib-filter.h (1064, 2002-06-18)
Cuniix-tsllibo\tslib\src\tslib-private.h (745, 2002-06-18)
Cuniix-tsllibo\tslib\src\tslib.h (1465, 2002-06-18)
Cuniix-tsllibo\tslib\src\ts_attach.c (489, 2001-12-23)
Cuniix-tsllibo\tslib\src\ts_close.c (499, 2001-12-23)
Cuniix-tsllibo\tslib\src\ts_config.c (1778, 2002-07-02)
Cuniix-tsllibo\tslib\src\ts_error.c (720, 2001-12-23)
Cuniix-tsllibo\tslib\src\ts_fd.c (369, 2002-01-16)
... ...

$Id: README,v 1.3 2002/06/19 18:55:08 dlowder Exp $ General ======= The idea of tslib is to have a core library that provides standardised services, and a set of plugins to manage the conversion and filtering as needed. The plugins for a particular touchscreen are loaded automatically by the library under the control of a static configuration file, ts.conf. ts.conf gives the library basic configuration information. Each line specifies one module, and the parameters for that module. The modules are loaded in order, with the first one processing the touchscreen data first. For example: module variance xlimit=50 ylimit=50 pthreshold=100 module dejitter xdelta=3 ydelta=2 pthreshold=100 module linear These parameters are described below. With this configuration file, we end up with the following data flow through the library: raw device --> variance --> dejitter --> linear --> application module module module You can re-order these modules as you wish, add more modules, or remove them all together. When you call ts_read(), the values you read are values that have passed through the chain of filters and scaling conversions. Another call is provided, ts_read_raw() which bypasses all the modules and reads the raw data directly from the device. There are a couple of programs in the tslib/test directory which give example usages. They are by no means exhaustive, nor probably even good examples. They are basically the programs I used to test this library. Module Parameters ================= module: variance ---------------- Description: Variance filter. Calculates the variance on the last 4 X and Y axis values independently, and averages the two samples with the smallest variance. Parameters: xlimit Sets the X axis variance limit on the last 4 touch screen samples, in touch screen coordinates. Variances outside this limit will cause 4 extra samples to be collected. ylimit Sets the Y axis variance limit on the last 4 touch screen samples, in touch screen coordinates. Variances outside this limit will cause 4 extra samples to be collected. pthreshold Sets the pressure threshold, above which we believe the pen to be down. module: dejitter ---------------- Description: Removes jitter on the X and Y co-ordinates. Samples whos X and Y differentials are within these limits will be treated as an identical value, and gobbled up. Parameters: xdelta ydelta Sets the minimum differential between the current and the previous X or Y sample. pthreshold module: linear -------------- Description: Linear scaling module, primerily used for conversion of touch screen co-ordinates to screen co-ordinates. Parameters: xyswap interchange the X and Y co-ordinates -- no longer used or needed if the new linear calibration utility ts_calibrate is used.

近期下载者

相关文件


收藏者