mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-03-13 09:00:40 +08:00
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:
@@ -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 */
|
||||
|
||||
@@ -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");
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user