FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
October 01, 2005

Bitstream Parsing in C++

(Page 2 of 10)

October, 2005: Bitstream Parsing in C++

Example 1: Calculating shift and mask based on offset and number of bits.

unsigned int bitOffset = 8 + 1 + 1 + 2 + 12 + 16 + 2;
unsigned int numBits   = 5;
unsigned int version   = extract_bits(data, bitOffset, numBits);

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK