Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. jpeglib functionalities implemented by Qt

jpeglib functionalities implemented by Qt

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 566 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tamis2018
    wrote on last edited by
    #1

    I have compressed jpeg file by standard jpeglib library in C++. I do not know whether there is qt functionalities which might be used to decompress jpeg files instead of using jpeg_start_decompress(...), jpeg_read_scanlines(...) etc. Are there some functionalities for that?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      What you mean by decompress ?
      QPixmap and QImage can load jpeg files directly.
      Is it a special jpeg file ?

      1 Reply Last reply
      1
      • T Offline
        T Offline
        Tamis2018
        wrote on last edited by
        #3

        The rough outline of a JPEG compression operation is:
        Allocate and initialize a JPEG compression object
        Specify the destination for the compressed data (eg, a file)
        Set parameters for compression, including image size & colorspace
        jpeg_start_compress(...);
        while (scan lines remain to be written) jpeg_write_scanlines(...);
        jpeg_finish_compress(...);
        Release the JPEG compression object

        https://www4.cs.fau.de/Services/Doc/graphics/doc/jpeg/libjpeg.html

        mrjjM 1 Reply Last reply
        0
        • T Tamis2018

          The rough outline of a JPEG compression operation is:
          Allocate and initialize a JPEG compression object
          Specify the destination for the compressed data (eg, a file)
          Set parameters for compression, including image size & colorspace
          jpeg_start_compress(...);
          while (scan lines remain to be written) jpeg_write_scanlines(...);
          jpeg_finish_compress(...);
          Release the JPEG compression object

          https://www4.cs.fau.de/Services/Doc/graphics/doc/jpeg/libjpeg.html

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Tamis2018
          Ok, let me rephrase it.
          You just want to load a normal jpeg in Qt and display it ?
          The format is fully supported and Qt can just load it in one
          line.
          http://doc.qt.io/qt-5/qtimageformats-index.html
          so unless you want to do something special while decompressing
          im not sure why you cant just use the QPixmap or QImage ?

          1 Reply Last reply
          5

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved