Format files and add release note

This commit is contained in:
microkatz 2023-10-18 09:52:25 +00:00
parent f455e843bc
commit 918079059c
2 changed files with 9 additions and 11 deletions

View file

@ -24,6 +24,8 @@
video track are available. The default value is `false` which means video track are available. The default value is `false` which means
selecting a video track is prioritized. selecting a video track is prioritized.
* Extractors: * Extractors:
* Add AV1C parsing to MP4 extractor
([#692](https://github.com/androidx/media/pull/692)).
* Audio: * Audio:
* Video: * Video:
* Add workaround for a device issue on Galaxy Tab S7 FE, Chromecast with * Add workaround for a device issue on Galaxy Tab S7 FE, Chromecast with

View file

@ -1243,9 +1243,8 @@ import java.util.List;
Av1BitstreamParser parser = new Av1BitstreamParser(parent); Av1BitstreamParser parser = new Av1BitstreamParser(parent);
if (parser.parseSequenceHeader() && parser.colorDescriptionPresentFlag == 1) { if (parser.parseSequenceHeader() && parser.colorDescriptionPresentFlag == 1) {
colorSpace = ColorInfo.isoColorPrimariesToColorSpace(parser.colorPrimaries); colorSpace = ColorInfo.isoColorPrimariesToColorSpace(parser.colorPrimaries);
colorTransfer = ColorInfo.isoTransferCharacteristicsToColorTransfer( colorTransfer =
parser.transferCharacteristics ColorInfo.isoTransferCharacteristicsToColorTransfer(parser.transferCharacteristics);
);
colorRange = (parser.colorRange == 1) ? C.COLOR_RANGE_FULL : C.COLOR_RANGE_LIMITED; colorRange = (parser.colorRange == 1) ? C.COLOR_RANGE_FULL : C.COLOR_RANGE_LIMITED;
} }
} else if (childAtomType == Atom.TYPE_clli) { } else if (childAtomType == Atom.TYPE_clli) {
@ -2185,7 +2184,7 @@ import java.util.List;
/** /**
* Helper class for parsing syntax elements from AV1 bitstream. * Helper class for parsing syntax elements from AV1 bitstream.
* *
* Bitstream specification: https://aomediacodec.github.io/av1-spec/av1-spec.pdf * <p>Bitstream specification: https://aomediacodec.github.io/av1-spec/av1-spec.pdf
*/ */
private static final class Av1BitstreamParser { private static final class Av1BitstreamParser {
private static final String TAG = "Av1BitstreamParser"; private static final String TAG = "Av1BitstreamParser";
@ -2208,9 +2207,8 @@ import java.util.List;
/** /**
* Parses a fixed-length unsigned number. * Parses a fixed-length unsigned number.
* *
* See AV1 bitstream spec 4.10.2. * <p>See AV1 bitstream spec 4.10.2. f(n): Unsigned n-bit number appearing directly in the
* f(n): Unsigned n-bit number appearing directly in the bitstream. * bitstream. The bits are read from high to low order.
* The bits are read from high to low order.
* *
* @param length The length (in bits) of the number to decode. * @param length The length (in bits) of the number to decode.
* @return Parsed unsigned number. * @return Parsed unsigned number.
@ -2225,8 +2223,7 @@ import java.util.List;
int newBitCount = min(length, bitCount); int newBitCount = min(length, bitCount);
bitCount -= newBitCount; bitCount -= newBitCount;
length -= newBitCount; length -= newBitCount;
result = (result << newBitCount) | result = (result << newBitCount) | ((currentByte >> bitCount) & ((1 << newBitCount) - 1));
((currentByte >> bitCount) & ((1 << newBitCount) - 1));
} }
return result; return result;
} }
@ -2234,8 +2231,7 @@ import java.util.List;
/** /**
* Parses the AV1 sequence header. * Parses the AV1 sequence header.
* *
* See AV1 bitstream spec 5.5.1. * <p>See AV1 bitstream spec 5.5.1. This method can only be called once.
* This method can only be called once.
*/ */
public boolean parseSequenceHeader() { public boolean parseSequenceHeader() {
if (parseSequenceHeaderCalled) { if (parseSequenceHeaderCalled) {