swscale/aarch64/ops: compute SWS_OP_PACK mask directly

Instead of implicitly relying on SwsComps.unused, which contains the exact
same information. (cf. ff_sws_op_list_update_comps)

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-04-02 14:26:45 +02:00
parent 6d1e549195
commit a797e30f71

View File

@@ -169,10 +169,8 @@ static int convert_to_aarch64_impl(SwsContext *ctx, const SwsOpList *ops, int n,
break;
case AARCH64_SWS_OP_PACK:
out->mask = 0;
MASK_SET(out->mask, 0, !op->comps.unused[0]);
MASK_SET(out->mask, 1, !op->comps.unused[1]);
MASK_SET(out->mask, 2, !op->comps.unused[2]);
MASK_SET(out->mask, 3, !op->comps.unused[3]);
for (int i = 0; i < 4 && op->pack.pattern[i]; i++)
MASK_SET(out->mask, i, 1);
MASK_SET(out->pack, 0, op->pack.pattern[0]);
MASK_SET(out->pack, 1, op->pack.pattern[1]);
MASK_SET(out->pack, 2, op->pack.pattern[2]);