This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 083089e047e64c6b783534ed4e6ffa47f9e6acbb Author: Ramiro Polla <[email protected]> AuthorDate: Tue Jun 16 13:56:20 2026 +0200 Commit: Ramiro Polla <[email protected]> CommitDate: Mon Jun 22 13:56:31 2026 +0200 swscale/aarch64/ops: remove redundant single-component packed read/write These functions are essentially the same as single-component planar read/write, and are actually never instantiated. This was left over from the initial implementation. Sponsored-by: Sovereign Tech Fund Signed-off-by: Ramiro Polla <[email protected]> --- libswscale/aarch64/ops_asmgen.c | 56 ++++++----------------------------------- 1 file changed, 8 insertions(+), 48 deletions(-) diff --git a/libswscale/aarch64/ops_asmgen.c b/libswscale/aarch64/ops_asmgen.c index 25d98cd42b..20da4d5bcc 100644 --- a/libswscale/aarch64/ops_asmgen.c +++ b/libswscale/aarch64/ops_asmgen.c @@ -449,23 +449,6 @@ static void asmgen_op_read_nibble(SwsAArch64Context *s, const SwsAArch64OpImplPa } } -static void asmgen_op_read_packed_1(SwsAArch64Context *s, const SwsAArch64OpImplParams *p) -{ - RasmContext *r = s->rctx; - AArch64VecViews vl[1]; - AArch64VecViews vh[1]; - - a64op_vec_views(s->vl[0], &vl[0]); - a64op_vec_views(s->vh[0], &vh[0]); - - switch ((s->use_vh ? 0x100 : 0) | s->vec_size) { - case 0x008: i_ldr(r, vl[0].d, a64op_post(s->in[0], s->vec_size * 1)); break; - case 0x010: i_ldr(r, vl[0].q, a64op_post(s->in[0], s->vec_size * 1)); break; - case 0x108: i_ldp(r, vl[0].d, vh[0].d, a64op_post(s->in[0], s->vec_size * 2)); break; - case 0x110: i_ldp(r, vl[0].q, vh[0].q, a64op_post(s->in[0], s->vec_size * 2)); break; - } -} - static void asmgen_op_read_packed_n(SwsAArch64Context *s, const SwsAArch64OpImplParams *p, RasmOp *vx) { RasmContext *r = s->rctx; @@ -479,13 +462,10 @@ static void asmgen_op_read_packed_n(SwsAArch64Context *s, const SwsAArch64OpImpl static void asmgen_op_read_packed(SwsAArch64Context *s, const SwsAArch64OpImplParams *p) { - if (p->mask == 0x0001) { - asmgen_op_read_packed_1(s, p); - } else { - asmgen_op_read_packed_n(s, p, s->vl); - if (s->use_vh) - asmgen_op_read_packed_n(s, p, s->vh); - } + av_assert0(p->mask != 0x0001); + asmgen_op_read_packed_n(s, p, s->vl); + if (s->use_vh) + asmgen_op_read_packed_n(s, p, s->vh); } static void asmgen_op_read_planar(SwsAArch64Context *s, const SwsAArch64OpImplParams *p) @@ -574,23 +554,6 @@ static void asmgen_op_write_nibble(SwsAArch64Context *s, const SwsAArch64OpImplP } } -static void asmgen_op_write_packed_1(SwsAArch64Context *s, const SwsAArch64OpImplParams *p) -{ - RasmContext *r = s->rctx; - AArch64VecViews vl[1]; - AArch64VecViews vh[1]; - - a64op_vec_views(s->vl[0], &vl[0]); - a64op_vec_views(s->vh[0], &vh[0]); - - switch ((s->use_vh ? 0x100 : 0) | s->vec_size) { - case 0x008: i_str(r, vl[0].d, a64op_post(s->out[0], s->vec_size * 1)); break; - case 0x010: i_str(r, vl[0].q, a64op_post(s->out[0], s->vec_size * 1)); break; - case 0x108: i_stp(r, vl[0].d, vh[0].d, a64op_post(s->out[0], s->vec_size * 2)); break; - case 0x110: i_stp(r, vl[0].q, vh[0].q, a64op_post(s->out[0], s->vec_size * 2)); break; - } -} - static void asmgen_op_write_packed_n(SwsAArch64Context *s, const SwsAArch64OpImplParams *p, RasmOp *vx) { RasmContext *r = s->rctx; @@ -604,13 +567,10 @@ static void asmgen_op_write_packed_n(SwsAArch64Context *s, const SwsAArch64OpImp static void asmgen_op_write_packed(SwsAArch64Context *s, const SwsAArch64OpImplParams *p) { - if (p->mask == 0x0001) { - asmgen_op_write_packed_1(s, p); - } else { - asmgen_op_write_packed_n(s, p, s->vl); - if (s->use_vh) - asmgen_op_write_packed_n(s, p, s->vh); - } + av_assert0(p->mask != 0x0001); + asmgen_op_write_packed_n(s, p, s->vl); + if (s->use_vh) + asmgen_op_write_packed_n(s, p, s->vh); } static void asmgen_op_write_planar(SwsAArch64Context *s, const SwsAArch64OpImplParams *p) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
