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

2017-06-13 Thread Vittorio Giovara
ue instead. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- Expanded commit log and better validated the SEI contents. Vittorio libavcodec/hevc_sei.c | 9 + libavcodec/hevc_sei.h | 7 +++ libavcodec/hevcdec.c | 6 ++ 3 files changed, 22 insertions(+) diff --

[libav-devel] [PATCH 1/2] dvbsubdec: Fixed segfault when decoding subtitles

2017-06-13 Thread Vittorio Giovara
e loop to allocate the rects in the array was thrown away. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/dvbsubdec.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 6530847dff

[libav-devel] [PATCH 2/2] dvbsubdec: Free subrect memory on allocation error

2017-06-13 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/dvbsubdec.c | 8 1 file changed, 8 insertions(+) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 63523b765e..b97ff8027b 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsu

Re: [libav-devel] [PATCH 1/2] Convert all AVClass struct declarations to designated initializers.

2017-06-10 Thread Vittorio Giovara
On Sat, Jun 10, 2017 at 10:47 AM, Diego Biurrun wrote: > --- > libavcodec/aacenc.c | 8 > libavcodec/ac3enc_fixed.c | 9 +++-- > libavcodec/ac3enc_float.c | 9 +++-- > libavcodec/dnxhdenc.c | 8 > libavcodec/eac3enc.c| 9

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

2017-06-10 Thread Vittorio Giovara
On Sat, Jun 10, 2017 at 5:40 PM, Hendrik Leppkes <h.lepp...@gmail.com> wrote: > On Fri, Jun 9, 2017 at 11:27 PM, Vittorio Giovara > <vittorio.giov...@gmail.com> wrote: >> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> >> --- >> libavcod

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

2017-06-09 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/hevc_sei.c | 9 + libavcodec/hevc_sei.h | 7 +++ libavcodec/hevcdec.c | 5 + 3 files changed, 21 insertions(+) diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c index 153d211b4b..0a5d

Re: [libav-devel] New Channel Layout API - third phase

2017-06-07 Thread Vittorio Giovara
On Wed, Jun 7, 2017 at 2:49 PM, wm4 <nfx...@googlemail.com> wrote: > On Wed, 7 Jun 2017 14:03:30 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> On Wed, Jun 7, 2017 at 12:26 PM, wm4 <nfx...@googlemail.com> wrote: >> > On Wed, 7 Jun

Re: [libav-devel] [PATCH 023/200] avcodecpar: switch to the new channel layout API

2017-06-07 Thread Vittorio Giovara
On Wed, Jun 7, 2017 at 2:02 PM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 6/7/17 5:46 PM, Vittorio Giovara wrote: >> +return av_channel_layout_copy(>ch_layout, >ch_layout); > > Usual question regarding copy freeing or not the map before copying. I believe we s

Re: [libav-devel] New Channel Layout API - third phase

2017-06-07 Thread Vittorio Giovara
On Wed, Jun 7, 2017 at 12:26 PM, wm4 <nfx...@googlemail.com> wrote: > On Wed, 7 Jun 2017 11:46:17 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> Hello, >> assuming the previous conversions are ok, this chunk starts >> modifying AVC

[libav-devel] [PATCH 033/200] au: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/au.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/au.c b/libavformat/au.c index 20c9d41f47..e1df580d4c 100644 --- a/libavformat/au.c +++ b/libavformat/au.c @@ -111,7

[libav-devel] [PATCH 028/200] aiff: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/aiffdec.c | 13 - libavformat/aiffenc.c | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c index 481a92d351..490a767968

[libav-devel] [PATCH 029/200] alsa: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
--- libavdevice/alsa.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libavdevice/alsa.c b/libavdevice/alsa.c index d394e4377d..cf080d7eef 100644 --- a/libavdevice/alsa.c +++ b/libavdevice/alsa.c @@ -194,7 +194,7 @@ av_cold int ff_alsa_open(AVFormatContext *ctx,

[libav-devel] [PATCH 032/200] ape: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/ape.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/ape.c b/libavformat/ape.c index 010b795c59..bee471813a 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -349,7

[libav-devel] [PATCH 030/200] amr: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/amr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/amr.c b/libavformat/amr.c index cdba27d430..59029cb469 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -97,8

[libav-devel] [PATCH 027/200] aea: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/aea.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavformat/aea.c b/libavformat/aea.c index fc914f08fb..3e519832db 100644 --- a/libavformat/aea.c +++ b/libavformat/aea.c @@

[libav-devel] [PATCH 025/200] 4xm: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/4xm.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/4xm.c b/libavformat/4xm.c index 1597b3b569..adb8ed66bd 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -

[libav-devel] [PATCH 026/200] adxdec: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/adxdec.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index 8162c69a9a..2744db1254 100644 --- a/libavformat/adxdec.c +++ b/libav

[libav-devel] [PATCH 031/200] apc: convert to new channel layout API

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/apc.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libavformat/apc.c b/libavformat/apc.c index 40ecdf2c5d..8a8a5c3491 100644 --- a/libavformat/apc.c +++ b/libavformat/apc.c @@

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

2017-06-07 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/avcodec.h | 11 +++ libavcodec/utils.c| 31 +++ libavformat/audiointerleave.c | 2 +- libavformat/mux.c | 2 +- 4 files changed, 40 insertions

[libav-devel] New Channel Layout API - third phase

2017-06-07 Thread Vittorio Giovara
Hello, assuming the previous conversions are ok, this chunk starts modifying AVCodecParameters, in particular affecting libavformat. The first 10 or so containers are modified to support the new API, and they are simple replacements for the most part. The avtools are alsoupdated to this

[libav-devel] [PATCH 024/200] avtools: Use the new channel layout API in AVCodecParameters

2017-06-07 Thread Vittorio Giovara
--- avtools/avconv_opt.c | 4 ++-- avtools/avplay.c | 2 +- avtools/avprobe.c| 2 +- avtools/cmdutils.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/avtools/avconv_opt.c b/avtools/avconv_opt.c index 9839a2269e..fbd64c3c1f 100644 --- a/avtools/avconv_opt.c +++

Re: [libav-devel] [PATCH 2/2] hlsenc: Support recovery from an already present playlist

2017-05-30 Thread Vittorio Giovara
On Tue, May 30, 2017 at 4:18 AM, Luca Barbato wrote: > Parse the playlist to recover the start sequence and previously > generated segments and continue muxing from there. > > Mainly useful for near-seamless recovery in live scenarios. > --- > libavformat/hlsenc.c | 84 >

Re: [libav-devel] [PATCH 002/200] lavu: support AVChannelLayout AVOptions

2017-05-30 Thread Vittorio Giovara
On Fri, May 26, 2017 at 1:30 PM, Anton Khirnov <an...@khirnov.net> wrote: > Quoting Luca Barbato (2017-05-23 22:08:49) >> On 5/17/17 7:46 PM, Vittorio Giovara wrote: >> > +av_channel_layout_uninit(dst); >> > +return av_channel_layout_copy(dst, channel_la

Re: [libav-devel] [PATCH] avconv: Always initialize the opkt struct on streamcopy

2017-05-30 Thread Vittorio Giovara
On Tue, May 30, 2017 at 4:48 AM, Luca Barbato wrote: > On 5/30/17 8:13 AM, Anton Khirnov wrote: >> Quoting Luca Barbato (2017-05-29 15:31:34) >>> On 5/29/17 2:43 PM, wm4 wrote: On Mon, 29 May 2017 13:59:40 +0200 Luca Barbato wrote: > ---

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

2017-05-26 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- Moved portions of code to functions as Luca requested. I only left the code from MERGE_FORMATS unchanged because it was too heavily entwined in that function. Vittorio libavfilter/af_aformat.c | 30 +--- libav

Re: [libav-devel] [PATCH 002/200] lavu: support AVChannelLayout AVOptions

2017-05-26 Thread Vittorio Giovara
On Tue, May 23, 2017 at 4:08 PM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 5/17/17 7:46 PM, Vittorio Giovara wrote: >> +av_channel_layout_uninit(dst); >> +return av_channel_layout_copy(dst, channel_layout); > > Maybe put the uninit directly in the layo

[libav-devel] [PATCH 001/200] Add a new channel layout API

2017-05-26 Thread Vittorio Giovara
panded and completed by Vittorio Giovara <vittorio.giov...@gmail.com>. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- In this iteration: - change *map type to enum AVChannel - add uninit to copy - return int instead of enum AVChannel in case of errors Vi

Re: [libav-devel] [PATCH 007/200] lavfi: switch to the new channel layout API

2017-05-26 Thread Vittorio Giovara
On Wed, May 17, 2017 at 1:46 PM, Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> > --- > libavfilter/audio.c | 17 +++-- > libavfilter/avfilter.c | 9 - > libav

Re: [libav-devel] [PATCH 006/200] lavr: switch to the new channel layout API

2017-05-26 Thread Vittorio Giovara
On Wed, May 17, 2017 at 1:46 PM, Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > From: Anton Khirnov <an...@khirnov.net> > > Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> > --- > libavresample/audio_mix.c| 148 ++-- > li

Re: [libav-devel] [PATCH 004/200] avframe: switch to the new channel layout API

2017-05-26 Thread Vittorio Giovara
On Tue, May 23, 2017 at 4:09 PM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 5/17/17 7:46 PM, Vittorio Giovara wrote: >> +ret = av_channel_layout_copy(>ch_layout, >> >to_free->ch_layout); > > Doesn't need to uninit first? I'll move uninit in

Re: [libav-devel] [PATCH 001/200] Add a new channel layout API

2017-05-22 Thread Vittorio Giovara
On Sat, May 20, 2017 at 7:18 AM, wm4 <nfx...@googlemail.com> wrote: > On Fri, 19 May 2017 11:25:59 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> >> > Also, why is this only 1 byte per channel? Seems a little short-sighted. >> >

Re: [libav-devel] [PATCH 2/3] log: move all the "advanced" logging from lavu into cmdutils

2017-05-22 Thread Vittorio Giovara
On Sat, May 20, 2017 at 7:57 AM, Anton Khirnov wrote: > The default logging callback in lavu currently contains several > "advanced" features, such as > - suppressing repeated messages > - automatically hiding the log prefix > - color support > They add significant complexity

Re: [libav-devel] [PATCH 2/3] log: move all the "advanced" logging from lavu into cmdutils

2017-05-22 Thread Vittorio Giovara
On Sat, May 20, 2017 at 11:32 AM, Luca Barbato wrote: > On 5/20/17 1:57 PM, Anton Khirnov wrote: >> -#if CONFIG_VALGRIND_BACKTRACE >> -if (level <= BACKTRACE_LOGLEVEL) >> -VALGRIND_PRINTF_BACKTRACE(""); >> -#endif > > I would keep it probably. I agree, it could be

Re: [libav-devel] [PATCH 001/200] Add a new channel layout API

2017-05-19 Thread Vittorio Giovara
On Fri, May 19, 2017 at 6:40 AM, wm4 wrote: >> >> +/** >> >> + * Only the channel count is specified, without any further >> >> information >> >> + * about the channel order. >> >> + */ >> >> +AV_CHANNEL_ORDER_UNSPEC, >> > >> > Wouldn't it be better to

Re: [libav-devel] [PATCH 001/200] Add a new channel layout API

2017-05-18 Thread Vittorio Giovara
On Thu, May 18, 2017 at 11:16 AM, wm4 <nfx...@googlemail.com> wrote: > On Wed, 17 May 2017 13:46:51 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> From: Anton Khirnov <an...@khirnov.net> >> >> The new API is more extensible an

[libav-devel] [PATCH 008/200] buffersrc: switch to the new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/buffersrc.c | 53 ++--- libavfilter/buffersrc.h | 12 ++- 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/libavfilter/buffersrc.c b/libav

[libav-devel] [PATCH 014/200] af_atrim: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/trim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavfilter/trim.c b/libavfilter/trim.c index 2b57540460..df054aa606 100644 --- a/libavfilter/trim.c +++ b/libavfilter/trim.c @@ -336,8

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

2017-05-17 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> They are incompatible with the new channel layout scheme and no decoder uses them. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/avcodec.h | 5 + libavcodec/decode.c | 4 libavformat/

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

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_aformat.c | 28 + libavfilter/af_channelmap.c | 2 +- libavfilter/af_channelsplit.c | 6 ++- libavfilter/af_join.c | 2 +- libavfilter/avfiltergraph.c

[libav-devel] [PATCH 016/200] af_channelsplit: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_channelsplit.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c index 5b410fd87c..41b3

[libav-devel] [PATCH 019/200] af_join: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
--- libavfilter/af_join.c | 84 +++ 1 file changed, 38 insertions(+), 46 deletions(-) diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c index b61033f7a2..6c000b9257 100644 --- a/libavfilter/af_join.c +++ b/libavfilter/af_join.c @@ -37,8

[libav-devel] [PATCH 007/200] lavfi: switch to the new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/audio.c | 17 +++-- libavfilter/avfilter.c | 9 - libavfilter/avfilter.h | 13 - libavfilter/avfiltergraph.c | 35 +++ libav

[libav-devel] [PATCH 017/200] af_compand: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_compand.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index f21c861e06..cc743e3e6d 100644 --- a/libavfilter/af_compand.c

[libav-devel] [PATCH 012/200] af_ashowinfo: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_ashowinfo.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c index 5f0e2549ff..dd25c64d69 100644 --- a/libavfilter/af_ashow

[libav-devel] [PATCH 021/200] af_volume: convert to new channel layout

2017-05-17 Thread Vittorio Giovara
--- libavfilter/af_volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 0ec42b031e..bbadd87d47 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -228,7 +228,7 @@ static int

[libav-devel] Introduction to new channel layout + filters conversion

2017-05-17 Thread Vittorio Giovara
Hello, in this second installation of the channel layout API set we have: - the first group of patches with the applied review comments - the audio filters conversion - filter negotiation redone The filter conversion is relatively mild, but please pay careful attention to the filter negotiation

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

2017-05-17 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavresample/audio_mix.c| 148 ++-- libavresample/audio_mix_matrix.c | 477 ++- libavresample/avresample.h | 42 +++- l

[libav-devel] [PATCH 020/200] af_resample: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
--- libavfilter/af_resample.c | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/libavfilter/af_resample.c b/libavfilter/af_resample.c index 413b6634cc..09984b8a7e 100644 --- a/libavfilter/af_resample.c +++ b/libavfilter/af_resample.c @@ -65,8

[libav-devel] [PATCH 018/200] af_hdcd: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
--- libavfilter/af_hdcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index b9dadecca4..78cc1e74c8 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -76,7 +76,7 @@ static int filter_frame(AVFilterLink *inlink,

[libav-devel] [PATCH 002/200] lavu: support AVChannelLayout AVOptions

2017-05-17 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavutil/opt.c | 48 libavutil/opt.h | 10 ++ 2 files changed, 58 insertions(+) diff --git a/libavutil/opt.c b/libavutil

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

2017-05-17 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 2e218e96c7..755af3a3e8 100644 --- a/avtools/avconv.c +++ b/avtools/avconv.c @@ -1203,7

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

2017-05-17 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/decode.c | 67 libavcodec/encode.c | 9 ++ libavutil/frame.c | 88 +++-

[libav-devel] [PATCH 013/200] af_asyncts: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_asyncts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index 862b7a8cbd..ac983edca9 100644 --- a/libavfilter/af_asyncts.c

[libav-devel] [PATCH 009/200] avtools: Use the new channel layout API in libavfilter

2017-05-17 Thread Vittorio Giovara
--- avtools/avconv.c| 2 +- avtools/avconv_filter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avtools/avconv.c b/avtools/avconv.c index 755af3a3e8..9011cdf3b6 100644 --- a/avtools/avconv.c +++ b/avtools/avconv.c @@ -1992,7 +1992,7 @@ static int

[libav-devel] [PATCH 010/200] af_aformat: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_aformat.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c index f0746737dc..c5aa4f7148 100644 --- a/libavfilter/af_aformat.c

[libav-devel] [PATCH 011/200] af_amix: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_amix.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index bfba1504ea..a35e04530f 100644 --- a/libavfilter/af_amix.c +++ b/libav

[libav-devel] [PATCH 015/200] af_channelmap: convert to new channel layout API

2017-05-17 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/af_channelmap.c | 92 + 1 file changed, 52 insertions(+), 40 deletions(-) diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index e214bdbcc1..939f

[libav-devel] [PATCH 001/200] Add a new channel layout API

2017-05-17 Thread Vittorio Giovara
panded and completed by Vittorio Giovara <vittorio.giov...@gmail.com>. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavutil/channel_layout.c | 387 + libavutil/channel_layout.h | 363 +++

Re: [libav-devel] [PATCH 192/200] lavr: Disable resampling ambisonic channel layouts

2017-05-10 Thread Vittorio Giovara
On Tue, May 9, 2017 at 1:30 AM, wm4 <nfx...@googlemail.com> wrote: > On Mon, 8 May 2017 12:28:43 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> This is currently an unsupported feature, only passthrough is allowed. >> >> Signed-

Re: [libav-devel] [PATCH 194/200] lavf: Add non diegetic stream disposition flag

2017-05-10 Thread Vittorio Giovara
On Tue, May 9, 2017 at 1:34 AM, wm4 <nfx...@googlemail.com> wrote: > On Mon, 8 May 2017 12:28:45 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> >> --- >> libavformat

Re: [libav-devel] [PATCH 1/200] Add a new channel layout API

2017-05-10 Thread Vittorio Giovara
On Wed, May 10, 2017 at 12:03 PM, Ricardo Constantino wrote: > This is mostly a nitpick that's not caused by the patch but could be > addressed > while a new API is being made. > > Layouts "6.1" and "7.1(wide)" seem to be repeated in channel_layout_map. Is > there > any reason

Re: [libav-devel] [PATCH 196/200] aac: Allow pass-through transcoding of ambisonic audio

2017-05-08 Thread Vittorio Giovara
On Mon, May 8, 2017 at 3:05 PM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 5/8/17 6:28 PM, Vittorio Giovara wrote: >> +.u.map = ambisonic_channels, > > This is why we should use a flag for constant layouts. Alternatively see > the comment about ambisonic

Re: [libav-devel] [PATCH 191/200] channel_layout: Add Ambisonic components and channel order

2017-05-08 Thread Vittorio Giovara
On Mon, May 8, 2017 at 3:14 PM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 5/8/17 6:28 PM, Vittorio Giovara wrote: >> Ambisonic channel layouts have a non-native channel ordering and all >> channels in the map are initialized to a custom ambisonic channel since >> or

[libav-devel] [PATCH 192/200] lavr: Disable resampling ambisonic channel layouts

2017-05-08 Thread Vittorio Giovara
This is currently an unsupported feature, only passthrough is allowed. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavresample/utils.c | 8 1 file changed, 8 insertions(+) diff --git a/libavresample/utils.c b/libavresample/utils.c index 15c827efbe..af2b

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

2017-05-08 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/opus.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/libavcodec/opus.c b/libavcodec/opus.c index 308d104212..8e4042be7d 100644 --- a/libavcodec/opus.c

[libav-devel] [PATCH 195/200] mov: Implement spatial audio support

2017-05-08 Thread Vittorio Giovara
As defined by Google's Spatial Audio RFC. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavformat/mov.c | 87 +++ 1 file changed, 87 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index c90b

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

2017-05-08 Thread Vittorio Giovara
, add a temporary layout to allow pass-through transcoding of files tagged with this specification. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/aacdec.c| 13 - libavcodec/libfdk-aacdec.c | 6 -- libavcodec/libfdk-aacenc.c | 14 +++

[libav-devel] [PATCH 194/200] lavf: Add non diegetic stream disposition flag

2017-05-08 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- 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 191/200] channel_layout: Add Ambisonic components and channel order

2017-05-08 Thread Vittorio Giovara
Ambisonic channel layouts have a non-native channel ordering and all channels in the map are initialized to a custom ambisonic channel since ordering is assumed to be ACN. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- Preview patchset. Vittorio libavutil/channel_la

Re: [libav-devel] [PATCH 1/200] Add a new channel layout API

2017-05-08 Thread Vittorio Giovara
On Mon, May 8, 2017 at 11:58 AM, wm4 <nfx...@googlemail.com> wrote: > On Mon, 8 May 2017 11:41:57 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> On Fri, May 5, 2017 at 11:13 PM, wm4 <nfx...@googlemail.com> wrote: >> > On Fri, 5 May

Re: [libav-devel] [PATCH 1/200] Add a new channel layout API

2017-05-08 Thread Vittorio Giovara
On Fri, May 5, 2017 at 11:13 PM, wm4 <nfx...@googlemail.com> wrote: > On Fri, 5 May 2017 22:20:18 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > > >> +enum AVChannelOrder { >> +/** >> + * The native channel order, i.e. the channels

[libav-devel] [PATCH 1/200] Add a new channel layout API

2017-05-05 Thread Vittorio Giovara
panded and completed by Vittorio Giovara <vittorio.giov...@gmail.com>. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavutil/channel_layout.c | 386 + libavutil/channel_layout.h | 361 +++

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

2017-05-05 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 2e218e96c7..755af3a3e8 100644 --- a/avtools/avconv.c +++ b/avtools/avconv.c @@ -1203,7

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

2017-05-05 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavresample/audio_mix.c| 148 ++-- libavresample/audio_mix_matrix.c | 477 ++- libavresample/avresample.h | 42 +++- l

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

2017-05-05 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> They are incompatible with the new channel layout scheme and no decoder uses them. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/avcodec.h | 5 + libavcodec/decode.c | 4 libavformat/

[libav-devel] [PATCH 0-9/200] Introduction to a new channel layout API

2017-05-05 Thread Vittorio Giovara
AVOptions lavc: deprecate channel count/layout changing side data avframe: switch to the new channel layout API lavr: switch to the new channel layout API Vittorio Giovara (4): avtools: Use the new channel layout API in AVFrame lavfi: switch to the new channel layout API buffers

[libav-devel] [PATCH 9/200] avtools: Use the new channel layout API in libavfilter

2017-05-05 Thread Vittorio Giovara
--- avtools/avconv.c| 2 +- avtools/avconv_filter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avtools/avconv.c b/avtools/avconv.c index 755af3a3e8..9011cdf3b6 100644 --- a/avtools/avconv.c +++ b/avtools/avconv.c @@ -1992,7 +1992,7 @@ static int

[libav-devel] [PATCH 2/200] lavu: support AVChannelLayout AVOptions

2017-05-05 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavutil/opt.c | 48 libavutil/opt.h | 10 ++ 2 files changed, 58 insertions(+) diff --git a/libavutil/opt.c b/libavutil

[libav-devel] [PATCH 8/200] buffersrc: switch to the new channel layout API

2017-05-05 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/buffersrc.c | 53 ++--- libavfilter/buffersrc.h | 12 ++- 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/libavfilter/buffersrc.c b/libav

[libav-devel] [PATCH 7/200] lavfi: switch to the new channel layout API

2017-05-05 Thread Vittorio Giovara
Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavfilter/audio.c | 17 +++-- libavfilter/avfilter.c | 9 - libavfilter/avfilter.h | 13 - libavfilter/avfiltergraph.c | 35 +++ libav

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

2017-05-05 Thread Vittorio Giovara
From: Anton Khirnov <an...@khirnov.net> Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/decode.c | 67 libavcodec/encode.c | 9 ++ libavutil/frame.c | 88 +++-

Re: [libav-devel] [PATCH 1/2] aac_ac3_parser: Drop in-parser downmix functionality

2017-04-27 Thread Vittorio Giovara
On Wed, Apr 26, 2017 at 1:30 PM, wm4 <nfx...@googlemail.com> wrote: > On Wed, 26 Apr 2017 11:38:17 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> request_channel_layout is a decoder option and it makes no sense >> to have it in a parser. > &g

[libav-devel] [PATCH] ac3enc: Drop unneeded extern qualifier

2017-04-26 Thread Vittorio Giovara
libavcodec/ac3enc.c:103:30: warning: 'extern' variable has an initializer [-Wextern-initializer] --- libavcodec/ac3enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 2439ad6032..23bd2fb330 100644 ---

Re: [libav-devel] [PATCH] spherical: add functions to retrieve and request projection names

2017-04-26 Thread Vittorio Giovara
On Thu, Apr 20, 2017 at 11:40 AM, Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > From: James Almer <jamr...@gmail.com> > > Signed-off-by: James Almer <jamr...@gmail.com> > Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> > --- >

[libav-devel] [PATCH 2/2] mlp_parser: Drop in-parser downmix functionality

2017-04-26 Thread Vittorio Giovara
request_channel_layout is a decoder option and it makes no sense to have it in a parser. See the previous commit for a more detailed explanation. Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- libavcodec/mlp_parser.c | 23 +++ libavcodec/mlp_parser.

[libav-devel] [PATCH 1/2] aac_ac3_parser: Drop in-parser downmix functionality

2017-04-26 Thread Vittorio Giovara
(and the correct request_channel_layout option). After initialization the decoder overwrites the channel layout with the downmixed one that is actually output, so there is no need to preserve this functionality in the parser. Signed Vittorio Giovara <vittorio.giov...@gmail.com> Sign

[libav-devel] [PATCH] avfoundation: update to use AVCodecParameters

2017-04-26 Thread Vittorio Giovara
--- libavdevice/avfoundation_dec.m | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavdevice/avfoundation_dec.m b/libavdevice/avfoundation_dec.m index f01484c48f..e87f3a502e 100644 --- a/libavdevice/avfoundation_dec.m +++ b/libavdevice/avfoundation_dec.m @@

Re: [libav-devel] [PATCH] aac_ac3_parser: Drop in-parser downmix functionality

2017-04-26 Thread Vittorio Giovara
On Wed, Apr 26, 2017 at 11:23 AM, wm4 <nfx...@googlemail.com> wrote: > On Wed, 26 Apr 2017 11:08:17 -0400 > Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > >> request_channel_layout is a decoder option and it makes no sense >> to have it in a pars

[libav-devel] [PATCH] aac_ac3_parser: Drop in-parser downmix functionality

2017-04-26 Thread Vittorio Giovara
(and the correct request_channel_layout option). After initialization the decoder overwrites the channel layout with the downmixed one that is actually output, so there is no need to preserve this functionality in the parser. Signed Vittorio Giovara <vittorio.giov...@gmail.com> Sign

[libav-devel] [PATCH 2/3] mlp: Drop ff_ suffix from a static function

2017-04-25 Thread Vittorio Giovara
--- libavcodec/mlp_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c index e9ba840200..fb9ede8702 100644 --- a/libavcodec/mlp_parser.c +++ b/libavcodec/mlp_parser.c @@ -120,7 +120,7 @@ static uint64_t

[libav-devel] [PATCH 3/3] mlp: Factor out channel layout subset checks

2017-04-25 Thread Vittorio Giovara
--- libavcodec/mlp_parser.c | 22 +++--- libavcodec/mlp_parser.h | 2 ++ libavcodec/mlpdec.c | 4 ++-- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c index fb9ede8702..7d73058e4c 100644 ---

[libav-devel] [PATCH 1/3] mlp: Rename the channel layout variable

2017-04-25 Thread Vittorio Giovara
Purely cosmetic change, will make code more readable once the new channel layout takes over. --- libavcodec/mlpdec.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index a606213f97..9ce32c832e 100644 ---

Re: [libav-devel] [PATCH] dca: Move the downmix request check outside the loop

2017-04-24 Thread Vittorio Giovara
On Mon, Apr 24, 2017 at 4:41 PM, Luca Barbato wrote: > From: Anton Khirnov > > --- > > An easy part of the whole ch_layout set we are shaping up. > > libavcodec/dcadec.c | 11 +++ > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git

Re: [libav-devel] [RFC] Getting rid of non-native endian pixfmts

2017-04-24 Thread Vittorio Giovara
On Mon, Apr 24, 2017 at 1:32 PM, wm4 wrote: > On Mon, 24 Apr 2017 20:27:28 +0300 > Rémi Denis-Courmont wrote: > >> Le maanantaina 24. huhtikuuta 2017, 17.37.00 EEST wm4 a écrit : >> > I propose that we remove non-native endian pixfmt variations. Pixel >> >

Re: [libav-devel] [RFC] Getting rid of non-native endian pixfmts

2017-04-24 Thread Vittorio Giovara
On Mon, Apr 24, 2017 at 11:37 AM, wm4 wrote: > I propose that we remove non-native endian pixfmt variations. Pixel > data would always be in native endianness (for example little endian on > a little endian system). All LE/BE formats would be dropped, and only > those

Re: [libav-devel] [RFC] [PATCH] stereo3d: Update the naming API to be more consistent

2017-04-24 Thread Vittorio Giovara
On Mon, Apr 24, 2017 at 11:24 AM, James Almer <jamr...@gmail.com> wrote: > On 4/24/2017 11:55 AM, Vittorio Giovara wrote: >> On Sun, Apr 23, 2017 at 11:31 PM, James Almer <jamr...@gmail.com> wrote: >>> On 4/20/2017 12:34 PM, Vittorio Giovara wrote: >>>&g

Re: [libav-devel] [PATCH 2/2] utvideodec: Fix gradient prediction when stride does not match width

2017-04-24 Thread Vittorio Giovara
On Sat, Apr 22, 2017 at 6:33 AM, Luca Barbato wrote: > From: Paul B Mahol > > Signed-off-by: Paul B Mahol > Signed-off-by: Luca Barbato > --- > libavcodec/utvideodec.c | 12 ++-- > 1 file changed, 10

Re: [libav-devel] [PATCH 1/2] utvideodec: Fix decoding odd sizes with interlaced video with some formats

2017-04-24 Thread Vittorio Giovara
On Sat, Apr 22, 2017 at 6:33 AM, Luca Barbato wrote: > From: Paul B Mahol > > Signed-off-by: Paul B Mahol > Signed-off-by: Luca Barbato > --- > libavcodec/utvideodec.c | 12 +++- > 1 file changed, 11

Re: [libav-devel] [PATCH] avprobe: Handle invalid values for the color description

2017-04-24 Thread Vittorio Giovara
On Sun, Apr 23, 2017 at 9:23 AM, Luca Barbato <lu_z...@gentoo.org> wrote: > On 4/18/17 7:11 PM, Luca Barbato wrote: >> On 17/04/2017 18:04, Vittorio Giovara wrote: >>> On Mon, Apr 17, 2017 at 9:48 AM, Luca Barbato <lu_z...@gentoo.org> wrote: >>>> print

Re: [libav-devel] [RFC] [PATCH] pixdesc: Change color property name APIs return type

2017-04-24 Thread Vittorio Giovara
On Thu, Apr 20, 2017 at 11:26 AM, Vittorio Giovara <vittorio.giov...@gmail.com> wrote: > This should make these APIs simpler to use, and less error prone > in case the caller does not check they are valid, and makes them > more similar to other naming APIs. > --- > This s

<    1   2   3   4   5   6   7   8   9   10   >