1、Flip Background
If there is a need for Flip, it is in the file vendor\mediatek\proprietary\hardware\mtkcam3\pipeline\policy\request\CaptureStreamUpdaterPolicy.cpp. The if (jpegFlip || jpegFlipProp) in the createRotationStreamInfoLocked_Main_YUV function is used to determine whether to flip. You can use Meta data MTK_CONTROL_CAPTURE_JPEG_FLIP_MODE to control the mirror effect of Jpeg. You can also use adb to set the property vendor.debug.camera.Jpeg.flip 1 to debug whether the Jpeg of the camera has a mirror effect. But how to realize PostView also has Flip effect?
2、 How to Flip Postview
2.1. Add the following code to the submitOneRequest() method of the PipelineModelSessionBasic.cpp file:
// Evaluate a result for a request.
auto pReqOutputParams = std::make_shared