You've already forked FFmpeg
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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user