[linux-dvb] dvb-apps lib, structs declared with bit fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oivind wrote:
> I notice that bit fields are used in many of the structs, as for
> example from en50221_hlci.h;
> 
> struct en50221_pmt_object {
>         unsigned ca_pmt_tag: 24;
>         uint8_t *asn_1_length;
>         unsigned ca_pmt_list_mgmt: 8;
>         unsigned program_number: 16;
>         unsigned reserved_1: 2;
> 
>         [...]
> 
> };
> 
> 
> What exactly is the benefit of this? 
> 

Because the object come like this
Dvb objct tries to use less data as possible.

For example
http://www.bc.groteck.ru/pdf-standard-specifications/multiplexing/dvb-vbi/en301775.v1.2.1.pdf


-- 
Brice

Join us now and share the software;
You'll be free, hackers, you'll be free.
[Richard STALLMAN, free software song]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20050705/c299e01c/signature.pgp

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux