EBML specification component for review - Element Data Size

Erik Piil <[email protected]>
Newsgroups gmane.comp.multimedia.matroska.devel
Message-ID <CAKNa7H_NSirrp1cpr3ia+51_kjy4gD+r0JiH2x=oUq437gPLxg@mail.gmail.com>
This discussion relates to the “Element Data Size” portion of the earlier
EBML RFC Draft for revision/incorporation into the final EBML
specification.

From the RFC Draft:

Element Data Size

The EBML element data size is encoded as a variable size integer with, by
default, widths up to 8. Another maximum width value can be set by setting
another value to EBMLMaxSizeWidth in the EBML header. See section 5.1.
There is a range overlap between all different widths, so that 1 encoded
with width 1 is semantically equal to 1 encoded with width 8. This allows
for the element data to shrink without having to shrink the width of the
size descriptor.

Values with all data bits set to 1 means size unknown, which allows for
dynamically generated EBML streams where the final size isn't known
beforehand. The element with unknown size MUST be an element with an
element list as data payload. The end of the element list is determined by
the ID of the element. When an element that isn't a sub-element of the
element with unknown size arrives, the element list is ended.

Since the highest value is used for unknown size the effective maximum data
size is 2^56-2, using variable size integer width 8.


Any thoughts are most appreciated.


Best,

_______________________________________________
Matroska-devel mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.