[ 84.807541] mxc_ipu mxc_ipu: input crop setting error

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

[ 84.807541] mxc_ipu mxc_ipu: input crop setting error

853 次查看
Ikshwakuchauhan
Contributor II

Hi,

I am using Imx6 sabrelite board.

I am trying to play videos by using "mfw_isink" with gstreamer.

Its working fine with command line.

But when I am trying to play through my code its giving continuously this error:

..

..

[   84.549663] mxc_ipu mxc_ipu: input crop setting error

[   84.554716] mxc_ipu mxc_ipu: input crop setting error

[   84.559775] mxc_ipu mxc_ipu: input crop setting error

[   84.564829] mxc_ipu mxc_ipu: input crop setting error

[   84.569887] mxc_ipu mxc_ipu: input crop setting error

[   84.574941] mxc_ipu mxc_ipu: input crop setting error

[   84.580001] mxc_ipu mxc_ipu: input crop setting error

[   84.585054] mxc_ipu mxc_ipu: input crop setting error

[   84.590113] mxc_ipu mxc_ipu: input crop setting error

[   84.595167] mxc_ipu mxc_ipu: input crop setting error

[   84.600226] mxc_ipu mxc_ipu: input crop setting error

[   84.605280] mxc_ipu mxc_ipu: input crop setting error

[   84.610338] mxc_ipu mxc_ipu: input crop setting error

[   84.615392] mxc_ipu mxc_ipu: input crop setting error

[   84.620451] mxc_ipu mxc_ipu: input crop setting error

[   84.625504] mxc_ipu mxc_ipu: input crop setting error

..

..

..


as per my finding in my code I am getting this error because of the part of the code:

     g_object_set(G_OBJECT(play.display), "axis-top", "0", NULL);

     g_object_set(G_OBJECT(play.display), "axis-left", "0", NULL);

     g_object_set(G_OBJECT(play.display), "disp-width", "240", NULL);

     g_object_set(G_OBJECT(play.display), "disp-height", "240", NULL);

here I am setting the coordinates and dimension of the video on the screen.

if I comment this part of code its working.

Does anyone have any experience to fix this issue??

Is this issue because of code error or something else..???


Thanks,

Ikshwaku




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

590 次查看
wayne1z
Contributor II

From the error message: mxc_ipu mxc_ipu: input crop setting error, it seems the video crop has wrong paramters passed to driver codes.

if (((crop->w + crop->pos.x) > width) || ((crop->h + crop->pos.y) > height))

     return -EINVAL;

0 项奖励
回复