Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2121
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Manuel Castilla (manzanilla)
on May 17 2021, 11:43 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
void XOperation::get_input_area_of_interest(const int input_idx,
const rcti &output_rect,
rcti &r_input_rect)
{
switch (input_idx) {
case 0: {
/* We do bilinear sampling on first input so we need +1 width/height. */
BLI_init(&r_input_rect,
output_rect.xmin,
output_rect.xmax + 1,
output_rect.ymin,
output_rect.ymax + 1);
break;
}
case 1: {
/* On second input we only read first pixel. */
BLI_init(&r_input_rect, 0, 1, 0, 1);
break;
}
default: {
/* Same as output_rect (default implementation) */
NodeOperation::get_input_area_of_interest(input_idx, output_rect, r_input_rect);
break;
}
}
}
Event Timeline
Manuel Castilla (manzanilla)
created this paste.
May 17 2021, 11:43 PM
Manuel Castilla (manzanilla)
mentioned this in
D11113: Compositor: Full-frame base system
.
May 18 2021, 12:14 AM
Log In to Comment