GithubHelp home page GithubHelp logo

comp590-a2's Introduction

COMP590Spring2019-ArithmeticCoder

Arithmetic coder example from class: https://github.com/kmayerpatel/COMP590Spring2019-ArithmeticCoder

The text file encoder produces a file with the following format:

  • The first 256 * 32 bits are the frequency counts associated with the integer symbol values 0 to 255.
    • Each count is a 32 bit value.
  • The next 32 bits are the number of symbols that were encoded
  • The next 8 bits is the value of range_bit_width (i.e., the size of the range registers used by the encoder)
  • Following this are the encoded symbols.

One thing to note that was just touched on at the very end of class is that when the encoding app gets to the end (i.e., it's encoded the last symbol), it needs to have the encoder emit a bit pattern that is known to be between high and low so that the decoder doesn't run out of bits as it fills its input buffer when it gets to the end. The method emitMiddle() in the encoder does this by writing out a 1 followed by range_bit_width-1 0's since that represents the middle of value of the whole range which is guaranteed to be between high and low.

COMP590-A2

Uses the provided Arithmetic coder with my own schemes (check A2 - Ami Zou.pdf for details) to compress a raw video file.

comp590-a2's People

Contributors

ami-zou avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.