资源简介
This package contains C software to implement JPEG image encoding, decoding,
and transcoding. JPEG (pronounced "jay-peg") is a standardized compression
method for full-color and gray-scale images.
This software implements JPEG baseline, extended-sequential, and progressive
compression processes.
代码片段和文件信息
/* Copyright (C) 1989 2000 Aladdin Enterprises. All rights reserved. */
/*$Id: ansi2knr.cv 1.14 2003/09/06 05:36:56 eggert Exp $*/
/* Convert ANSI C function definitions to K&R (“traditional C“) syntax */
/*
ansi2knr is distributed in the hope that it will be useful but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it serves any particular purpose or
works at all unless he says so in writing. Refer to the GNU General Public
License (the “GPL“) for full details.
Everyone is granted permission to copy modify and redistribute ansi2knr
but only under the conditions described in the GPL. A copy of this license
is supposed to have been given to you along with ansi2knr so you can know
your rights and responsibilities. It should be in a file named COPYLEFT
or if there is no file named COPYLEFT a file named COPYING. Among other
things the copyright notice and this notice must be preserved on all
copies.
We explicitly state here what we believe is already implied by the GPL: if
the ansi2knr program is distributed as a separate set of sources and a
separate executable file which are aggregated on a storage medium together
with another program this in itself does not bring the other program under
the GPL nor does the mere fact that such a program or the procedures for
constructing it invoke the ansi2knr executable bring any other part of the
program under the GPL.
*/
/*
* Usage:
ansi2knr [--filename FILENAME] [INPUT_FILE [OUTPUT_FILE]]
* --filename provides the file name for the #line directive in the output
* overriding input_file (if present).
* If no input_file is supplied input is read from stdin.
* If no output_file is supplied output goes to stdout.
* There are no error messages.
*
* ansi2knr recognizes function definitions by seeing a non-keyword
* identifier at the left margin followed by a left parenthesis with a
* right parenthesis as the last character on the line and with a left
* brace as the first token on the following line (ignoring possible
* intervening comments and/or preprocessor directives) except that a line
* consisting of only
* identifier1(identifier2)
* will not be considered a function definition unless identifier2 is
* the word “void“ and a line consisting of
* identifier1(identifier2 <>)
* will not be considered a function definition.
* ansi2knr will recognize a multi-line header provided that no intervening
* line ends with a left or right brace or a semicolon. These algorithms
* ignore whitespace comments and preprocessor directives except that
* the function name must be the first thing on the line. The following
* constructs will confuse it:
* - Any other construct that starts at the left margin and
* follows the above syntax (such as a macro or function call).
* - Some macros that tinker with the syntax of function headers.
*/
/*
* The original and principal autho
- 上一篇:基于图像处理的象棋棋盘识别
- 下一篇:逐次比较型ADC 讲解
评论
共有 条评论