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.
工具/软件:Linux
很棒的酒店
我在 Android JB 系统上使用具有4个视频输入的 DRA7xx 进行板载工作。
VPDMA 加载了 FW "vpdma-1b8.fw"。
是否可以使用 VPE 进行 YUYV -> NV12转换?
因为在我的情况 下、如果我将 VIDIOC_S_FMT ioctl 与 fmt.pix_mp.pixelformat = V4L2_PI_FMT_NV12一起使用、它会失败。
我正在使用内核3.14。
是否有示例测试?
提前感谢您的帮助、
Lorenzo
VPE 的 NV12输出现在正常、并且2个平面上已满了正确的 Y 和 UV 样本。
尽管如此、在使用 Android 时、每行都必须划到4096、这是'strige'参数的默认值;此转换需要大量的 CPU 使用。
尝试在驱动程序中强制将跨度对齐设置为4096以匹配 Android 默认设置,或尝试设置 fmt.pix_mp.plane_fmt[x].bytesperline ,都未成功。
是否可以从 VPE 获得 nv12输出、直接用于 Android 而无需使用"stripe"参数进行转换?
提前感谢、
Lorenzo