home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games Tips & Tricks
/
GAMESTIPSUNDTRICKS.mdf
/
utility
/
capture
/
cap2gif.doc
next >
Wrap
Text File
|
1994-11-29
|
8KB
|
188 lines
-----------------------------------------------------------------------------
C A P 2 G I F
~~~~~~~~~~~~~~~
Copyright (c) 1993 by TBH-Softworx --- All Rights Reserved
Oliver Fromme, Leibnizstr. 18-61, 38678 Clausthal, Germany
Internet email: fromme@rz.tu-clausthal.de
-----------------------------------------------------------------------------
Contents
~~~~~~~~
1. What is CAP2GIF?
2. How to use CAP2GIF
3. Information for Programmers
4. Bugs, Problems, Wishes
5. License, Copying, etc
6. Disclaimer
7. Thanks
1. What is CAP2GIF?
~~~~~~~~~~~~~~~~~~~
CAP2GIF is a tool that converts graphic screen shots from CAP format to
GIF format. CAP files are produced by "Capture it!", a great utility
by Henrique Avila Vianna.
Minimum requirements:
- 286 PC/AT (a version for 8086 PC/XT is available, but it's slow)
- approx. 300 Kb of free DOS memory
- MS-DOS 3.2
CAP2GIF does not need any special graphics hardware for the conversion,
since it isn't displaying anything. In fact you don't need any graphics
card at all to convert a file captured from any graphics card.
You don't need a harddrive, CAP2GIF works well (and reasonably fast)
on floppy disks, too.
2. How to use CAP2GIF
~~~~~~~~~~~~~~~~~~~~~
Syntax:
CAP2GIF [options] input[.CAP] [output[.GIF]]
Square brackets [] denote optional parts:
- If no extension for the input file is specified, .CAP is assumed.
- If no extension for the output file is specified, .GIF is assumed.
- If no output file is specified, the output file will have the same
name as the input file, except for the extension .GIF.
You can use wildcards ("?" and "*") in the input file name.
For example, you can simply type
CAP2GIF *
to convert all .CAP files in the current directory.
If you're using wildcards, you must not specify an output file.
Please note that input and output files must be different. CAP2GIF checks
for this case.
If the output file already exists, CAP2GIF asks you if the file can be
overwritten, even if the /Q (quiet) option is specified. If you don't
like this, you have to check before if the output file exists, and delete
it if necessary.
Options may be specified anywhere on the commandline, either in uppercase
or lowercase letters.
Currently the following options can be used:
/Q Quiet, i.e. no output during conversion, except for error messages
and the overwrite prompt.
/G Grey scale, i.e. perform a grey scale summing of the color palette.
/? Display a short help text.
3. Information for Programmers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CAP2GIF can be called from within other programs. There must be at least
300 Kb free memory (I can provide a version that needs only 200 Kb, but
it's somewhat slower).
CAP2GIF returns the following error codes:
0 - Successful conversion has taken place, no errors.
5 - Help text has been displayed. No output file produced.
10 - Output file already exists, and the user has decided
not to overwrite it. No output file produced.
20 - An error occured (e.g. unknown option, user hit Ctrl-Break,
input file not found, I/O error etc). In this case no output
file is produced. If the file has been partially created before
the error occured, it is deleted. With multiple files (i.e. when
using wildcards) only the current output file is deleted.
CAP2GIF checks for Ctrl-C and Ctrl-Break regularly. If the user hits one
of these key combinations, CAP2GIF stops, deletes the partially created
GIF file, and returns error code 20.
A few remarks about CAP2GIF programming:
The GIF encoding routine is my own development, I didn't use anyone
else's code. The core functions are written in 80286 assembly language,
using a hybrid tree hashing algorithm. It's extremely fast.
I'm using a two level buffering for both file reading and writing,
resulting in a considerable I/O speed up. In fact, it doesn't matter much
if you use a cache or not!
The surrounding routines (command line parsing, checking for file
existance, searching for matching files, error output etc) are written
in Borland Pascal 7.0. The whole thing consists of approx. 2500 lines
of source code.
4. Bugs, Problems, Wishes
~~~~~~~~~~~~~~~~~~~~~~~~~
I have tested CAP2GIF with all kinds of files produced by "Capture it!"
version 2.1, and it worked well for all of them.
However, there is no existing "completely bugfree" software.
If you find a bug, any kind of misbehaviour, incompatibility,
inconsistency etc, please tell me about it, and I will try to fix it.
This includes spelling/grammar errors in the documentation, too.
Also, if you would like to have any additional features:
They won't be implemented if you don't tell me!
Please no phone calls, my above address is only a post address, I can not
be reached by phone there. If you want me to send you any software (e.g.
an update of CAP2GIF), I prefer internet email. Otherwise I can send it
to you on disk, but please send me US$ 10 or DM 10 to cover my expenses.
5. License, Copying, etc
~~~~~~~~~~~~~~~~~~~~~~~~
CAP2GIF is provided as Freeware, the same way as "Capture it!".
You may freely distribute it, use it, etc, but:
- you are not allowed to take money for it,
- you are not allowed to modify the program or the documentation,
- you are not allowed to include CAP2GIF in a commercial or
Shareware package without my written permission (I usually
grant permission if I get a free copy of the package).
You may upload CAP2GIF to a BBS, FTP server etc, provided that it can be
downloaded free.
You needn't my permission for including CAP2GIF in a Public Domain
or Freeware package, but please drop me a short note (mail or email),
and tell me how I can obtain the package.
CAP2GIF is intended to be part of the "Capture it!" package.
6. Disclaimer
~~~~~~~~~~~~~
Normally a conversion program like this can not cause any damage.
However, just to be prepared for the (nearly impossible) worst case:
IN NO EVENT WILL I BE LIABLE FOR ANY DAMAGES WHATSOEVER (INCLUDING
WITHOUT LIMITATION DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS
INTERRUPTION, LOSS OF BUSINESS INFORMATION OR THE LIKE) ARISING OUT OF
THE USE OF, INTERRUPTION IN THE USE OF, OR INABILITY TO USE THIS
SOFTWARE (EVEN IF I HAVE BEEN ADVISED OF ANY POSSIBILITY OR LIKELYHOOD
OF SUCH DAMAGES), OR FOR ANY CLAIM BY ANY OTHER PARTY.
In other words: CAP2GIF is provided "as is", and you use CAP2GIF
on your own risk.
By using CAP2GIF you agree to everything written above.
7. Thanks
~~~~~~~~~
Thanks to Henrique Avila Vianna for providing comprehensive documentation
of the CAP file format, and of course thanks for the great "Capture it!"
utility.
The Graphics Interchange Format(c) is the Copyright property of
CompuServe Incorporated.
GIF(sm) is a Service Mark property of CompuServe Incorporated.
IBM, PC, and AT are registered trademarks of International Business
Machines Corporation.
MS-DOS, MS, and Microsoft are registered trademarks of Microsoft
Corporation.
Borland Pascal is a registered trademark of Borland International, Inc.
This documentation fits on three printer pages (11 inch, 6 lpi, 80 cpl).
-----------------------------------------------------------------------------