Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Realtime Compression Algorithms

Realtime Compression Algorithms

Scheduled Pinned Locked Moved C / C++ / MFC
algorithms
5 Posts 4 Posters 0 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    godspeed123
    wrote on last edited by
    #1

    Hi, I have images coming to me very quickly, 200 pictures per second, I have all the BYTE arrays, and I need to do a lossless compression in realtime, is there any algorithm out there that can keep up with this, and is there anyway code samples that allow me to do this. Thanks in advance.

    M J S 3 Replies Last reply
    0
    • G godspeed123

      Hi, I have images coming to me very quickly, 200 pictures per second, I have all the BYTE arrays, and I need to do a lossless compression in realtime, is there any algorithm out there that can keep up with this, and is there anyway code samples that allow me to do this. Thanks in advance.

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      The only thing I can think of that might keep up is RLE (Run Length Encoding). It won't give you that much compression, depending on the images, but it is light and fast. If you're talking sequential video frames then a frame difference algorithum might be better. I thought most people still used DSP hardware for this sort of thing:confused:

      Nothing is exactly what it seems but everything with seems can be unpicked.

      1 Reply Last reply
      0
      • G godspeed123

        Hi, I have images coming to me very quickly, 200 pictures per second, I have all the BYTE arrays, and I need to do a lossless compression in realtime, is there any algorithm out there that can keep up with this, and is there anyway code samples that allow me to do this. Thanks in advance.

        J Offline
        J Offline
        Jeffrey Walton
        wrote on last edited by
        #3

        Hi Godspeed,

        godspeed123 wrote:

        I need to do a lossless compression...

        PNG is a nice format - it is basically a compressed bitmap. It is available an PNG8 and PNG24. I don't know through put numbers for the realtime requrements. I should probably be asking, what is the current format of the images? Jeff

        G 1 Reply Last reply
        0
        • J Jeffrey Walton

          Hi Godspeed,

          godspeed123 wrote:

          I need to do a lossless compression...

          PNG is a nice format - it is basically a compressed bitmap. It is available an PNG8 and PNG24. I don't know through put numbers for the realtime requrements. I should probably be asking, what is the current format of the images? Jeff

          G Offline
          G Offline
          godspeed123
          wrote on last edited by
          #4

          Right now they come in a byte stream, there is no format to them, its basically just raw data.

          1 Reply Last reply
          0
          • G godspeed123

            Hi, I have images coming to me very quickly, 200 pictures per second, I have all the BYTE arrays, and I need to do a lossless compression in realtime, is there any algorithm out there that can keep up with this, and is there anyway code samples that allow me to do this. Thanks in advance.

            S Offline
            S Offline
            Steven Hicks n 1
            wrote on last edited by
            #5

            Where are you getting that frame rate from? if its a camera you might be able to get away with differences on the images, which would be a small performance hit but not nearly as much as converting it to PNG. My advice if you do wish to compress the images send the data to a grid for conversion to bitmap and then to lossless PNG.

            -Steven Hicks

            CPA

            CodeProjectAddict

            Actual Linux Penguins were harmed in the creation of this message.

            More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups