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.

Offscreen graphics image support in mspware grlib

Other Parts Discussed in Thread: MSPWARE, MSP430FR5969, MSP-EXP430FR5969

 I'm in need of an Offscreen image driver for mspware's grlib.  It seems like there was support for it at one time, but it has been removed from mspware.

Where are the official repositories of Grlib, and where can I find a supported MSP432 offscreen drive?

 

There still seem to be some “off screen” remnants in grlib.h

 

  962 extern uint32_t Graphics_getOffscreen1BppImageSize(uint16_t width,

  963  uint16_t height);

  964 extern uint32_t Graphics_getOffscreen4BppImageSize(uint16_t width,

  965  uint16_t height);

  966 extern uint32_t Graphics_getOffScreen8BPPSize(uint16_t width, uint16_t height);

 

and

 

  999 extern void Graphics_initOffscreen1BppImage(Graphics_Display *display,

 1000  uint8_t *image, int32_t width, int32_t height);

 1001 extern void Graphics_initOffscreen4BppImage(Graphics_Display *display,

 1002  uint8_t *image, int32_t width, int32_t height);

 1003 extern void Graphics_setOffscreen4BppPalette(Graphics_Display *display,

 1004  uint32_t *ppalette, uint32_t offset, uint32_t count);

 1005 extern void Graphics_initOffscreen8BppImage(Graphics_Display *display,

 1006  uint8_t *image, int32_t width, int32_t height);

 1007 extern void Graphics_setOffscreen8BppPalette(Graphics_Display *display,

 1008  uint32_t *ppalette, uint32_t offset, uint32_t count);

 

The  getOffscreen ImageSize function are defined in GrLib/grlib/image.c

363:uint32_t Graphics_getOffscreen1BppImageSize(uint16_t width, uint16_t height)

382:uint32_t Graphics_getOffscreen4BppImageSize(uint16_t width, uint16_t height)

401:uint32_t Graphics_getOffScreen8BPPSize(uint16_t width, uint16_t height)

 

but the initOffscreen Image and setOffscreen Palette functions are defined
in files that are no longer included with the MSPWare Grlib,

but they can be found in the Stellaris and Tiva-c grlib distributions, but those distributions are "older"

 

 

 

 
 
There still seem to be some “off screen” remnants in grlib.h
 
  962 extern uint32_t Graphics_getOffscreen1BppImageSize(uint16_t width,
  963  uint16_t height);
  964 extern uint32_t Graphics_getOffscreen4BppImageSize(uint16_t width,
  965  uint16_t height);
  966 extern uint32_t Graphics_getOffScreen8BPPSize(uint16_t width, uint16_t height);
 
and
 
 1000  uint8_t *image, int32_t width, int32_t height);
 1002  uint8_t *image, int32_t width, int32_t height);
 1004  uint32_t *ppalette, uint32_t offset, uint32_t count);
 1006  uint8_t *image, int32_t width, int32_t height);
 1008  uint32_t *ppalette, uint32_t offset, uint32_t count);
 
The  getOffscreen ImageSize function are defined in GrLib/grlib/image.c
363:uint32_t Graphics_getOffscreen1BppImageSize(uint16_t width, uint16_t height)
382:uint32_t Graphics_getOffscreen4BppImageSize(uint16_t width, uint16_t height)
401:uint32_t Graphics_getOffScreen8BPPSize(uint16_t width, uint16_t height)
 
but the initOffscreen Image and setOffscreen Palette functions are defined
in files that are no longer included with the MSPWare Grlib,
but they can be found in the Stellaris and Tiva-c grlib distributions.


 
 
 
  • David,
    I will need to look into the specific APIs you are referring to but as you point out there are no examples available for the MSP432. An example can be found with the MSP430FR5969 (dev.ti.com/.../ ) which utilizes an array (offscreen image) and specifically utilizes the flush function.

    Additionally, I can work with you offline to develop an example for MSP432 that utilizes the DMA if that would be of any interest.

    Regards,
    Chris

  • Thanks Chris,

    The example
    msp430/MSPWare_3_20_00_37/examples/boards/MSP-EXP430FR5969/MSP-EXP430FR5969_Software_Examples/Firmware/Source/430BOOST-SHARP96_GrlibExample_FR5969
    does show an off screen _pre-computed_ image ( I have had success with displaying pre-computed image files using Graphics_drawImage )

    I wasn't clear on my request, that I am trying to create the image in the off screen buffer at run time,
    an then send it out - hopefully with DMA to the display on the Educational Boosterpack.

**Attention** This is a public forum