[NUT-devel] Another suggestion for broadcast [PATCH]

Rich Felker dalias at aerifal.cx
Wed Feb 20 19:44:21 CET 2008


On Wed, Feb 20, 2008 at 05:01:31PM -0000, Måns Rullgård wrote:
> > Essentially all fields in nut are vlc, so worrying about non-vlc
> > types' efficiency is really pointless.
> 
> A Nut vlc value is at least 8 bits, which is wasteful if, say, 3 bits
> are sufficient for a given syntax element.

The only fields that make any difference to overhead are in syncpoints
and frame headers. If 3 bits are really sufficient for one of these
fields, then the framecode will do a perfectly nice job without nasty
computational overhead.

> Grouping unrelated elements
> into a single vlc value to get around this inefficiency, strikes me as
> hackish.

Do you mean framecodes? Or flags-style fields? In either case, it's
pragmatic; in the case of flags it's standard practice.

In any case the time for this discussion is long past, by 5+ years..

Rich



More information about the NUT-devel mailing list