summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/rpi/sharpen.cpp
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2021-03-13 10:27:41 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-03-13 22:21:01 +0200
commit4f4f8bb8bc994b209e86633764066ef8c665a437 (patch)
treea06c0692aba0469a7013b25485424e528156de09 /src/ipa/raspberrypi/controller/rpi/sharpen.cpp
parentcd3f70a14c69d2cc86dd483249d1943a80947be1 (diff)
pipeline: raspberrypi: Use a default format for ISP::Output0
If the ISP::Output0 stream has not been configured, we must enable it with a default format and resolution for internal use. This is to allow the pipeline handler data flow to be consistent, and allow the IPA to receive statistics for the frame. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/rpi/sharpen.cpp')
0 files changed, 0 insertions, 0 deletions
">.max().type() != ControlType::ControlTypeNone || brightness.def().type() != ControlType::ControlTypeNone) { cout << "Invalid control range for Brightness" << endl; return TestFail; } /* * Test information retrieval from a control with a minimum and * a maximum value, and an implicit default value. */ ControlInfo contrast(10, 200); if (contrast.min().get<int32_t>() != 10 || contrast.max().get<int32_t>() != 200 || !contrast.def().isNone()) { cout << "Invalid control range for Contrast" << endl; return TestFail; } /* * Test information retrieval from a control with boolean * values. */ ControlInfo aeEnable({ false, true }, false); if (aeEnable.min().get<bool>() != false || aeEnable.def().get<bool>() != false || aeEnable.max().get<bool>() != true) { cout << "Invalid control range for AeEnable" << endl; return TestFail; } if (aeEnable.values()[0].get<bool>() != false || aeEnable.values()[1].get<bool>() != true) { cout << "Invalid control values for AeEnable" << endl; return TestFail; } ControlInfo awbEnable(true); if (awbEnable.min().get<bool>() != true || awbEnable.def().get<bool>() != true || awbEnable.max().get<bool>() != true) { cout << "Invalid control range for AwbEnable" << endl; return TestFail; } if (awbEnable.values()[0].get<bool>() != true) { cout << "Invalid control values for AwbEnable" << endl; return TestFail; } return TestPass; } }; TEST_REGISTER(ControlInfoTest)