[libav-devel] [PATCH] avcodec/eatqi: print error on mb decode failure

2016-02-25 Thread Vittorio Giovara
From: Michael Niedermayer Reviewed-by: Derek Buitenhuis Signed-off-by: Michael Niedermayer --- libavcodec/eatqi.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavcodec/eatqi.c

[libav-devel] [PATCH 5/6] lavf: VAAPI scale filter

2016-02-25 Thread Mark Thompson
--- configure| 3 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_scale_vaapi.c | 434 +++ 4 files changed, 439 insertions(+) create mode 100644 libavfilter/vf_scale_vaapi.c diff --git

[libav-devel] [PATCH 4/6] avconv: VAAPI hwcontext initialisation and hwaccel helper

2016-02-25 Thread Mark Thompson
--- Makefile| 1 + avconv.h| 8 + avconv_filter.c | 7 +- avconv_opt.c| 40 avconv_vaapi.c | 630 configure | 5 + 6 files changed, 690 insertions(+), 1 deletion(-) create mode 100644 avconv_vaapi.c

[libav-devel] [PATCH 3/6] lavu: VAAPI hwcontext implementation

2016-02-25 Thread Mark Thompson
--- configure | 5 + libavutil/Makefile | 3 + libavutil/hwcontext.c | 3 + libavutil/hwcontext.h | 1 + libavutil/hwcontext_internal.h | 1 + libavutil/hwcontext_vaapi.c| 809 +

[libav-devel] [PATCH 2/6] lavf: generic hardware surface upload and download

2016-02-25 Thread Mark Thompson
--- libavfilter/Makefile| 2 + libavfilter/allfilters.c| 2 + libavfilter/avfilter.c | 1 + libavfilter/avfilter.h | 9 ++ libavfilter/vf_hwdownload.c | 178 ++ libavfilter/vf_hwupload.c | 227

[libav-devel] [PATCH 1/6] lavu: add a way to query hwcontext frame constraints

2016-02-25 Thread Mark Thompson
--- libavutil/hwcontext.c | 45 libavutil/hwcontext.h | 68 ++ libavutil/hwcontext_internal.h | 10 +++ 3 files changed, 123 insertions(+) diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c index

[libav-devel] [PATCH] VAAPI hwcontext (+ generic hw filter support)

2016-02-25 Thread Mark Thompson
Hi, This adds generic hwupload and hwdownload filters. The device for hwupload comes from a new field in the AVFilterContext, while hwdownload just works with the HW frames context is gets from the incoming link. avconv adds support for setting the device for vaapi (via a new -vaapi_device

Re: [libav-devel] [PATCH 15/15] avconv: switch to the new BSF API

2016-02-25 Thread Luca Barbato
On 25/02/16 16:05, Anton Khirnov wrote: > --- > avconv.c | 142 > ++- > avconv.h | 6 ++- > avconv_opt.c | 22 + > cmdutils.c | 5 ++- > 4 files changed, 124 insertions(+), 51 deletions(-) Seems fine.

Re: [libav-devel] [PATCH 02/15] lavc: add a new bitstream filtering API

2016-02-25 Thread Anton Khirnov
Quoting Ronald S. Bultje (2016-02-25 20:51:44) > Hi, > > On Thu, Feb 25, 2016 at 2:40 PM, Anton Khirnov wrote: > > > Quoting Ronald S. Bultje (2016-02-25 19:48:10) > > > Hi, > > > > > > given I'm writing a BSF right now... > > > > > > On Thu, Feb 25, 2016 at 10:05 AM, Anton

Re: [libav-devel] [PATCH 02/15] lavc: add a new bitstream filtering API

2016-02-25 Thread Ronald S. Bultje
Hi, On Thu, Feb 25, 2016 at 2:40 PM, Anton Khirnov wrote: > Quoting Ronald S. Bultje (2016-02-25 19:48:10) > > Hi, > > > > given I'm writing a BSF right now... > > > > On Thu, Feb 25, 2016 at 10:05 AM, Anton Khirnov > wrote: > > > > > +int

Re: [libav-devel] [PATCH 02/15] lavc: add a new bitstream filtering API

2016-02-25 Thread Anton Khirnov
Quoting Ronald S. Bultje (2016-02-25 19:48:10) > Hi, > > given I'm writing a BSF right now... > > On Thu, Feb 25, 2016 at 10:05 AM, Anton Khirnov wrote: > > > +int (*filter)(AVBSFContext *ctx, AVPacket *pkt); > > > > How do we skip packets? Like, say we have a BSF that

Re: [libav-devel] [PATCH 02/15] lavc: add a new bitstream filtering API

2016-02-25 Thread Ronald S. Bultje
Hi, given I'm writing a BSF right now... On Thu, Feb 25, 2016 at 10:05 AM, Anton Khirnov wrote: > +int (*filter)(AVBSFContext *ctx, AVPacket *pkt); > How do we skip packets? Like, say we have a BSF that merges two packets together into one, how does that work? Maybe it

Re: [libav-devel] [PATCH 02/15] lavc: add a new bitstream filtering API

2016-02-25 Thread Luca Barbato
On 25/02/16 16:05, Anton Khirnov wrote: > Deprecate the current bitstream filtering API. > --- > configure | 2 +- > libavcodec/Makefile| 2 + > libavcodec/avcodec.h | 178 +++-- > libavcodec/bitstream_filters.c | 51

Re: [libav-devel] [PATCH 01/15] avpacket: properly reset data/size in av_packet_move_ref()

2016-02-25 Thread Luca Barbato
On 25/02/16 16:05, Anton Khirnov wrote: > It currently just calls av_init_packet(), which does not touch those > fields. > --- > libavcodec/avpacket.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c > index 3f8e163..59fc6f2 100644 > ---

Re: [libav-devel] [RFC] New BSF API

2016-02-25 Thread James Almer
On 2/25/2016 12:05 PM, Anton Khirnov wrote: > Hi, > as promised, here is the new bitstream filtering API. It is rather similar to > the one I sent in 2013, except now it uses AVCodecParameters and is actually > finished and functional. > > One thing I'm not sure about is whether to allow the

Re: [libav-devel] [PATCH] fate: Add test for indeo2 with delta frames

2016-02-25 Thread Diego Biurrun
On Wed, Feb 24, 2016 at 03:45:49PM -0500, Vittorio Giovara wrote: > Rename to keep indeo2 target separate. Rename what? The sentence has no subject, so it's impossible to understand standalone. > --- a/tests/fate/indeo.mak > +++ b/tests/fate/indeo.mak > @@ -1,5 +1,11 @@ > -FATE_INDEO-$(call

Re: [libav-devel] [PATCH 4/4] vc1dec: Check group allocations separatedly

2016-02-25 Thread Diego Biurrun
On Wed, Feb 24, 2016 at 02:40:19PM -0500, Vittorio Giovara wrote: > This avoids summing offsets to NULL pointers in case of error. More importantly, avoids accessing NULL pointers, so just say that instead of making noises about sums. OK Diego ___

Re: [libav-devel] [PATCH 2/4] vc1dec: Properly call deinit function on error

2016-02-25 Thread Diego Biurrun
On Wed, Feb 24, 2016 at 02:40:17PM -0500, Vittorio Giovara wrote: > This functions allocates tons of buffers, free on error in a > separate one. function_ I'd just leave this sentence out completely. As there is no context for "this function", the sentence provides no information. > ---

Re: [libav-devel] [PATCH 3/4] vc1dec: Fix leak on error for array allocations

2016-02-25 Thread Diego Biurrun
On Wed, Feb 24, 2016 at 02:40:18PM -0500, Vittorio Giovara wrote: > The deinit function in the 'error' section will correctly free > everything. > --- > libavcodec/vc1dec.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) OK Diego ___

Re: [libav-devel] [PATCH 1/4] vc1dec: Drop commented out cruft

2016-02-25 Thread Diego Biurrun
On Wed, Feb 24, 2016 at 02:40:16PM -0500, Vittorio Giovara wrote: > --- > libavcodec/vc1dec.c | 8 > 1 file changed, 8 deletions(-) OK Diego ___ libav-devel mailing list libav-devel@libav.org

[libav-devel] [PATCH 02/15] lavc: add a new bitstream filtering API

2016-02-25 Thread Anton Khirnov
Deprecate the current bitstream filtering API. --- configure | 2 +- libavcodec/Makefile| 2 + libavcodec/avcodec.h | 178 +++-- libavcodec/bitstream_filters.c | 51 ++ libavcodec/bsf.c | 217

[libav-devel] [PATCH 09/15] mjpeg2jpeg_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c | 1 - libavcodec/bitstream_filters.c | 4 +++ libavcodec/mjpeg2jpeg_bsf.c| 69 +- 3 files changed, 46 insertions(+), 28 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 14/15] bitstream_filter: add a compatibility wrapper for the old bsf API

2016-02-25 Thread Anton Khirnov
--- libavcodec/bitstream_filter.c | 147 -- 1 file changed, 112 insertions(+), 35 deletions(-) diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c index 3b19bbd..9b0f6d8 100644 --- a/libavcodec/bitstream_filter.c +++

[libav-devel] [RFC] New BSF API

2016-02-25 Thread Anton Khirnov
Hi, as promised, here is the new bitstream filtering API. It is rather similar to the one I sent in 2013, except now it uses AVCodecParameters and is actually finished and functional. One thing I'm not sure about is whether to allow the filters to change codec ids. No current filters do it, but

[libav-devel] [PATCH 11/15] movsub_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c | 2 - libavcodec/bitstream_filters.c | 8 libavcodec/movsub_bsf.c| 96 +- 3 files changed, 75 insertions(+), 31 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 05/15] dump_extradata_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c | 1 - libavcodec/bitstream_filters.c | 4 ++ libavcodec/dump_extradata_bsf.c | 94 ++--- 3 files changed, 74 insertions(+), 25 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 01/15] avpacket: properly reset data/size in av_packet_move_ref()

2016-02-25 Thread Anton Khirnov
It currently just calls av_init_packet(), which does not touch those fields. --- libavcodec/avpacket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 3f8e163..59fc6f2 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@

[libav-devel] [PATCH 13/15] remove_extradata_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c| 10 libavcodec/bitstream_filters.c| 4 ++ libavcodec/remove_extradata_bsf.c | 111 +- 3 files changed, 90 insertions(+), 35 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 03/15] aac_adtstoasc_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/aac_adtstoasc_bsf.c | 95 ++ libavcodec/allcodecs.c | 1 - libavcodec/bitstream_filters.c | 5 +++ 3 files changed, 65 insertions(+), 36 deletions(-) diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c

[libav-devel] [PATCH 10/15] mjpega_dump_header_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c | 1 - libavcodec/bitstream_filters.c | 4 ++ libavcodec/mjpega_dump_header_bsf.c | 106 3 files changed, 63 insertions(+), 48 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 08/15] imx_dump_header_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c | 1 - libavcodec/bitstream_filters.c | 4 +++ libavcodec/imx_dump_header_bsf.c | 63 +--- 3 files changed, 43 insertions(+), 25 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 04/15] chomp_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c | 1 - libavcodec/bitstream_filters.c | 4 libavcodec/chomp_bsf.c | 29 - 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 4d03363..35d14c3 100644

[libav-devel] [PATCH 06/15] h264_mp4toannexb_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c| 1 - libavcodec/bitstream_filters.c| 4 + libavcodec/h264_mp4toannexb_bsf.c | 151 ++ 3 files changed, 92 insertions(+), 64 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 15/15] avconv: switch to the new BSF API

2016-02-25 Thread Anton Khirnov
--- avconv.c | 142 ++- avconv.h | 6 ++- avconv_opt.c | 22 + cmdutils.c | 5 ++- 4 files changed, 124 insertions(+), 51 deletions(-) diff --git a/avconv.c b/avconv.c index 35ea1f5..e5e2e46 100644 --- a/avconv.c +++

[libav-devel] [PATCH 07/15] hevc_mp4toannexb_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c| 1 - libavcodec/bitstream_filters.c| 4 ++ libavcodec/hevc_mp4toannexb_bsf.c | 127 -- 3 files changed, 72 insertions(+), 60 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index

[libav-devel] [PATCH 12/15] noise_bsf: convert to the new API

2016-02-25 Thread Anton Khirnov
--- libavcodec/allcodecs.c | 1 - libavcodec/bitstream_filters.c | 4 +++ libavcodec/noise_bsf.c | 77 +++--- 3 files changed, 61 insertions(+), 21 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index