Re: [FFmpeg-devel] [PATCH] avformat/fifo: utilize a clone packet for muxing

2021-01-11 Thread Jan Ekström
On Mon, Jan 11, 2021 at 10:53 PM Andreas Rheinhardt wrote: > > Jan Ekström: > > On Tue, Dec 8, 2020 at 2:54 PM Jan Ekström wrote: > >> > >> From: Jan Ekström > >> > >> This way the timestamp adjustments do not have to be manually > >> undone in case of failure and need to recover/retry. > >> > >

Re: [FFmpeg-devel] [PATCH 6/6] fft_fixed: remove 16-bit FFT code

2021-01-11 Thread Andreas Rheinhardt
Lynne: > Jan 9, 2021, 20:22 by d...@lynne.ee: > >> No longer used by anything. >> Unfortunately the old FFT_FLOAT/FFT_FIXED_32 is left as-is. It's >> simply too much work for code meant to be all removed anyway. >> >> Patch attached. Read patch 1/6 to see the size savings. >> > Forgot to remove t

Re: [FFmpeg-devel] [PATCH 1/6] ac3enc_fixed: convert to 32-bit sample format

2021-01-11 Thread Andreas Rheinhardt
Lynne: > Jan 9, 2021, 22:01 by andreas.rheinha...@gmail.com: > >> Lynne: >> >>> @@ -165,7 +164,11 @@ typedef struct AC3EncodeContext { >>> AVCodecContext *avctx; ///< parent AVCodecContext >>> PutBitContext pb; ///< bitstream writer context >>> AudioDSPCon

Re: [FFmpeg-devel] [PATCH 1/6] ac3enc_fixed: convert to 32-bit sample format

2021-01-11 Thread Lynne
Jan 9, 2021, 22:01 by andreas.rheinha...@gmail.com: > Lynne: > >> @@ -165,7 +164,11 @@ typedef struct AC3EncodeContext { >> AVCodecContext *avctx; ///< parent AVCodecContext >> PutBitContext pb; ///< bitstream writer context >> AudioDSPContext adsp; >> +#i

Re: [FFmpeg-devel] [PATCH 6/6] fft_fixed: remove 16-bit FFT code

2021-01-11 Thread Lynne
Jan 9, 2021, 20:22 by d...@lynne.ee: > No longer used by anything. > Unfortunately the old FFT_FLOAT/FFT_FIXED_32 is left as-is. It's > simply too much work for code meant to be all removed anyway. > > Patch attached. Read patch 1/6 to see the size savings. > Forgot to remove the tests, making FA

[FFmpeg-devel] [PATCH] lavu: support arbitrary-point FFT and all even (i)MDCT transforms

2021-01-11 Thread Lynne
This patch adds support for arbitrary-point FFTs and all even MDCT transforms. Odd MDCTs are not supported yet as they're based on the DCT-II and DCT-III and they're very niche. With this we can now write tests. Patch attached. >From 63eac77a5689e560dfa1da793d10851ea799bab7 Mon Sep 17 00:00:00

Re: [FFmpeg-devel] Development of a CUDA accelerated variant of the libav vf_tonemap

2021-01-11 Thread Lynne
Jan 11, 2021, 23:27 by felix.leclair...@hotmail.com: > Hi guys and gals, first post on this mailing list, apologies for any > formatting/stylistic snafus > > TLDR; we currently have tone mapping filters (typically used to map content > from a 10bit HDR source to an 8bit SDR output) that are done

Re: [FFmpeg-devel] [PATCH 1/1] bug: test pointer to be used.

2021-01-11 Thread James Almer
On 1/4/2021 3:11 PM, AlexisWilke wrote: Two tests check the opposite pointer before using it. If only one of these is set to a valid pointer, one of these functions will crash, the other will ignore the pointer. --- libavformat/allformats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

Re: [FFmpeg-devel] [PATCH] avcodec/aacenctab: Simplify exporting array size

2021-01-11 Thread zhilizhao(赵志立)
> On Jan 12, 2021, at 8:16 AM, Andreas Rheinhardt > wrote: > > Andreas Rheinhardt: >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/aacenc.c| 4 ++-- >> libavcodec/aacenctab.c | 7 ++- >> libavcodec/aacenctab.h | 6 ++ >> 3 files changed, 6 insertions(+), 11 deletions(-) >>

Re: [FFmpeg-devel] [PATCH 13/30] avformat/rtpdec: Remove next pointer from Protocol Handlers

2021-01-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Forgotten in 61974537610d82bd35b6e3ac91ccd270c6bdc711 (notice that > RTPDynamicProtocolHandler is not a public struct, so one can remove > the linked-list pointer immediately (unlike in most other patches of > this kind)). > > Signed-off-by: Andreas Rheinhardt > --- > libav

Re: [FFmpeg-devel] [PATCH v2] Replace arrays of pointers to strings by arrays of strings

2021-01-11 Thread Andreas Rheinhardt
Marton Balint: > > > On Wed, 6 Jan 2021, Andreas Rheinhardt wrote: > >> When the difference of the longest size and the average size of >> collection of strings is smaller than the size of a pointer, it makes >> sense to store the strings directly in an array instead of using an >> array of poin

Re: [FFmpeg-devel] [PATCH v2 06/11] avcodec: add cbs for h266/vvc

2021-01-11 Thread James Almer
On 1/11/2021 5:45 PM, Mark Thompson wrote: +static int FUNC(vui_parameters)(CodedBitstreamContext *ctx, RWContext *rw, +    H266RawVUI *current) +{ +    int err; + +    flag(vui_progressive_source_flag); +    flag(vui_interlaced_source_flag); +    flag(vui_non_packed

Re: [FFmpeg-devel] [PATCH] avcodec/aacenctab: Simplify exporting array size

2021-01-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/aacenc.c| 4 ++-- > libavcodec/aacenctab.c | 7 ++- > libavcodec/aacenctab.h | 6 ++ > 3 files changed, 6 insertions(+), 11 deletions(-) > > diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c > index 070a2

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/tableprint: Don't include mem_internal.h

2021-01-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > tableprint.h does not declare anything as aligned; it just prints > DECLARE_ALIGNED. So it can be removed; in fact, it needs to be removed, > because mem_internal.h includes config.h which leads to warnings when > building with hardcoded tables enabled because of redefinitions

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/Makefile: Remove unnecessary cbrt_data dependency

2021-01-11 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/Makefile b/libavcodec/Makefile > index fea37ef3c9..36891bbb57 100644 > --- a/libavcodec/Makefile > +++ b/libavcodec/Makefile > @

[FFmpeg-devel] Development of a CUDA accelerated variant of the libav vf_tonemap

2021-01-11 Thread Felix LeClair
Hi guys and gals, first post on this mailing list, apologies for any formatting/stylistic snafus TLDR; we currently have tone mapping filters (typically used to map content from a 10bit HDR source to an 8bit SDR output) that are done on CPU with Zscale from Zlib, or hardware implementations us

Re: [FFmpeg-devel] [PATCH] avformat/mxfdec: Free all types for both Descriptors

2021-01-11 Thread Michael Niedermayer
On Fri, Jan 08, 2021 at 12:29:36AM +0100, Michael Niedermayer wrote: > Fixes: memleak > Fixes: > 26352/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5201158714687488 > > Suggested-by: Tomas Härdin > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/pro

Re: [FFmpeg-devel] [PATCH 3/5] avformat/utils: wrap_timestamp() is only needed for less than 64 bits

2021-01-11 Thread Michael Niedermayer
On Sun, Nov 08, 2020 at 12:17:08AM +0100, Michael Niedermayer wrote: > Fixes: shift exponent 64 is too large for 64-bit type 'unsigned long long' > Fixes: > 26497/clusterfuzz-testcase-minimized-ffmpeg_dem_AVI_fuzzer-5690188355076096 > Fixes: > 26903/clusterfuzz-testcase-minimized-ffmpeg_dem_LUODA

Re: [FFmpeg-devel] [PATCH 6/8] avformat/aaxdec: Check string before strcmp()

2021-01-11 Thread Michael Niedermayer
On Fri, Oct 23, 2020 at 08:39:38PM +0200, Michael Niedermayer wrote: > Fixes: NULL ptr dereference > Fixes: > 26508/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5694725249826816 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Si

Re: [FFmpeg-devel] [PATCH 5/8] uavformat/rsd: check for EOF in extradata

2021-01-11 Thread Michael Niedermayer
On Fri, Oct 23, 2020 at 08:39:37PM +0200, Michael Niedermayer wrote: > Fixes: OOM > Fixes: > 26503/clusterfuzz-testcase-minimized-ffmpeg_dem_RSD_fuzzer-6530816735444992 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Mich

Re: [FFmpeg-devel] [PATCH v2 01/11] avcodec/vvc: add shared header for vvc

2021-01-11 Thread Mark Thompson
On 10/01/2021 08:35, Nuo Mi wrote: On Sun, Jan 10, 2021 at 9:39 AM Nuo Mi wrote: On Sun, Jan 10, 2021 at 3:09 AM Mark Thompson wrote: On 09/01/2021 07:34, Nuo Mi wrote: --- libavcodec/vvc.h | 124 +++ 1 file changed, 124 insertions(+) creat

Re: [FFmpeg-devel] [PATCH v3 06/11] avcodec/cbs_h2645: reface, move zero bytes check to a function

2021-01-11 Thread Mark Thompson
On 11/01/2021 16:33, Nuo Mi wrote: --- libavcodec/cbs_h2645.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 434322492c..5d7ae95931 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645

Re: [FFmpeg-devel] [PATCH] avformat/fifo: utilize a clone packet for muxing

2021-01-11 Thread Andreas Rheinhardt
Jan Ekström: > On Tue, Dec 8, 2020 at 2:54 PM Jan Ekström wrote: >> >> From: Jan Ekström >> >> This way the timestamp adjustments do not have to be manually >> undone in case of failure and need to recover/retry. >> >> Fixes an issue where the timestamp adjustment would be re-done over >> and ove

Re: [FFmpeg-devel] [PATCH v2 06/11] avcodec: add cbs for h266/vvc

2021-01-11 Thread Mark Thompson
On 10/01/2021 09:10, Nuo Mi wrote: On Sun, Jan 10, 2021 at 5:34 AM Mark Thompson wrote: On 09/01/2021 07:34, Nuo Mi wrote: --- configure |2 + libavcodec/Makefile |1 + libavcodec/cbs.c |6 + libavcodec/cbs

Re: [FFmpeg-devel] [PATCH v3 05/11] avcodec/cbs_h265: fix undef SEI_TYPE_X

2021-01-11 Thread James Almer
On 1/11/2021 1:33 PM, Nuo Mi wrote: --- libavcodec/cbs_h265_syntax_template.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs_h265_syntax_template.c b/libavcodec/cbs_h265_syntax_template.c index 48fae82d04..c0e94683a2 100644 --- a/libavcodec/cbs_h265_synt

Re: [FFmpeg-devel] [PATCH v3 02/11] avcodec: add vvc codec id and profiles

2021-01-11 Thread James Almer
On 1/11/2021 1:33 PM, Nuo Mi wrote: --- libavcodec/avcodec.h| 2 ++ libavcodec/codec_desc.c | 8 libavcodec/codec_id.h | 2 ++ libavcodec/profiles.c | 5 + libavcodec/profiles.h | 1 + 5 files changed, 18 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/

[FFmpeg-devel] [PATCH 1/1] avformat/dolby_e: Add a parser

2021-01-11 Thread Nicolas Gaullier
--- libavcodec/dolby_e.c | 260 --- libavcodec/dolby_e.h | 38 ++- libavcodec/parsers.c | 1 + 3 files changed, 202 insertions(+), 97 deletions(-) diff --git a/libavcodec/dolby_e.c b/libavcodec/dolby_e.c index 2b2f0a1640..1fc502e730 100644 --- a/liba

[FFmpeg-devel] [PATCH 0/1] avformat/dolby_e: Add a parser

2021-01-11 Thread Nicolas Gaullier
Note: my first intend here is, afterwards, to provide s377m support to the wav demuxer, (the actual code leads to pts issues : I sent a workaround https://patchwork.ffmpeg.org/project/ffmpeg/patch/20201215171324.99-1-nicolas.gaullier@cji.paris/ that was rejected, so this new work for a Dolby E par

[FFmpeg-devel] [PATCH v3 02/11] avcodec: add vvc codec id and profiles

2021-01-11 Thread Nuo Mi
--- libavcodec/avcodec.h| 2 ++ libavcodec/codec_desc.c | 8 libavcodec/codec_id.h | 2 ++ libavcodec/profiles.c | 5 + libavcodec/profiles.h | 1 + 5 files changed, 18 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 1d3099d50a..13a3191b53 10064

[FFmpeg-devel] [PATCH v3 01/11] avcodec/vvc: add shared header for vvc

2021-01-11 Thread Nuo Mi
--- libavcodec/vvc.h | 130 +++ 1 file changed, 130 insertions(+) create mode 100644 libavcodec/vvc.h diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h new file mode 100644 index 00..e25924b35d --- /dev/null +++ b/libavcodec/vvc.h @@ -0,0 +1,130

[FFmpeg-devel] [PATCH v3 03/11] avformat: add vvc raw demux

2021-01-11 Thread Nuo Mi
--- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/vvcdec.c | 61 3 files changed, 63 insertions(+) create mode 100644 libavformat/vvcdec.c diff --git a/libavformat/Makefile b/libavformat/Makefile index 3a8fbcbe5f..4a540

[FFmpeg-devel] [PATCH] Moves yuv2yuvX_sse3 to yasm, unrolls main loop and other small optimizations for ~20% speedup.

2021-01-11 Thread Alan Kelly
--- Fixes a bug where if there is no offset and a tail which is not processed by the sse3/avx2 version the dither is modified Deletes mmx/mmxext yuv2yuvX version from swscale_template and adds it to yuv2yuvX.asm to reduce code duplication and so that it may be used to process the tail from th

[FFmpeg-devel] [PATCH v3 04/11] avcodec: add SEI enum for vvc

2021-01-11 Thread Nuo Mi
--- libavcodec/vvc_sei.h | 47 1 file changed, 47 insertions(+) create mode 100644 libavcodec/vvc_sei.h diff --git a/libavcodec/vvc_sei.h b/libavcodec/vvc_sei.h new file mode 100644 index 00..90724669de --- /dev/null +++ b/libavcodec/vvc_sei.h

[FFmpeg-devel] [PATCH v3 05/11] avcodec/cbs_h265: fix undef SEI_TYPE_X

2021-01-11 Thread Nuo Mi
--- libavcodec/cbs_h265_syntax_template.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/cbs_h265_syntax_template.c b/libavcodec/cbs_h265_syntax_template.c index 48fae82d04..c0e94683a2 100644 --- a/libavcodec/cbs_h265_syntax_template.c +++ b/libavcodec/cbs_h265_

[FFmpeg-devel] [PATCH v3 11/11] avcodec: add vvc metadata bsf

2021-01-11 Thread Nuo Mi
use following command to test: ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vvc out.bin 93.17%(232/249) can bit match with original clips 6.83%(17/249) are not bit match, the original clips has redundant emulation prevent bytes --- configure | 1 + libavcodec/Makefile

[FFmpeg-devel] [PATCH v3 10/11] avformat: add h266/vvc muxer

2021-01-11 Thread Nuo Mi
--- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 25 + 3 files changed, 27 insertions(+) diff --git a/libavformat/Makefile b/libavformat/Makefile index 4a5406da38..0253aa7d5a 100644 --- a/libavformat/Makefile +++ b/libavforma

[FFmpeg-devel] [PATCH v3 09/11] avcodec: add vvc parser

2021-01-11 Thread Nuo Mi
--- configure | 1 + libavcodec/Makefile | 1 + libavcodec/parsers.c| 1 + libavcodec/vvc_parser.c | 299 4 files changed, 302 insertions(+) create mode 100644 libavcodec/vvc_parser.c diff --git a/configure b/configure index 49

[FFmpeg-devel] [PATCH v3 08/11] avcodec/h2645_parse: add nal header parser for h266/vvc

2021-01-11 Thread Nuo Mi
--- libavcodec/h2645_parse.c | 74 ++-- 1 file changed, 71 insertions(+), 3 deletions(-) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index a36ef4f5a0..35f9d035a9 100644 --- a/libavcodec/h2645_parse.c +++ b/libavcodec/h2645_parse.c @@ -1,5 +

[FFmpeg-devel] [PATCH v3 06/11] avcodec/cbs_h2645: reface, move zero bytes check to a function

2021-01-11 Thread Nuo Mi
--- libavcodec/cbs_h2645.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 434322492c..5d7ae95931 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -1207,6 +1207,20 @@ static int cb

[FFmpeg-devel] [PATCH v3 00/11] add vvc raw demuxer, muxer, parser, metadata bsf

2021-01-11 Thread Nuo Mi
Changes since v2: Set resolution and format in vvc_parser. It makes metadata bsf working without vvdec decoder. Metadata passthrough test gets 100% syntax match with vtm 11 conformance clips Change VVC_MAX_TILE_ROWS to 22, print error if it's larger than this. Remove unused vps and sei types. Mov

[FFmpeg-devel] [PATCH v2 3/3] {avcodec, avformat}: add TTML encoder and muxer

2021-01-11 Thread Jan Ekström
From: Jan Ekström Enables encoding of other subtitle formats into TTML and writing them out as such documents. Signed-off-by: Jan Ekström --- Changelog | 1 + doc/general_contents.texi | 1 + libavcodec/Makefile| 1 + libavcodec/allcodecs.c | 1 + libavcod

Re: [FFmpeg-devel] [PATCH] [RFC][v2] Tech Resolution Process

2021-01-11 Thread Lynne
Jan 11, 2021, 14:03 by j...@videolan.org: > --- > doc/dev_community/resolution_process.md | 89 + > 1 file changed, 89 insertions(+) > create mode 100644 doc/dev_community/resolution_process.md > > diff --git a/doc/dev_community/resolution_process.md > b/doc/dev_communit

Re: [FFmpeg-devel] [PATCH 0/5] FIFO meta muxer related improvements

2021-01-11 Thread Jan Ekström
On Mon, Dec 7, 2020 at 12:08 PM Jan Ekström wrote: > > The primary parts of this are patches 1,4,5. 2 and 3 were just noticed when > poking at the recovery timestamp logic, where the stream-time comparison logic > seemed somewhat weird (such as comparing the pts to last_recovery_ts only if > last_

Re: [FFmpeg-devel] [PATCH] avformat/fifo: utilize a clone packet for muxing

2021-01-11 Thread Jan Ekström
On Tue, Dec 8, 2020 at 2:54 PM Jan Ekström wrote: > > From: Jan Ekström > > This way the timestamp adjustments do not have to be manually > undone in case of failure and need to recover/retry. > > Fixes an issue where the timestamp adjustment would be re-done over > and over again when recovery b

[FFmpeg-devel] [PATCH v2 1/3] avutil/{avstring, bprint}: add XML escaping from ffprobe to avutil

2021-01-11 Thread Jan Ekström
From: Stefano Sabatini --- libavutil/avstring.h | 1 + libavutil/bprint.c | 14 ++ tools/ffescape.c | 1 + 3 files changed, 16 insertions(+) diff --git a/libavutil/avstring.h b/libavutil/avstring.h index ee225585b3..79bb920a70 100644 --- a/libavutil/avstring.h +++ b/libavuti

[FFmpeg-devel] [PATCH v2 2/3] ffprobe: switch to av_bprint_escape for XML escaping

2021-01-11 Thread Jan Ekström
From: Jan Ekström Signed-off-by: Jan Ekström --- fftools/ffprobe.c | 29 - 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 3453aa09ff..b1fccad65e 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -167

[FFmpeg-devel] [PATCH v2 0/3] Initial implementation of TTML encoding/muxing

2021-01-11 Thread Jan Ekström
I've intentionally kept this initial version simple (no styling etc) to focus on the basics. As this goes through review, additional features can be added (I had initial PoC for styling implemented some time around previous VDD), and there is another patch set in my queue which would then add suppo

Re: [FFmpeg-devel] [PATCH] avcodec/cbs: constify decompose_unit_types

2021-01-11 Thread James Almer
On 1/10/2021 8:04 PM, Andreas Rheinhardt wrote: James Almer: CBS doesn't change its contents in any way whatsoever internally, and most users already set it to a const array. Signed-off-by: James Almer --- libavcodec/av1_frame_split_bsf.c | 2 +- libavcodec/av1_parser.c | 2 +- li

[FFmpeg-devel] [PATCH] [RFC][v2] Tech Resolution Process

2021-01-11 Thread Jean-Baptiste Kempf
--- doc/dev_community/resolution_process.md | 89 + 1 file changed, 89 insertions(+) create mode 100644 doc/dev_community/resolution_process.md diff --git a/doc/dev_community/resolution_process.md b/doc/dev_community/resolution_process.md new file mode 100644 index 0

Re: [FFmpeg-devel] [PATCH] [RFC] Tech Resolution Process

2021-01-11 Thread Jean-Baptiste Kempf
On Sun, 6 Dec 2020, at 15:10, Nicolas George wrote: > I think another clause is needed around here: Added. > > +Further replies to answers are permitted, as long as they conform to the > > +community standards of politeness, they are limited to 100 words, and are > > not > > +nested more than on

Re: [FFmpeg-devel] [PATCH] Add support for "omp simd" pragma.

2021-01-11 Thread Paul B Mahol
On Mon, Jan 11, 2021 at 1:26 AM Carl Eugen Hoyos wrote: > Am So., 10. Jan. 2021 um 19:55 Uhr schrieb Lynne : > > > > Jan 10, 2021, 17:43 by reimar.doeffin...@gmx.de: > > > > > From: Reimar Döffinger > > > > > > This requests loops to be vectorized using SIMD > > > instructions. > > > The perform

Re: [FFmpeg-devel] [PATCH] Moves yuv2yuvX_sse3 to yasm, unrolls main loop and other small optimizations for ~20% speedup.

2021-01-11 Thread Alan Kelly
It's a bug in the patch. The tail not processed by the sse3/avx2 version is done by the mmx version. I used offset to account for the src pixels already processed, however, dither is modified if offset is not 0. In cases where there is a tail and offset is 0, this bug appears. I am working on a sol