I used pixel datawidget to display video from camera through the DCMI but i only get 1 frame on the screen like in snapshot mode not video. i think i must i must the pixel widget to refresh for every frame but i dont know where to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 12:34 AM
Sounds like you need to call invalidate() on your widget.
This is done in the view on the screen that has the widget. when you have defined a function that can invalidate the view, your presenter can call that function.
lastly the model will have to call the presenter.
your model have the function called tick() which is called each time a frame is finished rendering. this way you can easily control if you want to wait a couple of frames before refreshing the screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 1:52 AM
@HP​
Thank you. another thing how to put GUI widgets above the pixel widget. till now all other GUI widgets are beneath the pixel data widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 2:22 AM
That is most likely because you have added the pixel widget last in the designer.
In the designer, select the screen in the top left corner. open the drop-down box and see all the elements in your design there. you can re-arrange the order by dragging the items up or down. this also changes the layering of your items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 2:42 AM
@HP​
I tried this before but its not visible there and i think thats because you can not add pixel Data Widget from the designer directly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 3:04 AM
@HP​
Thanks for your help i found way to solve it.
Best Regards
Mahmoud
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-04 4:52 AM
@Community member​ - that sounds great!
Can you tell me what you did to make it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-06 7:14 AM
@HP​
I just changed the order in the generated GUI/src/screen1viewbase.cpp. but i am not sure if this is the right solution. maybe there is another better way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-06 8:39 AM
Sounds like a fine solution if you don't have the option to rearrange the orders inside the TouchGFX.
I'm not familiar with the pixel widget you're referring to so it might not pop up.
@Martin KJELDSEN​ might be able to tell you if the widget is accessible through the designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-06 11:44 PM
Hi,
There's no PixelData widget accessible from the designer - It's kind of the first attempts at loading data from somewhere other than flash so it's becoming legacy and won't see support from the designer.
What you can use instead is an image which can then be configured as a dynamic image to load its data from somewhere in memory that you specify.
/Martin
