1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2026-06-09 00:37:18 +02:00

swscale/ops_chain: simplify ff_sws_op_compile_tables() signature

This no longer accesses prev/next as a result of the `unused` removal, so
the signature can be simplified to just take the op directly.

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-04-04 20:05:54 +02:00
parent 064600585e
commit dacbf080f3
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
for (int i = 0; i < ops->num_ops; i++) {
ret = ff_sws_op_compile_tables(ctx, tables, FF_ARRAY_ELEMS(tables),
ops, i, SWS_BLOCK_SIZE, chain);
&ops->ops[i], SWS_BLOCK_SIZE, chain);
if (ret < 0) {
av_log(ctx, AV_LOG_TRACE, "Failed to compile op %d\n", i);
ff_sws_op_chain_free(chain);
+1 -2
View File
@@ -178,10 +178,9 @@ static int op_match(const SwsOp *op, const SwsOpEntry *entry)
}
int ff_sws_op_compile_tables(SwsContext *ctx, const SwsOpTable *const tables[],
int num_tables, SwsOpList *ops, int ops_index,
int num_tables, const SwsOp *op,
const int block_size, SwsOpChain *chain)
{
const SwsOp *op = &ops->ops[ops_index];
const unsigned cpu_flags = av_get_cpu_flags();
const SwsOpEntry *best = NULL;
const SwsOpTable *best_table = NULL;
+1 -1
View File
@@ -169,7 +169,7 @@ struct SwsOpTable {
* Returns 0 or a negative error code.
*/
int ff_sws_op_compile_tables(SwsContext *ctx, const SwsOpTable *const tables[],
int num_tables, SwsOpList *ops, int ops_index,
int num_tables, const SwsOp *op,
const int block_size, SwsOpChain *chain);
#endif
+1 -1
View File
@@ -1016,7 +1016,7 @@ static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
}
ret = ff_sws_op_compile_tables(ctx, tables, FF_ARRAY_ELEMS(tables),
ops, i, op_block_size, chain);
op, op_block_size, chain);
if (ret < 0) {
av_log(ctx, AV_LOG_TRACE, "Failed to compile op %d\n", i);
ff_sws_op_chain_free(chain);