mirror of
https://github.com/androidx/media.git
synced 2025-05-10 17:22:13 +08:00
HDR: Add colorinfo to exception logs.
Format.toString unfortunately doesn't log colorInfo, and as Format holds a very large set of values, it's unclear that it should. ColorInfo is useful for codec exceptions though, so log this in ExportException.createForCodec. PiperOrigin-RevId: 510475520
This commit is contained in:
parent
1308e22813
commit
f295dd4211
@ -231,6 +231,9 @@ public final class ExportException extends Exception {
|
||||
boolean isDecoder,
|
||||
Format format) {
|
||||
String details = "format=" + format;
|
||||
if (isVideo) {
|
||||
details += ", colorInfo=" + format.colorInfo;
|
||||
}
|
||||
return createForCodec(cause, errorCode, isVideo, isDecoder, details);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user