[FFmpeg-devel] [PATCH 03/20] lavc: Add coded bitstream read/write API
Michael Niedermayer
michael at niedermayer.cc
Fri Oct 13 14:31:24 EEST 2017
On Fri, Oct 13, 2017 at 01:23:34PM +0200, Michael Niedermayer wrote:
> On Thu, Oct 12, 2017 at 12:35:35AM +0100, Mark Thompson wrote:
> > On 11/10/17 23:34, Michael Niedermayer wrote:
[...]
> > >> +
> > >> +/**
> > >> + * Coded bitstream unit structure.
> > >> + *
> > >
> > >> + * A bitstream unit the smallest element of a bitstream which
> > >> + * is meaningful on its own. For example, an H.264 NAL unit.
> > >
> > >> + *
> > >> + * See the codec-specific header for the meaning of this for any
> > >> + * particular codec.
> > >> + */
> > >> +typedef struct CodedBitstreamUnit {
> > >> + /**
> > >> + * Codec-specific type of this unit.
> > >> + */
> > >> + CodedBitstreamUnitType type;
> > >> +
> > >
> > >> + /**
> > >> + * Pointer to the bitstream form of this unit.
> > >> + *
> > >> + * May be NULL if the unit currently only exists in decomposed form.
> > >> + */
> > >> + uint8_t *data;
> > >
> > > whats a "bitstream form" ?
> > > is that the bitstream itself? if so why is it called "bitstream form"
> >
> > It is a bitstream form appropriate for direct parsing (for H.264/H.265, rbsp, so unescaped).
>
> Thats a bit surprising.
>
> Wouldnt a API that uses the unmodified bitstream be more clear and
> simpler ?
> Or an explicit parameter that specifies if the input has been
> unescaped already.
disregard this, i realize now you just spoke about the field in the
struct and not the interface, which i presume works with normal
data as stored in containers
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171013/3fd8baf0/attachment.sig>
More information about the ffmpeg-devel
mailing list