swscale/ops_dispatch: remove unnecessary SwsOpExec fields

These were abstraction-violating in the first place. Good riddance.

This partially reverts commit c911295f09.

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-03-07 01:42:53 +01:00
parent 143cb56501
commit bd9590db70
3 changed files with 1 additions and 11 deletions

View File

@@ -180,9 +180,6 @@ static void op_pass_setup(const SwsFrame *out, const SwsFrame *in,
exec->in_bump[i] = exec->in_stride[i] - blocks_main * exec->block_size_in;
exec->out_bump[i] = exec->out_stride[i] - blocks_main * exec->block_size_out;
}
exec->in_frame = in;
exec->out_frame = out;
}
/* Dispatch kernel over the last column of the image using memcpy */

View File

@@ -54,16 +54,11 @@ typedef struct SwsOpExec {
/* Subsampling factors for each plane */
uint8_t in_sub_y[4], out_sub_y[4];
uint8_t in_sub_x[4], out_sub_x[4];
/* Pointers back to the original SwsFrame */
const SwsFrame *in_frame;
const SwsFrame *out_frame;
} SwsOpExec;
static_assert(sizeof(SwsOpExec) == 24 * sizeof(void *) +
6 * sizeof(int32_t) +
16 * sizeof(uint8_t) +
2 * sizeof(void *),
16 * sizeof(uint8_t),
"SwsOpExec layout mismatch");
/**

View File

@@ -141,8 +141,6 @@ struc SwsOpExec
.out_sub_y4 resb 4
.in_sub_x4 resb 4
.out_sub_x4 resb 4
.in_hwframe_ref resq 1
.out_hwframe_ref resq 1
endstruc
struc SwsOpImpl