diff --git a/libraries/common/src/main/java/androidx/media3/common/util/ColorParser.java b/libraries/common/src/main/java/androidx/media3/common/util/ColorParser.java index 3d1f7a6349..f0550b0789 100644 --- a/libraries/common/src/main/java/androidx/media3/common/util/ColorParser.java +++ b/libraries/common/src/main/java/androidx/media3/common/util/ColorParser.java @@ -27,8 +27,12 @@ import java.util.regex.Pattern; /** * Parser for color expressions found in styling formats, e.g. TTML and CSS. * - * @see WebVTT CSS Styling - * @see Timed Text Markup Language 2 (TTML2) - 10.3.5 + *
See also: + * + *
*/ @UnstableApi public final class ColorParser { diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/upstream/SlidingPercentile.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/upstream/SlidingPercentile.java index ca3d0fadbc..b555b3c40f 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/upstream/SlidingPercentile.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/upstream/SlidingPercentile.java @@ -30,8 +30,12 @@ import java.util.Comparator; * rate observations. This is an alternative to sliding mean and exponential averaging which suffer * from susceptibility to outliers and slow adaptation to step functions. * - * @see Wiki: Moving average - * @see Wiki: Selection algorithm + *See the following Wikipedia articles: + * + *
See the IIS Smooth
+ * Streaming Client Manifest Format
*/
@UnstableApi
public class SsManifest implements FilterableManifest See the IIS Smooth
+ * Streaming Client Manifest Format
*/
@UnstableApi
public class SsManifestParser implements ParsingLoadable.Parser See the following spec references:
+ *
+ * See the Vorbis
+ * bitpacking specification
*/
@UnstableApi
public final class VorbisBitArray {
diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisUtil.java b/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisUtil.java
index 240afed6db..68832975f1 100644
--- a/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisUtil.java
+++ b/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisUtil.java
@@ -52,8 +52,8 @@ public final class VorbisUtil {
/**
* Vorbis identification header.
*
- * @see Vorbis
- * spec/Identification header
+ * See the Vorbis
+ * spec/Identification header
*/
public static final class VorbisIdHeader {
@@ -135,8 +135,9 @@ public final class VorbisUtil {
/**
* Returns ilog(x), which is the index of the highest set bit in {@code x}.
*
- * @see Vorbis
- * spec
+ * See the Vorbis
+ * spec
+ *
* @param x the value of which the ilog should be calculated.
* @return ilog(x)
*/
@@ -152,8 +153,9 @@ public final class VorbisUtil {
/**
* Reads a Vorbis identification header from {@code headerData}.
*
- * @see Vorbis
- * spec/Identification header
+ * See the Vorbis
+ * spec/Identification header
+ *
* @param headerData a {@link ParsableByteArray} wrapping the header data.
* @return a {@link VorbisUtil.VorbisIdHeader} with meta data.
* @throws ParserException thrown if invalid capture pattern is detected.
@@ -202,8 +204,9 @@ public final class VorbisUtil {
/**
* Reads a Vorbis comment header.
*
- * @see Vorbis
- * spec/Comment header
+ * See the Vorbis
+ * spec/Comment header
+ *
* @param headerData A {@link ParsableByteArray} wrapping the header data.
* @return A {@link VorbisUtil.CommentHeader} with all the comments.
* @throws ParserException If an error occurs parsing the comment header.
@@ -219,8 +222,9 @@ public final class VorbisUtil {
*
* The data provided may not contain the Vorbis metadata common header and the framing bit.
*
- * @see Vorbis
- * spec/Comment header
+ * See the Vorbis
+ * spec/Comment header
+ *
* @param headerData A {@link ParsableByteArray} wrapping the header data.
* @param hasMetadataHeader Whether the {@code headerData} contains a Vorbis metadata common
* header preceding the comment header.
@@ -349,8 +353,9 @@ public final class VorbisUtil {
* That's why we need to partially decode or at least read the entire setup header to know where
* to start reading the modes.
*
- * @see Vorbis
- * spec/Setup header
+ * See the Vorbis
+ * spec/Setup header
+ *
* @param headerData a {@link ParsableByteArray} containing setup header data.
* @param channels the number of channels.
* @return an array of {@link Mode}s.
@@ -592,7 +597,8 @@ public final class VorbisUtil {
}
/**
- * @see _book_maptype1_quantvals
+ * See the _book_maptype1_quantvals
*/
private static long mapType1QuantValues(long entries, long dimension) {
return (long) Math.floor(Math.pow(entries, 1.d / dimension));
diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/text/ttml/TtmlDecoder.java b/libraries/extractor/src/main/java/androidx/media3/extractor/text/ttml/TtmlDecoder.java
index b5f53a35fb..f9dea101f1 100644
--- a/libraries/extractor/src/main/java/androidx/media3/extractor/text/ttml/TtmlDecoder.java
+++ b/libraries/extractor/src/main/java/androidx/media3/extractor/text/ttml/TtmlDecoder.java
@@ -65,7 +65,7 @@ import org.xmlpull.v1.XmlPullParserFactory;
* See the TTML specification
*/
@UnstableApi
public final class TtmlDecoder extends SimpleSubtitleDecoder {
diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttCssStyle.java b/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttCssStyle.java
index 623f8fd057..e27eefdb0f 100644
--- a/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttCssStyle.java
+++ b/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttCssStyle.java
@@ -36,10 +36,10 @@ import java.util.HashSet;
import java.util.Set;
/**
- * Style object of a Css style block in a Webvtt file.
+ * Style object of a CSS style block in a WebVTT file.
*
- * @see W3C specification - Apply
- * CSS properties
+ * See the Apply CSS properties
+ * section of the W3C specification
*/
@UnstableApi
public final class WebvttCssStyle {
diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttDecoder.java b/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttDecoder.java
index 6a0daf5893..cb74c2b6ab 100644
--- a/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttDecoder.java
+++ b/libraries/extractor/src/main/java/androidx/media3/extractor/text/webvtt/WebvttDecoder.java
@@ -29,7 +29,7 @@ import java.util.List;
/**
* A {@link SimpleSubtitleDecoder} for WebVTT.
*
- * @see WebVTT specification
+ * See the WebVTT specification.
*/
@UnstableApi
public final class WebvttDecoder extends SimpleSubtitleDecoder {
diff --git a/libraries/extractor/src/test/java/androidx/media3/extractor/text/ttml/TtmlDecoderTest.java b/libraries/extractor/src/test/java/androidx/media3/extractor/text/ttml/TtmlDecoderTest.java
index 78b7a4def7..c1b9a69fec 100644
--- a/libraries/extractor/src/test/java/androidx/media3/extractor/text/ttml/TtmlDecoderTest.java
+++ b/libraries/extractor/src/test/java/androidx/media3/extractor/text/ttml/TtmlDecoderTest.java
@@ -112,14 +112,11 @@ public final class TtmlDecoderTest {
* Regression test for devices on JellyBean where some named colors are not correctly defined on
* framework level. Tests that lime resolves to MSSIM divides the image into windows, calculates SSIM of each, then returns the average.
*
- * @see The SSIM paper.
+ * See the SSIM paper.
*/
/* package */ final class MssimCalculator {
// Referred to as 'L' in the SSIM paper, this constant defines the maximum pixel values. The
+ *
*/
@UnstableApi
public final class FlacStreamMetadata {
diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisBitArray.java b/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisBitArray.java
index a1bfbbe059..40e4b1392c 100644
--- a/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisBitArray.java
+++ b/libraries/extractor/src/main/java/androidx/media3/extractor/VorbisBitArray.java
@@ -23,8 +23,8 @@ import androidx.media3.common.util.UnstableApi;
/**
* Wraps a byte array, providing methods that allow it to be read as a Vorbis bitstream.
*
- * @see Vorbis bitpacking
- * specification
+ * #FF00FF00
not #00FF00
*
.
- *
- * @throws IOException thrown if reading subtitle file fails.
- * @see
- * JellyBean Color
- * Kitkat Color
*/
+ // JellyBean Color:
+ // https://github.com/android/platform_frameworks_base/blob/jb-mr2-release/graphics/java/android/graphics/Color.java#L414
+ // KitKat Color:
+ // https://github.com/android/platform_frameworks_base/blob/kitkat-mr2.2-release/graphics/java/android/graphics/Color.java#L414
@Test
public void lime() throws IOException, SubtitleDecoderException {
TtmlSubtitle subtitle = getSubtitle(INLINE_ATTRIBUTES_TTML_FILE);
diff --git a/libraries/transformer/src/main/java/androidx/media3/transformer/MssimCalculator.java b/libraries/transformer/src/main/java/androidx/media3/transformer/MssimCalculator.java
index ca7bbe632b..e0dd32ef77 100644
--- a/libraries/transformer/src/main/java/androidx/media3/transformer/MssimCalculator.java
+++ b/libraries/transformer/src/main/java/androidx/media3/transformer/MssimCalculator.java
@@ -23,7 +23,7 @@ import static java.lang.Math.pow;
*
*