Ignore:
Timestamp:
12/13/07 19:24:42 (16 years ago)
Author:
radscorpion
Message:

added a few methods to parse seek table offset and seek table. Golomb codes are not working yet... I'll do it at home.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dsfilters/demux_mpc/src/bits.cpp

    r366 r367  
    113113}
    114114
     115int32 Bitstream::Get_Golomb(int k)
     116{
     117        int32 len = 0;
     118        NeedBits24();
     119        while (UGetBits(1) == 1) len++;
     120        if (len == 0) return 0;
     121        NeedBits24();
     122
     123        //while (bits
     124
     125        int32 val = (1 << len) | UGetBits(len);
     126    return val;
     127}
     128
Note: See TracChangeset for help on using the changeset viewer.