Debian Codegraph @

converter/other/fiasco/doc/fiasco_image_new.3

raw
1 .\" $Id: fiasco_image_new.3,v 1.2 2000/06/14 19:26:06 hafner Exp $
2 .TH fiasco 3 "April, 2000" "FIASCO" "Fractal Image And Sequence COdec"
3
4 .SH NAME
5 .B fiasco_image_new, fiasco_image_delete, fiasco_image_get_width,
6 .B fiasco_image_get_height, fiasco_image_is_color
7 \- handle FIASCO image objects
8
9 .SH SYNOPSIS
10 .B #include <fiasco.h>
11 .sp
12 .BI "fiasco_image_t *"
13 .fi
14 .BI "fiasco_image_new (const char * "filename );
15 .sp
16 .BI "void"
17 .fi
18 .BI "fiasco_image_delete (fiasco_image_t * "image );
19 .sp
20 .BI "unsigned"
21 .fi
22 .BI "fiasco_image_get_width (const fiasco_image_t * "image );
23 .sp
24 .BI "unsigned"
25 .fi
26 .BI "fiasco_image_get_height (const fiasco_image_t * "image );
27 .sp
28 .BI "int"
29 .fi
30 .BI "fiasco_image_is_color (const fiasco_image_t * "image );
31 .fi
32
33 .SH DESCRIPTION
34 The \fBfiasco_image_new()\fP function reads the given image file and
35 allocates and initializes a FIASCO image object. Use the function
36 fiasco_renderer_new(3) to create a renderer object that converts the
37 FIASCO image to the desired image format.
38
39 The function \fBfiasco_image_delete()\fP deletes the image object and
40 frees the image buffer.
41
42 Image geometry and type are accessible through member functions
43 \fBfiasco_image_get_width()\fP,
44 \fBfiasco_image_get_height()\fP,
45 and \fBfiasco_image_is_color()\fP.
46
47 .SH ARGUMENTS
48
49 .TP
50 image
51 The image "class" encapsulates the FIASCO image object. It is used to
52 store the pixel values of the decoded or read image.
53
54 .TP
55 filename
56 Image filename to process. If \fIfilename\fP is "-" or a NULL pointer
57 then the image is read from standard input. If a filename is a
58 relative path then the images are searched for in the current
59 directory and in the (colon-separated) list of directories given by
60 the environment variable \fBFIASCO_IMAGES\fP.
61
62 .SH RETURN VALUE
63 The function \fBfiasco_image_new()\fP returns a pointer to the newly
64 allocated image object. If an error has been caught, a NULL pointer
65 is returned.
66
67 The function \fBfiasco_image_get_width()\fP returns the width of the
68 image. If an error has been caught, 0 is returned.
69
70 The function \fBfiasco_image_get_height()\fP returns the height of the
71 image. If an error has been caught, 0 is returned.
72
73 The function \fBfiasco_image_is_color()\fP returns 0 if the image
74 object is a grayscale image, otherwise a non-zero value is returned.
75
76 In case of an error in one of the above functions, use the function
77 fiasco_get_error_message(3) to get a string with the last error
78 message of FIASCO.
79
80 .SH "SEE ALSO"
81 .br
82 .BR fiasco_decoder_get_frame "(3), " fiasco_get_error_message (3)
83 .BR fiasco_renderer_new (3)
84 .br
85
86 Ullrich Hafner, Juergen Albert, Stefan Frank, and Michael Unger.
87 \fBWeighted Finite Automata for Video Compression\fP, IEEE Journal on
88 Selected Areas In Communications, January 1998
89 .br
90 Ullrich Hafner. \fBLow Bit-Rate Image and Video Coding with Weighted
91 Finite Automata\fP, Ph.D. thesis, Mensch & Buch Verlag, ISBN
92 3-89820-002-7, October 1999.
93
94 .SH AUTHOR
95 Ullrich Hafner