Mercurial > libavcodec.hg
comparison golomb.h @ 3353:5b901881d6ed libavcodec
first rudimentary version of (Justin Ruggles jruggle earthlink net) flac encoder
author | michael |
---|---|
date | Sat, 24 Jun 2006 10:20:15 +0000 |
parents | 0b546eab515d |
children | c8c591fe26f8 |
comparison
equal
deleted
inserted
replaced
3352:608659b58523 | 3353:5b901881d6ed |
---|---|
433 | 433 |
434 assert(i>=0); | 434 assert(i>=0); |
435 | 435 |
436 e= (i>>k) + 1; | 436 e= (i>>k) + 1; |
437 if(e<limit){ | 437 if(e<limit){ |
438 while(e > 31) { | |
439 put_bits(pb, 31, 0); | |
440 e -= 31; | |
441 } | |
438 put_bits(pb, e, 1); | 442 put_bits(pb, e, 1); |
439 if(k) | 443 if(k) |
440 put_bits(pb, k, i&((1<<k)-1)); | 444 put_bits(pb, k, i&((1<<k)-1)); |
441 }else{ | 445 }else{ |
442 put_bits(pb, limit , 1); | 446 put_bits(pb, limit , 1); |