831 views
in Embedded Wizard Studio by

I have develop a Group under the size of 3840*2160, but right now, I need to put it on 1080P screen, so I did this:

I set the root application-profile's  screen size <1920, 1080> (the black rect), and then I put a 1920*1080 warp group(the red rect) on the root application. The warp group's "Group" is the 3840*2160-group I developed(the green rect).

It works fine in EW IDE simulator, but when I upload it in to device, it shows error number 179:  Invalid size (width=3840, height=2160) of bitmap to create.

Can EW support the usage like this? If no, is there another better way?

Looking forward to your reply. Thank you !

1 Answer

0 votes
by
Hello,

per default the maximum width and height of a bitmap is limited to 2048 x 2048 pixel - this is the reason why you got the error message. In order to warp a group it has to be buffered - this means, that the content of your group is drawn into an offscreen bitmap which has the size 3840 x 2160 pixel.

In order to avoid this error message, you can define EW_MAX_SURFACE_WIDTH and EW_MAX_SURFACE_HEIGHT to the maximum of 4096 (e.g. as compiler option within your makefile or project settings). Then you can build your project.

But anyhow, please note that (depending on your target) this approach may require a lot of memory (e.g. 3840x2160 x RGBA8888 = 32 MByte (!!!)) and it may take a long time to warp such a bitmap.

Best regards,

Manfred.
by
It works!  Thank you!
by
Great to hear that it is working!

What target are you using? How is the performance?

Best regards,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...