From: "Ronald S. Bultje" <rsbultje@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] avcodec/x86/hevc: fix luma 12b overflow
Date: Sun, 25 Feb 2024 11:41:39 -0500
Message-ID: <CAEEMt2=K2Hav+twjEjwdHRe92JgzwuHTJ+pCT=b205x2W8bqLQ@mail.gmail.com> (raw)
In-Reply-To: <f3fe04e4-6880-40a9-a06f-3e42f30dd6cf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]
Hi,
On Sun, Feb 25, 2024 at 11:28 AM James Almer <jamrial@gmail.com> wrote:
> On 2/25/2024 1:22 PM, Ronald S. Bultje wrote:
> > On Sun, Feb 25, 2024 at 10:56 AM Ronald S. Bultje <rsbultje@gmail.com>
> > wrote:
> >
> >> Hi,
> >>
> >> On Sun, Feb 25, 2024 at 3:28 AM J. Dekker <jdek@itanimul.li> wrote:
> >>
> >>> Weak filter can overflow in delta0 calculation before >> 4 in int16.
> >>>
> >>> Signed-off-by: J. Dekker <jdek@itanimul.li>
> >>> ---
> >>>
> >>> I do not know x86 simd at all, so this is just an attempt to fix
> >>> the implementation rather than write extremely performant code.
> >>>
> >>> Suggestions welcome.
> >>>
> >>
> >> https://pastebin.com/KvcbQ2nK
> >>
> >
> > Attached a slightly adjusted version which does sse2 in 16bit also.
> >
> > Ronald
>
> > diff --git a/libavcodec/x86/hevc_deblock.asm
> b/libavcodec/x86/hevc_deblock.asm
> > index 85ee4800bb..869301caff 100644
> > --- a/libavcodec/x86/hevc_deblock.asm
> > +++ b/libavcodec/x86/hevc_deblock.asm
> > @@ -31,6 +31,7 @@ cextern pw_1023
> > pw_pixel_max_12: times 8 dw ((1 << 12)-1)
> > pw_m2: times 8 dw -2
> > pd_1 : times 4 dd 1
> > +pd_8 : times 8 dd 8
>
> This is unused.
>
Fixed.
Ronald
[-- Attachment #2: 0001-hevc-x86-deblock-fix-12bit-overflow.patch --]
[-- Type: application/octet-stream, Size: 2294 bytes --]
[-- Attachment #3: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-02-25 16:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-25 8:27 J. Dekker
2024-02-25 15:56 ` Ronald S. Bultje
2024-02-25 16:22 ` Ronald S. Bultje
2024-02-25 16:24 ` Ronald S. Bultje
2024-02-25 16:28 ` James Almer
2024-02-25 16:41 ` Ronald S. Bultje [this message]
2024-02-25 22:30 ` Henrik Gramner via ffmpeg-devel
2024-02-25 23:00 ` Ronald S. Bultje
2024-02-26 14:26 ` J. Dekker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEEMt2=K2Hav+twjEjwdHRe92JgzwuHTJ+pCT=b205x2W8bqLQ@mail.gmail.com' \
--to=rsbultje@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git