[libav-devel] [PATCH] avplay: remove the -debug option.

2013-03-18 Thread Anton Khirnov
It just shadows the corresponding AVOption and prevents using named consitants. --- avplay.c| 10 -- doc/avplay.texi |2 -- 2 files changed, 12 deletions(-) diff --git a/avplay.c b/avplay.c index 754a69f..3cf9c73 100644 --- a/avplay.c +++ b/avplay.c @@ -243,7 +243,6 @@ stati

[libav-devel] [PATCH] ape: 3.80-3.92 decoding support

2013-03-18 Thread Kostya Shishkov
--- for yet older versions only additional filters should be added (patchiswelcome) --- libavcodec/apedec.c | 477 --- libavformat/ape.c | 30 +++- 2 files changed, 481 insertions(+), 26 deletions(-) diff --git a/libavcodec/apedec.c b/libavcode

Re: [libav-devel] [RFC] fate: add an option to generate the references

2013-03-18 Thread Luca Barbato
On 19/03/13 01:15, Derek Buitenhuis wrote: > On 2013-03-18 6:47 PM, Luca Barbato wrote: >> Useful to bulk add or bulk update fate tests. >> --- > > Useful in general. Adding fate tests is annoying without it. > >> @item TARGET_EXEC >> Specify or override the wrapper used to run the tests. >> +@

Re: [libav-devel] [RFC] fate: add an option to generate the references

2013-03-18 Thread Derek Buitenhuis
On 2013-03-18 6:47 PM, Luca Barbato wrote: > Useful to bulk add or bulk update fate tests. > --- Useful in general. Adding fate tests is annoying without it. > @item TARGET_EXEC > Specify or override the wrapper used to run the tests. > +@item GEN > +Set to @var{yes} to generate the missing or

[libav-devel] [RFC] fate: add an option to generate the references

2013-03-18 Thread Luca Barbato
Useful to bulk add or bulk update fate tests. --- The output could be improved, but the basic functionality is here. doc/fate.texi | 2 ++ tests/Makefile| 10 -- tests/fate-run.sh | 6 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/fate.texi b/doc/fa

Re: [libav-devel] [PATCH 02/50] lavfi: switch to an AVOptions-based system.

2013-03-18 Thread Luca Barbato
On 18/03/13 16:23, Anton Khirnov wrote: > --- > doc/filters.texi | 21 ++-- > libavfilter/avfilter.c | 87 > +++- > libavfilter/avfilter.h |6 > libavfilter/version.h |3 ++ > 4 files changed, 114 insertions(+), 3 deletio

Re: [libav-devel] [PATCH 01/50] avfiltergraph: check for sws opts being non-NULL before using them.

2013-03-18 Thread Luca Barbato
On 18/03/13 16:23, Anton Khirnov wrote: > Avoid snprintfing a NULL pointer. > --- > libavfilter/avfiltergraph.c |7 ++- > libavfilter/graphparser.c |3 ++- > 2 files changed, 8 insertions(+), 2 deletions(-) > Ok. ___ libav-devel mailing

Re: [libav-devel] [PATCH] configure: Enable hwaccels without external dependencies by default.

2013-03-18 Thread Luca Barbato
On 18/03/13 22:27, Diego Biurrun wrote: > --- > > Due to popular demand ... > We should consider them system-libraries anyway. Patch ok. ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH] configure: Enable hwaccels without external dependencies by default.

2013-03-18 Thread Diego Biurrun
--- Due to popular demand ... configure |3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index 9a84210..e3c4e1b 100755 --- a/configure +++ b/configure @@ -1908,6 +1908,9 @@ enable safe_bitstream_reader enable static enable swscale_alpha +# By default, enable on

[libav-devel] [RFC] lavf: introduce AVFMT_TS_NEGATIVE

2013-03-18 Thread Luca Barbato
Most formats do not support negative timestamps, shift them to avoid unexpected behaviour and a number of bad crashes. --- This patch does not update fate nor mark ogg and mkv as AVFMT_TS_NEGATIVE. Please have a look and decide if it makes sense. libavformat/avformat.h | 12 libavf

Re: [libav-devel] [libav-api] High CPU load of the avcodec_decode_video2() function

2013-03-18 Thread Ondřej Perutka
2013/3/18 Loren Merritt > On Sun, 17 Mar 2013, Jason Garrett-Glaser wrote: > > On Sun, Mar 17, 2013 at 5:48 PM, Ondrej Perutka < > perutka.ond...@gmail.com> wrote: > > > >> ... and according to the Intel reference: > >> > >> http://software.intel.com/sites/default/files/319433-014.pdf > >> > >> t

[libav-devel] Finalizing the 9.4 release

2013-03-18 Thread Reinhard Tartler
Hi, I would like to get 9.4 released this weekend. Please check our current release/9 branch in libav.git and help identifying and backporting important changes that we must not miss. If you have concerns or believe an existing bug in bugzilla should be fixed for 9.4, please add it as a blocker t

[libav-devel] [PATCH 2/2] mpegvideo: allocate hwaccel privdata after the frame buffer

2013-03-18 Thread Hendrik Leppkes
This ensures the hwaccel privdata does not leak when a frame buffer could not be allocated (and toggle the assert when the frame is re-used). Having no frame buffer available is quite common when using the DXVA2 hwaccel in situations where the DXVA2 renderer is being re-allocated, for example when

[libav-devel] [PATCH 1/2] h264: allocate hwaccel privdata after the frame buffer

2013-03-18 Thread Hendrik Leppkes
This ensures the hwaccel privdata does not leak when a frame buffer could not be allocated (and toggle the assert when the frame is re-used). Having no frame buffer available is quite common when using the DXVA2 hwaccel in situations where the DXVA2 renderer is being re-allocated, for example when

Re: [libav-devel] [PATCH 1/2] h264: allocate hwaccel privdata after the frame buffer

2013-03-18 Thread Luca Barbato
On 18/03/13 17:12, Hendrik Leppkes wrote: > --- > libavcodec/h264.c | 17 + > 1 file changed, 9 insertions(+), 8 deletions(-) > Why? (put the answer in the commit message body please) lu ___ libav-devel mailing list libav-devel@libav.

Re: [libav-devel] [PATCH 2/2] mpegvideo: allocate hwaccel privdata after the frame buffer

2013-03-18 Thread Hendrik Leppkes
On Mon, Mar 18, 2013 at 5:12 PM, Hendrik Leppkes wrote: > --- > libavcodec/mpegvideo.c | 26 -- > 1 file changed, 12 insertions(+), 14 deletions(-) > > diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c > index ae6cdef..dab1485 100644 > --- a/libavcodec/mpegvideo

[libav-devel] [PATCH 2/2] mpegvideo: allocate hwaccel privdata after the frame buffer

2013-03-18 Thread Hendrik Leppkes
--- libavcodec/mpegvideo.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index ae6cdef..dab1485 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -266,18 +266,6 @@ static int alloc_

[libav-devel] [PATCH 1/2] h264: allocate hwaccel privdata after the frame buffer

2013-03-18 Thread Hendrik Leppkes
--- libavcodec/h264.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 9b196c7..98ace67 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -318,6 +318,15 @@ static int alloc_picture(H264Context *h, Picture *pic

[libav-devel] [PATCH] pthread: unref already decoded frames when flushing the decoder

2013-03-18 Thread Hendrik Leppkes
--- libavcodec/pthread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 7061090..9a92288 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -890,6 +890,7 @@ void ff_thread_flush(AVCodecContext *avctx) PerThreadContext *p

Re: [libav-devel] [PATCH 3/4] x86: ac3dsp: replace inline asm for in-decoder downmixing with yasm asm

2013-03-18 Thread Justin Ruggles
On 03/18/2013 10:49 AM, Diego Biurrun wrote: >> +%macro AC3_DOWNMIX_FUNCS 0 >> > +%assign %%i 3 >> > +%rep 4 >> > +INIT_XMM sse >> > +AC3_DOWNMIX %%i, 1 >> > +AC3_DOWNMIX %%i, 2 >> > +; Do not use ymm AVX or FMA4 on x86-32 for 6 channels due to stack >> > alignment >> > +; issu

[libav-devel] [PATCH 50/50] avconv: print filter options in -h full output.

2013-03-18 Thread Anton Khirnov
--- avconv_opt.c |1 + 1 file changed, 1 insertion(+) diff --git a/avconv_opt.c b/avconv_opt.c index 2e5cb05..c55640e 100644 --- a/avconv_opt.c +++ b/avconv_opt.c @@ -2014,6 +2014,7 @@ void show_help_default(const char *opt, const char *arg) show_help_children(avcodec_get_class(), fl

[libav-devel] [PATCH 49/50] avconv: update to new options syntax

2013-03-18 Thread Anton Khirnov
--- avconv_filter.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/avconv_filter.c b/avconv_filter.c index 2065cb0..9286dea 100644 --- a/avconv_filter.c +++ b/avconv_filter.c @@ -35,7 +35,7 @@ /* Define a function for building a string containing a list of

[libav-devel] [PATCH 47/50] lavfi: add avfilter_init_str() to replace avfilter_init_filter().

2013-03-18 Thread Anton Khirnov
Drop the unused opaque parameter from its signature. --- doc/APIchanges |1 + libavfilter/avfilter.c |7 +++ libavfilter/avfilter.h | 15 +++ libavfilter/avfiltergraph.c |4 +++- libavfilter/filtfmts.c |2 +- libavfilter/graphparser.c

[libav-devel] [PATCH 48/50] lavfi: add avfilter_init_dict() for initializing a filter with a dict.

2013-03-18 Thread Anton Khirnov
--- doc/APIchanges |1 + libavfilter/avfilter.c | 33 + libavfilter/avfilter.h | 22 ++ 3 files changed, 44 insertions(+), 12 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index c50de02..28c7c75 100644 --- a/doc/APIch

[libav-devel] [PATCH 43/50] lavfi: remove now unused args parameter from AVFilter.init

2013-03-18 Thread Anton Khirnov
--- libavfilter/af_aformat.c |2 +- libavfilter/af_amix.c |2 +- libavfilter/af_asyncts.c |2 +- libavfilter/af_channelmap.c |2 +- libavfilter/af_channelsplit.c |2 +- libavfilter/af_join.c |2 +- libavfilter/af_volume.c |2 +- libavfi

[libav-devel] [PATCH 46/50] lavfi: add avfilter_alloc_context() to replace avfilter_open().

2013-03-18 Thread Anton Khirnov
The naming of avfilter_open() is horribly confusing. There are two operations that might be called 'opening' a filter: - calling AVFilter.init() to initialize its internal state once all the options are known. - calling AVFilter.config_props() to configure the links after the format negotiation

[libav-devel] [PATCH 45/50] lavfi: add avfilter_get_class().

2013-03-18 Thread Anton Khirnov
Useful for examining options, the same as the corresponding functions for the other libs. --- libavfilter/avfilter.c |5 + libavfilter/avfilter.h |7 +++ 2 files changed, 12 insertions(+) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 2e017a1..ff4e042 100644 --

[libav-devel] [PATCH 42/50] vsrc_testsrc: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi |3 +-- libavfilter/vsrc_testsrc.c | 30 -- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index cafc12e..9f2cbe7 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2466,8 +

[libav-devel] [PATCH 40/50] vsrc_nullsrc: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/vsrc_nullsrc.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/libavfilter/vsrc_nullsrc.c b/libavfilter/vsrc_nullsrc.c index 79f6d4b..85fb420 100644 --- a/libavfilter/vsrc_nullsrc.c +++ b/libavfilter/vsrc_nullsrc.c @

[libav-devel] [PATCH 44/50] lavfi: make AVFilterContext export filter options.

2013-03-18 Thread Anton Khirnov
--- libavfilter/avfilter.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 3879e8f..2e017a1 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -321,10 +321,35 @@ static const char *filter_name(v

[libav-devel] [PATCH 38/50] split: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/split.c | 48 +--- 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/libavfilter/split.c b/libavfilter/split.c index 404cbce..8284fe9 100644 --- a/libavfilter/split.c +++ b/libavfilter/split.c @@ -27,25 +27,24 @@ #inclu

[libav-devel] [PATCH 39/50] vsrc_color: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi |7 ++- libavfilter/vsrc_color.c | 38 +++--- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 6d51a7a..1d1af55 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -

[libav-devel] [PATCH 41/50] vsrc_movie: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 12 +--- libavfilter/vsrc_movie.c | 32 ++-- 2 files changed, 15 insertions(+), 29 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 1d1af55..cafc12e 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2

[libav-devel] [PATCH 37/50] af_volume: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/af_volume.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 1f92f5e..32e4a2c 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -63,15 +63,6 @@ static const AVClass volum

[libav-devel] [PATCH 36/50] af_join: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi |4 ++-- libavfilter/af_join.c | 19 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index ff3a63d..6d51a7a 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -347,7 +347,7 @@ Number of in

[libav-devel] [PATCH 35/50] af_channelsplit: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/af_channelsplit.c |8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libavfilter/af_channelsplit.c b/libavfilter/af_channelsplit.c index d6110ef..31e3b0e 100644 --- a/libavfilter/af_channelsplit.c +++ b/libavfilter/af_channelsplit.c @@ -59,12 +59,6 @@ sta

[libav-devel] [PATCH 34/50] af_channelmap: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi |6 +++--- libavfilter/af_channelmap.c | 41 ++--- tests/filtergraphs/channelmap |2 +- 3 files changed, 22 insertions(+), 27 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 1840fe8..ff3a63d 1006

[libav-devel] [PATCH 33/50] af_asyncts: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/af_asyncts.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index 2e651ff..56c2ed8 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -66,16 +66,6 @@ static const AVClass asy

[libav-devel] [PATCH 32/50] af_amix: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/af_amix.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index 5a4ec2e..9aa917e 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -491,16 +491,7 @@ fail: static int init(AVFilterCont

[libav-devel] [PATCH 31/50] vf_yadif: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 20 +--- libavfilter/vf_yadif.c | 40 +--- libavfilter/yadif.h|1 + 3 files changed, 35 insertions(+), 26 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 0e99f46..1840fe8 100644 --- a/

[libav-devel] [PATCH 29/50] vf_transpose: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 20 - libavfilter/vf_transpose.c | 52 +--- 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index f6d646f..b3098bc 100644 --- a/doc/filters.texi +++ b/d

[libav-devel] [PATCH 30/50] vf_unsharp: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 11 +-- libavfilter/vf_unsharp.c | 43 ++- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index b3098bc..0e99f46 100644 --- a/doc/filters.texi +++ b/doc/filters.

[libav-devel] [PATCH 28/50] vf_settb: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 14 +++--- libavfilter/vf_settb.c | 31 ++- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index b36c697..f6d646f 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1998

[libav-devel] [PATCH 26/50] vf_select: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 19 +-- libavfilter/vf_select.c | 23 +-- 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 79d4a18..3d438a2 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1742,9

[libav-devel] [PATCH 27/50] vf_setpts: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 17 + libavfilter/vf_setpts.c | 22 -- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 3d438a2..b36c697 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1895,8 +1

[libav-devel] [PATCH 24/50] vf_overlay: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 22 +++--- libavfilter/vf_overlay.c | 36 +--- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 3652fbd..1f61f2a 100644 --- a/doc/filters.texi +++ b/doc/filt

[libav-devel] [PATCH 22/50] vf_libopencv: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 22 ++ libavfilter/avfilter.c |6 -- libavfilter/vf_libopencv.c | 39 ++- 3 files changed, 44 insertions(+), 23 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index c9ce417..3ac

[libav-devel] [PATCH 25/50] vf_pad: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 69 -- libavfilter/vf_pad.c | 45 +--- 2 files changed, 63 insertions(+), 51 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 1f61f2a..79d4a18 100644 --- a/doc/filters.tex

[libav-devel] [PATCH 23/50] vf_lut: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 28 +++-- libavfilter/vf_lut.c | 81 +- 2 files changed, 50 insertions(+), 59 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 3acecc4..3652fbd 100644 --- a/doc/filters.texi +++ b/doc/fil

[libav-devel] [PATCH 21/50] vf_hqdn3d: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi|1 - libavfilter/vf_hqdn3d.c | 80 +++ libavfilter/vf_hqdn3d.h |8 + 3 files changed, 40 insertions(+), 49 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index d414b61..c9ce417 100644 --- a/doc/f

[libav-devel] [PATCH 20/50] vf_gradfun: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 28 libavfilter/gradfun.h|2 ++ libavfilter/vf_gradfun.c | 29 - 3 files changed, 38 insertions(+), 21 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 8a90a4c..d414b61 100644 --

[libav-devel] [PATCH 18/50] vf_frei0r: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 63 +++ libavfilter/avfilter.c | 23 +-- libavfilter/vf_frei0r.c | 75 --- 3 files changed, 108 insertions(+), 53 deletions(-) diff --git a/doc/filters.texi b/doc/filte

[libav-devel] [PATCH 19/50] vf_scale: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 36 ++ libavfilter/avfilter.c | 29 libavfilter/vf_scale.c | 50 +--- 3 files changed, 83 insertions(+), 32 deletions(-) diff --git a/doc/filters.texi b/doc/

[libav-devel] [PATCH 17/50] vf_fps: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/vf_fps.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 74e4d24..074dd5f 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -69,20 +69,10 @@ static av_cold int init(AVFilterContext *ct

[libav-devel] [PATCH 16/50] vf_fieldorder: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 14 ++--- libavfilter/vf_fieldorder.c | 48 ++- 2 files changed, 26 insertions(+), 36 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 19533ae..423143e 100644 --- a/doc/filters.texi +++ b/doc/

[libav-devel] [PATCH 14/50] vf_drawtext: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi |3 -- libavfilter/vf_drawtext.c | 88 +++-- 2 files changed, 37 insertions(+), 54 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 987d5a2..f2faf51 100644 --- a/doc/filters.texi +++ b/doc/filters.texi

[libav-devel] [PATCH 13/50] vf_drawbox: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi |7 ++- libavfilter/vf_drawbox.c | 31 +++ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 5a31d0c..987d5a2 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -811,10

[libav-devel] [PATCH 15/50] vf_fade: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 32 +++- libavfilter/vf_fade.c | 55 +++-- 2 files changed, 53 insertions(+), 34 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index f2faf51..19533ae 100644 --- a/doc/filters.texi +

[libav-devel] [PATCH 12/50] vf_delogo: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 13 + libavfilter/vf_delogo.c | 33 ++--- 2 files changed, 11 insertions(+), 35 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index c0ba78b..5a31d0c 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -7

[libav-devel] [PATCH 10/50] vf_crop: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 36 +++- libavfilter/vf_crop.c | 40 +++- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index dc87bb2..ad12f0a 100644 --- a/doc/filters.texi ++

[libav-devel] [PATCH 11/50] vf_cropdetect: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi|5 + libavfilter/vf_cropdetect.c | 27 --- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index ad12f0a..c0ba78b 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -742,10

[libav-devel] [PATCH 08/50] vf_blackframe: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 18 +--- libavfilter/vf_blackframe.c | 49 --- 2 files changed, 33 insertions(+), 34 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 50b6d41..86efbc4 100644 --- a/doc/filters.texi +++ b/d

[libav-devel] [PATCH 09/50] vf_boxblur: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 18 +++--- libavfilter/vf_boxblur.c | 62 -- 2 files changed, 52 insertions(+), 28 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 86efbc4..dc87bb2 100644 --- a/doc/filters.texi +++ b/doc/fi

[libav-devel] [PATCH 06/50] vf_(no)format: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 28 libavfilter/avfilter.c | 27 +++ libavfilter/vf_format.c | 30 -- 3 files changed, 75 insertions(+), 10 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index f17

[libav-devel] [PATCH 07/50] vf_aspect: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 34 +--- libavfilter/vf_aspect.c | 99 --- 2 files changed, 87 insertions(+), 46 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 073f9d2..50b6d41 100644 --- a/doc/filters.texi +++ b/doc/f

[libav-devel] [PATCH 05/50] af_aformat: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi |8 libavfilter/af_aformat.c | 34 +- 2 files changed, 17 insertions(+), 25 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 12819f6..f178ba1 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -133

[libav-devel] [PATCH 04/50] buffersrc: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi| 37 +--- libavfilter/buffersrc.c | 71 --- 2 files changed, 55 insertions(+), 53 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 6f0ddd6..12819f6 100644 --- a/doc/filters.texi +++

[libav-devel] [PATCH 03/50] af_resample: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- libavfilter/af_resample.c | 57 - libavfilter/avfilter.c|9 +++ libavfilter/avfilter.h|7 ++ 3 files changed, 53 insertions(+), 20 deletions(-) diff --git a/libavfilter/af_resample.c b/libavfilter/af_resample.c index f82a97

[libav-devel] [PATCH 02/50] lavfi: switch to an AVOptions-based system.

2013-03-18 Thread Anton Khirnov
--- doc/filters.texi | 21 ++-- libavfilter/avfilter.c | 87 +++- libavfilter/avfilter.h |6 libavfilter/version.h |3 ++ 4 files changed, 114 insertions(+), 3 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi

[libav-devel] [PATCH 01/50] avfiltergraph: check for sws opts being non-NULL before using them.

2013-03-18 Thread Anton Khirnov
Avoid snprintfing a NULL pointer. --- libavfilter/avfiltergraph.c |7 ++- libavfilter/graphparser.c |3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 516617e..06b6a10 100644 --- a/libavfilter/avfilte

Re: [libav-devel] [PATCH 4/4] lavc: update the doxy for avcodec_decode_{video, audio} wtih refcounting.

2013-03-18 Thread Diego Biurrun
On Mon, Mar 18, 2013 at 07:44:29AM +0100, Anton Khirnov wrote: > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcodec.h > @@ -3281,11 +3281,17 @@ void avcodec_align_dimensions2(AVCodecContext *s, int > *width, int *height, > * > * @param avctx the codec context > * @param[out] frame Th

Re: [libav-devel] [PATCH 2/2] FATE: add a tscc2 test.

2013-03-18 Thread Janne Grunau
On 2013-03-18 16:00:19 +0100, Anton Khirnov wrote: > --- > tests/fate/screen.mak |3 +++ > tests/ref/fate/tscc2 | 33 + > 2 files changed, 36 insertions(+) > create mode 100644 tests/ref/fate/tscc2 ok Janne ___ l

Re: [libav-devel] [PATCH 2/2] FATE: add a tscc2 test.

2013-03-18 Thread Anton Khirnov
On Mon, 18 Mar 2013 16:00:19 +0100, Anton Khirnov wrote: > --- > tests/fate/screen.mak |3 +++ > tests/ref/fate/tscc2 | 33 + > 2 files changed, 36 insertions(+) > create mode 100644 tests/ref/fate/tscc2 > > diff --git a/tests/fate/screen.mak b/tests/fate

Re: [libav-devel] [PATCH 2/2] FATE: add a tscc2 test.

2013-03-18 Thread Kostya Shishkov
On Mon, Mar 18, 2013 at 04:00:19PM +0100, Anton Khirnov wrote: > --- > tests/fate/screen.mak |3 +++ > tests/ref/fate/tscc2 | 33 + > 2 files changed, 36 insertions(+) > create mode 100644 tests/ref/fate/tscc2 LGTM __

Re: [libav-devel] [PATCH 1/2] tscc2: allocate AVFrame properly.

2013-03-18 Thread Kostya Shishkov
On Mon, Mar 18, 2013 at 04:00:18PM +0100, Anton Khirnov wrote: > --- > libavcodec/tscc2.c | 38 ++ > 1 file changed, 22 insertions(+), 16 deletions(-) > > diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c > index 439de91..aae7119 100644 > --- a/libavcodec/

Re: [libav-devel] [PATCH 1/2] tscc2: allocate AVFrame properly.

2013-03-18 Thread Janne Grunau
On 2013-03-18 16:00:18 +0100, Anton Khirnov wrote: > --- > libavcodec/tscc2.c | 38 ++ > 1 file changed, 22 insertions(+), 16 deletions(-) > > diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c > index 439de91..aae7119 100644 > --- a/libavcodec/tscc2.c > ++

[libav-devel] [PATCH 1/2] tscc2: allocate AVFrame properly.

2013-03-18 Thread Anton Khirnov
--- libavcodec/tscc2.c | 38 ++ 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 439de91..aae7119 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -33,7 +33,7 @@ typedef struct TSCC2Con

[libav-devel] [PATCH 2/2] FATE: add a tscc2 test.

2013-03-18 Thread Anton Khirnov
--- tests/fate/screen.mak |3 +++ tests/ref/fate/tscc2 | 33 + 2 files changed, 36 insertions(+) create mode 100644 tests/ref/fate/tscc2 diff --git a/tests/fate/screen.mak b/tests/fate/screen.mak index 3dc69c5..c67b4a5 100644 --- a/tests/fate/screen.mak +++

Re: [libav-devel] [PATCH 3/4] x86: ac3dsp: replace inline asm for in-decoder downmixing with yasm asm

2013-03-18 Thread Diego Biurrun
On Sat, Nov 17, 2012 at 10:33:27AM -0500, Justin Ruggles wrote: > Adds a wrapper function for downmixing which detects channel count changes > and updates the selected downmix function accordingly. > --- > libavcodec/ac3dec.c |8 +- > libavcodec/ac3dsp.c | 72

[libav-devel] [PATCH 1/1] hwaccel: fix use with frame based multithreading

2013-03-18 Thread Janne Grunau
mpeg12 part removed since the decoders don't have the frame-threads capability although they are prepared for frame threading. I think it was left out since slice threading is preferred but our threading init code chooses frame threading for h264's benefit since the decoder supports slice threading

Re: [libav-devel] [PATCH 1/4] jpeg2000: Native decoder for DCinema.

2013-03-18 Thread Diego Biurrun
On Mon, Mar 18, 2013 at 02:01:54PM +0100, Nicolas BERTRAND wrote: > Le 18/03/2013 13:27, Diego Biurrun a écrit : > >On Mon, Mar 18, 2013 at 12:46:09PM +0100, Benjamin Larsson wrote: > >>On 03/16/2013 05:24 PM, Diego Biurrun wrote: > >>>On Fri, Mar 15, 2013 at 03:35:14PM +0100, Nicolas Bertrand wrot

Re: [libav-devel] [PATCH] asfenc: return error on negative timestamp

2013-03-18 Thread Justin Ruggles
On 03/17/2013 10:18 AM, Luca Barbato wrote: > According to the specification the timestamp is represented by a 32bit > unsigned. > > CC: libav-sta...@libav.org > --- > > I'd put it on release since it is really annoying. > > libavformat/asfenc.c | 8 > 1 file changed, 8 insertions(+) >

Re: [libav-devel] [PATCH 1/4] jpeg2000: Native decoder for DCinema.

2013-03-18 Thread Nicolas BERTRAND
Le 18/03/2013 13:27, Diego Biurrun a écrit : On Mon, Mar 18, 2013 at 12:46:09PM +0100, Benjamin Larsson wrote: On 03/16/2013 05:24 PM, Diego Biurrun wrote: On Fri, Mar 15, 2013 at 03:35:14PM +0100, Nicolas Bertrand wrote: --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2561,6 +2561,1

Re: [libav-devel] [PATCH 1/4] jpeg2000: Native decoder for DCinema.

2013-03-18 Thread Diego Biurrun
On Mon, Mar 18, 2013 at 12:46:09PM +0100, Benjamin Larsson wrote: > On 03/16/2013 05:24 PM, Diego Biurrun wrote: > >On Fri, Mar 15, 2013 at 03:35:14PM +0100, Nicolas Bertrand wrote: > >>--- a/libavcodec/avcodec.h > >>+++ b/libavcodec/avcodec.h > >>@@ -2561,6 +2561,12 @@ typedef struct AVCodecContex

Re: [libav-devel] [libav-commits] asfenc: return error on negative timestamp

2013-03-18 Thread Luca Barbato
On 18/03/13 12:40, Martin Storsjö wrote: > This broke the fate tests lavf-asf, wmav1-encode and wmav2-encode. I'll revert the patch since seem that there isn't a simple solution. We are feeding the asf muxer with negative timestamps and it seems working by sheer chance. What is even stranger is

Re: [libav-devel] [PATCH 1/4] jpeg2000: Native decoder for DCinema.

2013-03-18 Thread Benjamin Larsson
On 03/16/2013 05:24 PM, Diego Biurrun wrote: On Fri, Mar 15, 2013 at 03:35:14PM +0100, Nicolas Bertrand wrote: --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2561,6 +2561,12 @@ typedef struct AVCodecContext { #define FF_PROFILE_MPEG4_SIMPLE_STUDIO 14 #define FF_PROFILE

Re: [libav-devel] [libav-commits] asfenc: return error on negative timestamp

2013-03-18 Thread Martin Storsjö
On Mon, 18 Mar 2013, Luca Barbato wrote: Module: libav Branch: master Commit: d1bec33b46091546c5b2e6815210e73f87abf413 Author:Luca Barbato Committer: Luca Barbato Date: Sun Mar 17 15:13:43 2013 +0100 asfenc: return error on negative timestamp According to the specification the tim

Re: [libav-devel] [PATCH 1/4] jpeg2000: Native decoder for DCinema.

2013-03-18 Thread Nicolas BERTRAND
Le 16/03/2013 11:54, Kostya Shishkov a écrit : >+case JPEG2000_QSTY_SI: >+/*TODO: compute formula to implement */ >+band->stepsize = (float) (1 << 13); >+break; >+case JPEG2000_QSTY_SE: >+ /* Scalar expounded.

Re: [libav-devel] [PATCH 1/4] jpeg2000: Native decoder for DCinema.

2013-03-18 Thread Nicolas BERTRAND
Le 17/03/2013 12:31, Diego Biurrun a écrit : Are those official names or just written in Semithic way? > >Yes kinda >[...] What Kostya was referring to is the fact that you left out all the vowels, like in semitic scripts like Hebrew and Arabic. Diego Waouh, i didn't get the point. But hppy t

Re: [libav-devel] [PATCH] asfenc: return error on negative timestamp

2013-03-18 Thread Anton Khirnov
On Mon, 18 Mar 2013 10:25:13 +0100, Luca Barbato wrote: > On 18/03/13 08:02, Luca Barbato wrote: > > On 18/03/13 07:44, Anton Khirnov wrote: > >> I think EINVAL is better here. INVALIDDATA is typically returned when > >> something > >> invalid is found in a bitstream we are reading, which is not

Re: [libav-devel] Fwd: [PATCH] h264: free hwaccel private data if buffer allocation fails

2013-03-18 Thread Anton Khirnov
On Mon, 18 Mar 2013 09:10:51 +0100, Hendrik Leppkes wrote: > On Mon, Mar 18, 2013 at 8:37 AM, Anton Khirnov wrote: > > > > On Sat, 16 Mar 2013 16:55:39 +0100, Hendrik Leppkes > > wrote: > >> On Sat, Mar 16, 2013 at 1:23 PM, Anton Khirnov wrote: > >> > > >> > On Sat, 16 Mar 2013 12:34:54 +0100

Re: [libav-devel] [PATCH] asfenc: return error on negative timestamp

2013-03-18 Thread Luca Barbato
On 18/03/13 08:02, Luca Barbato wrote: > On 18/03/13 07:44, Anton Khirnov wrote: >> I think EINVAL is better here. INVALIDDATA is typically returned when >> something >> invalid is found in a bitstream we are reading, which is not the case here. >> EINVAL means that the caller provided invalid par

Re: [libav-devel] Fwd: [PATCH] h264: free hwaccel private data if buffer allocation fails

2013-03-18 Thread Anton Khirnov
On Sat, 16 Mar 2013 16:55:39 +0100, Hendrik Leppkes wrote: > On Sat, Mar 16, 2013 at 1:23 PM, Anton Khirnov wrote: > > > > On Sat, 16 Mar 2013 12:34:54 +0100, Hendrik Leppkes > > wrote: > >> If no buffer could be allocated, the unref_picture function doesn't clear > >> the hwaccel_picture_priv

Re: [libav-devel] [PATCH] mpegvideo: fix allocation of the hwaccel_picture_private data

2013-03-18 Thread Anton Khirnov
On Fri, 15 Mar 2013 21:20:37 +0100, Hendrik Leppkes wrote: > --- > libavcodec/mpegvideo.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c > index bde87ff..1b8e403 100644 > --- a/libavcodec/mpegvideo.c > +++ b/libav

[libav-devel] [PATCH 1/5] lavfi/gradfun: do not increment DC pointer for odd values.

2013-03-18 Thread Anton Khirnov
From: Clément Bœsch First DC is only used once otherwise. This also makes the code consistent with ASM versions. Signed-off-by: Anton Khirnov --- libavfilter/vf_gradfun.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c

[libav-devel] [PATCH 5/5] FATE: add a test for the gradfun filter

2013-03-18 Thread Anton Khirnov
--- tests/fate/filter.mak |9 +++- tests/ref/fate/filter-gradfun | 51 + 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 tests/ref/fate/filter-gradfun diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index 39

[libav-devel] [PATCH 3/5] lavfi/gradfun: fix dithering in MMX code.

2013-03-18 Thread Anton Khirnov
From: Clément Bœsch Current dithering only uses the first 4 instead of the whole 8 random values. Signed-off-by: Anton Khirnov --- libavfilter/x86/vf_gradfun.c | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/libavfilter/x86/vf_gradfun.c b/

[libav-devel] [PATCH 4/5] lavfi/gradfun: remove rounding to match C and SSE code.

2013-03-18 Thread Anton Khirnov
From: Clément Bœsch There is no noticable benefit for such precision. Signed-off-by: Anton Khirnov --- libavfilter/x86/vf_gradfun.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/x86/vf_gradfun.c b/libavfilter/x86/vf_gradfun.c index a9e069a..65a8172 1006

[libav-devel] [PATCH 2/5] lavfi/gradfun: fix rounding in MMX code.

2013-03-18 Thread Anton Khirnov
From: Clément Bœsch Current code divides before increasing precision. Also reduce upper bound for strength from 255 to 64. This will prevent an overflow in the SSSE3 and MMX filter_line code: delta is expressed as an u16 being shifted by 2 to the left. If it overflows, having a strength not abo

Re: [libav-devel] [PATCH 1/4] pixdesc: add a function for counting planes in a pixel format.

2013-03-18 Thread Luca Barbato
On 18/03/13 08:13, Anton Khirnov wrote: > > On Mon, 18 Mar 2013 08:04:51 +0100, Luca Barbato wrote: >> On 18/03/13 07:44, Anton Khirnov wrote: >>> + >>> +int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt) >>> +{ >>> +const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); >>> +

  1   2   >