/*
* This file is part of FFmpeg.
*
* Copyright (c) 2023 J. Dekker <jdek@itanimul.li>
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
.macro clip min, max, regs:vararg
.irp x, \regs
smax \x, \x, \min
.endr
.irp x, \regs
smin \x, \x, \max
.endr
.endm
.macro transpose_8x8B r0, r1, r2, r3, r4, r5, r6, r7, r8, r9
trn1 \r8\().8 b, \r0\().8 b, \r1\().8 b
trn2 \r9\().8 b, \r0\().8 b, \r1\().8 b
trn1 \r1\().8 b, \r2\().8 b, \r3\().8 b
trn2 \r3\().8 b, \r2\().8 b, \r3\().8 b
trn1 \r0\().8 b, \r4\().8 b, \r5\().8 b
trn2 \r5\().8 b, \r4\().8 b, \r5\().8 b
trn1 \r2\().8 b, \r6\().8 b, \r7\().8 b
trn2 \r7\().8 b, \r6\().8 b, \r7\().8 b
trn1 \r4\().4 h, \r0\().4 h, \r2\().4 h
trn2 \r2\().4 h, \r0\().4 h, \r2\().4 h
trn1 \r6\().4 h, \r5\().4 h, \r7\().4 h
trn2 \r7\().4 h, \r5\().4 h, \r7\().4 h
trn1 \r5\().4 h, \r9\().4 h, \r3\().4 h
trn2 \r9\().4 h, \r9\().4 h, \r3\().4 h
trn1 \r3\().4 h, \r8\().4 h, \r1\().4 h
trn2 \r8\().4 h, \r8\().4 h, \r1\().4 h
trn1 \r0\().2 s, \r3\().2 s, \r4\().2 s
trn2 \r4\().2 s, \r3\().2 s, \r4\().2 s
trn1 \r1\().2 s, \r5\().2 s, \r6\().2 s
trn2 \r5\().2 s, \r5\().2 s, \r6\().2 s
trn2 \r6\().2 s, \r8\().2 s, \r2\().2 s
trn1 \r2\().2 s, \r8\().2 s, \r2\().2 s
trn1 \r3\().2 s, \r9\().2 s, \r7\().2 s
trn2 \r7\().2 s, \r9\().2 s, \r7\().2 s
.endm
.macro transpose_8x16B r0, r1, r2, r3, r4, r5, r6, r7, t0, t1
trn1 \t0\().16 b, \r0\().16 b, \r1\().16 b
trn2 \t1\().16 b, \r0\().16 b, \r1\().16 b
trn1 \r1\().16 b, \r2\().16 b, \r3\().16 b
trn2 \r3\().16 b, \r2\().16 b, \r3\().16 b
trn1 \r0\().16 b, \r4\().16 b, \r5\().16 b
trn2 \r5\().16 b, \r4\().16 b, \r5\().16 b
trn1 \r2\().16 b, \r6\().16 b, \r7\().16 b
trn2 \r7\().16 b, \r6\().16 b, \r7\().16 b
trn1 \r4\().8 h, \r0\().8 h, \r2\().8 h
trn2 \r2\().8 h, \r0\().8 h, \r2\().8 h
trn1 \r6\().8 h, \r5\().8 h, \r7\().8 h
trn2 \r7\().8 h, \r5\().8 h, \r7\().8 h
trn1 \r5\().8 h, \t1\().8 h, \r3\().8 h
trn2 \t1\().8 h, \t1\().8 h, \r3\().8 h
trn1 \r3\().8 h, \t0\().8 h, \r1\().8 h
trn2 \t0\().8 h, \t0\().8 h, \r1\().8 h
trn1 \r0\().4 s, \r3\().4 s, \r4\().4 s
trn2 \r4\().4 s, \r3\().4 s, \r4\().4 s
trn1 \r1\().4 s, \r5\().4 s, \r6\().4 s
trn2 \r5\().4 s, \r5\().4 s, \r6\().4 s
trn2 \r6\().4 s, \t0\().4 s, \r2\().4 s
trn1 \r2\().4 s, \t0\().4 s, \r2\().4 s
trn1 \r3\().4 s, \t1\().4 s, \r7\().4 s
trn2 \r7\().4 s, \t1\().4 s, \r7\().4 s
.endm
.macro transpose_4x16B r0, r1, r2, r3, t4, t5, t6, t7
trn1 \t4\().16 b, \r0\().16 b, \r1\().16 b
trn2 \t5\().16 b, \r0\().16 b, \r1\().16 b
trn1 \t6\().16 b, \r2\().16 b, \r3\().16 b
trn2 \t7\().16 b, \r2\().16 b, \r3\().16 b
trn1 \r0\().8 h, \t4\().8 h, \t6\().8 h
trn2 \r2\().8 h, \t4\().8 h, \t6\().8 h
trn1 \r1\().8 h, \t5\().8 h, \t7\().8 h
trn2 \r3\().8 h, \t5\().8 h, \t7\().8 h
.endm
.macro transpose_4x8B r0, r1, r2, r3, t4, t5, t6, t7
trn1 \t4\().8 b, \r0\().8 b, \r1\().8 b
trn2 \t5\().8 b, \r0\().8 b, \r1\().8 b
trn1 \t6\().8 b, \r2\().8 b, \r3\().8 b
trn2 \t7\().8 b, \r2\().8 b, \r3\().8 b
trn1 \r0\().4 h, \t4\().4 h, \t6\().4 h
trn2 \r2\().4 h, \t4\().4 h, \t6\().4 h
trn1 \r1\().4 h, \t5\().4 h, \t7\().4 h
trn2 \r3\().4 h, \t5\().4 h, \t7\().4 h
.endm
.macro transpose_4x4H r0, r1, r2, r3, r4, r5, r6, r7
trn1 \r4\().4 h, \r0\().4 h, \r1\().4 h
trn2 \r5\().4 h, \r0\().4 h, \r1\().4 h
trn1 \r6\().4 h, \r2\().4 h, \r3\().4 h
trn2 \r7\().4 h, \r2\().4 h, \r3\().4 h
trn1 \r0\().2 s, \r4\().2 s, \r6\().2 s
trn2 \r2\().2 s, \r4\().2 s, \r6\().2 s
trn1 \r1\().2 s, \r5\().2 s, \r7\().2 s
trn2 \r3\().2 s, \r5\().2 s, \r7\().2 s
.endm
.macro transpose_4x8H r0, r1, r2, r3, t4, t5, t6, t7
trn1 \t4\().8 h, \r0\().8 h, \r1\().8 h
trn2 \t5\().8 h, \r0\().8 h, \r1\().8 h
trn1 \t6\().8 h, \r2\().8 h, \r3\().8 h
trn2 \t7\().8 h, \r2\().8 h, \r3\().8 h
trn1 \r0\().4 s, \t4\().4 s, \t6\().4 s
trn2 \r2\().4 s, \t4\().4 s, \t6\().4 s
trn1 \r1\().4 s, \t5\().4 s, \t7\().4 s
trn2 \r3\().4 s, \t5\().4 s, \t7\().4 s
.endm
.macro transpose_8x8H r0, r1, r2, r3, r4, r5, r6, r7, r8, r9
trn1 \r8\().8 h, \r0\().8 h, \r1\().8 h
trn2 \r9\().8 h, \r0\().8 h, \r1\().8 h
trn1 \r1\().8 h, \r2\().8 h, \r3\().8 h
trn2 \r3\().8 h, \r2\().8 h, \r3\().8 h
trn1 \r0\().8 h, \r4\().8 h, \r5\().8 h
trn2 \r5\().8 h, \r4\().8 h, \r5\().8 h
trn1 \r2\().8 h, \r6\().8 h, \r7\().8 h
trn2 \r7\().8 h, \r6\().8 h, \r7\().8 h
trn1 \r4\().4 s, \r0\().4 s, \r2\().4 s
trn2 \r2\().4 s, \r0\().4 s, \r2\().4 s
trn1 \r6\().4 s, \r5\().4 s, \r7\().4 s
trn2 \r7\().4 s, \r5\().4 s, \r7\().4 s
trn1 \r5\().4 s, \r9\().4 s, \r3\().4 s
trn2 \r9\().4 s, \r9\().4 s, \r3\().4 s
trn1 \r3\().4 s, \r8\().4 s, \r1\().4 s
trn2 \r8\().4 s, \r8\().4 s, \r1\().4 s
trn1 \r0\().2 d, \r3\().2 d, \r4\().2 d
trn2 \r4\().2 d, \r3\().2 d, \r4\().2 d
trn1 \r1\().2 d, \r5\().2 d, \r6\().2 d
trn2 \r5\().2 d, \r5\().2 d, \r6\().2 d
trn2 \r6\().2 d, \r8\().2 d, \r2\().2 d
trn1 \r2\().2 d, \r8\().2 d, \r2\().2 d
trn1 \r3\().2 d, \r9\().2 d, \r7\().2 d
trn2 \r7\().2 d, \r9\().2 d, \r7\().2 d
.endm
Messung V0.5 in Prozent C=94 H=92 G=92
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-05)
¤
*© Formatika GbR, Deutschland