mirror of
https://github.com/androidx/media.git
synced 2025-05-09 08:30:43 +08:00
Rename findEncoderWithClosestFormatSupport.
Just a misc nit, since I found the name a bit confusing, and figured findEncoderWithClosestSupportedFormat might be more descriptive. PiperOrigin-RevId: 463433646 (cherry picked from commit 324fc5d7e88d9e4fdb1ecc7e70106d641f8236ec)
This commit is contained in:
parent
d8a47769b0
commit
abe4b23967
@ -222,7 +222,7 @@ public final class DefaultEncoderFactory implements Codec.EncoderFactory {
|
||||
|
||||
@Nullable
|
||||
VideoEncoderQueryResult encoderAndClosestFormatSupport =
|
||||
findEncoderWithClosestFormatSupport(
|
||||
findEncoderWithClosestSupportedFormat(
|
||||
format,
|
||||
requestedVideoEncoderSettings,
|
||||
videoEncoderSelector,
|
||||
@ -340,14 +340,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
|
||||
* Pair}, or {@code null} if none is found.
|
||||
*/
|
||||
@RequiresNonNull("#1.sampleMimeType")
|
||||
@Nullable
|
||||
private static VideoEncoderQueryResult findEncoderWithClosestFormatSupport(
|
||||
private static VideoEncoderQueryResult findEncoderWithClosestSupportedFormat(
|
||||
Format requestedFormat,
|
||||
VideoEncoderSettings videoEncoderSettings,
|
||||
EncoderSelector encoderSelector,
|
||||
|
Loading…
x
Reference in New Issue
Block a user