Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Camera board • Re: 16:9 HQ Image is a stretched version of a 4:3 image

$
0
0
Opps, forgot to post code.

This is my config code:

Code:

    // StillCapture twice to generate two configurations    std::unique_ptr<CameraConfiguration> config = camera->generateConfiguration( { StreamRole::StillCapture, StreamRole::StillCapture  } );    // Configuration for the full sized frame    StreamConfiguration &streamConfigBig = config->at(0);    streamConfigBig.pixelFormat = libcamera::formats::BGR888;    streamConfigBig.size.width = 4056;     streamConfigBig.size.height = 3040;    streamConfigBig.bufferCount = 5;    // Configuration for the progress frame    StreamConfiguration &streamConfigSmall = config->at(1);    streamConfigSmall.pixelFormat = libcamera::formats::BGR888;    streamConfigSmall.size.width = 1348;     streamConfigSmall.size.height = 750;    streamConfigSmall.bufferCount = 5;
I'm currently relying on validate() to set stride and buffer size etc.

I'm not setting any controls on the requests yet.

Thanks for your help.

Nick

Statistics: Posted by nickoppen — Mon Aug 12, 2024 9:00 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles