summaryrefslogtreecommitdiff
path: root/test/libtest
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2022-10-06 14:17:39 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-10-18 03:09:52 +0300
commitaa2fe6a86f260a9351621af3c110ee0fcbac7e8d (patch)
tree75de969da59438428b4dcb23d13543d1fc46b730 /test/libtest
parentf694da76bea11f47d21f41b396d901af2f165a2a (diff)
pipeline: ipa: raspberrypi: Add HBLANK control to DelayedControls
Update CamHelper::getDelays() to return the sensor HBLANK delay. The HBLANK delay is set to the same value as VBLANK delay for all sensors in the Raspberry Pi IPA. Return the HBLANK gain delay from the IPA to the pipeline handler, and initialise DelayedControls to handle V4L2_CID_HBLANK with this delay value. As a drive-by, check that the V4L2_CID_HBLANK control is available when calling IPARPi::configure(). Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Tested-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/libtest')
0 files changed, 0 insertions, 0 deletions
m"> * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __IA_CSS_XNR3_TYPES_H #define __IA_CSS_XNR3_TYPES_H /** @file * CSS-API header file for Extra Noise Reduction (XNR) parameters. */ /** * \brief Scale of the XNR sigma parameters. * \details The define specifies which fixed-point value represents 1.0. */ #define IA_CSS_XNR3_SIGMA_SCALE (1 << 10) /** * \brief Scale of the XNR coring parameters. * \details The define specifies which fixed-point value represents 1.0. */ #define IA_CSS_XNR3_CORING_SCALE (1 << 15) /** * \brief Scale of the XNR blending parameter. * \details The define specifies which fixed-point value represents 1.0. */ #define IA_CSS_XNR3_BLENDING_SCALE (1 << 11) /** * \brief XNR3 Sigma Parameters. * \details Sigma parameters define the strength of the XNR filter. * A higher number means stronger filtering. There are two values for each of * the three YUV planes: one for dark areas and one for bright areas. All * sigma parameters are fixed-point values between 0.0 and 1.0, scaled with * IA_CSS_XNR3_SIGMA_SCALE. */ struct ia_css_xnr3_sigma_params { int y0; /**< Sigma for Y range similarity in dark area */ int y1; /**< Sigma for Y range similarity in bright area */ int u0; /**< Sigma for U range similarity in dark area */ int u1; /**< Sigma for U range similarity in bright area */ int v0; /**< Sigma for V range similarity in dark area */ int v1; /**< Sigma for V range similarity in bright area */ }; /** * \brief XNR3 Coring Parameters * \details Coring parameters define the "coring" strength, which is a soft * thresholding technique to avoid false coloring. There are two values for * each of the two chroma planes: one for dark areas and one for bright areas. * All coring parameters are fixed-point values between 0.0 and 1.0, scaled * with IA_CSS_XNR3_CORING_SCALE. The ineffective value is 0. */ struct ia_css_xnr3_coring_params { int u0; /**< Coring threshold of U channel in dark area */ int u1; /**< Coring threshold of U channel in bright area */ int v0; /**< Coring threshold of V channel in dark area */ int v1; /**< Coring threshold of V channel in bright area */ }; /**