Thanks for quick response!
Here I'm dev on some FLIP output features, which we added several VendorTagSection for Camera HAL, so we also need to add our own custom CaptureRequest
val VFLIP_ENABLE = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
CaptureRequest.Key("vsi.vflip.enable", Int::class.java)
} else {
TODO("VERSION.SDK_INT < Q")
}
And then I added a mCapReqOptions
val mCapReqOptions = CaptureRequestOptions.Builder()
.setCaptureRequestOption(VFLIP_ENABLE, enable)
after bindToLifecycle I try to setCaptureRequestOptions with mCapReqOptions.
Camera2CameraControl.from(camera!!.cameraControl).setCaptureRequestOptions(mCapReqOptions)
But it did not work. While I also try to override CaptureRequest.CONTROL_AWB_MODE with below for mCapReqOptions, and it worked.
.setCaptureRequestOption(CaptureRequest.CONTROL_AWB_MODE, awbState)
Seems the customed
CaptureRequest is not working as I wanted.
That's why I posted here for help.