[libcamera-devel] libcamera on pinephone
Rafael Diniz
rafael at riseup.net
Sun Jul 3 21:58:23 CEST 2022
This an image I just took with the PinePhone at home with (the OV5640 cam):
qcam -r gles -spixelformat=SBGGR8,width=1280,height=720 -platform xcb
https://www.abradig.org.br/maemo-crazyness/back_camera-qcam-2.jpg
There are some strange artifacts... what are those?
Cheers,
Rafael
On 7/3/22 16:41, Rafael Diniz via libcamera-devel wrote:
> So, here is the report of stock libcamera on the PinePhone:
>
> - sun6i-csi with Sebastian patches:
> .
> https://github.com/rafael2k/pine64-kernel/blob/maemo/beowulf-devel/debian/patches/maemo/0245-sun6i-csi-Implement-framesize-and-frameinterva.patch
>
> .
> https://github.com/rafael2k/pine64-kernel/blob/maemo/beowulf-devel/debian/patches/maemo/0246-sun6i-csi-Limit-formats-to-those-compatible-wi.patch
>
>
> - OV5640 with Jacopo branch.
>
> - GC2145 still need some love... I'm using Sebastian patch:
> .
> https://github.com/rafael2k/pine64-kernel/blob/maemo/beowulf-devel/debian/patches/maemo/0247-gc2145-Add-PIXEL_RATE-HBLANK-and-VBLANK-contro.patch
>
>
> Using "cam" works with both cameras, in SBGGR8 format- OV5640 and GC2145
> cammeras. But with qcam, I could not get front camera (GC2145) get clear
> pictures, some funny "small-box" artifacts, but OV5640 works fine.
>
> In Maemo-Leste (Debian 10 based) I use (as suggested by Pavel and using
> "-platform xcb" for Maemo / Debian 10):
> qcam -r gles -spixelformat=SBGGR8,width=1280,height=720 -platform xcb
>
> High resolutions, as Pavel mentioned, is fucked up for some reason.
> Colorspace conversion is not working also in qcam (I don't even know if
> color space conversion should be automatic).
>
> Anyway, cheers! I can get some pictures already!
> : )
>
> Rafael
>
> On 7/3/22 16:24, Rafael Diniz via libcamera-devel wrote:
>> Hey, got it working!!
>>
>> qcam -r gles -spixelformat=SBGGR8,width=1280,height=720 -platform xcb
>>
>> : ))
>>
>>
>> On 7/3/22 16:17, Rafael Diniz via libcamera-devel wrote:
>>> tks Pavel, but still I get wrong pictures displayed...
>>> :/
>>>
>>>
>>> On 7/3/22 12:58, Pavel Machek wrote:
>>>> Hi!
>>>>
>>>>> I have some problems with GL, but using "-s pixelformat=YUYV" image
>>>>> appears
>>>>> on screen! But totally garbled some stripes, image doubled in the
>>>>> screen -
>>>>> clearly the colorspace conversion is not correct.
>>>>
>>>> Yep, some resolutions are broken.
>>>>
>>>> I suggest you try:
>>>>
>>>> build/src/qcam/qcam -r gles
>>>> -spixelformat=SBGGR8,width=1280,height=720 -c
>>>> /base/i2c-csi/rear-camera at 4c
>>>>
>>>> That should work for higher resolutions, too. YUYV should work for
>>>> 1280x720 and lower resolutions:
>>>>
>>>> build/src/cam/cam -c /base/i2c-csi/rear-camera at 4c
>>>> -spixelformat=YUYV,width=640,height=480 --sdl -C600
>>>>
>>>> Best regards,
>>>> Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220703/b959f212/attachment.sig>
More information about the libcamera-devel
mailing list