Format with google-java-format

This commit is contained in:
microkatz 2023-09-01 14:16:51 +00:00
parent f14732873f
commit bbcf37dc9e
2 changed files with 10 additions and 4 deletions

View File

@ -4,6 +4,8 @@
* Common Library:
* ExoPlayer:
* Add luma and chroma bitdepth to `ColorInfo`
[#491](https://github.com/androidx/media/pull/491).
* Transformer:
* Track Selection:
* Add `DefaultTrackSelector.Parameters.allowAudioNonSeamlessAdaptiveness`

View File

@ -325,10 +325,14 @@ public final class ColorInfo implements Bundleable {
}
String bitdepthsString = isBitdepthValid() ? lumaBitdepth + "/" + chromaBitdepth : "NA";
String dataspaceString = isDataSpaceValid() ? Util.formatInvariant("%s/%s/%s",
String dataspaceString =
isDataSpaceValid()
? Util.formatInvariant(
"%s/%s/%s",
colorSpaceToString(colorSpace),
colorRangeToString(colorRange),
colorTransferToString(colorTransfer)) : "NA";
colorTransferToString(colorTransfer))
: "NA";
return bitdepthsString + "/" + dataspaceString;
}