Re: [FFmpeg-devel] [PATCH 4/4] avcodec: loongson optimized h264pred with mmi

2015-07-13 Thread 周晓勇
> > building libavcodec/dca_parser.c with > > -O0 > > fixes the fate-dca-core and fate-dca-xll failure > > looks like a compiler bug: > > @@ -66,6 +66,7 @@ static int dca_find_frame_end(DCAParseContext *pc1, const > uint8_t *buf, > for (i = 0; i < buf_size; i++) { > state =

[FFmpeg-devel] [PATCH 1/2] apng: Support inter-frame compression

2015-07-13 Thread Donny Yang
The current algorithm is just "try all the combinations, and pick the best". It's not very fast either, probably due to a lot of copying, but will do for an initial implementation. --- libavcodec/pngenc.c | 423 +++- 1 file changed, 387 insertions(+)

[FFmpeg-devel] [PATCH 2/2] apng: Fix wrong default final frame delay in muxer

2015-07-13 Thread Donny Yang
--- libavformat/apngenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/apngenc.c b/libavformat/apngenc.c index dcf6b90..9b2c634 100644 --- a/libavformat/apngenc.c +++ b/libavformat/apngenc.c @@ -173,7 +173,7 @@ static void flush_packet(AVFormatContext *format_con

[FFmpeg-devel] [PATCH] configure: clean whitespace with [:space:]

2015-07-13 Thread Zhang Rui
https://en.wikibooks.org/wiki/Regular_Expressions/POSIX_Basic_Regular_Expressions --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index cc23991..2e54930 100755 --- a/configure +++ b/configure @@ -476,7 +476,7 @@ sh_quote(){ } cleanws(){ -

[FFmpeg-devel] Need help with threading issue (possible deadlock?)

2015-07-13 Thread Donny Yang
Hello I'm trying to fix ffmpeg's APNG decoding for images with the PREVIOUS dispose op while trying to keep it multithreaded, but it seems to deadlock whenever I use more that one thread. Is there something obvious I'm missing, or otherwise misunderstanding how ffmpeg's threads work? Or should I

Re: [FFmpeg-devel] [PATCH] configure: clean whitespace with [:space:]

2015-07-13 Thread Zhang Rui
Gmail seems do not recognize 'in-reply-to' Previous patch is here: http://ffmpeg.org/pipermail/ffmpeg-devel/2015-July/175291.html With NDKr10e on Cygwin, CC_IDENT is defined as #define CC_IDENT "gcc 4.8 \r(GCC)" ___ ffmpeg-devel mailing list ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 2/3] avformat: Add ff_configure_buffers_for_index()

2015-07-13 Thread Michael Niedermayer
On Tue, Jun 02, 2015 at 06:40:54PM +0200, Michael Niedermayer wrote: > This allows configuring the io buffer in such way that few seeks are needed > for playback > > Signed-off-by: Michael Niedermayer > --- > libavformat/internal.h |2 ++ > libavformat/utils.c| 38

Re: [FFmpeg-devel] [PATCH 3/3] avformat/mov: Use ff_configure_buffers_for_index()

2015-07-13 Thread Michael Niedermayer
On Tue, Jun 02, 2015 at 06:40:55PM +0200, Michael Niedermayer wrote: > Fixes Ticket2513 > Fixes Ticket4432 > > Signed-off-by: Michael Niedermayer > --- > libavformat/mov.c |1 + > 1 file changed, 1 insertion(+) applied [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC

Re: [FFmpeg-devel] Need help with threading issue (possible deadlock?)

2015-07-13 Thread Ronald S. Bultje
Hi, On Mon, Jul 13, 2015 at 4:26 AM, Donny Yang wrote: > Hello > > I'm trying to fix ffmpeg's APNG decoding for images with the PREVIOUS > dispose op while trying to keep it multithreaded, but it seems to deadlock > whenever I use more that one thread. How do I reproduce? ffmpeg -threads 2 -i

Re: [FFmpeg-devel] [PATCH] configure: clean whitespace with [:space:]

2015-07-13 Thread Carl Eugen Hoyos
Zhang Rui gmail.com> writes: > cleanws(){ > -echo "$ " | sed 's/^ *//;s/ */ /g;s/ *$//;s/\\r//g' > +echo "$ " | sed "s/^ *//;s/[[:space:]][[:space:]]*/ /g;s/ *$//" If this fixes compiler X on Y, please mention this in the commit message. (The link to wikibooks seems less important t

Re: [FFmpeg-devel] [PATCH] ffmpeg_opt: discard packets correctly

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 02:44:00AM -0400, Ganesh Ajjanagadde wrote: > libav commit 13f6917c merged in 574dcb5b results in > unnecessary seeks due to discarded packets; > especially problematic over a network. > > Fixes Ticket4126 > > Signed-off-by: Ganesh Ajjanagadde > --- > ffmpeg_opt.c | 10 +

Re: [FFmpeg-devel] Need help with threading issue (possible deadlock?)

2015-07-13 Thread Donny Yang
On 13 July 2015 at 20:50, Ronald S. Bultje wrote: > Hi, > > On Mon, Jul 13, 2015 at 4:26 AM, Donny Yang wrote: > > > Hello > > > > I'm trying to fix ffmpeg's APNG decoding for images with the PREVIOUS > > dispose op while trying to keep it multithreaded, but it seems to > deadlock > > whenever I

Re: [FFmpeg-devel] [PATCH] configure: clean whitespace with [:space:]

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 04:29:28PM +0800, Zhang Rui wrote: > Gmail seems do not recognize 'in-reply-to' > Previous patch is here: > http://ffmpeg.org/pipermail/ffmpeg-devel/2015-July/175291.html > > With NDKr10e on Cygwin, CC_IDENT is defined as > #define CC_IDENT "gcc 4.8 \r(GCC)" applied with t

Re: [FFmpeg-devel] Need help with threading issue (possible deadlock?)

2015-07-13 Thread Ronald S. Bultje
Hi, On Mon, Jul 13, 2015 at 7:15 AM, Donny Yang wrote: > On 13 July 2015 at 20:50, Ronald S. Bultje wrote: > > > Hi, > > > > On Mon, Jul 13, 2015 at 4:26 AM, Donny Yang wrote: > > > > > Hello > > > > > > I'm trying to fix ffmpeg's APNG decoding for images with the PREVIOUS > > > dispose op whi

Re: [FFmpeg-devel] Controlling the server reply (was: 9/9] doc/example: Add http multi-client) example code

2015-07-13 Thread Nicolas George
Le quartidi 24 messidor, an CCXXIII, Stephan Holljes a écrit : > the best thing I thought of was some kind of generic communication > function that either uses the client's AVOption system to pass around > values or just uses an AVDictionary. > Giving the application access to the results of the li

[FFmpeg-devel] vlc0.8.6i contrib ffmpeg losing swscale.h

2015-07-13 Thread 朱文澔
Hi All: for learning vlc source, I'm try build vlc0.8.6i(stable version) but while building ffmpeg0.4.8, which lose source code for swscale.h which version of libswscale, I should find. thanks! vvrobin...@163.com ___ ffmpeg-devel mailing list ffmpeg

Re: [FFmpeg-devel] vlc0.8.6i contrib ffmpeg losing swscale.h

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 01:05:30PM +0800, 朱文澔 wrote: > Hi All: > for learning vlc source, I'm try build vlc0.8.6i(stable version) > but while building ffmpeg0.4.8, which lose source code for swscale.h we have 2015! these are versions are 12 years old [...] -- Michael GnuPG fingerprint: 9FF21

Re: [FFmpeg-devel] [PATCH] ffmpeg_opt: discard packets correctly

2015-07-13 Thread Ganesh Ajjanagadde
On Mon, Jul 13, 2015 at 7:11 AM, Michael Niedermayer wrote: > On Mon, Jul 13, 2015 at 02:44:00AM -0400, Ganesh Ajjanagadde wrote: >> libav commit 13f6917c merged in 574dcb5b results in >> unnecessary seeks due to discarded packets; >> especially problematic over a network. >> >> Fixes Ticket4126 >

[FFmpeg-devel] [PATCH] libavcodec/qsv.c: Issue fixed: QSV engine does not release display handler under linux platform.

2015-07-13 Thread Ivan Uskov
Hello All, Current QSV engine implementation does allocate but never does release a display handler under linux platforms. The attached patch solved this issue, please review. -- Best regards, Ivan mailto:ivan.us...@nablet.com 0001-libavcodec-qsv.c-Issue-fixed-QSV-e

Re: [FFmpeg-devel] [PATCH] ffmpeg_opt: discard packets correctly

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 09:32:06AM -0400, Ganesh Ajjanagadde wrote: > On Mon, Jul 13, 2015 at 7:11 AM, Michael Niedermayer > wrote: > > On Mon, Jul 13, 2015 at 02:44:00AM -0400, Ganesh Ajjanagadde wrote: > >> libav commit 13f6917c merged in 574dcb5b results in > >> unnecessary seeks due to discard

Re: [FFmpeg-devel] [PATCH] ffmpeg_opt: discard packets correctly

2015-07-13 Thread Ganesh Ajjanagadde
On Mon, Jul 13, 2015 at 12:02 PM, Michael Niedermayer wrote: > On Mon, Jul 13, 2015 at 09:32:06AM -0400, Ganesh Ajjanagadde wrote: >> On Mon, Jul 13, 2015 at 7:11 AM, Michael Niedermayer >> wrote: >> > On Mon, Jul 13, 2015 at 02:44:00AM -0400, Ganesh Ajjanagadde wrote: >> >> libav commit 13f6917c

[FFmpeg-devel] [PATCH] libavcodec/pthread_slice: for large job counts, avoid lock/unlock between jobs on the same thread

2015-07-13 Thread Tom Butterworth
Currently for large job counts, pthread_slice.c acquires and releases a lock between each job. Acquiring the locks can take more time than the job itself. The DDS and Hap decoders naively create a job per 4x4 pixel block. For a 4Kx2K frame: decode before patch: 1562ms decode after patch:

Re: [FFmpeg-devel] [PATCH] ffmpeg_opt: discard packets correctly

2015-07-13 Thread Hendrik Leppkes
On Mon, Jul 13, 2015 at 6:14 PM, Ganesh Ajjanagadde wrote: > On Mon, Jul 13, 2015 at 12:02 PM, Michael Niedermayer > wrote: >> On Mon, Jul 13, 2015 at 09:32:06AM -0400, Ganesh Ajjanagadde wrote: >>> On Mon, Jul 13, 2015 at 7:11 AM, Michael Niedermayer >>> wrote: >>> > On Mon, Jul 13, 2015 at 02:

[FFmpeg-devel] [PATCH] avcodec/hevc_parser: use the old parser only when hevc decoder is available

2015-07-13 Thread James Almer
If it's not, then the new dependence-free parser will be used instead Signed-off-by: James Almer --- configure| 2 -- libavcodec/hevc_parser.c | 10 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/configure b/configure index ac32a1f..88ee936 100755 ---

Re: [FFmpeg-devel] [PATCH]Raise max channels to 64

2015-07-13 Thread Nicolas George
Le duodi 22 messidor, an CCXXIII, Carl Eugen Hoyos a écrit : > A user claims that attached patch helps him > with a 64-channel software input device on > avfoundation that does not work with current > git head. > diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c > index 4ba77a7..9117cc0

Re: [FFmpeg-devel] [PATCH] avcodec/hevc_parser: use the old parser only when hevc decoder is available

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 02:14:18PM -0300, James Almer wrote: > If it's not, then the new dependence-free parser will be used instead > > Signed-off-by: James Almer > --- > configure| 2 -- > libavcodec/hevc_parser.c | 10 +- > 2 files changed, 5 insertions(+), 7 deletion

Re: [FFmpeg-devel] [PATCH] avcodec/hevc_parser: use the old parser only when hevc decoder is available

2015-07-13 Thread James Almer
On 13/07/15 2:52 PM, Michael Niedermayer wrote: > On Mon, Jul 13, 2015 at 02:14:18PM -0300, James Almer wrote: >> If it's not, then the new dependence-free parser will be used instead >> >> Signed-off-by: James Almer >> --- >> configure| 2 -- >> libavcodec/hevc_parser.c | 10 +++

Re: [FFmpeg-devel] [PATCH 05/12] libavcodec: Implementation of AAC_fixed_decoder (SBR-module) [1/3]

2015-07-13 Thread Michael Niedermayer
On Tue, Jun 30, 2015 at 11:53:07AM +0200, Nedeljko Babic wrote: > From: Djordje Pesut > > Move the existing code to a new template file. > > Signed-off-by: Nedeljko Babic > --- > libavcodec/aacsbr.c| 1419 > +--- > libavcodec/aacsbr.h

Re: [FFmpeg-devel] [PATCH 06/12] libavcodec: Implementation of AAC_fixed_decoder (SBR-module) [2/3]

2015-07-13 Thread Michael Niedermayer
On Tue, Jun 30, 2015 at 11:53:08AM +0200, Nedeljko Babic wrote: > From: Jovan Zelincevic > > Create tables for fixed point code. Can you make the first line of the commit messages a bit more informative when looking at it with git log --oneline they would all be nearly identical and one wouldnt

Re: [FFmpeg-devel] [PATCH] vf_psnr: sse2 optimizations for sum-squared-error.

2015-07-13 Thread James Darnley
On 2015-07-13 01:34, Ronald S. Bultje wrote: > Hi, > > On Sun, Jul 12, 2015 at 5:54 PM, Paul B Mahol wrote: > >> On 7/12/15, Ronald S. Bultje wrote: >>> +typedef struct PSNRDSPContext { >>> +uint64_t (*sse_line)(const uint8_t *buf, const uint8_t *ref, int w); >> >> Besides naming of functio

Re: [FFmpeg-devel] [PATCH] vf_psnr: sse2 optimizations for sum-squared-error.

2015-07-13 Thread Ronald S. Bultje
Hi, On Mon, Jul 13, 2015 at 3:50 PM, James Darnley wrote: > On 2015-07-13 01:34, Ronald S. Bultje wrote: > > Hi, > > > > On Sun, Jul 12, 2015 at 5:54 PM, Paul B Mahol wrote: > > > >> On 7/12/15, Ronald S. Bultje wrote: > >>> +typedef struct PSNRDSPContext { > >>> +uint64_t (*sse_line)(cons

Re: [FFmpeg-devel] [PATCH] vf_psnr: sse2 optimizations for sum-squared-error.

2015-07-13 Thread James Almer
On 13/07/15 5:07 PM, Ronald S. Bultje wrote: > Hi, > > On Mon, Jul 13, 2015 at 3:50 PM, James Darnley > wrote: > >> On 2015-07-13 01:34, Ronald S. Bultje wrote: >>> Hi, >>> >>> On Sun, Jul 12, 2015 at 5:54 PM, Paul B Mahol wrote: >>> On 7/12/15, Ronald S. Bultje wrote: > +typedef stru

[FFmpeg-devel] [PATCH] lavfi: add erosion, dilation, deflate & inflate filter

2015-07-13 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- Changelog | 1 + doc/filters.texi | 78 + libavfilter/Makefile | 4 + libavfilter/allfilters.c | 4 + libavfilter/vf_neighbor.c | 402 ++ 5 files changed, 489 insertions(+) c

[FFmpeg-devel] [PATCH] avfilter: add deband filter

2015-07-13 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_deband.c | 283 +++ 3 files changed, 285 insertions(+) create mode 100644 libavfilter/vf_deband.c diff --git a/libavfilter/Makefile b/l

[FFmpeg-devel] [PATCH] avutil/mem_internal: add missing header includes

2015-07-13 Thread James Almer
Fixes make checkheaders Signed-off-by: James Almer --- libavutil/mem_internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavutil/mem_internal.h b/libavutil/mem_internal.h index 54e14ac..6fdbcb0 100644 --- a/libavutil/mem_internal.h +++ b/libavutil/mem_internal.h @@ -21,6 +21,9 @@

Re: [FFmpeg-devel] [PATCH] libavcodec/qsv.c: Issue fixed: QSV engine does not release display handler under linux platform.

2015-07-13 Thread Gwenole Beauchesne
Hi, 2015-07-13 16:22 GMT+02:00 Ivan Uskov : > Hello All, > > Current QSV engine implementation does allocate but never does release > a display handler under linux platforms. > The attached patch solved this issue, please review. LGTM. However, missing newline IMHO before ff_qsv_close_internal_se

[FFmpeg-devel] [PATCH v4] Add support for Audible AAX (and AAX+) files

2015-07-13 Thread Vesselin Bontchev
Thanks for all the feedback, and help. VesselinFrom 1ed235454a61fe1f8d993d09d3d6398e7609c624 Mon Sep 17 00:00:00 2001 From: Vesselin Bontchev Date: Sat, 11 Jul 2015 18:02:47 + Subject: [PATCH] Add support for Audible AAX (and AAX+) files --- libavformat/isom.h |5 ++ libavformat/mov.c

Re: [FFmpeg-devel] [PATCH] libavcodec/qsv.c: Issue fixed: QSV engine does not release display handler under linux platform.

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 11:26:41PM +0200, Gwenole Beauchesne wrote: > Hi, > > 2015-07-13 16:22 GMT+02:00 Ivan Uskov : > > Hello All, > > > > Current QSV engine implementation does allocate but never does release > > a display handler under linux platforms. > > The attached patch solved this issue,

Re: [FFmpeg-devel] [PATCH] avutil/mem_internal: add missing header includes

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 06:07:29PM -0300, James Almer wrote: > Fixes make checkheaders > > Signed-off-by: James Almer > --- > libavutil/mem_internal.h | 3 +++ > 1 file changed, 3 insertions(+) LGTM thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Awns

Re: [FFmpeg-devel] [PATCH] avutil/mem_internal: add missing header includes

2015-07-13 Thread James Almer
On 13/07/15 9:50 PM, Michael Niedermayer wrote: > On Mon, Jul 13, 2015 at 06:07:29PM -0300, James Almer wrote: >> Fixes make checkheaders >> >> Signed-off-by: James Almer >> --- >> libavutil/mem_internal.h | 3 +++ >> 1 file changed, 3 insertions(+) > > LGTM > > thanks Pushed

Re: [FFmpeg-devel] [PATCH] WebP native muxer bugfix: frames should have alpha blending off

2015-07-13 Thread Michael Niedermayer
On Tue, Jul 14, 2015 at 12:20:43AM +, Urvang Joshi wrote: > Hi Michael, > How about sending the blend method info using side_data in the AVFrame? the encoders input are AVFrames, the encoder does not output AVFrames so you cannot send anything with an AVFrame from the encoder to the muxer. The

Re: [FFmpeg-devel] [PATCH] vf_ssim: x86 simd for ssim_4x4xN and ssim_endN.

2015-07-13 Thread James Almer
On 12/07/15 8:33 PM, Ronald S. Bultje wrote: > +INIT_XMM sse4 > +cglobal ssim_end_line, 3, 3, 6, sum0, sum1, w > +pxor m0, m0 > +.loop: > +mova m1, [sum0q+mmsize*0] > +mova m2, [sum0q+mmsize*1] > +mova m3, [sum0q+mmsize*2] > +m

Re: [FFmpeg-devel] [PATCH] vf_ssim: x86 simd for ssim_4x4xN and ssim_endN.

2015-07-13 Thread Michael Niedermayer
On Mon, Jul 13, 2015 at 11:39:15PM -0300, James Almer wrote: > On 12/07/15 8:33 PM, Ronald S. Bultje wrote: > > +INIT_XMM sse4 > > +cglobal ssim_end_line, 3, 3, 6, sum0, sum1, w > > +pxor m0, m0 > > +.loop: > > +mova m1, [sum0q+mmsize*0] > > +mova

[FFmpeg-devel] [PATCH] avcodec: add libkvazaar HECV encoder

2015-07-13 Thread Arttu Ylä-Outinen
Signed-off-by: Arttu Ylä-Outinen --- Changelog |1 + configure |4 + doc/encoders.texi | 24 + doc/general.texi| 10 +- libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec/libkvazaar.c | 248

Re: [FFmpeg-devel] [PATCH 06/12] libavcodec: Implementation of AAC_fixed_decoder (SBR-module) [2/3]

2015-07-13 Thread Nedeljko Babic
>On Tue, Jun 30, 2015 at 11:53:08AM +0200, Nedeljko Babic wrote: >> From: Jovan Zelincevic >> >> Create tables for fixed point code. > >Can you make the first line of the commit messages a bit more >informative > >when looking at it with git log --oneline >they would all be nearly identical and on

Re: [FFmpeg-devel] [PATCH 05/12] libavcodec: Implementation of AAC_fixed_decoder (SBR-module) [1/3]

2015-07-13 Thread Nedeljko Babic
>On Tue, Jun 30, 2015 at 11:53:07AM +0200, Nedeljko Babic wrote: >> From: Djordje Pesut >> >> Move the existing code to a new template file. >> >> Signed-off-by: Nedeljko Babic >> --- >> libavcodec/aacsbr.c| 1419 >> +--- >> libavcodec/aacsbr.h

[FFmpeg-devel] [PATCH] avutil/fifo: func could return less bytes in av_fifo_generic_write()

2015-07-13 Thread Zhang Rui
--- libavutil/fifo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/fifo.c b/libavutil/fifo.c index 4ff3194..f2fe93d 100644 --- a/libavutil/fifo.c +++ b/libavutil/fifo.c @@ -129,7 +129,8 @@ int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, do {