[patch] add a bitvector class

Rafael Espíndola rafael.espindola at gmail.com
Thu Jun 5 14:17:31 PDT 2008


I have started cleaning up my hack to support compressed NEFs.  The
attached patch is a helper class. It wraps a buffer in a bit vector so
that it is easy to access each individual bit. In practice I use only
the iterator, but I like being able to use a STL like loop

for (i = v.begin(); i != v.end(); ++i) {
}

I am not very familiar with C++, but I think I managed to get all the
types right.

Next stop: huffman decoder :-)

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bitvector.patch
Type: text/x-diff
Size: 5499 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libopenraw-dev/attachments/20080605/bdc721ef/attachment.patch 


More information about the Libopenraw-dev mailing list