Commit Graph

11 Commits

Author SHA1 Message Date
zejian.su 7cf47a58e4 Fix the qt window size and simplify the qt ping-pang buffer.
Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-12-21 21:52:21 +08:00
zejian.su 1769165661 Fix the sync issue between the Preview.Show() and the QWidget.update()
1. Add a mutex between the Preview.Show() and the QWidget.update().
2. Speed up the Preview.Show() -- change the floating point to integer,
            merge some plus and multiplying operation and remove some data copy.

Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-12-06 16:07:03 +08:00
zejian.su 9e675a54e3 In DRM preview, zoom the input image to fit the screen.
1. Use the atomic drm mode.
2. Find a mode in the connector with most closed area with the input image.
3. Set the plane property to scale the input image.

Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-12-06 16:04:11 +08:00
zejian.su 79a633c38a Fix the libcamera-still bug at low resolution (redmine #8306).
Set the raw stream's resolution too.

Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-11-16 10:15:29 +08:00
zejian.su 4c4ac467c9 Make the qt preview work in SDK/VF2/DEVDIT.
1. Fill the NV12 data into the QT buffer.
2. For the low performance of QWidget, reduce the FPS to 15.
3. Remove the EGL preview option because its code can't work well.

The qt supported patch has been verified on the VF2 with qt5 (linuxfb plugin).

Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-11-16 10:11:47 +08:00
zejian.su f671a1a5e9 Let-the-option-width-height-work-again
Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-11-09 12:55:42 +08:00
zejian.su 5b3def098d Fix the bug in libcamera-vid.
It prompt: failed to open v4l2 H264 encoder.
The reason is loss if encoder options and definement.

Sign-off-by: zejian.su <zejian.su@starfivetech.com>
2023-11-09 12:54:42 +08:00
zejian.su e50c6c1b2b Make 5 libcamera-apps work. They are libcamera-hello, libcamera-jpeg, libcamera-still, libcamera-raw, libcamera-vid
Signed-off-by: zejian.su <zejian.su@starfivetech.com>
2023-11-01 17:58:58 +08:00
Andy Hu 1279cf3f36 libcamera-apps: change download url to https
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2022-10-28 22:14:42 +08:00
Kevin.xie 4a16076c7f libcamera & apps: Open drm device by module name 'starfive'
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-10-28 22:14:42 +08:00
mason.huo c0584b271e packge: stafive: Add libcamera-apps package
Sync the latest libcamera-apps from JH7100.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-10-28 22:14:41 +08:00