⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fiasco_renderer_new.3

📁 linux下将各类格式图片转换工具
💻 3
字号:
.\" $Id: fiasco_renderer_new.3,v 1.2 2000/06/14 18:58:35 hafner Exp $.TH fiasco 3 "April, 2000" "FIASCO" "Fractal Image And Sequence COdec".SH NAME.B  fiasco_renderer_new, fiasco_renderer_delete\- convert a FIASCO image object to an X11 XImage.SH SYNOPSIS.B #include <fiasco.h>.sp.BI "fiasco_renderer_t *".fi.BI "fiasco_renderer_new (unsigned long "red_mask ,.fi.BI "                     unsigned long "green_mask ,.fi.BI "                     unsigned long "blue_mask ,.fi.BI "                     unsigned "bpp ,.fi.BI "                     int "double_resolution );.sp.BI "void".fi.BI "fiasco_renderer_delete (fiasco_renderer_t * "renderer );.sp.BI "int".fi.BI "fiasco_renderer_render (const fiasco_renderer_t * "renderer ,.fi.BI "                        unsigned char * "data );.fi.BI "                        const fiasco_image_t * "fiasco_image );.fi.SH DESCRIPTIONThe \fBfiasco_renderer_new()\fP function allocates and initializes arenderer object which has to be used to convert an internal FIASCOimage object to one of the supported X11 formats. Currently, the FIASCOimage can be rendered to an X11 XImage of either 16, 24, or 32 bitsper pixel. Additional formats will be supported upon request.  Function \fBfiasco_renderer_render()\fP is used to convert the givenFIASCO image object to the specified format. After all frames are rendered, the function\fBfiasco_renderer_delete()\fP should be called to free temporarilyallocated memory and to discard the renderer object.Note that the FIASCO renderer class is not restricted to X11 images: aFIASCO image object can be converted to an image data array of theform RGBRGB... by setting \fIred_mask\fP=0xff0000,\fIgreen_mask\fP=0xff00, \fIblue_mask\fP=0xff, and \fIbpp\fP=24..SH ARGUMENTS.TPbppDetermines the number of bits of a single pixel of the X11 XImagestructure (see XCreateImage(3)). If the XImage is already allocatedthen the value XImage->bits_per_pixel should be used. Currently, 16,24, and 32 bits per pixel are supported..TPred_maskDetermines which bits of a pixel should be used for the redcomponent. If the XImage is already allocated then the valueXImage->red_mask should be used. E.g., if \fIbpp=16\fP and\fIred_mask=0xf800\fP then each pixel is stored with two bytes. Thered component uses bits 11-15, the remaining green and blue componentsuse bits 0-10..TPgreen_maskDetermines which bits of a pixel should be used for the greencomponent. If the XImage is already allocated then the valueXImage->green_mask should be used..TPblue_maskDetermines which bits of a pixel should be used for the bluecomponent. If the XImage is already allocated then the valueXImage->blue_mask should be used..TPdataA pointer to the image data. If the XImage is already allocated thenthe value XImage->data should be used. This array has to be largeenough to hold the decoded image at the given size (geometry and bitsper pixel)..TPfiasco_imageThis object represents the decoded image which has beencreated by the FIASCO functions fiasco_decoder_get_frame(3) orfiasco_image_new(3)..SH RETURN VALUEThe function \fBfiasco_renderer_new()\fP returns a pointer to the newlyallocated renderer object. If an error has been catched, a NULL pointeris returned.The function \fBfiasco_renderer_render()\fP returns 1 if the imagehas been successfully converted. Otherwise, the function returns 0.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_image_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 + -