Sponsored Content
Top Forums Programming How to Decode an image using openGL Post 302367975 by Ravikishore on Wednesday 4th of November 2009 12:53:56 AM
Old 11-04-2009
Java how to display, after decoding an image in openGL

Hi,

Thank you so much for your help.. it helps me a lot..
as i am new to openGL. i dont know whether it is a basic question which i am asking know.
the question is :

The program jpeg_sample.c which is there in tar file is executing with out any error ..
i think decompression is done well ,,
but its not displaying any JPEG image after execution ...

Could you tell how to display jpeg image after decoding in openGL

and i am not getting from where it is taking an jpeg image in that code ..

Please guide me , any answer will appreciated..
 

10 More Discussions You Might Find Interesting

1. Linux

Help with OpenGL in Fedora Core 4.

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

Create an Ignite image on tape from Online IgniteUX image

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

Need to install opengl for GXT4500.

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

i am new to opengl , how to work opengl in 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

How to draw cylinder using openGL

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

Draw a 3D cylinder using openGL.

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

How to install openGL packages?

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

matching image files to create one image

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

Solaris 8 and openGL

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

Difference between opengl es and directfb

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
img-jpeg(n)															       img-jpeg(n)

__________________________________________________________________________________________________________________________________________________

NAME
img-jpeg - Img, Joint Picture Expert Group format (jpeg) SYNOPSIS
package require Tk package require img::jpeg ?1.4? image create photo ?name? ?options? _________________________________________________________________ DESCRIPTION
The package img::jpeg is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its own, via package require img::jpeg. Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing raster images in the Joint Picture Expert Group format (jpeg). More specifically img::jpeg extends Tk's photo image type. The name of the new format handler is jpeg. This handler provides new additional configuration options. See section JPEG OPTIONS for more detailed explanations. All of the above means that in a call like image create photo ?name? ?options? [1] Image data in jpeg format (options -data and -file) is detected automatically. [2] The format name jpeg is recognized by the option -format. In addition the value for the option is treated as list and may contain any of the special options listed in section JPEG OPTIONS. JPEG OPTIONS
The handler provides six options, two effective when reading from a JPEG image, and five influencing the writing of such. One option is usable for both reading an writing. -fast This option is for reading from JPEG data. It usage activates a processing mode which is fast, but also provides only low-quality information. -grayscale This option can be used for both reading and writing of JPEG data. Usage of this option forces incoming images to grayscale, and written images will be monochrome. -quality n This option is for writing JPEG data. It specifies the compression level as a quality percentage. The higher the quality, the less the compression. The nominal range for n is 0...100. Useful values are in the range 5...95. The default value is 75. -smooth n This option is for writing JPEG data. When used the writer will smooth the image before performing the compression. Values in the 10...30 are usually enough. The default is 0, i.e no smoothing. -optimize This option is for writing JPEG data. It usage causes the writer to optimize the huffman table used to encode the jpeg coefficients. -progressive This option is for writing JPEG data. It usage causes the creation of a progressive JPEG file. SEE ALSO
img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img- tga, img-tiff, img-window, img-xbm, img-xpm KEYWORDS
image handling, jpeg, tk COPYRIGHT
Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net> Img 1.4 img-jpeg(n)
All times are GMT -4. The time now is 10:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy