Skip to content
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

SXGA (1280*960) with subsampling #2

Open
JPMJPM opened this issue Apr 20, 2019 · 3 comments
Open

SXGA (1280*960) with subsampling #2

JPMJPM opened this issue Apr 20, 2019 · 3 comments

Comments

@JPMJPM
Copy link

JPMJPM commented Apr 20, 2019

Hi, this not an issue, it is only a question.

Is it possible to get SXGA with subsampling in order to reach more FPS than scaling solution ?.

Regards.

@xenpac
Copy link
Owner

xenpac commented Apr 24, 2019

see file ov5640.c, there is a docu at the very bottom.
search for "Docu on Video Timing and output sizes:", read.
you first need to crob your wanted picture size from the sensor = +1 section.
then enable subsampling 2x2, which halfs the datasize.
(note that omnivision does not provide exact docu!!, so this is all from experience)
to get a stable picture you have to experiment with the timing.
search "calculation of HTS VTS".

in short, to get fast fps you need to just take a portion of the sensor (crob) and adjust the timing.

look at file gc0308.c using the "zoom" function, to achive fasted fps of ??120 fps possible.

note: all these c-files are for the ov5640 sensor!! i just used different names to compile in the source tree,
and be able to switch "devices" (modprobe) on the fly to experiment.

also note that the bananapi has limits on what datarate it can handle on CSI!!

@xenpac
Copy link
Owner

xenpac commented Apr 24, 2019

another note for those armbian kernel 4.xx users, the new kernel does not support the CSI interface to be used with the camera!!
As it has device tree implementation, and that has not yet covered the CSI parallel interface.
If thatever gets implemented, it will need to completely redesign the camera driver.

@JPMJPM
Copy link
Author

JPMJPM commented Apr 24, 2019

Thanks, I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants