Debian Codegraph @

converter/other/fiasco/doc/fiasco_coder.3

raw
1 .\" $Id: fiasco_coder.3,v 1.2 2000/10/28 17:39:32 hafner Exp $
2 .TH fiasco 3 "April, 2000" "FIASCO" "Fractal Image And Sequence COdec"
3
4 .SH NAME
5 .B fiasco_coder
6 \- compress image files to a FIASCO file
7
8 .SH SYNOPSIS
9 .B #include <fiasco.h>
10 .sp
11 .BI "int "
12 .fi
13 .BI "fiasco_coder (char const * const * "image_names ,
14 .fi
15 .BI " const char * "fiasco_name ,
16 .fi
17 .BI " float "quality ,
18 .fi
19 .BI " const fiasco_c_options_t * "options );
20 .fi
21
22 .SH DESCRIPTION
23 The \fBfiasco-coder()\fP function compresses the image file(s) given
24 by the list of \fIimage_names\fP and creates the new FIASCO output file
25 \fIfiasco_name\fP. Besides the approximation \fIquality\fP, several
26 compression parameters can be adjusted by the class \fBoptions\fP (see
27 fiasco_c_options_new(3)).
28
29 .SH ARGUMENTS
30
31 .TP
32 image_names
33 NULL terminated array of image filenames to process. If the first
34 array element is "-" or a NULL pointer then FIASCO reads the image
35 from standard input. Each array element either has to be an image
36 filename or a template of the form:
37
38 .ce
39 prefix[start-end{+,-}step]suffix
40
41 Templates are useful when compressing video streams: e.g., if the template
42 "img0[12-01-2].pgm" is given as array element, then FIASCO compresses the
43 images img012.pgm, img010.pgm, ..., img002.pgm (in this order).
44
45 If a filename is a relative path then the images are searched for in
46 the current directory and in the (colon-separated) list of directories
47 given by the environment variable \fBFIASCO_IMAGES\fP.
48
49 .TP
50 fiasco_name
51 Name of the FIASCO output file. If the name is "-" or NULL then the
52 file is produced on standard output.
53
54 If \fIfiasco_name\fP is a relative path and the environment variable
55 \fBFIASCO_DATA\fP is a (colon-separated) list of directories, then the
56 output file is written to the first (writable) directory of this
57 list. Otherwise, the current directory is used to store the output
58 file.
59
60 .TP
61 quality
62 Defines the quality of compression. Quality has to be a positive
63 value, its typical range is 1.0 (worst) to 100.0 (best). Larger values
64 are also allowed - at the cost of exploding encoding times.
65
66 .TP
67 options
68 This "class" encapsulates the various coding and decoding
69 parameters. Use the functions fiasco_c_options_new(3) and
70 fiasco_c_options_delete(3) to create and delete an object of this
71 class. Several member functions (see fiasco_c_options(3)) are
72 available to change the default values.
73
74 .SH RETURN VALUE
75 The function \fBfiasco_coder()\fP returns 1 if the FIASCO file has
76 been successfully written. If an error has been caught during
77 compression, 0 is returned - use the function
78 fiasco_get_error_message(3) to get the last error message of FIASCO.
79
80 .SH ENVIRONMENT
81 .PD 0
82 .TP
83 .B FIASCO_IMAGES
84 Search path for image files. Default is "./".
85 .TP
86 .B FIASCO_DATA
87 Search and save path for FIASCO files. Default is "./".
88 .PD
89
90 .SH "SEE ALSO"
91 .br
92 .BR fiasco_c_options_new "(3), " fiasco_c_options_delete (3),
93 .br
94 .BR fiasco_c_options "(3), " fiasco_get_error_message (3)
95 .br
96
97 Ullrich Hafner, Juergen Albert, Stefan Frank, and Michael Unger.
98 \fBWeighted Finite Automata for Video Compression\fP, IEEE Journal on
99 Selected Areas In Communications, January 1998
100 .br
101 Ullrich Hafner. \fBLow Bit-Rate Image and Video Coding with Weighted
102 Finite Automata\fP, Ph.D. thesis, Mensch & Buch Verlag, ISBN
103 3-89820-002-7, October 1999.
104
105 .SH AUTHOR
106 Ullrich Hafner