HdrCapabilitiesUtil


@UnstableApi
public final class HdrCapabilitiesUtil


Utility class for checking HDR capabilities.

Summary

Public methods

static void

Assumes that the device does not support HDR editing for the given colorInfo.

static void

Assumes that the device does not support HDR editing for the given colorInfo.

static void

Assumes that the device supports HDR editing for the given colorInfo.

static void

Assumes that the device supports HDR editing for the given colorInfo.

static void
assumeDeviceSupportsOpenGlToneMapping(
    String testId,
    Format inputFormat
)

Assumes that the device supports OpenGL tone-mapping for the inputFormat.

Public methods

assumeDeviceDoesNotSupportHdrColorTransfer

public static void assumeDeviceDoesNotSupportHdrColorTransfer(
    String testId,
    Format format
)

Assumes that the device does not support HDR editing for the given colorInfo.

assumeDeviceDoesNotSupportHdrEditing

public static void assumeDeviceDoesNotSupportHdrEditing(String testId, Format format)

Assumes that the device does not support HDR editing for the given colorInfo.

assumeDeviceSupportsHdrColorTransfer

public static void assumeDeviceSupportsHdrColorTransfer(String testId, Format format)

Assumes that the device supports HDR editing for the given colorInfo.

assumeDeviceSupportsHdrEditing

public static void assumeDeviceSupportsHdrEditing(String testId, Format format)

Assumes that the device supports HDR editing for the given colorInfo.

Throws
org.junit.AssumptionViolatedException

if the device does not support HDR editing.

org.json.JSONException
java.io.IOException

assumeDeviceSupportsOpenGlToneMapping

public static void assumeDeviceSupportsOpenGlToneMapping(
    String testId,
    Format inputFormat
)

Assumes that the device supports OpenGL tone-mapping for the inputFormat.