mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove deprecated ColorInfo constructor
This was first deprecated in a4bc0959be
, submitted Dec 2022
PiperOrigin-RevId: 578152077
This commit is contained in:
parent
3a527a888a
commit
8d87a27fb9
@ -253,37 +253,7 @@ public final class ColorInfo implements Bundleable {
|
||||
// Lazily initialized hashcode.
|
||||
private int hashCode;
|
||||
|
||||
/**
|
||||
* Constructs the ColorInfo.
|
||||
*
|
||||
* @param colorSpace The color space of the video.
|
||||
* @param colorRange The color range of the video.
|
||||
* @param colorTransfer The color transfer characteristics of the video.
|
||||
* @param hdrStaticInfo HdrStaticInfo as defined in CTA-861.3, or null if none specified.
|
||||
* @deprecated Use {@link Builder}.
|
||||
*/
|
||||
@Deprecated
|
||||
public ColorInfo(
|
||||
@C.ColorSpace int colorSpace,
|
||||
@C.ColorRange int colorRange,
|
||||
@C.ColorTransfer int colorTransfer,
|
||||
@Nullable byte[] hdrStaticInfo) {
|
||||
this(colorSpace, colorRange, colorTransfer, hdrStaticInfo, Format.NO_VALUE, Format.NO_VALUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs the ColorInfo.
|
||||
*
|
||||
* @param colorSpace The color space of the video.
|
||||
* @param colorRange The color range of the video.
|
||||
* @param colorTransfer The color transfer characteristics of the video.
|
||||
* @param hdrStaticInfo HdrStaticInfo as defined in CTA-861.3, or null if none specified.
|
||||
* @param lumaBitdepth The bit depth of the luma samples of the video.
|
||||
* @param chromaBitdepth The bit depth of the chroma samples of the video.
|
||||
* @deprecated Use {@link Builder}.
|
||||
*/
|
||||
@Deprecated
|
||||
public ColorInfo(
|
||||
private ColorInfo(
|
||||
@C.ColorSpace int colorSpace,
|
||||
@C.ColorRange int colorRange,
|
||||
@C.ColorTransfer int colorTransfer,
|
||||
|
@ -74,13 +74,14 @@ public final class FormatTest {
|
||||
Metadata metadata = new Metadata(new FakeMetadataEntry("id1"), new FakeMetadataEntry("id2"));
|
||||
|
||||
ColorInfo colorInfo =
|
||||
new ColorInfo(
|
||||
C.COLOR_SPACE_BT709,
|
||||
C.COLOR_RANGE_LIMITED,
|
||||
C.COLOR_TRANSFER_SDR,
|
||||
new byte[] {1, 2, 3, 4, 5, 6, 7},
|
||||
/* lumaBitdepth */ 9,
|
||||
/* chromaBitdepth */ 11);
|
||||
new ColorInfo.Builder()
|
||||
.setColorSpace(C.COLOR_SPACE_BT709)
|
||||
.setColorRange(C.COLOR_RANGE_LIMITED)
|
||||
.setColorTransfer(C.COLOR_TRANSFER_SDR)
|
||||
.setHdrStaticInfo(new byte[] {1, 2, 3, 4, 5, 6, 7})
|
||||
.setLumaBitdepth(9)
|
||||
.setChromaBitdepth(11)
|
||||
.build();
|
||||
|
||||
return new Format.Builder()
|
||||
.setId("id")
|
||||
|
Loading…
x
Reference in New Issue
Block a user