[Mp4-tech] Creating mpeg-2 packets using chars or bitfields.
abhijeet mhatre
abhijeetmhatre yahoo.com
Thu Aug 28 03:37:30 EDT 2003
Hi List
I am writing a program in C/C++ to create mpeg-2
packets.
Now the packets have fields that have lengths of 8
bits, 1 bit, 13 bits etc. But the total size of the
packet is 188 bytes.I can think of two approches to
this.
first is Using 8 bit unsigned chars and then masking
the bits.
second is using bitfields.
I am not sure which approach is proper and will give
least problems in the future. If anyone has
implemented any such thing or has any knowledge on
this please guide me.
regards
Abhijeet D Mhatre
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the Mp4-tech
mailing list