libcamera: software_isp: debayer: Make the debayer_ object of type class Debayer not DebayerCpu
Make the type of object Debayer not DebayerCpu thus allowing us to assign the object to either DebayerCpu or DebayerEGL. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
4cb388a1eb
commit
0640f5ac11
@@ -37,7 +37,7 @@
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
class DebayerCpu;
|
||||
class Debayer;
|
||||
class FrameBuffer;
|
||||
class PixelFormat;
|
||||
class Stream;
|
||||
@@ -94,8 +94,7 @@ private:
|
||||
void statsReady(uint32_t frame, uint32_t bufferId);
|
||||
void inputReady(FrameBuffer *input);
|
||||
void outputReady(FrameBuffer *output);
|
||||
|
||||
std::unique_ptr<DebayerCpu> debayer_;
|
||||
std::unique_ptr<Debayer> debayer_;
|
||||
Thread ispWorkerThread_;
|
||||
SharedMemObject<DebayerParams> sharedParams_;
|
||||
DebayerParams debayerParams_;
|
||||
|
||||
@@ -348,7 +348,7 @@ int SoftwareIsp::start()
|
||||
|
||||
ispWorkerThread_.start();
|
||||
|
||||
return debayer_->invokeMethod(&DebayerCpu::start,
|
||||
return debayer_->invokeMethod(&Debayer::start,
|
||||
ConnectionTypeBlocking);
|
||||
}
|
||||
|
||||
@@ -360,7 +360,7 @@ int SoftwareIsp::start()
|
||||
*/
|
||||
void SoftwareIsp::stop()
|
||||
{
|
||||
debayer_->invokeMethod(&DebayerCpu::stop,
|
||||
debayer_->invokeMethod(&Debayer::stop,
|
||||
ConnectionTypeBlocking);
|
||||
|
||||
ispWorkerThread_.exit();
|
||||
@@ -394,7 +394,7 @@ void SoftwareIsp::stop()
|
||||
void SoftwareIsp::process(uint32_t frame, FrameBuffer *input, FrameBuffer *output)
|
||||
{
|
||||
ipa_->computeParams(frame);
|
||||
debayer_->invokeMethod(&DebayerCpu::process,
|
||||
debayer_->invokeMethod(&Debayer::process,
|
||||
ConnectionTypeQueued, frame, input, output, debayerParams_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user