[FFmpeg-devel] [PATCH V1] avfilter: Add tonemap vaapi filter

2018-12-24 Thread Zachary Zhou
It supports ICL platform. H2H (HDR to HDR): P010 -> RGB10 H2S (HDR to SDR): P010 -> RGB8 libva commit for HDR10 https://github.com/intel/libva/commit/cf11abe5e1b9c93ee75cf974076957162c1605b9 Signed-off-by: Zachary Zhou --- configure | 2 + libavfilter/Makefile

[FFmpeg-devel] [PATCH V7] libavfilter: add transpose_vaapi filter

2018-12-24 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add reversal/reversal_flip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou --- configure

[FFmpeg-devel] [PATCH V1] avfilter: Add constant VAAPI_VPP_BACKGROUND_BLACK

2018-12-24 Thread Zachary Zhou
Signed-off-by: Zachary Zhou --- libavfilter/vaapi_vpp.h| 2 ++ libavfilter/vf_deinterlace_vaapi.c | 2 +- libavfilter/vf_misc_vaapi.c| 2 +- libavfilter/vf_procamp_vaapi.c | 2 +- libavfilter/vf_scale_vaapi.c | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-)

Re: [FFmpeg-devel] [PATCH v2] avcodec/fft_template: libavcodec/fft_template: improve performance of the ff_fft_init in fft_template

2018-12-24 Thread Liu Steven
> 在 2018年12月25日,上午1:28,Paul B Mahol 写道: > > On 12/24/18, Michael Niedermayer wrote: >> On Fri, Dec 21, 2018 at 06:09:50PM +0800, Steven Liu wrote: >>> Before patch: >>> init nbits = 17, get 1 samples, average cost: 16105 us >>> After patch: >>> init nbits = 17, get 1 samples, average

Re: [FFmpeg-devel] [PATCH] Add a new channel layout API

2018-12-24 Thread Michael Niedermayer
On Mon, Dec 24, 2018 at 06:34:30PM +0100, Paul B Mahol wrote: [...] > -static const char *get_channel_name(int channel_id) > +const char *av_channel_name(enum AVChannel channel_id) > { > if (channel_id < 0 || channel_id >= FF_ARRAY_ELEMS(channel_names)) > return NULL; > +if

Re: [FFmpeg-devel] [PATCH, v3] lavc/hevc_parser: cope with more leading_zero_8bits and update FATE

2018-12-24 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Fu, Linjie > Sent: Tuesday, December 18, 2018 08:52 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH, v3] lavc/hevc_parser: cope with

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/lagarith: Optimize case with singleton probability distribution

2018-12-24 Thread Kieran Kunhya
> > commit 0ca7a8deeffd33e05ae15a447259b32b6678c727 (HEAD -> master) > Author: Michael Niedermayer > Date: Mon Dec 24 01:14:50 2018 +0100 > > avcodec/lagarith: Optimize case with singleton probability distribution > > Fixes: Timeout > Fixes: >

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/utils: Optimize ff_color_frame()

2018-12-24 Thread Michael Niedermayer
On Mon, Dec 24, 2018 at 04:41:02PM +, Derek Buitenhuis wrote: > On 24/12/2018 00:14, Michael Niedermayer wrote: > > Fixes: Timeout > > Fixes: > > 10709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5630617975259136 > > > > Found-by: continuous fuzzing > >

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/utils: Optimize ff_color_frame()

2018-12-24 Thread Michael Niedermayer
On Mon, Dec 24, 2018 at 05:44:26PM +0100, Paul B Mahol wrote: > On 12/24/18, Michael Niedermayer wrote: > > Fixes: Timeout > > Fixes: > > 10709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5630617975259136 > > > > Found-by: continuous fuzzing process > >

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/lagarith: Optimize case with singleton probability distribution

2018-12-24 Thread Michael Niedermayer
On Mon, Dec 24, 2018 at 04:40:11PM +, Derek Buitenhuis wrote: > On 24/12/2018 00:14, Michael Niedermayer wrote: > > Fixes: Timeout > > Fixes: > > 10554/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-5739938067251200 > > > > Found-by: continuous fuzzing > >

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-24 Thread James Zern
On Fri, Dec 21, 2018 at 7:38 PM James Zern wrote: > > On Fri, Dec 21, 2018 at 1:36 PM Rene Claus > wrote: > > > > This commit adds configuration options to libvpxenc.c that can be used to > > tune the sharpness parameter for VP8 and VP9. > > > > Signed-off-by: Rene Claus > > --- > >

Re: [FFmpeg-devel] [PATCH v3] avcodec/mips: Fix failed case: hevc-conformance-AMP_A_Samsung_* when enable msa

2018-12-24 Thread Michael Niedermayer
On Mon, Dec 24, 2018 at 07:03:45PM +, Derek Buitenhuis wrote: > On 24/12/2018 06:07, gxw wrote: > > The AV_INPUT_BUFFER_PADDING_SIZE has been increased to 64, but the value is > > still 32 > > in function ff_hevc_sao_edge_filter_8_msa. So, use > > AV_INPUT_BUFFER_PADDING_SIZE directly. > >

[FFmpeg-devel] [PATCH v2] mov: Remove duration-of-last-frame heuristic hack

2018-12-24 Thread Derek Buitenhuis
This breaks totally valid files that get caught in its heuristic. This, according to the commit message, is my own doing, having asked Michael to implement this check and providing a sample that was "wrong". I am now atoning for my sins, and removing this hack, having seen the light (aka that

[FFmpeg-devel] [PATCH] mov: Remove duration-of-last-frame heuristic hack

2018-12-24 Thread Derek Buitenhuis
This breaks totally valid files that get caught in its heuristic. This, according to the commit message, is my own doing, having asked Michael to implement this check and providing a sample that was "wrong". I am now atoning for my sins, and removing this hack, having seen the light (aka that

Re: [FFmpeg-devel] [PATCH v3] avcodec/mips: Fix failed case: hevc-conformance-AMP_A_Samsung_* when enable msa

2018-12-24 Thread Derek Buitenhuis
On 24/12/2018 06:07, gxw wrote: > The AV_INPUT_BUFFER_PADDING_SIZE has been increased to 64, but the value is > still 32 > in function ff_hevc_sao_edge_filter_8_msa. So, use > AV_INPUT_BUFFER_PADDING_SIZE directly. > Also, use MAX_PB_SIZE directly instead of 64. Fate tests passed. > --- >

Re: [FFmpeg-devel] patch for failing on WavPack DSD files

2018-12-24 Thread Derek Buitenhuis
On 24/12/2018 17:47, David Bryant wrote: > I want to do that, but am swamped at work right now, so it will probably be a > few months before I can get to that. > > In the meantime, I think this patch would be a safe stopgap (and prevent the > Kodi crash). I think it's OK for the meantime (my

Re: [FFmpeg-devel] patch for failing on WavPack DSD files

2018-12-24 Thread David Bryant
On 12/24/18 12:21 AM, Paul B Mahol wrote: > On 12/24/18, David Bryant wrote: >> On 11/21/18 9:50 PM, David Bryant wrote: >>> On 11/20/18 10:58 PM, Peter Ross wrote: On Tue, Nov 20, 2018 at 09:23:03PM -0800, David Bryant wrote: > Hi, > > Was made aware of this problem on Kodi:

Re: [FFmpeg-devel] [PATCH v2] swscale/output: Altivec-optimize float yuv2plane1

2018-12-24 Thread Lauri Kasanen
On Sun, 16 Dec 2018 11:06:53 +0200 Lauri Kasanen wrote: > This function wouldn't benefit from VSX instructions, so I put it > under altivec. > > ./ffmpeg_g -f rawvideo -pix_fmt rgb24 -s hd1080 -i /dev/zero -pix_fmt > grayf32le \ > -f null -vframes 100 -v error -nostats - > > 3743 UNITS in

[FFmpeg-devel] [PATCH] Add a new channel layout API

2018-12-24 Thread Paul B Mahol
The new API is more extensible and allows for custom layouts. More accurate information is exported, eg for decoders that do not set a channel layout, lavc will not make one up for them. Deprecate the old API working with just uint64_t bitmasks. Original commit by Anton Khirnov . Expanded and

Re: [FFmpeg-devel] [PATCH v2] avcodec/fft_template: libavcodec/fft_template: improve performance of the ff_fft_init in fft_template

2018-12-24 Thread Paul B Mahol
On 12/24/18, Michael Niedermayer wrote: > On Fri, Dec 21, 2018 at 06:09:50PM +0800, Steven Liu wrote: >> Before patch: >> init nbits = 17, get 1 samples, average cost: 16105 us >> After patch: >> init nbits = 17, get 1 samples, average cost: 15221 us >> >> Signed-off-by: Steven Liu >>

Re: [FFmpeg-devel] [PATCH v2] avcodec/fft_template: libavcodec/fft_template: improve performance of the ff_fft_init in fft_template

2018-12-24 Thread Michael Niedermayer
On Fri, Dec 21, 2018 at 06:09:50PM +0800, Steven Liu wrote: > Before patch: > init nbits = 17, get 1 samples, average cost: 16105 us > After patch: > init nbits = 17, get 1 samples, average cost: 15221 us > > Signed-off-by: Steven Liu > --- > libavcodec/fft_template.c | 26

Re: [FFmpeg-devel] [PATCH 1/3] vcodec/lagarith: Remove duplicate check

2018-12-24 Thread Derek Buitenhuis
On 24/12/2018 00:14, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/lagarith.c | 3 --- > 1 file changed, 3 deletions(-) OK. (Can you tell it's Christmas, and I have free time now...? :V) - Derek ___ ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/lagarith: Optimize case with singleton probability distribution

2018-12-24 Thread Derek Buitenhuis
On 24/12/2018 00:14, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 10554/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-5739938067251200 > > Found-by: continuous fuzzing > processhttps://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael

Re: [FFmpeg-devel] [PATCH 1/2] add support for ROI-based encoding

2018-12-24 Thread Derek Buitenhuis
On 24/12/2018 08:41, Guo, Yejun wrote: >>> +size_t nb_rois = frame->rois_buf->size / >>> + sizeof(AVFrameROI); >> >> I think we have some macros that do this already. > > I tried a code search and do not find one, there is a similar macro which > does not work for this case:

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/utils: Optimize ff_color_frame()

2018-12-24 Thread Paul B Mahol
On 12/24/18, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 10709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5630617975259136 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer

Re: [FFmpeg-devel] [PATCH 2/3] flvdec: Mark the demuxer as allowing discontinuous timestamps

2018-12-24 Thread Derek Buitenhuis
On 26/11/2018 13:51, Derek Buitenhuis wrote: > On 23/11/2018 02:16, Michael Niedermayer wrote: >> do we have some sample flv files that require this patchset / that have >> discontinuites. > > I have many. I've mailed you one privately, while I work on getting a public > one. > >> another thing

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/utils: Optimize ff_color_frame()

2018-12-24 Thread Derek Buitenhuis
On 24/12/2018 00:14, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 10709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5630617975259136 > > Found-by: continuous fuzzing > processhttps://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael

Re: [FFmpeg-devel] [PATCH v3 1/2] lavf: Add general API for IO buffer synchronization.

2018-12-24 Thread Andrey Semashev
On 12/21/18 2:48 AM, Michael Niedermayer wrote: On Thu, Dec 20, 2018 at 11:00:32AM +0100, Nicolas George wrote: Andrey Semashev (2018-12-10): This commit adds a new set of functions to avio and url subsystems, which allow users to invoke IO buffer synchronization with the underlying media. The

Re: [FFmpeg-devel] [PATCH] avformat/hls.c: Properly free prev_segments dynarray after playlist parsing

2018-12-24 Thread Liu Steven
> 在 2018年12月24日,下午6:25,Liu Steven 写道: > > > >> 在 2018年12月24日,下午5:24,Valery Kot 写道: >> >> Updated commit message for hls.c memory leak fix >> <0001-avformat-hls.c-Properly-free-prev_segments-dynarray-.txt>___ > > Looking at the

Re: [FFmpeg-devel] [PATCH] avformat/hls.c: Properly free prev_segments dynarray after playlist parsing

2018-12-24 Thread Liu Steven
> 在 2018年12月24日,下午5:24,Valery Kot 写道: > > Updated commit message for hls.c memory leak fix > <0001-avformat-hls.c-Properly-free-prev_segments-dynarray-.txt>___ Looking at the free_segment_dynarray: static void free_segment_dynarray(struct segment

Re: [FFmpeg-devel] avformat/hls.c: Fix memory leak

2018-12-24 Thread Liu Steven
> 在 2018年12月24日,下午5:28,Valery Kot 写道: > > On Sat, Dec 22, 2018 at 6:33 PM Derek Buitenhuis > wrote: >> Can you add to the commit message to explain what exactly is >> changed and why? 'Fix leak' isn't very useful. > > Submitted a patch >

[FFmpeg-devel] [PATCH] fate: add tests/fate/hlsenc.mak for hls FATE

2018-12-24 Thread Steven Liu
init add three test examples: 1. check no endlist at the end 2. check endlist at the end 3. check hls_list_size 0 full list Signed-off-by: Steven Liu --- tests/Makefile| 1 + tests/fate/hlsenc.mak | 43 +++ 2 files changed, 44 insertions(+)

Re: [FFmpeg-devel] avformat/hls.c: Fix memory leak

2018-12-24 Thread Valery Kot
On Sat, Dec 22, 2018 at 6:33 PM Derek Buitenhuis wrote: > Can you add to the commit message to explain what exactly is > changed and why? 'Fix leak' isn't very useful. Submitted a patch (http://ffmpeg.org/pipermail/ffmpeg-devel/2018-December/238093.html) with updated commit message, Or is there

[FFmpeg-devel] [PATCH] avformat/hls.c: Properly free prev_segments dynarray after playlist parsing

2018-12-24 Thread Valery Kot
Updated commit message for hls.c memory leak fix From 0bb8c4a17f9de7167f3aafc59fc309f581e00e0b Mon Sep 17 00:00:00 2001 From: vkot Date: Mon, 24 Dec 2018 10:19:55 +0100 Subject: [PATCH] avformat/hls.c: Properly free prev_segments dynarray after playlist parsing --- libavformat/hls.c | 1 + 1

Re: [FFmpeg-devel] [PATCH 1/2] add support for ROI-based encoding

2018-12-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Derek Buitenhuis > Sent: Saturday, December 22, 2018 12:36 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/2] add support for ROI-based > encoding > > A few comments

Re: [FFmpeg-devel] [PATCH 1/2] add support for ROI-based encoding

2018-12-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Mark Thompson > Sent: Friday, December 21, 2018 5:08 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 1/2] add support for ROI-based > encoding > > On 12/12/2018 16:26,

Re: [FFmpeg-devel] patch for failing on WavPack DSD files

2018-12-24 Thread Paul B Mahol
On 12/24/18, David Bryant wrote: > On 11/21/18 9:50 PM, David Bryant wrote: >> On 11/20/18 10:58 PM, Peter Ross wrote: >>> On Tue, Nov 20, 2018 at 09:23:03PM -0800, David Bryant wrote: Hi, Was made aware of this problem on Kodi: https://github.com/xbmc/xbmc/issues/14771