11-05-2009
Quote:
Could you tell how to display jpeg image after decoding in openGL
Given that you do not appear to much experience with the concept of textures in OpenGL, maybe you should use an image library such as
DevIL.
Here is a
tutorial on DevIL. It includes an example of how to load and display a JPEG using OpenGL.
10 More Discussions You Might Find Interesting
1. Linux
I'm pretty much new to this Linux stuff, I installed FC4 the other night to try it out.
I'm having a slight problem when launching Quake 3, it's giving me the error GLimp_Init() - could not load OpenGL subsystem
I've updated my video drivers to the latest version and went through fglrxconfig,... (3 Replies)
Discussion started by: Filth Pig
3 Replies
2. UNIX for Advanced & Expert Users
Hi, (HP-UX 11.11)
I need to create a tape image of an igniteUX image created on our igniteUX server.
That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies
3. AIX
Hi,
I try to install opengl bat it give a error that i need the opengl base level fileset 5.3.0.0
I use AIX 5.3 and my oslevel is now 5300-03.
Where can i find the opengl files i need (5.3.0.0)?
Thanks Peter. (1 Reply)
Discussion started by: xeonbb
1 Replies
4. Ubuntu
Hi,
i am new to opengl, how to work openGL in ubuntu ,,
i am not getting which packages as to be install and how to install those packages.
and how to work with small programs..
Please guide me ,,, it will appriceated ... (7 Replies)
Discussion started by: Ravikishore
7 Replies
5. Ubuntu
Hi Sir,
i am new to openGL, i want to know how to draw cylinder using openGL code in C or C++..
And i have to insert bitmap images on cylinder..
How to do this .. please guide me ...
Thanking You in advance .. (0 Replies)
Discussion started by: Ravikishore
0 Replies
6. Programming
Hi,
please give me, how to code to draw 3D cylinder in openGL, that should be rotated in x-direction.
waiting for your reply .. (2 Replies)
Discussion started by: Ravikishore
2 Replies
7. Programming
Hi,
Any one help me regarding how to install openGL packages to work in linux.
And i installed some of the packages(gl,glu), but i don't know whether they are installed are not .. Which command is should use to check whether openGL is installed are not ..
I am Thankful for any kind of... (3 Replies)
Discussion started by: Ravikishore
3 Replies
8. Shell Programming and Scripting
Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies
9. Solaris
Hi everybody,
Sorry to bother you one more time, but I have a problem with my Solaris 8 installation.
Actually, Solaris works well, I can start X and access my desktop (CDE), but I'm having troubles using Cadds (a CAO software). Cadds works, but the 3D visualization is very slow compare to... (4 Replies)
Discussion started by: firstpost
4 Replies
10. UNIX Desktop Questions & Answers
i dont know in which forum to ask this question ..... :( . pardon me if it is not this forum
i wanted to know difference between openGL ES and directfb
as far i know directfb is alternative to x11 in linux for embedded devices. something like ...
application
|
... (1 Reply)
Discussion started by: alexzander18
1 Replies
LEARN ABOUT REDHAT
qimageformat
QImageFormat(3qt) QImageFormat(3qt)
NAME
QImageFormat - Incremental image decoder for a specific image format
SYNOPSIS
#include <qasyncimageio.h>
Public Members
virtual int decode ( QImage & img, QImageConsumer * consumer, const uchar * buffer, int length ) = 0
DESCRIPTION
The QImageFormat class is an incremental image decoder for a specific image format.
By making a derived class of QImageFormatType, which in turn creates objects that are a subclass of QImageFormat, you can add support for
more incremental image formats, allowing such formats to be sources for a QMovie or for the first frame of the image stream to be loaded as
a QImage or QPixmap.
Your new subclass must reimplement the decode() function in order to process your new format.
New QImageFormat objects are generated by new QImageFormatType factories.
See also Graphics Classes, Image Processing Classes, and Multimedia Classes.
MEMBER FUNCTION DOCUMENTATION
int QImageFormat::decode ( QImage & img, QImageConsumer * consumer, const uchar * buffer, int length ) [pure virtual]
New subclasses must reimplement this method.
It should decode some or all of the bytes from buffer into img, calling the methods of consumer as the decoding proceeds to inform that
consumer of changes to the image. The length of the data is given in length. The consumer may be 0, in which case the function should just
process the data into img without telling any consumer about the changes. Note that the decoder must store enough state to be able to
continue in subsequent calls to this method - this is the essence of the incremental image loading.
The function should return without processing all the data if it reaches the end of a frame in the input.
The function must return the number of bytes it has processed.
SEE ALSO
http://doc.trolltech.com/qimageformat.html http://www.trolltech.com/faq/tech.html
COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license
statement.
AUTHOR
Generated automatically from the source code.
BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you.
Thank you.
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a
web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially
supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page
(qimageformat.3qt) and the Qt version (3.1.1).
Trolltech AS 9 December 2002 QImageFormat(3qt)