Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: "Martin Storsjö" <martin@martin.st>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] aarch64: hevcdsp_idct: Reuse preexisting macros for transposes
Date: Tue, 28 Feb 2023 11:47:05 +0200 (EET)
Message-ID: <82627234-f953-74fd-92bc-6c96b380b2af@martin.st> (raw)
In-Reply-To: <20230223083826.3149827-1-martin@martin.st>

On Thu, 23 Feb 2023, Martin Storsjö wrote:

> Signed-off-by: Martin Storsjö <martin@martin.st>
> ---
> libavcodec/aarch64/hevcdsp_idct_neon.S | 16 +++-------------
> 1 file changed, 3 insertions(+), 13 deletions(-)
>
> diff --git a/libavcodec/aarch64/hevcdsp_idct_neon.S b/libavcodec/aarch64/hevcdsp_idct_neon.S
> index 124c50998a..c61fcb175d 100644
> --- a/libavcodec/aarch64/hevcdsp_idct_neon.S
> +++ b/libavcodec/aarch64/hevcdsp_idct_neon.S
> @@ -25,6 +25,7 @@
>  */
>
> #include "libavutil/aarch64/asm.S"
> +#include "neon.S"
>
> const trans, align=4
>         .short          64, 83, 64, 36
> @@ -279,20 +280,9 @@ endfunc
>          sub            \out3, v28.4s, v30.4s
> .endm
>
> -.macro transpose8_4x4 r0, r1, r2, r3
> -        trn1            v2.8h, \r0\().8h, \r1\().8h
> -        trn2            v3.8h, \r0\().8h, \r1\().8h
> -        trn1            v4.8h, \r2\().8h, \r3\().8h
> -        trn2            v5.8h, \r2\().8h, \r3\().8h
> -        trn1            \r0\().4s, v2.4s, v4.4s
> -        trn2            \r2\().4s, v2.4s, v4.4s
> -        trn1            \r1\().4s, v3.4s, v5.4s
> -        trn2            \r3\().4s, v3.4s, v5.4s
> -.endm
> -
> .macro transpose_8x8 r0, r1, r2, r3, r4, r5, r6, r7
> -        transpose8_4x4  \r0, \r1, \r2, \r3
> -        transpose8_4x4  \r4, \r5, \r6, \r7
> +        transpose_4x8H  \r0, \r1, \r2, \r3, v2, v3, v4, v5
> +        transpose_4x8H  \r4, \r5, \r6, \r7, v2, v3, v4, v5
> .endm

I'll go ahead and push this.

// Martin
_______________________________________________
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".

      reply	other threads:[~2023-02-28  9:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-23  8:38 Martin Storsjö
2023-02-28  9:47 ` Martin Storsjö [this message]

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=82627234-f953-74fd-92bc-6c96b380b2af@martin.st \
    --to=martin@martin.st \
    --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