Copy link to clipboard
Copied
I am developing a plugin using SmartRender.
I have applied the plugin under development to a 1920*1080 image with a 960*540 composition.
When using 'checkout_layer_pixels' to get 'PF_EffectWorld', I was provided an image of 1154*650 and could not get the entire image.
Is there any way to get the entire image applied?
Also, this problem can be solved by setting the size of the composition to 1920*1080 and I believe the problem is related to the size of the composition.
Resolved.
PF_LRect full = {0, 0, in_data->width, in_data->height};
UnionLRect(&full, &req.rect);
PF_CheckoutResult input;
ERR(extra->cb->checkout_layer(in_data->effect_ref, 0, 0, &req,
in_data->current_time, in_data->time_step,
in_data->time_scale, &input));
By writing the above, the maximum resolution could be obtained according to in_data->width, in_data->height.
Copy link to clipboard
Copied
Resolved.
PF_LRect full = {0, 0, in_data->width, in_data->height};
UnionLRect(&full, &req.rect);
PF_CheckoutResult input;
ERR(extra->cb->checkout_layer(in_data->effect_ref, 0, 0, &req,
in_data->current_time, in_data->time_step,
in_data->time_scale, &input));
By writing the above, the maximum resolution could be obtained according to in_data->width, in_data->height.