[M4IF Technotes] 8 bit padding before startcodes?

Herbert Thoma tma iis.fhg.de
Tue Jan 14 10:54:00 EST 2003


Christoph Lampert schrieb:
> 
> Hi,
> 
> is it mandatory to have at least 1 bit of padding before any
> start_code? So it is possible that 8 bits are needed?
> Or should it be 0 bits then?

No, it is not mandatory before any start_code. The 1-8 padding
bits result from the next_start_code() function in the syntax
description. This appears for example after VideoObjectLayer()
and after VideoObjectPlane(), so you get padding bits before
every VOP start code.
> E.g. in VisualObjectSequence(), if there is no user_data,
> then always 40 bits = 5 bytes will have been written before
> the VisualObject could start:
> 32 bits for visual_object_sequence_start_code  and
>  8 bits for profile_and_level_idication.
> 
> Will there be 8 bits = 0x7F of padding then, before
> visual_objects_start_code, or no bits at all?

In the syntax description there is no call to the
mext_start_code() function before VisualObject(),
i.e. there should be 0 bits here.
Regards,
 Herbert.
> Best regards,
> Christoph
> 
> --
> Christoph H. Lampert chl   math,uni-bonn,de | Diese Signature ist maschinell
> Beringstr. 6, Zi. 15, 53115 Bonn, Germany | erstellt und auch ohne Unter-
> Tel. (0228) 73-4708  Fax. +49 228 73-7916 | schrift wirksam.      AZ 27B/6
> 
> _______________________________________________
> Technotes mailing list
> Technotes   lists.m4if.org
> http://lists.m4if.org/mailman/listinfo/technotes

-- 
Herbert Thoma
FhG-IIS A, Studio Department
Am Wolfsmantel 33, 91058 Erlangen, Germany
Phone: +49-9131-776-323
Fax:   +49-9131-776-399
email: tma   iis.fhg.de
www: http://www.iis.fhg.de/


More information about the Mp4-tech mailing list