Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

How to get the whole image with SmartRender

Participant ,
Oct 02, 2023 Oct 02, 2023

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.

 

TOPICS
How to , SDK
158
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Oct 05, 2023 Oct 05, 2023

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.

Translate
Participant ,
Oct 05, 2023 Oct 05, 2023
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines