📄 fiasco_image_new.3
字号:
.\" $Id: fiasco_image_new.3,v 1.2 2000/06/14 19:26:06 hafner Exp $.TH fiasco 3 "April, 2000" "FIASCO" "Fractal Image And Sequence COdec".SH NAME.B fiasco_image_new, fiasco_image_delete, fiasco_image_get_width,.B fiasco_image_get_height, fiasco_image_is_color\- handle FIASCO image objects.SH SYNOPSIS.B #include <fiasco.h>.sp.BI "fiasco_image_t *".fi.BI "fiasco_image_new (const char * "filename );.sp.BI "void".fi.BI "fiasco_image_delete (fiasco_image_t * "image );.sp.BI "unsigned".fi.BI "fiasco_image_get_width (const fiasco_image_t * "image );.sp.BI "unsigned".fi.BI "fiasco_image_get_height (const fiasco_image_t * "image );.sp.BI "int".fi.BI "fiasco_image_is_color (const fiasco_image_t * "image );.fi.SH DESCRIPTIONThe \fBfiasco_image_new()\fP function reads the given image file andallocates and initializes a FIASCO image object. Use the functionfiasco_renderer_new(3) to create a renderer object that converts theFIASCO image to the desired image format.The function \fBfiasco_image_delete()\fP deletes the image object andfrees the image buffer. Image geometry and type are accessible through member functions\fBfiasco_image_get_width()\fP,\fBfiasco_image_get_height()\fP,and \fBfiasco_image_is_color()\fP. .SH ARGUMENTS.TPimageThe image "class" encapsulates the FIASCO image object. It is used tostore the pixel values of the decoded or read image..TPfilenameImage filename to process. If \fIfilename\fP is "-" or a NULL pointerthen the image is read from standard input. If a filename is arelative path then the images are searched for in the currentdirectory and in the (colon-separated) list of directories given bythe environment variable \fBFIASCO_IMAGES\fP..SH RETURN VALUEThe function \fBfiasco_image_new()\fP returns a pointer to the newlyallocated image object. If an error has been catched, a NULL pointeris returned.The function \fBfiasco_image_get_width()\fP returns the width of theimage. If an error has been catched, 0 is returned.The function \fBfiasco_image_get_height()\fP returns the height of theimage. If an error has been catched, 0 is returned.The function \fBfiasco_image_is_color()\fP returns 0 if the imageobject is a grayscale image, otherwise a non-zero value is returned.In case of an error in one of the above functions, use the functionfiasco_get_error_message(3) to get a string with the last errormessage of FIASCO..SH "SEE ALSO".br.BR fiasco_decoder_get_frame "(3), " fiasco_get_error_message (3).BR fiasco_renderer_new (3).brUllrich Hafner, Juergen Albert, Stefan Frank, and Michael Unger.\fBWeighted Finite Automata for Video Compression\fP, IEEE Journal onSelected Areas In Communications, January 1998.brUllrich Hafner. \fBLow Bit-Rate Image and Video Coding with WeightedFinite Automata\fP, Ph.D. thesis, Mensch & Buch Verlag, ISBN3-89820-002-7, October 1999..SH AUTHORUllrich Hafner <hafner@bigfoot.de>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -