Add coords to output when using attention based crop (#3470)

This commit is contained in:
Emanuel Jöbstl
2023-01-16 10:20:42 +01:00
committed by GitHub
parent bdc50e1d6e
commit 6d404f4d2c
5 changed files with 46 additions and 1 deletions

View File

@@ -74,6 +74,9 @@ struct PipelineBaton {
bool hasCropOffset;
int cropOffsetLeft;
int cropOffsetTop;
bool hasAttentionCenter;
int attentionX;
int attentionY;
bool premultiplied;
bool tileCentre;
bool fastShrinkOnLoad;
@@ -236,6 +239,9 @@ struct PipelineBaton {
hasCropOffset(false),
cropOffsetLeft(0),
cropOffsetTop(0),
hasAttentionCenter(false),
attentionX(0),
attentionY(0),
premultiplied(false),
tintA(128.0),
tintB(128.0),