Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -15578,6 +15578,7 @@ package android.media { public static final class MediaCodecInfo.VideoCapabilities { method public boolean areSizeAndRateSupported(int, int, double); method public android.util.Range<java.lang.Double> getAchievableFrameRatesFor(int, int); method public android.util.Range<java.lang.Integer> getBitrateRange(); method public int getHeightAlignment(); method public android.util.Range<java.lang.Integer> getSupportedFrameRates(); api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -16791,6 +16791,7 @@ package android.media { public static final class MediaCodecInfo.VideoCapabilities { method public boolean areSizeAndRateSupported(int, int, double); method public android.util.Range<java.lang.Double> getAchievableFrameRatesFor(int, int); method public android.util.Range<java.lang.Integer> getBitrateRange(); method public int getHeightAlignment(); method public android.util.Range<java.lang.Integer> getSupportedFrameRates(); media/java/android/media/MediaCodecInfo.java +21 −0 Original line number Diff line number Diff line Loading @@ -1135,6 +1135,27 @@ public final class MediaCodecInfo { (double) mFrameRateRange.getUpper())); } /** * Returns the range of achievable video frame rates for a video size. * May return {@code null}, if the codec did not publish any measurement * data. * <p> * This is a performance estimate, based on full-speed decoding * and encoding measurements of common video sizes supported by the codec. * * @param width the width of the video * @param height the height of the video * * @throws IllegalArgumentException if the video size is not supported. */ public Range<Double> getAchievableFrameRatesFor(int width, int height) { if (!supports(width, height, null)) { throw new IllegalArgumentException("unsupported size"); } // TODO: get this data from the codec return null; } /** * Returns whether a given video size ({@code width} and * {@code height}) and {@code frameRate} combination is supported. Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -15578,6 +15578,7 @@ package android.media { public static final class MediaCodecInfo.VideoCapabilities { method public boolean areSizeAndRateSupported(int, int, double); method public android.util.Range<java.lang.Double> getAchievableFrameRatesFor(int, int); method public android.util.Range<java.lang.Integer> getBitrateRange(); method public int getHeightAlignment(); method public android.util.Range<java.lang.Integer> getSupportedFrameRates();
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -16791,6 +16791,7 @@ package android.media { public static final class MediaCodecInfo.VideoCapabilities { method public boolean areSizeAndRateSupported(int, int, double); method public android.util.Range<java.lang.Double> getAchievableFrameRatesFor(int, int); method public android.util.Range<java.lang.Integer> getBitrateRange(); method public int getHeightAlignment(); method public android.util.Range<java.lang.Integer> getSupportedFrameRates();
media/java/android/media/MediaCodecInfo.java +21 −0 Original line number Diff line number Diff line Loading @@ -1135,6 +1135,27 @@ public final class MediaCodecInfo { (double) mFrameRateRange.getUpper())); } /** * Returns the range of achievable video frame rates for a video size. * May return {@code null}, if the codec did not publish any measurement * data. * <p> * This is a performance estimate, based on full-speed decoding * and encoding measurements of common video sizes supported by the codec. * * @param width the width of the video * @param height the height of the video * * @throws IllegalArgumentException if the video size is not supported. */ public Range<Double> getAchievableFrameRatesFor(int width, int height) { if (!supports(width, height, null)) { throw new IllegalArgumentException("unsupported size"); } // TODO: get this data from the codec return null; } /** * Returns whether a given video size ({@code width} and * {@code height}) and {@code frameRate} combination is supported. Loading