image compression using golomb-rice algorithm

Discussion in 'VHDL' started by gokuldeep, Mar 29, 2013.

  1. gokuldeep

    gokuldeep

    Joined:
    Mar 29, 2013
    Messages:
    1
    plz help me
    my project is image compression using gr algorithm any one have plz help me equalent vhdl code give me....and also attach the c code for my project one part for gr c code.
    plz help me ............i am so help less sir,,,,,,,,,,, this is my carrier ....................
    my c code is
    c code for unarry
    Encoding:
    UnaryEncode(n) {
    while (n > 0) {
    WriteBit(1);
    n--;
    }
    WriteBit(0);
    }


    Decoding: UnaryDecode() {
    n = 0;
    while (ReadBit(1) == 1) {
    n++;
    }
    return n;
    }
    c code for golomb-rice

    Encoding:
    GolombEncode(n, RBits) {
    q = n >> RBits;
    UnaryCode(q);
    WriteBits(n, RBits);
    }
    decoding:
    GolombDecode(RBits) {
    q = UnaryDecode();
    n = (q << RBits) + ReadBits(RBits);
    return n;
    }
    Last edited: Mar 29, 2013
    gokuldeep, Mar 29, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UGFyYWtp?=

    Image size problem. Image Compression

    =?Utf-8?B?UGFyYWtp?=, Jun 24, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    489
    Kevin Spencer
    Jun 24, 2005
  2. Howie
    Replies:
    1
    Views:
    425
    Gianni Mariani
    Mar 4, 2004
  3. khaleel.alyasini@gmail.com

    Image Compression using DCT algorithm C++ source code

    khaleel.alyasini@gmail.com, Feb 28, 2006, in forum: C++
    Replies:
    1
    Views:
    2,940
    Victor Bazarov
    Feb 28, 2006
  4. s.arthi

    golomb code

    s.arthi, Nov 20, 2011, in forum: VHDL
    Replies:
    0
    Views:
    1,117
    s.arthi
    Nov 20, 2011
  5. Lea Savage

    Extending Ruby using C++ and Rice

    Lea Savage, Apr 16, 2010, in forum: Ruby
    Replies:
    2
    Views:
    237
    Lea Savage
    Apr 20, 2010
Loading...

Share This Page