Skip to content

Commit

Permalink
Color: Add undefined values to toString methods
Browse files Browse the repository at this point in the history
This way, we can identify the undefined values later, if they're in use often.

PiperOrigin-RevId: 619967637
  • Loading branch information
dway123 authored and Copybara-Service committed Mar 28, 2024
1 parent c5e894e commit 0730a59
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ private static String colorSpaceToString(@C.ColorSpace int colorSpace) {
case C.COLOR_SPACE_BT2020:
return "BT2020";
default:
return "Undefined color space";
return "Undefined color space " + colorSpace;
}
}

Expand All @@ -443,7 +443,7 @@ private static String colorTransferToString(@C.ColorTransfer int colorTransfer)
case C.COLOR_TRANSFER_HLG:
return "HLG";
default:
return "Undefined color transfer";
return "Undefined color transfer " + colorTransfer;
}
}

Expand All @@ -457,7 +457,7 @@ private static String colorRangeToString(@C.ColorRange int colorRange) {
case C.COLOR_RANGE_FULL:
return "Full range";
default:
return "Undefined color range";
return "Undefined color range " + colorRange;
}
}

Expand Down

0 comments on commit 0730a59

Please sign in to comment.