Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: simplify math

2018-05-01 Thread Paul B Mahol
On 5/2/18, wm4 wrote: > On Tue, 1 May 2018 17:48:32 +0200 > Paul B Mahol wrote: > >> This one actually works with hd1080 y4m files when seeking backwards. >> >> Signed-off-by: Paul B Mahol >> --- >> libavformat/yuv4mpegdec.c | 8 +++- >> 1 file changed, 3 insertions(+), 5 deletions(-) >> >

Re: [FFmpeg-devel] [PATCH] mpegvideo: remove support for libxvid's RC system

2018-05-01 Thread Rostislav Pehlivanov
On 1 May 2018 at 21:58, Carl Eugen Hoyos wrote: > 2018-05-01 21:00 GMT+02:00, Rostislav Pehlivanov : > > Its a reminder of a bygone era. Less flexible than the internal RC > > system, probably worse and most definitely broken. Drop it. No one > > ever used it either, except for mislead people. >

Re: [FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread wm4
On Tue, 1 May 2018 16:46:37 -0400 Vittorio Giovara wrote: > -- > > On 5/1/2018 4:39 PM, Paul B Mahol wrote: > > Signed-off-by: Paul B Mahol > > --- > > libavcodec/avcodec.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > > index fb

[FFmpeg-devel] [PATCH] avcodec/cbs: use av_fast_malloc in case of unit write buffer overflow

2018-05-01 Thread James Almer
Use it instead of av_reallocp, as the contents of the existing buffer are ultimately discarded. Signed-off-by: James Almer --- Barely any speed gain in most cases, but realloc of this data is nonetheless unnecessary. libavcodec/cbs_h2645.c | 13 +++-- libavcodec/cbs_h2645.h | 2 +- lib

Re: [FFmpeg-devel] [PATCH 4/6] lavc: Add coded bitstream read/write support for VP9

2018-05-01 Thread James Almer
On 5/1/2018 9:53 PM, Mark Thompson wrote: > On 01/05/18 18:33, James Almer wrote: >> On 4/30/2018 8:26 PM, Mark Thompson wrote: >>> --- >>> Main change since last time is including the array subscripts. Constants >>> are also cleaned up a bit, but stay in the cbs header (vp9.h could probably >>>

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: Fallback to duration if sample rate is unavailable

2018-05-01 Thread wm4
On Tue, 1 May 2018 22:44:07 +0200 Michael Niedermayer wrote: > Regression since: af1761f7 > Fixes: Division by 0 > Fixes: ffmpeg_crash_1 > > Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan > Caciulescu with AFLSmart > Signed-off-by: Michael Niedermayer > --- > fftools

Re: [FFmpeg-devel] [PATCH 4/6] lavc: Add coded bitstream read/write support for VP9

2018-05-01 Thread Mark Thompson
On 01/05/18 18:33, James Almer wrote: > On 4/30/2018 8:26 PM, Mark Thompson wrote: >> --- >> Main change since last time is including the array subscripts. Constants >> are also cleaned up a bit, but stay in the cbs header (vp9.h could probably >> be taken over for this purpose, but currently it

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: simplify math

2018-05-01 Thread wm4
On Tue, 1 May 2018 17:48:32 +0200 Paul B Mahol wrote: > This one actually works with hd1080 y4m files when seeking backwards. > > Signed-off-by: Paul B Mahol > --- > libavformat/yuv4mpegdec.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/libavformat/yuv4mpe

Re: [FFmpeg-devel] [PATCH 6/6] lavc/cbs: Add tests for VP9

2018-05-01 Thread Mark Thompson
On 01/05/18 18:37, James Almer wrote: > On 4/30/2018 8:26 PM, Mark Thompson wrote: >> Uses the same mechanism as other codecs - conformance test files are >> passed through the metadata filter (which, with no options, reads the >> input and writes it back) and the output verified to match the input

Re: [FFmpeg-devel] [PATCH 11/24] avcodec/mjpegdec: replace YUVJ pixel formats

2018-05-01 Thread Michael Niedermayer
On Tue, May 01, 2018 at 09:40:00PM +0200, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/mjpegdec.c| 18 +- > libavcodec/tdsc.c| 2 +- > tests/fate/vcodec.mak| 4 ++-- > tests/ref/fate/api-mjpeg-codec-para

Re: [FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread Vittorio Giovara
-- On Wed May 2 01:45:47 EEST 2018 Rostislav Pehlivanov wrote: > I agree with you, they need to be gone. The purpose of the patchset also > isn't just to get rid of them, its to have a good api to handle color > ranges and how it ought to be handled by filters and codecs. His only > objection was

Re: [FFmpeg-devel] [PATCH 12/24] avcodec/mjpegenc: add support for non-YUVJ formats

2018-05-01 Thread Michael Niedermayer
On Wed, May 02, 2018 at 12:22:10AM +0200, Paul B Mahol wrote: > On 5/2/18, Michael Niedermayer wrote: > > Hi > > > > On Tue, May 01, 2018 at 09:40:01PM +0200, Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol > >> --- > >> libavcodec/mjpegenc.c | 5 - > >> libavcodec/mpegvideo_enc.c

Re: [FFmpeg-devel] [PATCH 25/26] lavc/h264: Add common code for level handling

2018-05-01 Thread Mark Thompson
On 27/04/18 06:42, Xiang, Haihao wrote: > Just for curious, will you have the common code for H.265 level handling too? I've written some matching the H.264 code, but it's not yet complete because I haven't come up with a clean way to deal with all of the different subprofiles. For example, deco

Re: [FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread Rostislav Pehlivanov
On 1 May 2018 at 22:06, Paul B Mahol wrote: > On 5/1/18, Vittorio Giovara wrote: > > -- > > > > On 5/1/2018 4:39 PM, Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol > >> --- > >> libavcodec/avcodec.h | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> diff --git a/libavcodec/avcodec.h b/

Re: [FFmpeg-devel] [PATCH 5/6] lavc: Add VP9 metadata bitstream filter

2018-05-01 Thread James Almer
On 4/30/2018 8:26 PM, Mark Thompson wrote: > Can adjust the colour information. > --- > configure | 1 + > doc/bitstream_filters.texi | 26 +++ > libavcodec/Makefile| 1 + > libavcodec/bitstream_filters.c | 1 + > libavcodec/vp9_metadata_bsf.c | 162

Re: [FFmpeg-devel] [PATCH 12/24] avcodec/mjpegenc: add support for non-YUVJ formats

2018-05-01 Thread Rostislav Pehlivanov
On 1 May 2018 at 23:22, Paul B Mahol wrote: > On 5/2/18, Michael Niedermayer wrote: > > Hi > > > > On Tue, May 01, 2018 at 09:40:01PM +0200, Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol > >> --- > >> libavcodec/mjpegenc.c | 5 - > >> libavcodec/mpegvideo_enc.c | 3 +-- > >> te

Re: [FFmpeg-devel] [PATCH 1/6] cbs: Fragment/unit data is always reference counted

2018-05-01 Thread Mark Thompson
On 01/05/18 16:51, James Almer wrote: > On 4/30/2018 8:26 PM, Mark Thompson wrote: >> Make this clear in the documentation and add some asserts to ensure >> that it is always true. >> --- >> As suggested earlier :) >> >> >> libavcodec/cbs.c | 18 -- >> libavcodec/cbs.h | 10 ++-

Re: [FFmpeg-devel] [PATCH 3/6] cbs: Add support for array subscripts in trace output

2018-05-01 Thread James Almer
On 4/30/2018 8:26 PM, Mark Thompson wrote: > This makes the trace output for arrays significantly nicer. > --- > libavcodec/cbs.c | 44 ++-- > libavcodec/cbs_h2645.c | 83 --- > libavcodec/cbs_h264_syntax_template.c | 101 +--

Re: [FFmpeg-devel] [PATCH] fate: add aresample check to tests that needs it

2018-05-01 Thread James Almer
On 5/1/2018 6:54 PM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > > For single FATE box and for now single test. > > --- > tests/Makefile | 4 > tests/fate/avformat.mak | 2 +- > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/tests/Makefile b/tests/

Re: [FFmpeg-devel] [PATCH 12/24] avcodec/mjpegenc: add support for non-YUVJ formats

2018-05-01 Thread Paul B Mahol
On 5/2/18, Michael Niedermayer wrote: > Hi > > On Tue, May 01, 2018 at 09:40:01PM +0200, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavcodec/mjpegenc.c | 5 - >> libavcodec/mpegvideo_enc.c | 3 +-- >> tests/lavf-regression.sh | 2 +- >> 3 files changed, 6 insertion

Re: [FFmpeg-devel] [PATCH 12/24] avcodec/mjpegenc: add support for non-YUVJ formats

2018-05-01 Thread Michael Niedermayer
Hi On Tue, May 01, 2018 at 09:40:01PM +0200, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/mjpegenc.c | 5 - > libavcodec/mpegvideo_enc.c | 3 +-- > tests/lavf-regression.sh | 2 +- > 3 files changed, 6 insertions(+), 4 deletions(-) This doesnt work first crea

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: simplify math

2018-05-01 Thread Paul B Mahol
On 5/1/18, Derek Buitenhuis wrote: > On 5/1/2018 10:15 PM, Paul B Mahol wrote: >> If you have no other remarks, I will update reference and push patch. > > Is the reference change actually correct? Yes, I tested extensively with mpv. mpv have option to disable fix pts algo so brokeness came noti

[FFmpeg-devel] [PATCH] fate: add aresample check to tests that needs it

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- For single FATE box and for now single test. --- tests/Makefile | 4 tests/fate/avformat.mak | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 6074ac748e..9286e079df 100644 --- a/tests/Makefi

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: simplify math

2018-05-01 Thread Derek Buitenhuis
On 5/1/2018 10:15 PM, Paul B Mahol wrote: > If you have no other remarks, I will update reference and push patch. Is the reference change actually correct? - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/

[FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD

2018-05-01 Thread Paul B Mahol
Specifically for yuv444, yuv422, yuv420 format when main stream has no alpha, and alpha is straight. Signed-off-by: Paul B Mahol --- libavfilter/vf_overlay.c | 75 +--- libavfilter/vf_overlay.h | 85 ++ libavfilter/x86/Makefile |

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: simplify math

2018-05-01 Thread Paul B Mahol
On 5/1/18, Michael Niedermayer wrote: > On Tue, May 01, 2018 at 05:48:32PM +0200, Paul B Mahol wrote: >> This one actually works with hd1080 y4m files when seeking backwards. >> >> Signed-off-by: Paul B Mahol >> --- >> libavformat/yuv4mpegdec.c | 8 +++- >> 1 file changed, 3 insertions(+), 5

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: simplify math

2018-05-01 Thread Michael Niedermayer
On Tue, May 01, 2018 at 05:48:32PM +0200, Paul B Mahol wrote: > This one actually works with hd1080 y4m files when seeking backwards. > > Signed-off-by: Paul B Mahol > --- > libavformat/yuv4mpegdec.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/libavformat/yu

Re: [FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread Paul B Mahol
On 5/1/18, Vittorio Giovara wrote: > -- > > On 5/1/2018 4:39 PM, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavcodec/avcodec.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h >> index fb0c6fae70..3a8f69243c 100644 >> ---

Re: [FFmpeg-devel] [PATCH] mpegvideo: remove support for libxvid's RC system

2018-05-01 Thread Carl Eugen Hoyos
2018-05-01 21:00 GMT+02:00, Rostislav Pehlivanov : > Its a reminder of a bygone era. Less flexible than the internal RC > system, probably worse and most definitely broken. Drop it. No one > ever used it either, except for mislead people. Sorry for my bad git knowledge: Is the above part of the co

Re: [FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread Vittorio Giovara
-- On 5/1/2018 4:39 PM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/avcodec.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index fb0c6fae70..3a8f69243c 100644 > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcod

[FFmpeg-devel] [PATCH] fftools/ffmpeg: Fallback to duration if sample rate is unavailable

2018-05-01 Thread Michael Niedermayer
Regression since: af1761f7 Fixes: Division by 0 Fixes: ffmpeg_crash_1 Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart Signed-off-by: Michael Niedermayer --- fftools/ffmpeg.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --gi

Re: [FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread Paul B Mahol
On 5/1/18, James Almer wrote: > On 5/1/2018 4:39 PM, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavcodec/avcodec.h | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h >> index fb0c6fae70..3a8f69243c 100644 >> --- a/libavcode

Re: [FFmpeg-devel] [PATCH 2/2] avdevice/decklink_dec: unref packets on avpacket_queue_put error

2018-05-01 Thread Marton Balint
On Mon, 30 Apr 2018, James Almer wrote: On 4/22/2018 6:18 PM, Marton Balint wrote: Signed-off-by: Marton Balint --- libavdevice/decklink_dec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp index 10535dc388..510637676c 100

Re: [FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread James Almer
On 5/1/2018 4:39 PM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/avcodec.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h > index fb0c6fae70..3a8f69243c 100644 > --- a/libavcodec/avcodec.h > +++ b/libavcodec/avcodec.h

Re: [FFmpeg-devel] [PATCH] mpegvideo: remove support for libxvid's RC system

2018-05-01 Thread Rostislav Pehlivanov
On 1 May 2018 at 20:00, Rostislav Pehlivanov wrote: > > {"ibias", "intra quant bias", > FF_MPV_OFFSET(intra_quant_bias), AV_OPT_TYPE_INT, {.i64 = > FF_DEFAULT_QUANT_BIAS }, INT_MIN, INT_MAX, FF_MPV_OPT_FLAGS }, \ > {"pbias", "inter quant bias", > FF_MPV_OFFSET(inter_quant_bias), AV_OPT_TYPE

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD

2018-05-01 Thread Henrik Gramner
On Tue, May 1, 2018 at 10:02 AM, Paul B Mahol wrote: > +cglobal overlay_row_22, 6, 8, 8, 0, d, da, s, a, w, al, r, x [...] > +movum2, [aq+2*xq] > +pandm2, m3 > +movum6, [aq+2*xq] > +pandm6, m7 > +psrlw m6, 8 > +p

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD

2018-05-01 Thread James Almer
On 5/1/2018 5:02 AM, Paul B Mahol wrote: > Specifically for yuv444, yuv422, yuv420 format when main stream has no alpha, > and alpha > is straight. > > Signed-off-by: Paul B Mahol > --- > libavfilter/vf_overlay.c | 75 +- > libavfilter/vf_overlay.h | 85 +

[FFmpeg-devel] [PATCH 23/24] avformat/rtpenc_jpeg: remove usage of YUVJ formats

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/rtpenc_jpeg.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libavformat/rtpenc_jpeg.c b/libavformat/rtpenc_jpeg.c index 38eb2e68eb..e0e7afebfc 100644 --- a/libavformat/rtpenc_jpeg.c +++ b/libavformat/rtpenc_jpeg.c @@ -46

[FFmpeg-devel] [PATCH 24/24] avfilter: remove YUVJ pixel format usage

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/avf_showspectrum.c | 2 +- libavfilter/vaf_spectrumsynth.c| 4 +--- libavfilter/vf_amplify.c | 3 --- libavfilter/vf_atadenoise.c| 3 --- libavfilter/vf_avgblur.c

[FFmpeg-devel] [PATCH 22/24] avfilter/vf_setrange: change outlink color_range too

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/vf_setparams.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavfilter/vf_setparams.c b/libavfilter/vf_setparams.c index 8427f98ba8..98a4aa2ad3 100644 --- a/libavfilter/vf_setparams.c +++ b/libavfilter/vf_setparams.c @@ -56,6 +56,16

[FFmpeg-devel] [PATCH 21/24] avfilter/vf_blackdetect: use color_range from inlink

2018-05-01 Thread Paul B Mahol
Remove YUVJ pixel format usage. Signed-off-by: Paul B Mahol --- libavfilter/vf_blackdetect.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libavfilter/vf_blackdetect.c b/libavfilter/vf_blackdetect.c index 06ef9988d1..ff4b9eebb9 100644 --- a/libavfilter/vf_blackdet

[FFmpeg-devel] [PATCH 19/24] avcodec/roqvideoenc: do not use YUVJ pixel format

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/roqvideoenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/roqvideoenc.c b/libavcodec/roqvideoenc.c index ac05123dc6..18ceef1b2c 100644 --- a/libavcodec/roqvideoenc.c +++ b/libavcodec/roqvideoenc.c @@ -1132,7 +1132,8 @

[FFmpeg-devel] [PATCH 20/24] avcodec/hevcdec: remove usage of YUVJ pixel format

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/hevcdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index c8877626d2..13c7d8ef49 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -369,7 +369,6 @@ static enum AVPixelFormat get_format(HE

[FFmpeg-devel] [PATCH 18/24] avcodec/hevc_ps: do not use YUVJ pixel format

2018-05-01 Thread Paul B Mahol
Color range is already set. Signed-off-by: Paul B Mahol --- libavcodec/hevc_ps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index f877fa572c..775dd73510 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -578,8 +578,6 @@ static v

[FFmpeg-devel] [PATCH 16/24] avcodec/mdec: replace YUVJ pixel format

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/mdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c index 330b761279..637158d231 100644 --- a/libavcodec/mdec.c +++ b/libavcodec/mdec.c @@ -227,7 +227,7 @@ static av_cold int decode_init(AVCode

[FFmpeg-devel] [PATCH 17/24] avcodec/h264_slice: do not use YUVJ pixel formats

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/h264_slice.c | 22 ++ 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index d71ddbe9ba..65e2bae52a 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@

[FFmpeg-devel] [PATCH 14/24] avcodec/fraps: replace YUVJ pixel format

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/fraps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index 7a7673f73f..b2025b5d3f 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -218,7 +218,7 @@ static int decode_frame(AVCodecC

[FFmpeg-devel] [PATCH 15/24] avcodec/roqvideodec: replace YUVJ pixel format

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/roqvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/roqvideodec.c b/libavcodec/roqvideodec.c index 0ab7d399d6..c5b7bbe236 100644 --- a/libavcodec/roqvideodec.c +++ b/libavcodec/roqvideodec.c @@ -190,7 +190,7 @@ st

[FFmpeg-devel] [PATCH 11/24] avcodec/mjpegdec: replace YUVJ pixel formats

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/mjpegdec.c| 18 +- libavcodec/tdsc.c| 2 +- tests/fate/vcodec.mak| 4 ++-- tests/ref/fate/api-mjpeg-codec-param | 4 ++-- tests/ref/fate/exif-image-embedded | 2 +- tests/ref/fate/

[FFmpeg-devel] [PATCH 05/24] avfilter/vf_scale: make use of color_range from filter links

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/vf_scale.c | 8 1 file changed, 8 insertions(+) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index f741419e7e..c7f2b07f0b 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -302,9 +302,15 @@ static int config_p

[FFmpeg-devel] [PATCH 13/24] avcodec/svq3: replace YUVJ pixel format

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/svq3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index fc17081ecf..afd246f8b8 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -1158,7 +1158,7 @@ static av_cold int svq3_decode_

[FFmpeg-devel] [PATCH 12/24] avcodec/mjpegenc: add support for non-YUVJ formats

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/mjpegenc.c | 5 - libavcodec/mpegvideo_enc.c | 3 +-- tests/lavf-regression.sh | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index d2fcb8e191..c31985efd3 100644 --- a/libav

[FFmpeg-devel] [PATCH 10/24] avcodec/mpeg4videoenc: mark as limited color range only

2018-05-01 Thread Paul B Mahol
lavf-mkv changes only because of metadata. Signed-off-by: Paul B Mahol --- libavcodec/mpeg4videoenc.c | 1 + libavcodec/mpegvideo_enc.c | 4 tests/ref/lavf/mkv | 8 tests/ref/seek/lavf-mkv| 44 ++-- 4 files changed, 31 insertio

[FFmpeg-devel] [PATCH 09/24] avcodec/proresenc: prores supports limited color range only

2018-05-01 Thread Paul B Mahol
Add .color_range field to encoder's AVCodec struct. Signed-off-by: Paul B Mahol --- libavcodec/proresenc_anatoliy.c | 2 ++ libavcodec/proresenc_kostya.c | 1 + 2 files changed, 3 insertions(+) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 0516066163..cb

[FFmpeg-devel] [PATCH 03/24] avfilter/buffersrc: recognize color_range as additonal parameter and set it to input link

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/buffersrc.c | 18 ++ libavfilter/buffersrc.h | 5 + 2 files changed, 23 insertions(+) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index cd56f8ca45..51a1a9fb49 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilte

[FFmpeg-devel] [PATCH 01/24] avcodec: add color_range to AVCodec struct

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/avcodec.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index fb0c6fae70..3a8f69243c 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3433,6 +3433,7 @@ typedef struct AVCodec { uint8_

[FFmpeg-devel] [PATCH 08/24] fftools/ffplay: support only limited color range

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- fftools/ffplay.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index dcca9c26d8..86bda1a2c4 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1822,6 +1822,7 @@ fail: static int configure_video_f

[FFmpeg-devel] [PATCH 02/24] avfilter/avfilter: add color_range to AVFilterLink struct

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/avfilter.c | 2 ++ libavfilter/avfilter.h | 2 ++ libavfilter/video.c| 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index ed8161136c..3f0dc14d01 100644 --- a/libavfilter/avfilter

[FFmpeg-devel] [PATCH 06/24] avcodec/pngdec: set full color range only for gray formats

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/pngdec.c| 8 ++-- tests/ref/fate/api-png-codec-param | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c index f93f200bb1..dbf986de50 100644 --- a/libavcodec/pngdec.c +++

[FFmpeg-devel] [PATCH 07/24] avfilter: negotiate color_range between filters

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- fftools/ffmpeg.c | 2 ++ fftools/ffmpeg.h | 1 + fftools/ffmpeg_filter.c| 57 +--- fftools/ffmpeg_opt.c | 2 ++ libavcodec/utils.c | 11 +++ libavfilter/avf_abitscope.c

[FFmpeg-devel] [PATCH 04/24] avfilter/buffersink: export color_range from filtergraph output

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/buffersink.c | 1 + libavfilter/buffersink.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 0f87b5439a..897396cac4 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -

[FFmpeg-devel] [PATCH] mpegvideo: remove support for libxvid's RC system

2018-05-01 Thread Rostislav Pehlivanov
Its a reminder of a bygone era. Less flexible than the internal RC system, probably worse and most definitely broken. Drop it. No one ever used it either, except for mislead people. --- MAINTAINERS| 1 - libavcodec/Makefile| 2 +- libavcodec/libxvid_rc.c| 164 --

Re: [FFmpeg-devel] [PATCH 6/6] lavc/cbs: Add tests for VP9

2018-05-01 Thread James Almer
On 4/30/2018 8:26 PM, Mark Thompson wrote: > Uses the same mechanism as other codecs - conformance test files are > passed through the metadata filter (which, with no options, reads the > input and writes it back) and the output verified to match the input. > --- > tests/fate/cbs.mak

Re: [FFmpeg-devel] [PATCH 4/6] lavc: Add coded bitstream read/write support for VP9

2018-05-01 Thread James Almer
On 4/30/2018 8:26 PM, Mark Thompson wrote: > --- > Main change since last time is including the array subscripts. Constants are > also cleaned up a bit, but stay in the cbs header (vp9.h could probably be > taken over for this purpose, but currently it's an unnamespaced header used > by the dec

Re: [FFmpeg-devel] [PATCH 2/6] cbs_h2645: Simplify representation of fixed values

2018-05-01 Thread Michael Niedermayer
On Tue, May 01, 2018 at 12:26:01AM +0100, Mark Thompson wrote: > --- > Mainly to avoid messing with them in the following patch. > > > libavcodec/cbs_h2645.c| 5 + > libavcodec/cbs_h264_syntax_template.c | 30 --- > libavcodec/cbs_h265_syntax_template

Re: [FFmpeg-devel] [PATCH 1/6] cbs: Fragment/unit data is always reference counted

2018-05-01 Thread James Almer
On 4/30/2018 8:26 PM, Mark Thompson wrote: > Make this clear in the documentation and add some asserts to ensure > that it is always true. > --- > As suggested earlier :) > > > libavcodec/cbs.c | 18 -- > libavcodec/cbs.h | 10 ++ > 2 files changed, 18 insertions(+), 10 d

[FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: simplify math

2018-05-01 Thread Paul B Mahol
This one actually works with hd1080 y4m files when seeking backwards. Signed-off-by: Paul B Mahol --- libavformat/yuv4mpegdec.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c index 8662a42a4c..de3d5637fe 100644 --

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: use generic code for seeking

2018-05-01 Thread wm4
On Tue, 1 May 2018 15:17:53 +0200 Paul B Mahol wrote: > On 5/1/18, wm4 wrote: > > On Tue, 1 May 2018 11:47:04 +0200 > > Paul B Mahol wrote: > > > >> Signed-off-by: Paul B Mahol > >> --- > >> libavformat/yuv4mpegdec.c| 23 > >> tests/ref/seek/lavf-yuv4mpeg | 52 > >>

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: use generic code for seeking

2018-05-01 Thread Paul B Mahol
On 5/1/18, wm4 wrote: > On Tue, 1 May 2018 11:47:04 +0200 > Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol >> --- >> libavformat/yuv4mpegdec.c| 23 >> tests/ref/seek/lavf-yuv4mpeg | 52 >> >> 2 files changed, 28 insert

Re: [FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: use generic code for seeking

2018-05-01 Thread wm4
On Tue, 1 May 2018 11:47:04 +0200 Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavformat/yuv4mpegdec.c| 23 > tests/ref/seek/lavf-yuv4mpeg | 52 > > 2 files changed, 28 insertions(+), 47 deletions(-) > > dif

[FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: use generic code for seeking

2018-05-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/yuv4mpegdec.c| 23 tests/ref/seek/lavf-yuv4mpeg | 52 2 files changed, 28 insertions(+), 47 deletions(-) diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c index 8662

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD

2018-05-01 Thread Paul B Mahol
On 5/1/18, Michael Niedermayer wrote: > On Tue, May 01, 2018 at 10:02:21AM +0200, Paul B Mahol wrote: >> Specifically for yuv444, yuv422, yuv420 format when main stream has no >> alpha, and alpha >> is straight. >> >> Signed-off-by: Paul B Mahol >> --- >> libavfilter/vf_overlay.c | 75

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD

2018-05-01 Thread Michael Niedermayer
On Tue, May 01, 2018 at 10:02:21AM +0200, Paul B Mahol wrote: > Specifically for yuv444, yuv422, yuv420 format when main stream has no alpha, > and alpha > is straight. > > Signed-off-by: Paul B Mahol > --- > libavfilter/vf_overlay.c | 75 +- > libavfilter/vf_overlay.h

[FFmpeg-devel] [PATCH] avfilter/vf_overlay: add x86 SIMD

2018-05-01 Thread Paul B Mahol
Specifically for yuv444, yuv422, yuv420 format when main stream has no alpha, and alpha is straight. Signed-off-by: Paul B Mahol --- libavfilter/vf_overlay.c | 75 +- libavfilter/vf_overlay.h | 85 + libavfilter/x86/Makefile | 2