Skip to content

video: samples: i.MX RT10xx: Do not use PxP to flip images #82672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ngphibang
Copy link
Collaborator

@ngphibang ngphibang commented Dec 6, 2024

On RT10xx, do horizontal flipping at camera level to avoid using PxP which impacts camera framerates. Moreover, on RT11xx, PxP is already reserved for 90 CCW image rotation for LCD display purpose.

This will work on mt9m114 only when #81830 is merged.

Add an option to mirror the video image horizontally. This helps
to avoid doing so at the post-processing step by using additional
HW such as PxP on i.MX RT platforms.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
Do hflipping at camera level to avoid using PxP which impacts camera
framerates on RT10xx. Moreover, on RT11xx, PxP is already reserved
for 90 CCW image rotation.

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
@ngphibang
Copy link
Collaborator Author

Hi @DerekSnell, could you take a look to see whether this is better and still preserve your goal on mt9m114 ?

@ngphibang ngphibang requested a review from DerekSnell December 6, 2024 20:36
@ngphibang ngphibang added the DNM This PR should not be merged (Do Not Merge) label Dec 9, 2024
Copy link
Collaborator

@DerekSnell DerekSnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ngphibang ,
This works great for me. I tested with your patches applied to #81830, using the command below:

west build -b mimxrt1060_evkb --shield=rk043fn66hs_ctg --shield=dvp_fpc24_mt9m114 samples/drivers/video/capture

@kartben kartben removed their assignment Dec 11, 2024
@ngphibang ngphibang removed the DNM This PR should not be merged (Do Not Merge) label Dec 12, 2024
@ngphibang
Copy link
Collaborator Author

This is ready as #81830 got merged.

@kartben kartben merged commit a03a32b into zephyrproject-rtos:main Dec 12, 2024
29 of 30 checks passed
@ngphibang ngphibang deleted the rt10xx_replace_pxp_by_camera_flip branch June 24, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants