Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: JPEG loader?

  1. #11
    Junior Member Regular Contributor fenris's Avatar
    Join Date
    Mar 2000
    Location
    Cincinnati, Ohio USA
    Posts
    152

    Re: JPEG loader?

    I'd personally stick to the JIG lib, due to it's portability to other platforms, and the fact that it's more flexible. It allows you to read JPEG data from memory or from an ANSI standard file stream. Intel's allows memory reads only (Or so I think).

  2. #12
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    26

    Re: JPEG loader?

    Originally posted by fenris:
    I'd personally stick to the JIG lib, due to it's portability to other platforms, and the fact that it's more flexible. It allows you to read JPEG data from memory or from an ANSI standard file stream. Intel's allows memory reads only (Or so I think).
    No, you can read and write from/to memory AND files (entry JPGFile in struct JPEG_PROPERTIES).
    By the way, a neat feature of the IJL is the possibility to decompress only a sub-image of a JPEG-image.

    Kosta

  3. #13
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    Paris, France
    Posts
    8

    Re: JPEG loader?

    I must be the 10th person that asks you this, but could you send me your PIC loader class ?

    I can't use the JPEG lib with my compiler, there is always a linkage error which I cannot solve.

    thanx in advance.
    Prekipik

    my mail: prekipik@club-internet.fr

  4. #14
    Junior Member Regular Contributor
    Join Date
    May 2000
    Location
    Manchester - UK
    Posts
    138

    Re: JPEG loader?

    Personally I think JPEGS are evil when you map them onto objects. Their lossy compression works well for skin tones and stuff but for 'pure' colours, it just plain sucks.

    There was a .png loader floating about somewhere - I recommend that...
    Paul Groves
    [b] pauls opengl page

  5. #15
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    San Diego, CA, USA
    Posts
    6

    Re: JPEG loader?

    Not exactly source code, but I have an excellent jpg library for OpenGL (aptly named mkOpenGLJPEGImage). Have a look at
    http://math.ucsd.edu/~mkennedy/software if

    you're interested.

  6. #16
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    Szczecin, Poland
    Posts
    19

    Re: JPEG loader?

    You can find something free and with source code here http://shiptech.tuniv.szczecin.pl/~weyna/OpenGL/

  7. #17
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    fort collins, colorado, usa
    Posts
    5

    Re: JPEG loader?

    I agree with Pauly's post that JPEG images do not result in high quality texture maps.

    Having said that, I'll note that a link to the IJL can be found in 24.050 of the OpenGL Technical FAQ.

  8. #18
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    San Diego, CA, USA
    Posts
    6

    Re: JPEG loader?

    You guys should check out the discussion the recently went on in the OpenGL Game Dev mailing list about using JPEGs as textures! Look on www.egroups.com under opengl game dev list and find the messages with the subject ANNOUNCE: mkOpenGLJPEGImage Class.

    Enjoy,
    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •