[libav-devel] [PATCH 1/6] hevc: rename hevc.[ch] to hevcdec.[ch]

2016-09-22 Thread Anton Khirnov
This is more consistent with the rest of libav and frees up the hevc.h name for decoder-independent shared declarations. --- libavcodec/Makefile | 2 +- libavcodec/dxva2_hevc.c | 2 +- libavcodec/hevc_cabac.c | 2 +- libavcodec/hevc_data.c| 2 +-

[libav-devel] [PATCH 4/6] hevcdec: move parameter set parsing into a separate header

2016-09-22 Thread Anton Khirnov
This code is independent from the decoder, so it makes more sense for it to to have its own header. --- libavcodec/hevc.h| 5 + libavcodec/hevc_data.h | 29 + libavcodec/hevc_ps.c | 15 +-- libavcodec/hevc_ps.h | 320 +++

[libav-devel] [PATCH 5/6] lavc: add a bitstream filter for extracting extradata from packets

2016-09-22 Thread Anton Khirnov
This is intended as a replacement for the 'split' function exported by some parsers. --- doc/bitstream_filters.texi | 18 +++ libavcodec/Makefile| 1 + libavcodec/bitstream_filters.c | 1 + libavcodec/extract_extradata_bsf.c | 300

[libav-devel] [PATCH 6/6] lavf: use the new bitstream filter for extracting extradata

2016-09-22 Thread Anton Khirnov
This also fixes a minor bug introduced in the codecpar conversion, where the termination condition for extracting the extradata does not match the actual extradata setting code. As a result, the packet durations made up by lavf go back to their values before the codecpar conversion. That is of

[libav-devel] [PATCH 3/6] hevcdec: drop the prototype of a non-existing function

2016-09-22 Thread Anton Khirnov
--- libavcodec/hevcdec.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index df81e55..9566223 100644 --- a/libavcodec/hevcdec.h +++ b/libavcodec/hevcdec.h @@ -957,8 +957,6 @@ int ff_hevc_cu_qp_delta_abs(HEVCContext *s); void

[libav-devel] [PATCH 1/6] mpegvideo_enc: add const to the AVCodec instance

2016-09-22 Thread Anton Khirnov
--- libavcodec/mpegvideo_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index d738d06..46e2e2c 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1259,7 +1259,7 @@ static int

[libav-devel] [PATCH 5/6] tdsc: use the new decoding API

2016-09-22 Thread Anton Khirnov
--- libavcodec/tdsc.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c index c70c77f..5b952b3 100644 --- a/libavcodec/tdsc.c +++ b/libavcodec/tdsc.c @@ -343,7 +343,6 @@ static int tdsc_decode_jpeg_tile(AVCodecContext *avctx,

[libav-devel] [PATCH 4/6] lavc: add clobber tests for the new encoding/decoding API

2016-09-22 Thread Anton Khirnov
--- configure | 8 libavcodec/aarch64/neontest.c | 20 libavcodec/arm/neontest.c | 20 libavcodec/x86/w64xmmtest.c | 20 4 files changed, 68 insertions(+) diff --git a/configure b/configure index

[libav-devel] [PATCH 6/6] examples/output: switch to the new encoding API

2016-09-22 Thread Anton Khirnov
--- doc/examples/output.c | 71 +++ 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/doc/examples/output.c b/doc/examples/output.c index 44a55f5..bb0da30 100644 --- a/doc/examples/output.c +++ b/doc/examples/output.c @@ -233,25

[libav-devel] [PATCH 2/6] mpegvideo_enc: handle encoding errors with b_strategy=2

2016-09-22 Thread Anton Khirnov
--- libavcodec/mpegvideo_enc.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 46e2e2c..6ab9ba5 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1265,6 +1265,7 @@ static int

[libav-devel] [PATCH 3/6] mpegvideo_enc: use the new encoding API for b_strategy=2

2016-09-22 Thread Anton Khirnov
--- libavcodec/mpegvideo_enc.c | 88 ++ 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 6ab9ba5..cd7bca03 100644 --- a/libavcodec/mpegvideo_enc.c +++

Re: [libav-devel] [PATCH 3/9] blockdsp/x86: yasmify

2016-09-22 Thread Anton Khirnov
Quoting Henrik Gramner (2016-09-21 17:13:31) > On Wed, Sep 21, 2016 at 9:01 AM, Anton Khirnov wrote: > > Yes they are, because pxor does not exist in SSE. > > Why not use xorps like the original code then? INIT_XMM sse will also > make mova assemble to movaps instead of

Re: [libav-devel] [PATCH 1/6] mpegvideo_enc: add const to the AVCodec instance

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 09:35:27AM +0200, Anton Khirnov wrote: > --- > libavcodec/mpegvideo_enc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) LGTM Diego ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 2/6] mpegvideo_enc: handle encoding errors with b_strategy=2

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 09:35:28AM +0200, Anton Khirnov wrote: > --- > libavcodec/mpegvideo_enc.c | 18 ++ > 1 file changed, 18 insertions(+) LGTM Diego ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 02/14] intrax8: Change type of array stride parameters to ptrdiff_t

2016-09-22 Thread Diego Biurrun
On Tue, Sep 20, 2016 at 11:09:51PM +0100, Mark Thompson wrote: > On 20/09/16 19:36, Diego Biurrun wrote: > Aside: > > Seeing a lot of little functions like (picking a random one): > > > -static void spatial_compensation_3(uint8_t *src, uint8_t *dst, int > > linesize) > > +static void

Re: [libav-devel] [PATCH 3/6] mpegvideo_enc: use the new encoding API for b_strategy=2

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 09:35:29AM +0200, Anton Khirnov wrote: > --- a/libavcodec/mpegvideo_enc.c > +++ b/libavcodec/mpegvideo_enc.c > @@ -1313,27 +1306,46 @@ static int estimate_best_b_count(MpegEncContext *s) > for (j = 0; j < s->max_b_frames + 1; j++) { > +AVCodecContext *c =

Re: [libav-devel] [PATCH 4/6] lavc: add clobber tests for the new encoding/decoding API

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 09:35:30AM +0200, Anton Khirnov wrote: > --- > configure | 8 > libavcodec/aarch64/neontest.c | 20 > libavcodec/arm/neontest.c | 20 > libavcodec/x86/w64xmmtest.c | 20 > 4

Re: [libav-devel] [PATCH 1/6] hevc: rename hevc.[ch] to hevcdec.[ch]

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 04:29:06PM +0200, Anton Khirnov wrote: > This is more consistent with the rest of libav and frees up the hevc.h > name for decoder-independent shared declarations. > --- > libavcodec/Makefile | 2 +- > libavcodec/dxva2_hevc.c | 2 +- >

Re: [libav-devel] [PATCH 4/6] hevcdec: move parameter set parsing into a separate header

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 04:29:09PM +0200, Anton Khirnov wrote: > This code is independent from the decoder, so it makes more sense for it > to to have its own header. > --- > libavcodec/hevc.h| 5 + > libavcodec/hevc_data.h | 29 + > libavcodec/hevc_ps.c | 15 +-- >

Re: [libav-devel] [PATCH 6/6] lavf: use the new bitstream filter for extracting extradata

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 04:29:11PM +0200, Anton Khirnov wrote: > --- a/libavformat/internal.h > +++ b/libavformat/internal.h > @@ -113,6 +113,15 @@ struct AVStreamInternal { > > +/* the context for extracting extradata in find_stream_info() > + * inited=1/bsf=NULL signals that extracting

Re: [libav-devel] [PATCH 5/6] lavc: add a bitstream filter for extracting extradata from packets

2016-09-22 Thread Diego Biurrun
I think this needs a version bump. On Thu, Sep 22, 2016 at 04:29:10PM +0200, Anton Khirnov wrote: > --- a/doc/bitstream_filters.texi > +++ b/doc/bitstream_filters.texi > @@ -21,6 +21,24 @@ Below is a description of the currently available > bitstream filters. > +@table @option > +@item remove >

Re: [libav-devel] [PATCH 2/6] hevcdec: move decoder-independent declarations into a separate header

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 04:29:07PM +0200, Anton Khirnov wrote: > This way they can be reused by other code without including the whole > decoder-specific hevcdec.h > Also, add the HEVC_ prefix to them, since similarly named values exist > for H.264 as well and are sometimes used in the same code.

Re: [libav-devel] [PATCH 3/6] hevcdec: drop the prototype of a non-existing function

2016-09-22 Thread Diego Biurrun
On Thu, Sep 22, 2016 at 04:29:08PM +0200, Anton Khirnov wrote: > --- > libavcodec/hevcdec.h | 2 -- > 1 file changed, 2 deletions(-) OK Diego ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 3/9] blockdsp/x86: yasmify

2016-09-22 Thread Henrik Gramner
On Thu, Sep 22, 2016 at 9:39 AM, Anton Khirnov wrote: > Quoting Henrik Gramner (2016-09-21 17:13:31) >> Why not use xorps like the original code then? INIT_XMM sse will also >> make mova assemble to movaps instead of movdqa, so no problem there. > > mmx only has pxor, so I'd

Re: [libav-devel] [PATCH 09/14] svq3: Change type of array stride parameters to ptrdiff_t

2016-09-22 Thread Luca Barbato
On 22/09/16 19:24, Diego Biurrun wrote: > On Tue, Sep 20, 2016 at 10:21:40PM +0100, Mark Thompson wrote: >> On 20/09/16 22:07, Diego Biurrun wrote: >>> On Tue, Sep 20, 2016 at 09:22:06PM +0100, Mark Thompson wrote: On 20/09/16 19:36, Diego Biurrun wrote: > ptrdiff_t is the correct type

[libav-devel] hwupload_cuda - Add P010 and YUV444P16 pixel format

2016-09-22 Thread Yogender Gupta
>>Are you going to add support for those to scale_npp as well? yes, will submit a patch shortly thx yogender --- This email message is for the sole use of the intended recipient(s) and may contain confidential

Re: [libav-devel] [PATCH 5/6] tdsc: use the new decoding API

2016-09-22 Thread Vittorio Giovara
On Thu, Sep 22, 2016 at 3:35 AM, Anton Khirnov wrote: > --- > libavcodec/tdsc.c | 15 +-- > 1 file changed, 9 insertions(+), 6 deletions(-) > > diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c > index c70c77f..5b952b3 100644 > --- a/libavcodec/tdsc.c > +++

Re: [libav-devel] [PATCH 6/6] examples/output: switch to the new encoding API

2016-09-22 Thread Vittorio Giovara
On Thu, Sep 22, 2016 at 3:35 AM, Anton Khirnov wrote: > --- > doc/examples/output.c | 71 > +++ > 1 file changed, 44 insertions(+), 27 deletions(-) > > diff --git a/doc/examples/output.c b/doc/examples/output.c > index

Re: [libav-devel] [PATCH 09/14] svq3: Change type of array stride parameters to ptrdiff_t

2016-09-22 Thread Diego Biurrun
On Tue, Sep 20, 2016 at 10:21:40PM +0100, Mark Thompson wrote: > On 20/09/16 22:07, Diego Biurrun wrote: > > On Tue, Sep 20, 2016 at 09:22:06PM +0100, Mark Thompson wrote: > >> On 20/09/16 19:36, Diego Biurrun wrote: > >>> ptrdiff_t is the correct type for array strides and similar. > >>> ---