swscale/graph: add typedef for SwsPassSetup

Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
Niklas Haas
2026-03-07 01:15:06 +01:00
parent 254c07bf60
commit 5b8889f4e8

View File

@@ -45,6 +45,12 @@ typedef struct SwsGraph SwsGraph;
typedef void (*SwsPassFunc)(const SwsFrame *out, const SwsFrame *in,
int y, int h, const SwsPass *pass);
/**
* Function to run from the main thread before processing any lines.
*/
typedef void (*SwsPassSetup)(const SwsFrame *out, const SwsFrame *in,
const SwsPass *pass);
/**
* Represents an allocated output buffer for a filter pass.
*/
@@ -88,7 +94,7 @@ struct SwsPass {
/**
* Called once from the main thread before running the filter. Optional.
*/
void (*setup)(const SwsFrame *out, const SwsFrame *in, const SwsPass *pass);
SwsPassSetup setup;
/**
* Optional private state and associated free() function.