Compression

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • on the fly decompression help for a kid

    2 answers - 234 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    im 13 and im trying to understand how a computer decompresses
    compressed data on the fly. Do video codecs decompress the video in ram
    on the fly while the video is playing?
    any help is appreciated
    thanks
  • No.1 | | 649 bytes | |


    <djshadoworgandonor@yahoo.comwrote in message
    news:1115686690.302635.158440@
    im 13 and im trying to understand how a computer decompresses
    compressed data on the fly. Do video codecs decompress the video in ram
    on the fly while the video is playing?
    any help is appreciated

    yes, and often 1 frame at a time.

    likewise similar happens when playing back sound in a compressed format
    (mp3, ogg, ), however not with wav as wav is typically not compressed
    (typically for wav files, most programs I have looked at typically read the
    whole thing into ram at once and play it back when needed).

  • No.2 | | 1420 bytes | |

    djshadoworgando@yahoo.com wrote:
    im 13 and im trying to understand how a computer decompresses
    compressed data on the fly. Do video codecs decompress the video in
    ram
    on the fly while the video is playing?

    Yes, although "on the fly" is a bit misleading. What typically happens
    is that, before playback actually begins, the first frame of video and
    audio are decompressed and stored. Then, when playback begins, the
    video and audio are shown/played while the next frame's video/audio is
    being decompressed, etc. So what you are seeing is always one (or
    more) frames "behind" where the player is actually at in the video
    file.

    A more accurate representation of "on the fly" decompression is
    something where the decompression method operates in a very small
    amount of memory (or no memory) and works like a simple streaming
    device: A compressed symbol goes into the decompressor, and the
    resulting uncompressed symbol goes out. A good example of this would
    be the LZ78 compression method, in which typical implementations only
    use about 4K of RAM.

    If you'd like to read up more on LZ78 -- or compression/decompression
    in general -- here is a good resource:

    If you start at the very beginning, it should answer all of your
    questions. (Don't jump right to the LZ78 section or you won't
    understand it.)

Re: on the fly decompression help for a kid


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Compression"

EMSDN.COM