This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: How to Display RAW/YUV Images in GUI Composer

Part Number: CODECOMPOSER


Tool/software:

Hi,

I'm currently working on a project using GUI Composer and I need to display a RAW or YUV image. I see that it's possible to perform a conversion to BMP using JavaScript, but I'm unsure how to approach this in the context of GUI Composer. 

  1. Is it feasible to convert RAW/YUV images to BMP using JavaScript's standard library within GUI Composer?
  2. If so, are there any particular functions, libraries, or workflows that you recommend for handling this conversion?
  3. Once converted, what's the best way to render and display the image in GUI Composer?

Any guidance would be greatly appreciated!

Best,

Chau

  • Hi Chau,

    It sounds like you are looking for Image Analyzer type of functionality with GC. I don't believe we have such a view. As for the file conversion, I will need to follow up with the GC team for details.

    Thanks

    ki

  • Hi Chau, 

    GUI Composer application under the hood is like a html/js web page. This means that you are not restricted to using only features available in GUI Composer. You can add external javascript libraries to your project and then load those .js file to perform additional capabilities. The main thing that you need to consider is license that a particular library is released under, which is important if releasing an application to TI's customers. 

    As an example, here is a javascript library that handles YUV. GitHub - bvibber/yuv-canvas: JS class to draw YUV image frame buffers to an HTML5 canvas It is licensed under MIT license. 

    RAW: I have done a bit of reading and it seems like there is a lot more variation with this format, see here: Raw image format - Wikipedia

     I am not sure what you are using in your application. I would try to use gc-widget-image component that is built into GC and see if raw images are displayed. 

    Martin