Re: [libav-devel] [PATCH 07/12] lavfi: Add some common code for OpenCL filtering

2017-06-28 Thread Jun Zhao
On 2017/6/28 5:50, Mark Thompson wrote: > --- > libavfilter/Makefile | 6 + > libavfilter/opencl.c | 285 > +++ > libavfilter/opencl.h | 74 +++ > libavfilter/opencl/rgbyuv.cl | 117 ++ >

[libav-devel] [PATCH 24/25] fate: Add ambisonic tests

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- tests/fate/mov.mak| 3 +++ tests/fate/opus.mak | 5 + tests/ref/fate/mov-ambisonic | 1 + tests/ref/fate/opus-ambisonic | 1 + 4 files changed, 10 insertions(+) create mode 100644

[libav-devel] [PATCH 21/25] mov: Implement spatial audio support

2017-06-28 Thread Vittorio Giovara
As defined by Google's Spatial Audio RFC. Signed-off-by: Vittorio Giovara --- libavformat/mov.c | 98 +++ 1 file changed, 98 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index

[libav-devel] [PATCH 05/25] avtools: Use the new channel layout API in AVFrame

2017-06-28 Thread Vittorio Giovara
--- avtools/avconv.c| 2 +- avtools/avconv_filter.c | 2 +- avtools/avplay.c| 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/avtools/avconv.c b/avtools/avconv.c index 8dd11bb5fc..42cbfef592 100644 --- a/avtools/avconv.c +++ b/avtools/avconv.c @@ -1209,7

[libav-devel] [PATCH 23/25] avprobe: Print the channel layout string

2017-06-28 Thread Vittorio Giovara
--- avtools/avprobe.c | 4 1 file changed, 4 insertions(+) diff --git a/avtools/avprobe.c b/avtools/avprobe.c index 7eab2573eb..9d7eecabb9 100644 --- a/avtools/avprobe.c +++ b/avtools/avprobe.c @@ -667,6 +667,7 @@ static void show_stream(InputFile *ifile, InputStream *ist) AVRational

[libav-devel] [PATCH 22/25] aac: Allow pass-through transcoding of ambisonic audio

2017-06-28 Thread Vittorio Giovara
The defacto mov standard mandates support for PCM and AAC: only the latter decoder overrides the channel layout passed by the container, so let this happen only when the layout order is native (or unspecified). On the encoding side, until full ambisonic channel layout conversion is implemented,

[libav-devel] [PATCH 20/25] lavf: Add non diegetic stream disposition flag

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavformat/avformat.h | 6 ++ libavformat/dump.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 1bf66b15d1..47f7a445dd 100644 --- a/libavformat/avformat.h +++

[libav-devel] [PATCH 25/25] Bump library versions, update Changelog and APIchanges

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- Changelog | 1 + doc/APIchanges | 22 ++ 2 files changed, 23 insertions(+) diff --git a/Changelog b/Changelog index e44df54c93..ecff7d0a2b 100644 --- a/Changelog +++ b/Changelog @@ -16,6 +16,7 @@ version :

[libav-devel] [PATCH 12/25] lavc: switch to the new channel layout API

2017-06-28 Thread Vittorio Giovara
Since the request_channel_layout is used only by a handful of codecs, move the option to codec private contexts. --- libavcodec/avcodec.h | 31 + libavcodec/decode.c| 49 +- libavcodec/encode.c| 9 ++- libavcodec/internal.h | 2 +

[libav-devel] [PATCH 16/25] tools, examples changes for the new channel layout API

2017-06-28 Thread Vittorio Giovara
This patch contains the following commits: avplay: Support the new channel layout API avconv: Support the new channel layout API tools: Update to the new channel layout API examples: Update to the new channel layout API --- avtools/avconv.c | 30 +++---

[libav-devel] [PATCH 09/25] lavfi: Port filter negotiation to use the new channel layout API

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavfilter/af_aformat.c | 30 +--- libavfilter/af_channelmap.c | 2 +- libavfilter/af_channelsplit.c | 6 ++- libavfilter/af_join.c | 2 +- libavfilter/avfiltergraph.c | 109

[libav-devel] [PATCH 17/25] channel_layout: Add Ambisonic components and channel order

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavutil/channel_layout.c | 86 -- libavutil/channel_layout.h | 33 ++ 2 files changed, 116 insertions(+), 3 deletions(-) diff --git a/libavutil/channel_layout.c

[libav-devel] [PATCH 19/25] opus: Implement mapping type 2 for Ambisonic support

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavcodec/opus.c | 36 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/libavcodec/opus.c b/libavcodec/opus.c index 308d104212..6aebb40155 100644 --- a/libavcodec/opus.c +++

[libav-devel] [PATCH 04/25] avframe: switch to the new channel layout API

2017-06-28 Thread Vittorio Giovara
From: Anton Khirnov Signed-off-by: Vittorio Giovara --- libavcodec/decode.c | 67 libavcodec/encode.c | 9 ++ libavutil/frame.c | 88 +++--

[libav-devel] [PATCH 06/25] lavr: switch to the new channel layout API

2017-06-28 Thread Vittorio Giovara
From: Anton Khirnov Signed-off-by: Vittorio Giovara --- libavresample/audio_mix.c| 148 ++-- libavresample/audio_mix_matrix.c | 477 ++- libavresample/avresample.h | 42 +++-

[libav-devel] [PATCH 18/25] lavr: Only let pass-through ambisonic channel layouts

2017-06-28 Thread Vittorio Giovara
Resampling or conversion to/from ambisonic audio are currently unsupported features. Signed-off-by: Vittorio Giovara --- libavresample/utils.c | 8 1 file changed, 8 insertions(+) diff --git a/libavresample/utils.c b/libavresample/utils.c index

[libav-devel] [PATCH 13/25] aac: convert to new channel layout API

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavcodec/aac.h| 7 +++-- libavcodec/aac_ac3_parser.c | 9 -- libavcodec/aaccoder.c | 2 +- libavcodec/aacdec.c | 76 ++--- libavcodec/aacdectab.h | 16

[libav-devel] [PATCH 14/25] ac3: convert to new channel layout API

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavcodec/ac3dec.c | 49 +--- libavcodec/ac3dec.h | 2 ++ libavcodec/ac3enc.c | 83 --- libavcodec/ac3enc.h | 4 ++-

[libav-devel] [PATCH 03/25] lavc: deprecate channel count/layout changing side data

2017-06-28 Thread Vittorio Giovara
From: Anton Khirnov They are incompatible with the new channel layout scheme and no decoder uses them. Signed-off-by: Vittorio Giovara --- libavcodec/avcodec.h | 5 + libavcodec/decode.c | 4 libavformat/dump.c | 9 -

[libav-devel] [PATCH 10/25] avcodecpar: switch to the new channel layout API

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavcodec/avcodec.h | 11 +++ libavcodec/utils.c| 31 +++ libavformat/audiointerleave.c | 2 +- libavformat/mux.c | 2 +- 4 files changed, 40 insertions(+), 6

[libav-devel] [PATCH 08/25] libavfilter changes for the new channel layout API

2017-06-28 Thread Vittorio Giovara
This patch contains the following commits: avtools: Use the new channel layout API in libavfilter af_aformat: convert to new channel layout API Signed-off-by: Vittorio Giovara af_amix: convert to new channel layout API Signed-off-by: Vittorio Giovara

[libav-devel] [PATCH 07/25] lavfi, buffersrc: switch to the new channel layout API

2017-06-28 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara --- libavfilter/audio.c | 17 +-- libavfilter/avfilter.c | 9 libavfilter/avfilter.h | 13 ++- libavfilter/avfiltergraph.c | 35 +++--- libavfilter/buffersink.c

[libav-devel] [PATCH 01/25] Add a new channel layout API

2017-06-28 Thread Vittorio Giovara
From: Anton Khirnov The new API is more extensible and allows for custom layouts. More accurate information is exported, eg for decoders that do not set a channel layout, lavc will not make one up for them. Deprecate the old API working with just uint64_t bitmasks. Expanded

[libav-devel] [PATCH 00/25] New channel API, review compatibility

2017-06-28 Thread Vittorio Giovara
Hello, it has brought to my attention that reviewing 200 patches is not desirable, and following the reviewers' suggestions, I squashed the more mundane replacement patches across the codebase, and left the more important or complex ones separate to simplify review. Some of the single patches

[libav-devel] [PATCH 02/25] lavu: support AVChannelLayout AVOptions

2017-06-28 Thread Vittorio Giovara
From: Anton Khirnov Signed-off-by: Vittorio Giovara --- libavutil/opt.c | 47 +++ libavutil/opt.h | 10 ++ 2 files changed, 57 insertions(+) diff --git a/libavutil/opt.c b/libavutil/opt.c index

Re: [libav-devel] [libav-commits] dvbsubdec: Fixed segfault when decoding subtitles

2017-06-28 Thread Diego Biurrun
On Wed, Jun 28, 2017 at 04:14:23PM +0200, Lorenz Brun wrote: > Module: libav > Branch: master > Commit: 1cfd566324f4a9be066ea400685b81c0695e64d9 > > Author:Lorenz Brun > Committer: Vittorio Giovara > Date: Fri Oct 21 22:51:37 2016

Re: [libav-devel] [PATCH] lavu: Add DRM hwcontext

2017-06-28 Thread Mark Thompson
On 28/06/17 16:24, Rémi Denis-Courmont wrote: > Le sunnuntaina 18. kesäkuuta 2017, 19.08.02 EEST Mark Thompson a écrit : >> --- >> The intent of this is to have a common structure which can be used in all >> cases where DRM objects need to be shared between components. It would be >> helpful if

Re: [libav-devel] [PATCH 02/12] lavu: OpenCL hwcontext implementation

2017-06-28 Thread Mark Thompson
On 28/06/17 15:03, wm4 wrote: > On Wed, 28 Jun 2017 13:36:30 +0100 > Mark Thompson wrote: > >> On 28/06/17 12:03, wm4 wrote: >>> On Tue, 27 Jun 2017 22:50:44 +0100 >>> Mark Thompson wrote: >>> --- configure |5 +-

Re: [libav-devel] [PATCH 12/12] test-only: Create D3D11 textures with D3D11_RESOURCE_MISC_SHARED

2017-06-28 Thread Mark Thompson
On 28/06/17 15:06, wm4 wrote: > On Wed, 28 Jun 2017 13:51:26 +0100 > Mark Thompson wrote: > >> On 28/06/17 12:13, wm4 wrote: >>> On Tue, 27 Jun 2017 22:50:54 +0100 >>> Mark Thompson wrote: >>> --- libavutil/hwcontext_d3d11va.c | 2 +- 1 file

Re: [libav-devel] [PATCH 12/12] test-only: Create D3D11 textures with D3D11_RESOURCE_MISC_SHARED

2017-06-28 Thread wm4
On Wed, 28 Jun 2017 13:51:26 +0100 Mark Thompson wrote: > On 28/06/17 12:13, wm4 wrote: > > On Tue, 27 Jun 2017 22:50:54 +0100 > > Mark Thompson wrote: > > > >> --- > >> libavutil/hwcontext_d3d11va.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [libav-devel] [PATCH 03/12] hwcontext_opencl: VAAPI to OpenCL mapping for Intel i965+beignet

2017-06-28 Thread wm4
On Wed, 28 Jun 2017 13:49:28 +0100 Mark Thompson wrote: > On 28/06/17 12:09, wm4 wrote: > > On Tue, 27 Jun 2017 22:50:45 +0100 > > Mark Thompson wrote: > > > >> Supports all surface formats in common between the two. > >> --- > >> configure

Re: [libav-devel] [PATCH 02/12] lavu: OpenCL hwcontext implementation

2017-06-28 Thread wm4
On Wed, 28 Jun 2017 13:36:30 +0100 Mark Thompson wrote: > On 28/06/17 12:03, wm4 wrote: > > On Tue, 27 Jun 2017 22:50:44 +0100 > > Mark Thompson wrote: > > > >> --- > >> configure |5 +- > >> doc/APIchanges |4 + >

Re: [libav-devel] [PATCH] hevc: Add support for alternative transfer characterics SEI

2017-06-28 Thread Luca Barbato
On 6/13/17 8:54 PM, Vittorio Giovara wrote: > The use of this SEI is for backward compatibility in HLG HDR systems: > older devices that cannot interpret the "arib-std-b67" transfer will > get the compatible transfer (usually bt709 or bt2020) from the VUI, > while newer devices that can interpret

Re: [libav-devel] [PATCH 12/12] test-only: Create D3D11 textures with D3D11_RESOURCE_MISC_SHARED

2017-06-28 Thread Mark Thompson
On 28/06/17 12:13, wm4 wrote: > On Tue, 27 Jun 2017 22:50:54 +0100 > Mark Thompson wrote: > >> --- >> libavutil/hwcontext_d3d11va.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c >> index

Re: [libav-devel] [PATCH 03/12] hwcontext_opencl: VAAPI to OpenCL mapping for Intel i965+beignet

2017-06-28 Thread Mark Thompson
On 28/06/17 12:09, wm4 wrote: > On Tue, 27 Jun 2017 22:50:45 +0100 > Mark Thompson wrote: > >> Supports all surface formats in common between the two. >> --- >> configure | 6 + >> libavutil/hwcontext_internal.h | 3 + >> libavutil/hwcontext_opencl.c |

Re: [libav-devel] [PATCH 02/12] lavu: OpenCL hwcontext implementation

2017-06-28 Thread Mark Thompson
On 28/06/17 12:03, wm4 wrote: > On Tue, 27 Jun 2017 22:50:44 +0100 > Mark Thompson wrote: > >> --- >> configure |5 +- >> doc/APIchanges |4 + >> libavutil/Makefile |2 + >> libavutil/hwcontext.c |4 + >>

Re: [libav-devel] [PATCH 10/12] vf_hwmap: Pass mapping mode when deriving frames context on an existing device

2017-06-28 Thread Luca Barbato
On 6/27/17 11:50 PM, Mark Thompson wrote: > To match creation on a newly-derived device. (This was missed earlier > because the mode is only used in some cases.) > --- > libavfilter/vf_hwmap.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavfilter/vf_hwmap.c

Re: [libav-devel] [PATCH 12/12] test-only: Create D3D11 textures with D3D11_RESOURCE_MISC_SHARED

2017-06-28 Thread wm4
On Tue, 27 Jun 2017 22:50:54 +0100 Mark Thompson wrote: > --- > libavutil/hwcontext_d3d11va.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c > index 75f78d866..543f90d6c 100644 > ---

Re: [libav-devel] [PATCH 07/12] lavfi: Add some common code for OpenCL filtering

2017-06-28 Thread wm4
On Tue, 27 Jun 2017 22:50:49 +0100 Mark Thompson wrote: > --- > libavfilter/Makefile | 6 + > libavfilter/opencl.c | 285 > +++ > libavfilter/opencl.h | 74 +++ > libavfilter/opencl/rgbyuv.cl | 117

Re: [libav-devel] [PATCH 03/12] hwcontext_opencl: VAAPI to OpenCL mapping for Intel i965+beignet

2017-06-28 Thread wm4
On Tue, 27 Jun 2017 22:50:45 +0100 Mark Thompson wrote: > Supports all surface formats in common between the two. > --- > configure | 6 + > libavutil/hwcontext_internal.h | 3 + > libavutil/hwcontext_opencl.c | 298 >

Re: [libav-devel] [PATCH 02/12] lavu: OpenCL hwcontext implementation

2017-06-28 Thread wm4
On Tue, 27 Jun 2017 22:50:44 +0100 Mark Thompson wrote: > --- > configure |5 +- > doc/APIchanges |4 + > libavutil/Makefile |2 + > libavutil/hwcontext.c |4 + > libavutil/hwcontext.h |1 + >

Re: [libav-devel] [PATCH] lavu: Add DRM hwcontext

2017-06-28 Thread wm4
On Wed, 28 Jun 2017 11:37:57 +0200 Luca Barbato wrote: > On 6/28/17 11:36 AM, wm4 wrote: > > Or maybe we should get back to your old nested arrays, but I'm worried > > about excessive memory usage. > > The alternative is malloc it with all the usability issues around it =/

Re: [libav-devel] [PATCH] lavu: Add DRM hwcontext

2017-06-28 Thread Luca Barbato
On 6/28/17 11:36 AM, wm4 wrote: > Or maybe we should get back to your old nested arrays, but I'm worried > about excessive memory usage. The alternative is malloc it with all the usability issues around it =/ lu ___ libav-devel mailing list

Re: [libav-devel] [PATCH] lavu: Add DRM hwcontext

2017-06-28 Thread wm4
On Sun, 18 Jun 2017 19:08:02 +0100 Mark Thompson wrote: > --- > The intent of this is to have a common structure which can be used in all > cases where DRM objects need to be shared between components. It would be > helpful if anyone familiar with specific drivers or use-cases