Closed miguelrvs closed 4 years ago
But "RGB24" is not an encoding is it, it's a chroma format. PNG is an encoding, or JPG.
It's been a while since I worked on this project, but if I remember correctly, the chroma format has to be delicately set up between the native resources - camera, the encoder and so on. There's not an easy way to change that, and I'm not sure why you need to change it anyway.
Well, I put RGB24 because it is a member of enum uk.co.caprica.picam.enums.Encoding
; so it is a valid value in CameraConfiguration.encoding(Encoding)
. I thought I would be obtaining the raw pixels.
I need to display the image in real-time, so the uncompressed (and unprocecessed) pixels are the most efficient way of doing it.
Maybe the BMP is the easiest way of having the pixels.
That's a fair comment and it looks like I might have been wrong to include those on that enum. The fact is that the native code is rejecting those values as invalid.
Knowing that, I'm already doing with BMP; Might dive later into MMAL to make a better use the camera and the rasberry pi resources Thank you
Hi,
I have a copy of uk.co.caprica.picam.app.Snap for testing. I was testing so changed the encoding from JPEG to RGB24 and it fails with the following error:
Removed the quality param, but did not make any diference, also width and height; all to no avail. Then tested all of the encodings: Work: JPEG, PNG, GIF Don't work: RGB24, BGR24, I420, OPAQUE The hex after
mmal_vc_port_info_set
is different every time.I need to process the image and show live on screen so a JPEG conversion is unnecessary, would be better BGR or RGB than any compressed format.
Does anyone has a similar problem?
(this is the code, for everyone reference) PicamMain2.txt