package

androidx.camera.camera2.internal.compat.quirk

Interfaces

CaptureIntentPreviewQuirkA Quirk interface denotes devices have specific issue and can be workaround by using CaptureRequest to replace CaptureRequest.
UseTorchAsFlashQuirkA quirk interface which denotes CameraX should use torch for flash when flashMode is ON or AUTO.

Classes

AeFpsRangeLegacyQuirk

QuirkSummary Bug Id: b/167425305 Description: Quirk required to maintain good exposure on legacy devices by specifying a proper .

AfRegionFlipHorizontallyQuirkQuirk denoting Af Region is incorrectly flipped horizontally.
AspectRatioLegacyApi21Quirk

QuirkSummary Bug Id: b/128924712 Description: Quirk that produces stretched use cases on all the legacy API 21 devices.

AutoFlashUnderExposedQuirkThis denotes a quirk that when flash is auto, the device fails to get bright still photos with good exposure.
CamcorderProfileResolutionQuirk

QuirkSummary Bug Id: 180819729 Description: Quirk that should validate the video resolution of on legacy camera.

CameraNoResponseWhenEnablingFlashQuirkCamera gets stuck when taking pictures with flash ON or AUTO in dark environment.
CameraQuirksProvider of camera specific quirks.
CaptureNoResponseQuirkCapture not response if submitting a single capture request simultaneously with repeating requests
CaptureSessionOnClosedNotCalledQuirkA quirk to denote the devices may not receives callback.
CaptureSessionStuckQuirkA quirk to denote the android.hardware.camera2.CameraCaptureSession cannot successfully be configured if the previous CameraCaptureSession doesn't finish its in-flight capture sequence.
CaptureSessionStuckWhenCreatingBeforeClosingCameraQuirkQuirk addressing the capture session stuck issue when creating new one before closing the camera device first.
ConfigureSurfaceToSecondarySessionFailQuirkA quirk to denote the surface can only be used to configure to only one CameraCaptureSession, the next CameraCaptureSession may need to use another one.
CrashWhenTakingPhotoWithAutoFlashAEModeQuirkQuirk caused by a device bug that occurs on certain devices, like the Samsung A3 devices.
DeviceQuirksProvider of device specific quirks, which are used for device specific workarounds.
DeviceQuirksLoaderLoads all device specific quirks required for the current device
ExcludedSupportedSizesQuirk

QuirkSummary Bug Id: b/157448499, b/192129158, b/245495234, b/303151423 Description: Quirk required to exclude certain supported surface sizes that are problematic.

ExtraCroppingQuirkQuirk that requires specific resolutions as the workaround.
ExtraSupportedOutputSizeQuirk

QuirkSummary Bug Id: b/241876294, b/299075294 Description: CamcorderProfile resolutions can not find a match in the output size list of CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP.

ExtraSupportedSurfaceCombinationsQuirk

QuirkSummary Bug Id: b/194149215 Description: Quirk required to include extra supported surface combinations which are additional to the guaranteed supported configurations.

FlashAvailabilityBufferUnderflowQuirkA quirk for devices that throw a java.nio.BufferUnderflowException when querying the flash availability.
FlashTooSlowQuirkQuirks that denotes the device has a slow flash sequence that could result in blurred pictures.
ImageCaptureFailedForVideoSnapshotQuirk

QuirkSummary Bug Id: b/344704367, b/349542870, b/359062845 Description: When taking pictures with CameraDevice, there is no response from camera HAL.

ImageCaptureFailedWhenVideoCaptureIsBoundQuirk

QuirkSummary Bug Id: b/239369953, b/331754902, b/338869048, b/339555742, b/336925549 Description: When taking image with VideoCapture is bound, the capture result is returned but the resulting image can not be obtained.

ImageCaptureFailWithAutoFlashQuirk

QuirkSummary Bug Id: 228800360 Description: The image capturing may fail when the camera turns on the auto flash mode, and the devices also fail to fire the flash on the flash on mode.

ImageCaptureFlashNotFireQuirkA quirk to denote the camera never fire the flash while taking picture with flash ON/AUTO mode.
ImageCapturePixelHDRPlusQuirk

QuirkSummary Bug Id: b/123897971 Description: Quirk required to turn on/off HDR+ on Pixel devices by enabling/disabling zero-shutter-lag (ZSL) mode on the capture request, depending on the image capture use case's capture mode, i.e.

ImageCaptureWashedOutImageQuirk

QuirkSummary Bug Id: 176399765, 181966663 Description: Quirk that prevents from getting washed out image while taking picture with flash ON/AUTO mode.

ImageCaptureWithFlashUnderexposureQuirkA quirk to denote even when the camera uses flash ON/AUTO mode, but the captured image is still underexposed.
IncorrectCaptureStateQuirkCameraCaptureSession report error when a capture request was submitted in an incorrect state.
InvalidVideoProfilesQuirkQuirk denoting the video profile list returns by is invalid.
JpegCaptureDownsizingQuirkQuirk which denotes single capture with JPEG format may have an output buffer smaller than the expected size.
JpegHalCorruptImageQuirkQuirk which denotes JPEGs produced directly from the HAL may sometimes be corrupted.
LegacyCameraOutputConfigNullPointerQuirkQuirk addressing null pointer issue during CameraCaptureSession configuration.
LegacyCameraSurfaceCleanupQuirkQuirk addressing LegacyCameraDevice surface disconnection issues.
Nexus4AndroidLTargetAspectRatioQuirk

QuirkSummary Bug Id: b/19606058 Description: Quirk that produces stretched preview on Nexus 4 devices running Android L (API levels 21 and 22).

Preview3AThreadCrashQuirkCamera service crashes after submitting a request by a newly created CameraCaptureSession.
PreviewDelayWhenVideoCaptureIsBoundQuirk

QuirkSummary Bug Id: b/223643510 Description: Quirk indicates Preview is delayed on some Huawei devices when the Preview uses certain resolutions and VideoCapture is bound.

PreviewOrientationIncorrectQuirkA quirk where the orientation of the preview is incorrect while a surface to be used to configure on 2 different CameraCaptureSession.
PreviewPixelHDRnetQuirk

QuirkSummary Bug Id: 170598016 Description: Quirk denotes the devices to turn on WYSIWYG viewfinder.

PreviewStretchWhenVideoCaptureIsBoundQuirk

QuirkSummary Bug Id: b/227469801, b/274738266 Description: Quirk indicates Preview is stretched when VideoCapture is bound.

RepeatingStreamConstraintForVideoRecordingQuirk

QuirkSummary Bug Id: 220214040 Description: The video recording fails if no repeating stream is configured with appropriate settings.

SamsungPreviewTargetAspectRatioQuirkQuirk that produces stretched preview on certain Samsung devices.
SmallDisplaySizeQuirk

QuirkSummary Bug Id: b/287341266 Description: Quirk required to return the display size for problematic devices.

StillCaptureFlashStopRepeatingQuirkQuirk that still capture with flash on/auto requires stopRepeating() being called ahead of capture.
TemporalNoiseQuirk

QuirkSummary Bug Id: b/316560705 Description: Quirk indicates the recorded video contains obvious temporal noise.

TextureViewIsClosedQuirkA quirk to denote a new surface should be acquired while the camera is going to create a new CameraCaptureSession.
TorchFlashRequiredFor3aUpdateQuirk

QuirkSummary Bug Id: 294870640 Description: Quirk denoting the devices where CaptureRequest has to be set for 3A states to be updated with good values (in some cases, AWB scanning is not triggered at all).

TorchIsClosedAfterImageCapturingQuirk

QuirkSummary Bug Id: 228272227 Description: The Torch is unexpectedly turned off after taking a picture.

YuvImageOnePixelShiftQuirk

QuirkSummary Bug Id: 184229033 Description: On certain devices, one pixel shifted when the HAL layer converts RGB data to YUV data.

ZslDisablerQuirk

QuirkSummary Bug Id: 252818931, 261744070, 319913852, 361328838 Description: On certain devices, the captured image has color or zoom freezing issue for reprocessing.