getting error on ioctl_enum_fmt_cap

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

getting error on ioctl_enum_fmt_cap

1,262件の閲覧回数
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 返答(返信)

1,168件の閲覧回数
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 件の賞賛
返信

1,168件の閲覧回数
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 件の賞賛
返信