PreviewPixelHDRnetQuirk

public class PreviewPixelHDRnetQuirk implements Quirk


Quirk required to turn on WYSIWYG viewfinder on Pixel devices

The default setting of the TEMPLATE_STILL_CAPTURE will enable the HDR+ for the still image capture request on Pixel phones, it leads a better still image quality than the viewfinder output. To align the viewfinder quality with the final photo, we need to set TONEMAP_MODE to HIGH_QUALITY (the default is FAST) on the viewfinder stream to enable the wysiwyg preview, and developers can achieve WYSIWYG in their apps.

Summary