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: * Common Library:
* ExoPlayer: * ExoPlayer:
* Add luma and chroma bitdepth to `ColorInfo`
[#491](https://github.com/androidx/media/pull/491).
* Transformer: * Transformer:
* Track Selection: * Track Selection:
* Add `DefaultTrackSelector.Parameters.allowAudioNonSeamlessAdaptiveness` * Add `DefaultTrackSelector.Parameters.allowAudioNonSeamlessAdaptiveness`

View File

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