Is i.mx8 mini support MJPG?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Is i.mx8 mini support MJPG?

774 次查看
ming_liao
Contributor I

Hi,

I got "unknown pixelformat:MJPG" when use uvc camera, i find imx8 mini only support YUYV or raw in mmx6s_capture.c,is this CSI hardware limitation? how can i do if i want to support MJPG?

static struct mx6s_fmt formats[] = {
{
.name = "UYVY-16",
.fourcc = V4L2_PIX_FMT_UYVY,
.pixelformat = V4L2_PIX_FMT_UYVY,
.mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
.bpp = 2,
}, {
.name = "YUYV-16",
.fourcc = V4L2_PIX_FMT_YUYV,
.pixelformat = V4L2_PIX_FMT_YUYV,
.mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
.bpp = 2,
}, {
.name = "YUV32 (X-Y-U-V)",
.fourcc = V4L2_PIX_FMT_YUV32,
.pixelformat = V4L2_PIX_FMT_YUV32,
.mbus_code = MEDIA_BUS_FMT_AYUV8_1X32,
.bpp = 4,
}, {
.name = "RAWRGB8 (SBGGR8)",
.fourcc = V4L2_PIX_FMT_SBGGR8,
.pixelformat = V4L2_PIX_FMT_SBGGR8,
.mbus_code = MEDIA_BUS_FMT_SBGGR8_1X8,
.bpp = 1,
}
};

标签 (1)
0 项奖励
1 回复

571 次查看
joanxie
NXP TechSupport
NXP TechSupport

refer to the 4.14.78 release note:

i.MX recording engine API is only supported in i.MX 6 and i.MX 8M Mini platforms, which have a VPU hardware encoder.

one of function is Capturing images from the camera with different resolutions and saves them to JPEG files.

This API can be found at gst1.0-fsl-plugin/tools/grecorder/recorder_engine.h.

0 项奖励