Add minimal post processing API to framework
This API allows applications to instruct the connected display to do minimal post processing on the produced image or video frames. This will switch the display to a low latency mode (ALLM, Game mode or some other custom implementation thereof), reducing lag in the final images. Thus, minimal post processing would greatly enhance performance for gaming and video conferencing applications. It would not, however, suit applications that prioritise image quality over performance. This CL adds 2 public method: - Window.setPreferMinimalPostProcessing() (this can also be set in WindowManager.LayoutParams.preferMinimalPostProcessing) If minimal post processing is preferred, the connected display will be requested to go into low latency mode, which reduces image processing, resulting in better performance for gaming applications. If the Display sink is connected via HDMI, the device will begin to send infoframes with Auto Low Latency Mode enabled and Game Content Type. This will switch the connected display to a lower latency mode (if available). For more information, see HDMI 2.1 specification. If the Display sink has an internal connection or uses some other protocol than HDMI, effects may be similar but implementation-defined. - Display.isMinimalPostProcessingPreferred() Returns true if the connected display supports either Low Latency Mode (ALLM or some other custom low latency implementation) or Game content type. Bug: 135116095 Test: make -> flash on ATV OTT device -> open an activity which requests minimal post processing -> check SurfaceControl logs -> verify correct signals are passed to native Change-Id: Id09160ba1513fef4dac979162bcda3bfeaace0e6
Loading
Please register or sign in to comment