acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

lv_example_ffmpeg_1.c (530B)

      1 #include "../../lv_examples.h"
      2 #if LV_BUILD_EXAMPLES
      3 #if LV_USE_FFMPEG
      4 
      5 
      6 /**
      7  * Open an image from a file
      8  */
      9 void lv_example_ffmpeg_1(void)
     10 {
     11     lv_obj_t * img = lv_img_create(lv_scr_act());
     12     lv_img_set_src(img, "./lvgl/examples/libs/ffmpeg/ffmpeg.png");
     13     lv_obj_center(img);
     14 }
     15 
     16 #else
     17 
     18 void lv_example_ffmpeg_1(void)
     19 {
     20     /*TODO
     21      *fallback for online examples*/
     22 
     23     lv_obj_t * label = lv_label_create(lv_scr_act());
     24     lv_label_set_text(label, "FFmpeg is not installed");
     25     lv_obj_center(label);
     26 }
     27 
     28 #endif
     29 #endif