mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Format with google-java-format
This commit is contained in:
parent
ee1b1500e2
commit
c72ec74e11
2 changed files with 18 additions and 10 deletions
|
|
@ -1022,7 +1022,7 @@ public class MatroskaExtractor implements Extractor {
|
||||||
case ID_COLOUR_BITS_PER_CHANNEL:
|
case ID_COLOUR_BITS_PER_CHANNEL:
|
||||||
assertInTrackEntry(id);
|
assertInTrackEntry(id);
|
||||||
currentTrack.hasColorInfo = true;
|
currentTrack.hasColorInfo = true;
|
||||||
currentTrack.bitsPerChannel = (int)value;
|
currentTrack.bitsPerChannel = (int) value;
|
||||||
break;
|
break;
|
||||||
case ID_COLOUR_RANGE:
|
case ID_COLOUR_RANGE:
|
||||||
assertInTrackEntry(id);
|
assertInTrackEntry(id);
|
||||||
|
|
@ -2308,7 +2308,14 @@ public class MatroskaExtractor implements Extractor {
|
||||||
@Nullable ColorInfo colorInfo = null;
|
@Nullable ColorInfo colorInfo = null;
|
||||||
if (hasColorInfo) {
|
if (hasColorInfo) {
|
||||||
@Nullable byte[] hdrStaticInfo = getHdrStaticInfo();
|
@Nullable byte[] hdrStaticInfo = getHdrStaticInfo();
|
||||||
colorInfo = new ColorInfo(colorSpace, colorRange, colorTransfer, hdrStaticInfo, bitsPerChannel, bitsPerChannel);
|
colorInfo =
|
||||||
|
new ColorInfo(
|
||||||
|
colorSpace,
|
||||||
|
colorRange,
|
||||||
|
colorTransfer,
|
||||||
|
hdrStaticInfo,
|
||||||
|
bitsPerChannel,
|
||||||
|
bitsPerChannel);
|
||||||
}
|
}
|
||||||
int rotationDegrees = Format.NO_VALUE;
|
int rotationDegrees = Format.NO_VALUE;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1224,7 +1224,8 @@ import java.util.List;
|
||||||
ExtractorUtil.checkContainerInput(mimeType == null, /* message= */ null);
|
ExtractorUtil.checkContainerInput(mimeType == null, /* message= */ null);
|
||||||
mimeType = MimeTypes.VIDEO_AV1;
|
mimeType = MimeTypes.VIDEO_AV1;
|
||||||
parent.setPosition(childStartPosition + Atom.HEADER_SIZE);
|
parent.setPosition(childStartPosition + Atom.HEADER_SIZE);
|
||||||
parent.skipBytes(1); ; // marker(1), version(7)
|
parent.skipBytes(1);
|
||||||
|
; // marker(1), version(7)
|
||||||
int byte2 = parent.readUnsignedByte();
|
int byte2 = parent.readUnsignedByte();
|
||||||
int seqProfile = byte2 >> 5;
|
int seqProfile = byte2 >> 5;
|
||||||
int byte3 = parent.readUnsignedByte();
|
int byte3 = parent.readUnsignedByte();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue