getting error on ioctl_enum_fmt_cap

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

getting error on ioctl_enum_fmt_cap

556 次查看
shlomiperlman
Contributor II

HI,

It seems something is preventing getting the "v4l2_fmtdesc" data in my sensor driver:

static int ioctl_enum_fmt_cap(struct v4l2_int_device *s,

                  struct v4l2_fmtdesc *fmt)

{

if (fmt->index > SOME_MAX_VALUE (usually 8)) {

        return -EINVAL;

...

}

every time im trying to init the camera app and this struct is being checked for "fmt->index"

im getting an error value.

where is this function being called from and how do i fix it?

thanks,

标签 (3)
0 项奖励
2 回复数

462 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi shlomi,

Check your video format input, v4l2 support RGB 16, 24, and 32-bit, YUV 4:2:0 and 4:2:2 planar, and YUV 4:2:2 interleaved

input formats.

If you're using i.MX6, you can use this code to test CSC.

https://github.com/rogeriorps/ipu-examples/blob/master/mx6/csc/example1/csc_ex1.c

It will read 4 files from different color formats and transform to RGB565 to be shown on lcd.

Hope this helps

0 项奖励

462 次查看
shlomiperlman
Contributor II

HI,

thanks, im able to get images with gstreamer without getting this error though all of my images turn out blurry and are in

purple/yellow when using RGB565.

if i use YUV in any of its formats all i get is a purple screen.

do you have any suggestions?

it maybe related to the camera register settings but i wouldn’t even know where to begin changing those values..

0 项奖励