V4L2 based video scale down application for imx6q

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

V4L2 based video scale down application for imx6q

1,749 Views
jemish_1990
Contributor IV

Hi All,

We have two requirements.

1. Is it possible to capture custom resolutions  (example : 480x 272 ) by imx6q?

2. In second requirement we are able to capture NTSC (720 X 480) video in imx6q . Now is there any v4l2 based application available to scale down video to custom resolution (example 480x272).

Please let me know if any of the option is possible.

Thanks,

Jemish

Labels (2)
0 Kudos
Reply
6 Replies

1,182 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jemish

one can look at unit test examples, read doc folder in ../test/mxc_v4l2_test/

http://downloads.yoctoproject.org/mirror/sources/imx-test-5.2.tar.gz

it is also described in attached Linux Manual sect.6.4.2 Video4Linux API test

resize examples in:

https://community.freescale.com/docs/DOC-94961

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,182 Views
jemish_1990
Contributor IV

Hi Igor,

Thanks a lot for your suggestion!

We made it working as of now by doing few changes in sample application we were using.

We can close this thread as of now. If needed I will open new thread.

Once again thank a lot for your suggestions.

Thanks,

Jemish

0 Kudos
Reply

1,182 Views
jemish_1990
Contributor IV

Hi Igor,

One quick question if I am using

Below API for scale down.

VIDIOC_S_CROP

How can we confirm whether it is using hw scaler (IPU) or ARM cpu?

Thanks,

Jemish

0 Kudos
Reply

1,182 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jemish

one can look at attached Linux Manual sect.9.2 V4L2 Capture Device

shows used VIDIOC.

Best regards

igor

0 Kudos
Reply

1,182 Views
jemish_1990
Contributor IV

Hi Igor,

I have read the suggested document but it nowhere confirming whether it is using hardware scaler(IPU) or ARM (CPU).

Would you please confirm ?

Thanks,

Jemish

0 Kudos
Reply

1,182 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos
Reply