Re: [libav-devel] [PATCH 01/14] lavc: Add coded bitstream read/write API

2017-08-12 Thread Diego Biurrun
On Sat, Aug 12, 2017 at 07:21:49PM +0100, Mark Thompson wrote: > On 12/08/17 09:40, Diego Biurrun wrote: > > On Fri, Aug 11, 2017 at 12:36:56AM +0100, Mark Thompson wrote: > >> --- /dev/null > >> +++ b/libavcodec/cbs.h > >> @@ -0,0 +1,274 @@ > >> + > >> +/** > >> + * Write the content of the

Re: [libav-devel] [PATCH 01/14] lavc: Add coded bitstream read/write API

2017-08-12 Thread Mark Thompson
On 12/08/17 09:40, Diego Biurrun wrote: > On Fri, Aug 11, 2017 at 12:36:56AM +0100, Mark Thompson wrote: >> --- /dev/null >> +++ b/libavcodec/cbs.h >> @@ -0,0 +1,274 @@ >> + >> +/** >> + * Write the content of the fragment to its own internal buffer. >> + * >> + * Writes the content of all units

Re: [libav-devel] [PATCH 01/14] lavc: Add coded bitstream read/write API

2017-08-12 Thread Diego Biurrun
On Fri, Aug 11, 2017 at 12:36:56AM +0100, Mark Thompson wrote: > --- /dev/null > +++ b/libavcodec/cbs.c > @@ -0,0 +1,461 @@ > + > +int ff_cbs_init(CodedBitstreamContext *ctx, > +enum AVCodecID codec_id, void *log_ctx) > +{ > +ctx->log_ctx = log_ctx; > + > +ctx->codec =

[libav-devel] [PATCH 01/14] lavc: Add coded bitstream read/write API

2017-08-10 Thread Mark Thompson
--- The golomb read/write functions have moved to the following patch to make the dependencies work out sensibly. configure | 1 + libavcodec/Makefile | 1 + libavcodec/cbs.c | 461 ++ libavcodec/cbs.h |