Re: Stateless Encoding uAPI Discussion and Proposal

From: Nicolas Dufresne
Date: Wed Aug 30 2023 - 14:29:57 EST


Le mercredi 23 août 2023 à 11:04 +0800, Hsia-Jun Li a écrit :
> > It was suggested so far to leave h264 slice headers writing to the driver. This
> > is motivated by H264 slice header not being byte aligned in size, so the
> H.264, H.265 has the byte_alignment() in nalu. You don't need skip bits
> feature which could be found in H1.

As you said so, I rechecked the H.264 grammar.

...
slice_header( )
slice_data( )
...

There is lot of variable size items in the slice_header() syntax and no padding
bits. And no padding at the start of any of the slice_data types. So no, the
slice_header() syntax in H.264 is not byte aligned like you are claiming here.
Its important to be super accurate about these things, as it will cause errors
to be made. Please always double check.

Nicolas