GUI_GIF_DrawEx is not working

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • GUI_GIF_DrawEx is not working

      I have observed that the _GetData(void *p, const U8**pData, Unsigned NumBytes, U32 off); callback function is not working.
      Below is the code I am using:
      f_open and f_read are working fine.
      The gif file size is 330Kbyte size.

      code is attached as image

      The APP_GetData() is getting called only once.
      I tried reducing the acBuffer[] size to 512 bytes but nochange.
      In debug mode I observed that this APP_GetData() iscalled only once.
      Temporary check:
      I have splitted the GIF animation file into subfiles inmy local PC and stored them into SD card (16GB size).
      Each gif file size is 3KB to 10KB and I calledGUI_ANIM_Create() and GUI_ANIM_AddItem() and able to create the animation butits not that smooth as expected.
      For this API I am able to see the callback function givenin GUI_ANIM_AddItem() is getting called.
      I am not sure what difference I am doing when I callAPP_GetData().
      Images
      • emwin_issue.png

        28.59 kB, 1,152×648, viewed 138 times
    • Hi,

      It seems like you make no use of the "Off" parameter. It is crucial that you set the file pointer to the given offset, before reading any file data to the buffer.

      What happens if you do that in your _GetData routine?

      Best regards,
      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.