Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113基于Longan在LVGL中如何播放视屏,通过tplayer

    GUI
    2
    2
    3180
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      CheneyDu LV 2 last edited by

      我希望在LVGL播放视频,直接使用ffmeg效果很卡顿,应该是没有使用硬件加速导致的,所以我想直接调用xplayer的接口来实现视频播放,但是好像显示会有Layer的问题,想请教怎么解决?
      我是否能将Tina里的lv_driver部分移植过来来解决这个问题?

      1 Reply Last reply Reply Quote Share 1
      • A
        awwwwa LV 8 last edited by

            static lv_style_t style_scr_act;
            if (style_scr_act.prop_cnt == 0) {
                lv_style_init(&style_scr_act);
                lv_style_set_bg_opa(&style_scr_act, LV_OPA_COVER);
                lv_obj_add_style(lv_scr_act(), &style_scr_act, 0);
            }
            lv_disp_get_default()->driver->screen_transp = 1;
            lv_disp_set_bg_opa(lv_disp_get_default(), LV_OPA_TRANSP);
            /* Empty the buffer, not emptying will cause the UI to be opaque */
            lv_memset_00(lv_disp_get_default()->driver->draw_buf->buf_act,
            lv_disp_get_default()->driver->draw_buf->size * sizeof(lv_color32_t));
            lv_style_set_bg_opa(&style_scr_act, LV_OPA_TRANSP);
            lv_obj_report_style_change(&style_scr_act);
        

        设置透明层

        1 Reply Last reply Reply Quote Share 1
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策