Zlib函数列表 We often get questions about how the deflate() and inflate() functions should be used. Users wonder when they should provide more input, when they should use more output, what to do with a Z_BUF_ERROR, how to make sure the process terminates properly, and so on. So for those who have read zlib.h (a few times), and would like further edification, below is an annotated example in C of simple routines to compress and decompress from an input file to an output file using deflate() and inflate() respectively. The annotations are interspersed between lines of the code. So please read between the lines. We hope this helps explain some of the intricacies of zlib.
标签: functions questions deflate inflate
上传时间: 2014-01-03
上传用户:lhc9102
HDOJ ACM input:The input consists of T test cases. The number of test cases ) (T is given in the first line of the input. Each test case begins with a line containing an integer N , 1<=N<=200 , that represents the number of tables to move. Each of the following N lines contains two positive integers s and t, representing that a table is to move from room number s to room number t (each room number appears at most once in the N lines). From the N+3-rd line, the remaining test cases are listed in the same manner as above.
上传时间: 2015-10-18
上传用户:三人用菜
We propose a simple and effective method for detecting view- and scale-independent ridge-valley lines defined via first- and secondorder curvature derivatives on shapes approximated by dense triangle meshes.
标签: scale-independent ridge-valley and effective
上传时间: 2014-01-08
上传用户:sammi
This paper introduces an affine invariant of trapezia, and the explicit constraint equation between the intrinsic matrix of a camera and the similarity invariants of a trapezium are established using the affine invariant. By this constraint, the inner parameters, motion parameters of the cameras and the similarity invariants of trapezia can be linearly determined using some prior knowledge on the cameras or the trapezia. The proposed algorithms have wide applicability since parallel lines are not rare in many scenes. Experimental results validate the proposed approaches. This work presents a unifying framework based on the parallelism constraint, and the previous methods based on the parallelograms or the parallelepipeds can be integrated into this framework. Key words: invariant parallelism constraint camera calibration 3D reconstruction
标签: introduces constraint invariant explicit
上传时间: 2014-01-16
上传用户:6546544
/************************************************************************************************** * 简介 * * 本模块仅使用于字符显示液晶模块 * * 当前版本的驱动仅支持以下类型LCD模块驱动: * Hitachi HD44780 或与之兼容的芯片. * * LCD显示函数支持以下格式: * 1 line x 8 characters * 1 line x 16 characters 2 lines x 16 characters 4 lines x 16 characters * 1 line x 20 characters 2 lines x 20 characters 4 lines x 20 characters * 1 line x 24 characters 2 lines x 24 characters * 1 line x 40 characters 2 lines x 40 characters *说明: * 1 line x 16 characters 需要定义为2*8的液晶模块 **************************************************************************************************/
标签:
上传时间: 2013-12-06
上传用户:zhliu007
这是我自已写的HD44780 LCD1602液晶屏的程序,是基于AVR单片机上实现的。 /************************************************************************************************** * 简介 * * 本模块仅使用于字符显示液晶模块 * * 当前版本的驱动仅支持以下类型LCD模块驱动: * Hitachi HD44780 或与之兼容的芯片. * * LCD显示函数支持以下格式: * 1 line x 16 characters 2 lines x 16 characters 4 lines x 16 characters * 1 line x 20 characters 2 lines x 20 characters 4 lines x 20 characters * 1 line x 24 characters 2 lines x 24 characters * 1 line x 40 characters 2 lines x 40 characters *说明: * 1 line x 16 characters 需要定义为2*8的液晶模块 * * 不支持外部内存模式 **************************************************************************************************/
上传时间: 2015-11-20
上传用户:王楚楚
线上求解法求解色谱模型,method of lines sloving chromatographic model
上传时间: 2014-01-11
上传用户:liansi
=== === === === === === === === === === ==== IBM PC KEYBOARD INFORMATION FOR SOFTWARE DEVELOPERS ================================================================ Sources: PORTS.A of Ralf Brown s interrupt list collection repairfaq.org keyboard FAQ(doesn t appear to exsist) Linux source code Test hardware: New Samsung KB3T001SAXAA 104-key keyboard Old Maxi 2186035-00-21 101-key keyboard NO WARRANTY. NO GUARANTEE. I have tried to make this information accurate. I don t know if I succeeded. Corrections or additional information would be welcome. This is a plain-text document. If you use a word-processor to view it, use a fixed-pitch font (like Courier) so columnar data and ASCII art lines up properly.
标签: INFORMATION DEVELOPERS KEYBOARD SOFTWARE
上传时间: 2014-08-18
上传用户:ecooo
Somebody over on the Generation5 forum asked for a "Hello World!" program for genetic algorithms. I took it literally and created a very simple program (138 lines of code) that evolves the phrase "Hello world!"
标签: Generation5 algorithms for Somebody
上传时间: 2016-03-07
上传用户:siguazgb
法国cromda编写的新版本MATRICE 2(矩阵和矢量运算单元)。 // ---------------------------------------------------------- // 12-01-02 : MODIFIED Matrice to Matrice2 (Delphi 6) // All routines now operate on rectangular matrix, except (InvMat and SysLin) // No more need to use the InitMat procedure (suppressed) : // - the routines detect automaticaly the dimensions of matrix and vector // - error code MatDimNul is generated if zero lines or column in matrix and vector (See DimensionMatrice and DimensionVecteur) // - error code MatMauvDim is generated if the dimensions of matrix/vector don t allow valid result // - // The result matrix is dimensioned automaticaly
上传时间: 2014-01-23
上传用户:sy_jiadeyi