MppBuffer 为硬件用的 dmabuf 内存的封装。MppPacket 为一维缓存封装,可以从 MppMem 和 MppBuffer ...
一个可行的办法是用通过3.4以上版本ffmpeg调用mpp解码,或者gstreamer的appsink(参考gstreamer+opencv),得到含有drm_prime的frame,取出dmabuf,通过v4l2的ioctl操作rga,把取出合成到目标buffer上。目标buffer可以通过drm申请,显示也可以通过drm显示。 这个主要的问题是没有写demo,所以需要user根据前面的rga-v4l2-demo和网络上...
[ 174.662557] rk_vcodec: mpp_task_attach_fd:1776: can't import dma-buf 122[ 174.662564] rk_vcodec: mpp_translate_reg_address:1832: reg[ 0]: 0x0000007a fd 122 failed[ 174.662570] rk_vcodec: mpp_task_dump_mem_region:2019: --- dump task 0 mem region --- dtc -I fs -O dts /pro...
55:46][64021.499870][ T6554] rk_vcodec: mpp_task_attach_fd:1696: can't import dma-buf ...
(char*)mpp_buffer_get_ptr(buffer); // qDebug()<<"resize :"<
EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_yuv_surface EGL_EXT_pixel_format_float EGL_ARM_pixmap_multisample_discard EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image EGL_KHR_create_context EGL_KHR_surfaceless_context EGL_KHR_gl_texture_cubemap...
"filesrc location=/usr/local/test.mp4 ! qtdemux ! h264parse ! mppvideodec ! v4l2video0convert output-io-mode=dmabuf capture-io-mode=dmabuf ! video/x-raw,format=BGR,width=(int)1920,height=(int)1080 ! appsink caps=video/x-raw,format=BGR name=sink" ...
2. Mpp support all rockchip chipset now including: RK29XX/RK30XX/RK31XX RK3288/RK3368/RK3399 RK3228/RK3229/RK3228H/RK3328 RV1108/RV1107 3. Mpp support all format hardware can support except VC1. 4. you can get demo about mpp applied to linux and android. Liunx : https://github....
Merging configs/rockchip/multimedia/mpp.config Merging configs/rockchip/wifibt/bt.config Merging configs/rockchip/wifibt/network.config Merging configs/rockchip/wifibt/wireless.config Merging configs/rockchip/benchmark.config Merging configs/rockchip/chromium.config ...
dnl gst_dmabuf_memory_get_fd (gstreamer-allocators) AG_GST_CHECK_MODULES([GST_ALLOCATORS], [gstreamer-allocators-$GST_API_VERSION], [$GSTPB_REQ], [yes]) AG_GST_CHECK_MODULES([GST_VIDEO], [gstreamer-video-$GST_API_VERSION], [$GSTPB_REQ], yes) ...