HdrCapabilitiesUtil
@UnstableApi
public final class HdrCapabilitiesUtil
Utility class for checking HDR capabilities.
Summary
Public methods |
|
|---|---|
static void |
assumeDeviceDoesNotSupportHdrColorTransfer(Assumes that the device does not support HDR editing for the given |
static void |
assumeDeviceDoesNotSupportHdrEditing(String testId, Format format)Assumes that the device does not support HDR editing for the given |
static void |
assumeDeviceSupportsHdrColorTransfer(String testId, Format format)Assumes that the device supports HDR editing for the given |
static void |
assumeDeviceSupportsHdrEditing(String testId, Format format)Assumes that the device supports HDR editing for the given |
static void |
assumeDeviceSupportsOpenGlToneMapping(Assumes that the device supports OpenGL tone-mapping for the |
Public methods
assumeDeviceDoesNotSupportHdrColorTransfer
public static void assumeDeviceDoesNotSupportHdrColorTransfer(
String testId,
Format format
)
Assumes that the device does not support HDR editing for the given colorInfo.
| Throws | |
|---|---|
org.junit.AssumptionViolatedException |
if the device does support HDR editing. |
org.json.JSONException |
|
java.io.IOException |
|
androidx.media3.common.util.GlUtil.GlException |
assumeDeviceDoesNotSupportHdrEditing
public static void assumeDeviceDoesNotSupportHdrEditing(String testId, Format format)
Assumes that the device does not support HDR editing for the given colorInfo.
| Throws | |
|---|---|
org.junit.AssumptionViolatedException |
if the device does support HDR editing. |
org.json.JSONException |
|
java.io.IOException |
assumeDeviceSupportsHdrColorTransfer
public static void assumeDeviceSupportsHdrColorTransfer(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 |
|
androidx.media3.common.util.GlUtil.GlException |
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.
| Throws | |
|---|---|
org.junit.AssumptionViolatedException |
if the device does not support OpenGL tone-mapping. |
org.json.JSONException |
|
java.io.IOException |
|
androidx.media3.exoplayer.mediacodec.MediaCodecUtil.DecoderQueryException |