Rename findEncoderWithClosestFormatSupport.
Just a misc nit, since I found the name a bit confusing, and figured findEncoderWithClosestSupportedFormat might be more descriptive. PiperOrigin-RevId: 463433646
This commit is contained in:
parent
22822d8e19
commit
a7a17dc2bb
@ -224,7 +224,7 @@ public final class DefaultEncoderFactory implements Codec.EncoderFactory {
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
VideoEncoderQueryResult encoderAndClosestFormatSupport =
|
VideoEncoderQueryResult encoderAndClosestFormatSupport =
|
||||||
findEncoderWithClosestFormatSupport(
|
findEncoderWithClosestSupportedFormat(
|
||||||
format,
|
format,
|
||||||
requestedVideoEncoderSettings,
|
requestedVideoEncoderSettings,
|
||||||
videoEncoderSelector,
|
videoEncoderSelector,
|
||||||
@ -342,14 +342,15 @@ public final class DefaultEncoderFactory implements Codec.EncoderFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds an {@linkplain MediaCodecInfo encoder} that supports the requested format most closely.
|
* Finds an {@linkplain MediaCodecInfo encoder} that supports a format closest to the requested
|
||||||
|
* format.
|
||||||
*
|
*
|
||||||
* <p>Returns the {@linkplain MediaCodecInfo encoder} and the supported {@link Format} in a {@link
|
* <p>Returns the {@linkplain MediaCodecInfo encoder} and the supported {@link Format} in a {@link
|
||||||
* Pair}, or {@code null} if none is found.
|
* Pair}, or {@code null} if none is found.
|
||||||
*/
|
*/
|
||||||
@RequiresNonNull("#1.sampleMimeType")
|
@RequiresNonNull("#1.sampleMimeType")
|
||||||
@Nullable
|
@Nullable
|
||||||
private static VideoEncoderQueryResult findEncoderWithClosestFormatSupport(
|
private static VideoEncoderQueryResult findEncoderWithClosestSupportedFormat(
|
||||||
Format requestedFormat,
|
Format requestedFormat,
|
||||||
VideoEncoderSettings videoEncoderSettings,
|
VideoEncoderSettings videoEncoderSettings,
|
||||||
EncoderSelector encoderSelector,
|
EncoderSelector encoderSelector,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user