[FFmpeg-devel] [PATCH 4/5] lavf: add Android content resolver protocol support

2016-02-15 Thread Matthieu Bouron
From: Matthieu Bouron Handles uri starting with content://. --- configure| 3 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/file.c | 160 +++ 4 files changed, 165 insertions(+) diff --git a

[FFmpeg-devel] [PATCH 1/5] lavu: add JNI support

2016-02-15 Thread Matthieu Bouron
From: Matthieu Bouron --- configure| 4 + libavutil/Makefile | 4 + libavutil/jni.c | 55 +++ libavutil/jni.h | 42 + libavutil/jni_internal.c | 391 +++ libavutil/jni_internal.h | 147

[FFmpeg-devel] [PATCH 5/5] lavc: add h264 mediacodec decoder

2016-02-15 Thread Matthieu Bouron
From: Matthieu Bouron --- configure |5 + libavcodec/Makefile |3 + libavcodec/allcodecs.c |1 + libavcodec/mediacodec_wrapper.c | 1522 +++ libavcodec/mediacodec_wrapper.h | 123 libavcodec

[FFmpeg-devel] [PATCH 3/5] lavu/jni: let avpriv_init_jfields load application classes

2016-02-15 Thread Matthieu Bouron
From: Matthieu Bouron --- libavutil/jni_internal.c | 25 + libavutil/jni_internal.h | 1 + 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/libavutil/jni_internal.c b/libavutil/jni_internal.c index 5e2f7c3..ff25214 100644 --- a/libavutil/jni_internal.c

[FFmpeg-devel] MediaCodec support

2016-02-15 Thread Matthieu Bouron
Hello, The following patchset adds basic MediaCodec support to libavcodec, ie: only h264 is supported and the HWAccel part (Surface output) is missing. JNI comes as a dependency. The JNI support is based on the same patchset I've sent some time ago with some improvements. I originally developed

Re: [FFmpeg-devel] [PATCH 5/5] lavc: add h264 mediacodec decoder

2016-02-15 Thread Matthieu Bouron
On Mon, Feb 15, 2016 at 08:42:48PM +0100, Michael Niedermayer wrote: > On Mon, Feb 15, 2016 at 06:52:30PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > --- > > configure |5 + > > libavcodec/Makefile |

Re: [FFmpeg-devel] MediaCodec support

2016-02-16 Thread Matthieu Bouron
On Tue, Feb 16, 2016 at 10:41 AM, wm4 wrote: > On Mon, 15 Feb 2016 18:52:25 +0100 > Matthieu Bouron wrote: > > > Hello, > > > > The following patchset adds basic MediaCodec support to libavcodec, ie: > only > > h264 is supported and the HWAccel part (Sur

Re: [FFmpeg-devel] MediaCodec support

2016-02-16 Thread Matthieu Bouron
On Tue, Feb 16, 2016 at 12:36 PM, wm4 wrote: > On Tue, 16 Feb 2016 12:09:58 +0100 > Matthieu Bouron wrote: > > > On Tue, Feb 16, 2016 at 10:41 AM, wm4 wrote: > > > > > On Mon, 15 Feb 2016 18:52:25 +0100 > > > Matthieu Bouron wrote: > > > >

Re: [FFmpeg-devel] MediaCodec support

2016-02-16 Thread Matthieu Bouron
On Tue, Feb 16, 2016 at 2:47 PM, Matthieu Bouron wrote: > > > On Tue, Feb 16, 2016 at 12:36 PM, wm4 wrote: > >> On Tue, 16 Feb 2016 12:09:58 +0100 >> Matthieu Bouron wrote: >> >> > On Tue, Feb 16, 2016 at 10:41 AM, wm4 wrote: >> > >>

Re: [FFmpeg-devel] [PATCH 1/5] lavu: add JNI support

2016-02-16 Thread Matthieu Bouron
On Mon, Feb 15, 2016 at 6:56 PM, Hendrik Leppkes wrote: > On Mon, Feb 15, 2016 at 6:52 PM, Matthieu Bouron > wrote: > > From: Matthieu Bouron > > > > --- > > configure| 4 + > > libavutil/Makefile | 4 + > > libavutil/jni.c

Re: [FFmpeg-devel] [PATCH 5/5] lavc: add h264 mediacodec decoder

2016-02-17 Thread Matthieu Bouron
On Mon, Feb 15, 2016 at 10:17:25PM +0100, Matthieu Bouron wrote: > On Mon, Feb 15, 2016 at 08:42:48PM +0100, Michael Niedermayer wrote: > > On Mon, Feb 15, 2016 at 06:52:30PM +0100, Matthieu Bouron wrote: > > > From: Matthieu Bouron > > > > > > --- > >

Re: [FFmpeg-devel] [PATCH 5/5] lavc: add h264 mediacodec decoder

2016-02-19 Thread Matthieu Bouron
On Wed, Feb 17, 2016 at 06:39:46PM +0100, Matthieu Bouron wrote: > On Mon, Feb 15, 2016 at 10:17:25PM +0100, Matthieu Bouron wrote: > > On Mon, Feb 15, 2016 at 08:42:48PM +0100, Michael Niedermayer wrote: > > > On Mon, Feb 15, 2016 at 06:52:30PM +0100, Matthieu Bouron wrote: >

[FFmpeg-devel] MediaCodec support patchset v2

2016-02-22 Thread Matthieu Bouron
Differences from the latest patches: * Android application context support has been removed * Android content uris support has been removed * The jni util functions has been moved from lavu to lavc, and they are now prefixed by ff_ instead of avpriv_ and no more public interfaces are expo

[FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-02-22 Thread Matthieu Bouron
From: Matthieu Bouron --- configure | 5 + libavcodec/Makefile | 2 + libavcodec/ffjni.c | 480 libavcodec/ffjni.h | 147 4 files changed, 634 insertions(+) create mode 100644 libavcodec/ffjni.c create mode

[FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-22 Thread Matthieu Bouron
From: Matthieu Bouron --- configure |5 + libavcodec/Makefile |3 + libavcodec/allcodecs.c |1 + libavcodec/mediacodec_wrapper.c | 1521 +++ libavcodec/mediacodec_wrapper.h | 123 libavcodec

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-23 Thread Matthieu Bouron
On Mon, Feb 22, 2016 at 01:08:49PM +0100, Michael Niedermayer wrote: > On Mon, Feb 22, 2016 at 12:20:36PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > [...] > > +codec = (*env)->NewObject(env, jfields.mediacodec_list_class, > > jfields.init_id,

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-23 Thread Matthieu Bouron
On Mon, Feb 22, 2016 at 02:55:06PM +0100, wm4 wrote: > On Mon, 22 Feb 2016 12:20:36 +0100 > Matthieu Bouron wrote: > > > From: Matthieu Bouron > > > > --- > > ... > > Some remarks: > > - The qcom stuff should probably be moved into its own sou

[FFmpeg-devel] [PATCH] configure: add missing --strip option to show_help()

2016-02-24 Thread Matthieu Bouron
From: Matthieu Bouron --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 3d1ee49..337a060 100755 --- a/configure +++ b/configure @@ -309,6 +309,7 @@ Toolchain options: --nm=NM use nm tool NM [$nm_default] --ar=AR

[FFmpeg-devel] [PATCH] configure: only check dispatch header on darwin

2016-02-25 Thread Matthieu Bouron
From: Matthieu Bouron Fixes build of lavd/jack on linux if dispatch happens to be available on this platform. dispatch, as well as its dependencies kqueue and pwq are generally not installed / distribued on linux systems. If it happens to be the case, you want to explicitely link against the

Re: [FFmpeg-devel] [PATCH] configure: add missing --strip option to show_help()

2016-02-25 Thread Matthieu Bouron
On Wed, Feb 24, 2016 at 05:26:57PM +0100, Michael Niedermayer wrote: > On Wed, Feb 24, 2016 at 11:40:12AM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > --- > > configure | 1 + > > 1 file changed, 1 insertion(+)

Re: [FFmpeg-devel] [PATCH] configure: only check dispatch header on darwin

2016-02-25 Thread Matthieu Bouron
On Thu, Feb 25, 2016 at 04:09:34PM +, Josh de Kock wrote: > On 25/02/2016 15:53, Nicolas George wrote: > >Le septidi 7 ventôse, an CCXXIV, Josh de Kock a écrit : > >>Just thought it wouldn't hurt to fix the real problem--that libdispatch > >>isn't being checked for correctly, rather than a quic

Re: [FFmpeg-devel] [PATCH] configure: only check dispatch header on darwin

2016-02-26 Thread Matthieu Bouron
On Thu, Feb 25, 2016 at 09:41:11PM +0100, Matthieu Bouron wrote: > On Thu, Feb 25, 2016 at 04:09:34PM +, Josh de Kock wrote: > > On 25/02/2016 15:53, Nicolas George wrote: > > >Le septidi 7 ventôse, an CCXXIV, Josh de Kock a écrit : > > >>Just thought it wouldn&

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-02-26 Thread Matthieu Bouron
On Mon, Feb 22, 2016 at 12:20:35PM +0100, Matthieu Bouron wrote: > From: Matthieu Bouron > > --- > configure | 5 + > libavcodec/Makefile | 2 + > libavcodec/ffjni.c | 480 > > libavcodec/ffjni.h | 1

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-26 Thread Matthieu Bouron
On Tue, Feb 23, 2016 at 11:28:01AM +0100, wm4 wrote: > On Tue, 23 Feb 2016 09:53:43 +0100 > Matthieu Bouron wrote: > > > On Mon, Feb 22, 2016 at 01:08:49PM +0100, Michael Niedermayer wrote: > > > On Mon, Feb 22, 2016 at 12:20:36PM +0100, Matthieu Bouron wrote: >

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-02-26 Thread Matthieu Bouron
On Fri, Feb 26, 2016 at 5:02 PM, Carl Eugen Hoyos wrote: > Matthieu Bouron gmail.com> writes: > > > Patch updated > > > + --enable-mediacodec enable Android MediaCodec support [no] > > > +enabled mediacodec&& { enabled jni || die > >

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-02-26 Thread Matthieu Bouron
On Fri, Feb 26, 2016 at 4:41 PM, Matthieu Bouron wrote: > On Mon, Feb 22, 2016 at 12:20:35PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > [...] > > Patch updated with the following differences: > * fix of switch/case code style > * re

[FFmpeg-devel] [PATCH] lavc/mjpegdec: avoid unneeded allocation if the frame is to be skipped

2016-03-01 Thread Matthieu Bouron
From: Matthieu Bouron --- libavcodec/mjpegdec.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index f41f3a5..1e83e88 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -614,6 +614,13 @@ unk_pixfmt: return

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-01 Thread Matthieu Bouron
On Fri, Feb 26, 2016 at 05:36:40PM +0100, Matthieu Bouron wrote: > On Fri, Feb 26, 2016 at 4:41 PM, Matthieu Bouron > wrote: > > > On Mon, Feb 22, 2016 at 12:20:35PM +0100, Matthieu Bouron wrote: > > > From: Matthieu Bouron > > > > > > > [...] &

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-03-01 Thread Matthieu Bouron
On Sat, Feb 27, 2016 at 04:28:43PM +0100, Michael Niedermayer wrote: > On Fri, Feb 26, 2016 at 04:54:47PM +0100, Matthieu Bouron wrote: > > On Tue, Feb 23, 2016 at 11:28:01AM +0100, wm4 wrote: > > > On Tue, 23 Feb 2016 09:53:43 +0100 > > > Matthieu Bouron wrote: &g

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-01 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 07:56:30PM +0100, wm4 wrote: > On Tue, 1 Mar 2016 19:52:08 +0100 > Matthieu Bouron wrote: > > > On Fri, Feb 26, 2016 at 05:36:40PM +0100, Matthieu Bouron wrote: > > > On Fri, Feb 26, 2016 at 4:41 PM, Matthieu Bouron > > > > > &

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-01 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 08:13:48PM +0100, wm4 wrote: > On Tue, 1 Mar 2016 20:10:50 +0100 > Matthieu Bouron wrote: > > > On Tue, Mar 01, 2016 at 07:56:30PM +0100, wm4 wrote: > > > On Tue, 1 Mar 2016 19:52:08 +0100 > > > Matthieu Bouron wrote: > > >

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-01 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 08:24:27PM +0100, Matthieu Bouron wrote: > On Tue, Mar 01, 2016 at 08:13:48PM +0100, wm4 wrote: > > On Tue, 1 Mar 2016 20:10:50 +0100 > > Matthieu Bouron wrote: > > > > > On Tue, Mar 01, 2016 at 07:56:30PM +0100, wm4 wrote: > > &

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-01 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 08:38:04PM +0100, wm4 wrote: > On Tue, 1 Mar 2016 20:33:14 +0100 > Matthieu Bouron wrote: > > > On Tue, Mar 01, 2016 at 08:24:27PM +0100, Matthieu Bouron wrote: > > > On Tue, Mar 01, 2016 at 08:13:48PM +0100, wm4 wrote: > > > &g

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-01 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 08:55:23PM +0100, Matthieu Bouron wrote: > On Tue, Mar 01, 2016 at 08:38:04PM +0100, wm4 wrote: > > On Tue, 1 Mar 2016 20:33:14 +0100 > > Matthieu Bouron wrote: > > > > > On Tue, Mar 01, 2016 at 08:24:27PM +0100, Matthieu Bouron wrote: >

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-02 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 09:06:35PM +0100, wm4 wrote: > On Tue, 1 Mar 2016 20:57:12 +0100 > Matthieu Bouron wrote: > > > On Tue, Mar 01, 2016 at 08:55:23PM +0100, Matthieu Bouron wrote: > > > On Tue, Mar 01, 2016 at 08:38:04PM +0100, wm4 wrote: > > > &g

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-03-02 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 11:26:45PM +0100, Michael Niedermayer wrote: > On Tue, Mar 01, 2016 at 08:01:45PM +0100, Matthieu Bouron wrote: > > On Sat, Feb 27, 2016 at 04:28:43PM +0100, Michael Niedermayer wrote: > > > On Fri, Feb 26, 2016 at 04:54:47PM +0100, Matthieu Bouron wro

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-03 Thread Matthieu Bouron
On Wed, Mar 02, 2016 at 03:24:06PM +0100, Matthieu Bouron wrote: > On Tue, Mar 01, 2016 at 09:06:35PM +0100, wm4 wrote: > > On Tue, 1 Mar 2016 20:57:12 +0100 > > Matthieu Bouron wrote: > > > > > On Tue, Mar 01, 2016 at 08:55:23PM +0100, Matthieu Bouron wrote: >

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-03-03 Thread Matthieu Bouron
On Wed, Mar 02, 2016 at 03:34:09PM +0100, Matthieu Bouron wrote: > On Tue, Mar 01, 2016 at 11:26:45PM +0100, Michael Niedermayer wrote: > > On Tue, Mar 01, 2016 at 08:01:45PM +0100, Matthieu Bouron wrote: > > > On Sat, Feb 27, 2016 at 04:28:43PM +0100, Michael Niedermayer wro

Re: [FFmpeg-devel] [PATCH 1/2] lavc: add JNI support

2016-03-07 Thread Matthieu Bouron
On Thu, Mar 03, 2016 at 01:56:16PM +0100, Matthieu Bouron wrote: [...] > > New patch attached with the following differences: > * added myself as a maintainer of jni* and ffjni* > Pushed. [...] ___ ffmpeg-devel mailing list ffmpeg-deve

Re: [FFmpeg-devel] [PATCH 2/2] lavc: add h264 mediacodec decoder

2016-03-07 Thread Matthieu Bouron
On Thu, Mar 03, 2016 at 02:03:01PM +0100, Matthieu Bouron wrote: [...] > > Patch updated with the following differences: > * ff_set_dimensions return code is now used > * add missing exception when trying to call the MediaCodec object > constructor > * remove lefto

Re: [FFmpeg-devel] [PATCH] lavc/mjpegdec: avoid unneeded allocation if the frame is to be skipped

2016-03-07 Thread Matthieu Bouron
On Tue, Mar 01, 2016 at 08:53:33PM +0100, Paul B Mahol wrote: > On 3/1/16, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > --- > > libavcodec/mjpegdec.c | 7 +++ > > 1 file changed, 7 insertions(+) >

[FFmpeg-devel] [PATCH] lavf/img2dec: disable parsing if frame_size is specified

2016-03-07 Thread Matthieu Bouron
From: Matthieu Bouron --- Hello, The following patch disable parsing if the frame_size option is specified. The main purpose here is to disable the use of parsers (which have a huge performance cost on embedded platforms) for single images when their size is known in advance. The patch sounds

[FFmpeg-devel] [PATCH] lavc/ffjni: remove use of private JniInvocation API to retreive the Java VM

2016-03-11 Thread Matthieu Bouron
From: Matthieu Bouron Android N will prevent users from loading non-public APIs. Users should only rely on the av_jni_set_java_vm function to set the Java VM. --- libavcodec/ffjni.c | 88 ++ 1 file changed, 3 insertions(+), 85 deletions

Re: [FFmpeg-devel] [PATCH] lavc/ffjni: remove use of private JniInvocation API to retreive the Java VM

2016-03-13 Thread Matthieu Bouron
On Fri, Mar 11, 2016 at 09:36:41PM +0100, Matthieu Bouron wrote: > From: Matthieu Bouron > > Android N will prevent users from loading non-public APIs. > > Users should only rely on the av_jni_set_java_vm function to set the > Java VM. > --- >

Re: [FFmpeg-devel] [PATCH] lavc/ffjni: remove use of private JniInvocation API to retreive the Java VM

2016-03-14 Thread Matthieu Bouron
On Sun, Mar 13, 2016 at 08:48:21PM +0100, Matthieu Bouron wrote: > On Fri, Mar 11, 2016 at 09:36:41PM +0100, Matthieu Bouron wrote: [...] > > If nobody objects, I will push the patch (with #include removed) > tomorrow. > Pushed. _

[FFmpeg-devel] [PATCH] lavc/mediacodec: add hwaccel support

2016-03-19 Thread Matthieu Bouron
From: Matthieu Bouron --- Hello, The following patch add hwaccel support to the mediacodec (h264) decoder by allowing the user to render the output frames directly on a surface. In order to do so the user needs to initialize the hwaccel through the use of av_mediacodec_alloc_context and

Re: [FFmpeg-devel] [PATCH] lavc/mediacodec: add hwaccel support

2016-03-22 Thread Matthieu Bouron
On Fri, Mar 18, 2016 at 5:50 PM, Matthieu Bouron wrote: > From: Matthieu Bouron > > --- > > Hello, > > The following patch add hwaccel support to the mediacodec (h264) decoder > by allowing > the user to render the output frames directly on a surface. > > In

Re: [FFmpeg-devel] [PATCH] lavc/mediacodec: add hwaccel support

2016-03-23 Thread Matthieu Bouron
On Tue, Mar 22, 2016 at 10:04 AM, Matthieu Bouron wrote: > > > On Fri, Mar 18, 2016 at 5:50 PM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> From: Matthieu Bouron >> >> --- >> >> Hello, >> >> The following patch add

[FFmpeg-devel] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-03-25 Thread Matthieu Bouron
The following patchset aims to make bitexact the yuv->rgba armv7 neon code path with the aarch64 one. It also aims to make the two code bases as close as possible. [PATCH 01/10] swscale/arm/yuv2rgb: remove 32bit code path The current 32bit code path which is unused is removed. [PATCH 06/10] swsc

[FFmpeg-devel] [PATCH 05/10] swscale/arm/yuv2rgb: factorize lsl in load_args_nvx

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index 4601a79..ef7b0a6 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/yuv2rgb_neon.S

[FFmpeg-devel] [PATCH 09/10] swscale/arm/yuv2rgb: re-order arguments of the compute_rgba macro

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index 03d15cb..fe5dd04 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm

[FFmpeg-devel] [PATCH 02/10] swscale/arm/yuv2rgb: fix comments and factorize lsl in load_args_yuv422p

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index f40327b..aac0773 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm

[FFmpeg-devel] [PATCH 07/10] swscale/arm/yuv2rgb: macro-ify

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 115 ++ 1 file changed, 39 insertions(+), 76 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index 8abb986..f77f534 100644 --- a/libswscale/arm

[FFmpeg-devel] [PATCH 10/10] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/swscale_unscaled.c | 16 +++ libswscale/arm/yuv2rgb_neon.S | 89 +-- 2 files changed, 47 insertions(+), 58 deletions(-) diff --git a/libswscale/arm/swscale_unscaled.c b/libswscale/arm/swscale_unscaled.c index

[FFmpeg-devel] [PATCH 01/10] swscale/arm/yuv2rgb: remove 32bit code path

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/swscale_unscaled.c | 72 -- libswscale/arm/yuv2rgb_neon.S | 156 -- 2 files changed, 66 insertions(+), 162 deletions(-) diff --git a/libswscale/arm/swscale_unscaled.c b/libswscale/arm

[FFmpeg-devel] [PATCH 08/10] swscale/arm/yuv2rgb: re-organize the code like its aarch64 counter part

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 154 +++--- 1 file changed, 69 insertions(+), 85 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index f77f534..03d15cb 100644 --- a/libswscale/arm

[FFmpeg-devel] [PATCH 03/10] swscale/arm/yuv2rgb: remove unused store of dst + linesize in load_args_yuv422p

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 1 - 1 file changed, 1 deletion(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index aac0773..22864ec 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/yuv2rgb_neon.S @@ -171,7 +171,6

[FFmpeg-devel] [PATCH 04/10] swscale/arm/yuv2rgb: factorize lsl in load_args_yuv420p

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index 22864ec..4601a79 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/yuv2rgb_neon.S

[FFmpeg-devel] [PATCH 06/10] swscale/arm/yuv2rgb: only process one line at a time for the yuv420p and nv{12, 21} formats

2016-03-25 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 89 --- 1 file changed, 24 insertions(+), 65 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index ef7b0a6..8abb986 100644 --- a/libswscale/arm

Re: [FFmpeg-devel] [PATCH 06/10] swscale/arm/yuv2rgb: only process one line at a time for the yuv420p and nv{12, 21} formats

2016-03-26 Thread Matthieu Bouron
On Sat, Mar 26, 2016 at 2:09 AM, Michael Niedermayer wrote: > On Fri, Mar 25, 2016 at 11:46:01PM +0100, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > --- > > libswscale/arm/yuv2rgb_neon.S | 89 > --- > >

Re: [FFmpeg-devel] [PATCH 07/10] swscale/arm/yuv2rgb: macro-ify

2016-03-26 Thread Matthieu Bouron
On Fri, Mar 25, 2016 at 11:46 PM, Matthieu Bouron wrote: > From: Matthieu Bouron > > --- > libswscale/arm/yuv2rgb_neon.S | 115 > ++ > 1 file changed, 39 insertions(+), 76 deletions(-) > [...] Patch updated (resolve a conflict wit

Re: [FFmpeg-devel] [PATCH 08/10] swscale/arm/yuv2rgb: re-organize the code like its aarch64 counter part

2016-03-26 Thread Matthieu Bouron
On Fri, Mar 25, 2016 at 11:46 PM, Matthieu Bouron wrote: > From: Matthieu Bouron > > --- > libswscale/arm/yuv2rgb_neon.S | 154 > +++--- > 1 file changed, 69 insertions(+), 85 deletions(-) > Patch updated (resolve a conflict with t

Re: [FFmpeg-devel] [PATCH 09/10] swscale/arm/yuv2rgb: re-order arguments of the compute_rgba macro

2016-03-26 Thread Matthieu Bouron
On Fri, Mar 25, 2016 at 11:46 PM, Matthieu Bouron wrote: > From: Matthieu Bouron > > --- > libswscale/arm/yuv2rgb_neon.S | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > Patch updated (resolve a conflict with the updated version of

Re: [FFmpeg-devel] [PATCH 10/10] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-03-26 Thread Matthieu Bouron
On Fri, Mar 25, 2016 at 11:46 PM, Matthieu Bouron wrote: > From: Matthieu Bouron > > --- > libswscale/arm/swscale_unscaled.c | 16 +++ > libswscale/arm/yuv2rgb_neon.S | 89 > +-- > 2 files changed, 47 insertions(+), 58 deletions

Re: [FFmpeg-devel] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-03-27 Thread Matthieu Bouron
On Fri, Mar 25, 2016 at 11:45 PM, Matthieu Bouron wrote: > The following patchset aims to make bitexact the yuv->rgba armv7 neon code > path > with the aarch64 one. It also aims to make the two code bases as close as > possible. > > [PATCH 01/10] swscale/arm/yuv2rgb: r

Re: [FFmpeg-devel] [PATCH] lavc/mediacodec: fix zero stride for OMX.allwinner.video.decoder.avc

2016-03-28 Thread Matthieu Bouron
On Sun, Mar 27, 2016 at 11:15 PM, Kirill Gavrilov wrote: > Hi, > Hi, > > on my device ("OMX.allwinner.video.decoder.avc") returned stride property > is always 0. > I have found that stride is overridden for "OMX.SEC.avc.dec" and prepared > the similar patch. > But probably it is better to chan

Re: [FFmpeg-devel] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-03-28 Thread Matthieu Bouron
On Sun, Mar 27, 2016 at 5:58 PM, Matthieu Bouron wrote: > > > On Fri, Mar 25, 2016 at 11:45 PM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> The following patchset aims to make bitexact the yuv->rgba armv7 neon >> code path >> with the aarc

[FFmpeg-devel] [PATCH v2 9/9] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-03-28 Thread Matthieu Bouron
--- libswscale/arm/swscale_unscaled.c | 18 +- libswscale/arm/yuv2rgb_neon.S | 40 +-- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/libswscale/arm/swscale_unscaled.c b/libswscale/arm/swscale_unscaled.c index 149208c..e159

[FFmpeg-devel] [PATCH v2 8/9] swscale/arm/yuv2rgb: save a few instructions by processing the luma line interleaved

2016-03-28 Thread Matthieu Bouron
--- libswscale/arm/yuv2rgb_neon.S | 88 +-- 1 file changed, 34 insertions(+), 54 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index 124d7d3..6b911c8 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/y

Re: [FFmpeg-devel] [PATCH] lavc/mediacodec: fix zero stride for OMX.allwinner.video.decoder.avc

2016-03-28 Thread Matthieu Bouron
On Mon, Mar 28, 2016 at 07:51:24PM +0300, Kirill Gavrilov wrote: > --- > libavcodec/mediacodecdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c > index 5c1368f..c21ceba 100644 > --- a/libavcodec/mediacodecdec.c >

[FFmpeg-devel] [PATCH v2 3/9] swscale/arm/yuv2rgb: remove unused store of dst + linesize in load_args_yuv422p

2016-03-28 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 1 - 1 file changed, 1 deletion(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index aac0773..22864ec 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/yuv2rgb_neon.S @@ -171,7 +171,6

[FFmpeg-devel] [PATCH v2 1/9] swscale/arm/yuv2rgb: remove 32bit code path

2016-03-28 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/swscale_unscaled.c | 72 -- libswscale/arm/yuv2rgb_neon.S | 156 -- 2 files changed, 66 insertions(+), 162 deletions(-) diff --git a/libswscale/arm/swscale_unscaled.c b/libswscale/arm

[FFmpeg-devel] [PATCH v2 5/9] swscale/arm/yuv2rgb: factorize lsl in load_args_nvx

2016-03-28 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index 4601a79..ef7b0a6 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/yuv2rgb_neon.S

[FFmpeg-devel] [PATCH v2 7/9] swscale/arm/yuv2rgb: re-order compute_rgba macro arguments

2016-03-28 Thread Matthieu Bouron
--- libswscale/arm/yuv2rgb_neon.S | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index e1b68c1..124d7d3 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/yuv2rgb_neon.S @@ -56,8 +56,8 @@

[FFmpeg-devel] [PATCH v2 4/9] swscale/arm/yuv2rgb: factorize lsl in load_args_yuv420p

2016-03-28 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index 22864ec..4601a79 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/yuv2rgb_neon.S

[FFmpeg-devel] [PATCH v2 2/9] swscale/arm/yuv2rgb: fix comments and factorize lsl in load_args_yuv422p

2016-03-28 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/yuv2rgb_neon.S | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index f40327b..aac0773 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm

[FFmpeg-devel] [PATCH v2 6/9] swscale/arm/yuv2rgb: macro-ify

2016-03-28 Thread Matthieu Bouron
--- libswscale/arm/yuv2rgb_neon.S | 137 ++ 1 file changed, 60 insertions(+), 77 deletions(-) diff --git a/libswscale/arm/yuv2rgb_neon.S b/libswscale/arm/yuv2rgb_neon.S index ef7b0a6..e1b68c1 100644 --- a/libswscale/arm/yuv2rgb_neon.S +++ b/libswscale/arm/y

Re: [FFmpeg-devel] [PATCH 02/10] swscale/arm/yuv2rgb: fix comments and factorize lsl in load_args_yuv422p

2016-03-30 Thread Matthieu Bouron
On Wed, Mar 30, 2016 at 11:34:59PM +0200, Benoit Fouet wrote: > Hi, > > Le 25/03/2016 23:45, Matthieu Bouron a écrit : > >From: Matthieu Bouron > > > >--- > > libswscale/arm/yuv2rgb_neon.S | 9 - > > 1 file changed, 4 insertions(+), 5 deletion

Re: [FFmpeg-devel] [PATCH 06/10] swscale/arm/yuv2rgb: only process one line at a time for the yuv420p and nv{12, 21} formats

2016-03-30 Thread Matthieu Bouron
On Wed, Mar 30, 2016 at 11:36:34PM +0200, Benoit Fouet wrote: > Hi, Hi Benoit, > > Le 26/03/2016 13:05, Matthieu Bouron a écrit : > >On Sat, Mar 26, 2016 at 2:09 AM, Michael Niedermayer >>>wrote: > >>>On Fri, Mar 25, 2016 at 11:46:01PM +0100, Matthieu

Re: [FFmpeg-devel] [PATCH v2 6/9] swscale/arm/yuv2rgb: macro-ify

2016-03-31 Thread Matthieu Bouron
On Thu, Mar 31, 2016 at 10:48 AM, Benoit Fouet wrote: > Hi, > > (sorry for the first mail, fuzzy fingers...) > > On 28/03/2016 21:19, Matthieu Bouron wrote: > >> --- >> libswscale/arm/yuv2rgb_neon.S | 137 >> ++ >&

Re: [FFmpeg-devel] [PATCH v2 8/9] swscale/arm/yuv2rgb: save a few instructions by processing the luma line interleaved

2016-03-31 Thread Matthieu Bouron
On Thu, Mar 31, 2016 at 11:17 AM, Benoit Fouet wrote: > Hi, > > On 28/03/2016 21:19, Matthieu Bouron wrote: > >> --- >> libswscale/arm/yuv2rgb_neon.S | 88 >> +-- >> 1 file changed, 34 insertions(+), 54 deletions(

Re: [FFmpeg-devel] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-04-01 Thread Matthieu Bouron
On Mon, Mar 28, 2016 at 9:12 PM, Matthieu Bouron wrote: > > > On Sun, Mar 27, 2016 at 5:58 PM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> >> >> On Fri, Mar 25, 2016 at 11:45 PM, Matthieu Bouron < >> matthieu.bou...@gmail.com>

Re: [FFmpeg-devel] swscale/arm/yuv2rgb: make the code bitexact with its aarch64 counter part

2016-04-01 Thread Matthieu Bouron
On Fri, Apr 1, 2016 at 4:15 PM, Matthieu Bouron wrote: > > > On Mon, Mar 28, 2016 at 9:12 PM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> >> >> On Sun, Mar 27, 2016 at 5:58 PM, Matthieu Bouron < >> matthieu.bou...@gmail.com> wro

Re: [FFmpeg-devel] [PATCH] lavc/mediacodec: add hwaccel support

2016-04-07 Thread Matthieu Bouron
On Wed, Mar 23, 2016 at 6:16 PM, Matthieu Bouron wrote: > > > On Tue, Mar 22, 2016 at 10:04 AM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> >> >> On Fri, Mar 18, 2016 at 5:50 PM, Matthieu Bouron < >> matthieu.bou..

[FFmpeg-devel] [PATCH] swscale/arm: add ff_hscale_8_to_15_neon

2016-04-08 Thread Matthieu Bouron
From: Matthieu Bouron --- libswscale/arm/Makefile | 6 ++-- libswscale/arm/hscale.S | 70 +++ libswscale/arm/swscale.c | 37 +++ libswscale/swscale.c | 2 ++ libswscale/swscale_internal.h | 1 + 5 files

Re: [FFmpeg-devel] [PATCH] swscale/arm: add ff_hscale_8_to_15_neon

2016-04-08 Thread Matthieu Bouron
On Fri, Apr 8, 2016 at 10:27 PM, Michael Niedermayer wrote: > On Fri, Apr 08, 2016 at 12:24:13PM +0200, Matthieu Bouron wrote: > > From: Matthieu Bouron > > > > --- > > libswscale/arm/Makefile | 6 ++-- > > l

[FFmpeg-devel] [PATCH] swscale/arm: add yuv2planeX_8_neon

2016-04-09 Thread Matthieu Bouron
From: Matthieu Bouron --- Hello, The following patch add yuv2planeX_8_neon function for the arm platform. It is currently restricted to 8-bit per component sources until I fix fate issues with 10-bit sources (the dnxhd-*-10bit tests fail but I haven't figured out yet where it comes

Re: [FFmpeg-devel] [PATCH] swscale/arm: add yuv2planeX_8_neon

2016-04-11 Thread Matthieu Bouron
On Mon, Apr 11, 2016 at 9:58 AM, Benoit Fouet wrote: > Hi, > > (again, thanks to both of you for documenting all this assembly /NEON code) > > On 09/04/2016 10:22, Matthieu Bouron wrote: > >> From: Matthieu Bouron >> >> --- >> >> Hello, >>

Re: [FFmpeg-devel] [PATCH] swscale/arm: add yuv2planeX_8_neon

2016-04-11 Thread Matthieu Bouron
On Mon, Apr 11, 2016 at 4:18 PM, Matthieu Bouron wrote: > > > On Mon, Apr 11, 2016 at 9:58 AM, Benoit Fouet > wrote: > >> Hi, >> >> (again, thanks to both of you for documenting all this assembly /NEON >> code) >> >> On 09/04/2016 10:22,

Re: [FFmpeg-devel] [PATCH] lavc/mediacodec: add hwaccel support

2016-04-14 Thread Matthieu Bouron
On Thu, Apr 7, 2016 at 4:18 PM, wm4 wrote: > On Fri, 18 Mar 2016 17:50:39 +0100 > Matthieu Bouron wrote: > > > From: Matthieu Bouron > > > > --- > > > > Hello, > > Can't say much about this, so just some minor confused comments. >

[FFmpeg-devel] (no subject)

2016-05-10 Thread Matthieu Bouron
Hello, The following patchset add an audio frame pool for each link of the filtergraph. It extends the FFVideoFramePool API to support audio (and renames it to FFFramePool). The performance gain on a rpi2 is very little. malloc+free goes from 2.50% to 1.84% cpu time with the following command lin

[FFmpeg-devel] [PATCH 3/3] lavfi: use an audio frame pool for each link of the filtergraph

2016-05-10 Thread Matthieu Bouron
From: Matthieu Bouron --- libavfilter/audio.c | 51 +-- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/libavfilter/audio.c b/libavfilter/audio.c index 51fef03..dbc92d6 100644 --- a/libavfilter/audio.c +++ b/libavfilter/audio.c

[FFmpeg-devel] [PATCH 2/3] lavfi/framepool: add audio support

2016-05-10 Thread Matthieu Bouron
From: Matthieu Bouron --- libavfilter/framepool.c | 106 libavfilter/framepool.h | 36 +++- 2 files changed, 141 insertions(+), 1 deletion(-) diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c index 36c6e8f..4a63fe9

[FFmpeg-devel] [PATCH 1/3] lavfi/framepool: rename FFVideoFramePool to FFFramePool

2016-05-10 Thread Matthieu Bouron
From: Matthieu Bouron --- libavfilter/avfilter.c | 2 +- libavfilter/avfilter.h | 4 ++-- libavfilter/framepool.c | 24 libavfilter/framepool.h | 32 libavfilter/video.c | 20 ++-- 5 files changed, 41 insertions

[FFmpeg-devel] [PATCH] swresample/arm: add ff_resample_common_apply_filter_{x4, x8}_{float, s16}_neon

2016-05-11 Thread Matthieu Bouron
From: Matthieu Bouron --- Hello, Here are some benchmark on a rpi2 of the attached patch. ./ffmpeg -f lavfi -i sine=440,aformat=sample_fmts=fltp,asetnsamples=4096,abench=start,aresample=48000,abench=stop -t 1000 -f null - With patch:avg=0.001159 speed=44,1x Without patch: avg=0.001297

Re: [FFmpeg-devel] [PATCH] swresample/arm: add ff_resample_common_apply_filter_{x4, x8}_{float, s16}_neon

2016-05-11 Thread Matthieu Bouron
On Wed, May 11, 2016 at 9:04 PM, Reimar Döffinger wrote: > > > On 11.05.2016, at 20:37, Michael Niedermayer > wrote: > > > On Wed, May 11, 2016 at 06:39:20PM +0200, Matthieu Bouron wrote: > >> From: Matthieu Bouron > >> > >> --- > >> &

Re: [FFmpeg-devel] [PATCH] swresample/arm: add ff_resample_common_apply_filter_{x4, x8}_{float, s16}_neon

2016-05-11 Thread Matthieu Bouron
Le 11 mai 2016 6:39 PM, "Matthieu Bouron" a écrit : > > From: Matthieu Bouron > > --- > > Hello, > > Here are some benchmark on a rpi2 of the attached patch. > > ./ffmpeg -f lavfi -i sine=440,aformat=sample_fmts=fltp,asetnsamples=4096,abench=start,are

Re: [FFmpeg-devel] [PATCH] swresample/arm: add ff_resample_common_apply_filter_{x4, x8}_{float, s16}_neon

2016-05-12 Thread Matthieu Bouron
On Thu, May 12, 2016 at 10:01 AM, Benoit Fouet wrote: > Hi, > > I mostly have nits remarks. > > On 11/05/2016 18:39, Matthieu Bouron wrote: > >> From: Matthieu Bouron >> >> > [...] > > diff --git a/libswresample/arm/resample.S b/libswresample/ar

Re: [FFmpeg-devel] [PATCH] swresample/arm: add ff_resample_common_apply_filter_{x4, x8}_{float, s16}_neon

2016-05-13 Thread Matthieu Bouron
On Thu, May 12, 2016 at 3:50 PM, Benoit Fouet wrote: > Hi, > > > On 12/05/2016 15:22, Matthieu Bouron wrote: > >> On Thu, May 12, 2016 at 10:01 AM, Benoit Fouet >> wrote: >> >> Hi, >>> >>> I mostly have nits remarks. >>> >

[FFmpeg-devel] [PATCH 2/2] lavc/mediacodec: add missing MediaCodec.Get{Input, Output}Buffer() checks

2016-05-17 Thread Matthieu Bouron
From: Matthieu Bouron --- libavcodec/mediacodec_wrapper.c | 8 1 file changed, 8 insertions(+) diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c index 8ce3b32..5c047ea 100644 --- a/libavcodec/mediacodec_wrapper.c +++ b/libavcodec/mediacodec_wrapper.c

<    1   2   3   4   5   6   7   >