mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Allow overriding of getCodecMaxValues
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158686545
This commit is contained in:
parent
4510abf278
commit
80be637dcc
1 changed files with 2 additions and 2 deletions
|
|
@ -650,7 +650,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||||
* @return Suitable {@link CodecMaxValues}.
|
* @return Suitable {@link CodecMaxValues}.
|
||||||
* @throws DecoderQueryException If an error occurs querying {@code codecInfo}.
|
* @throws DecoderQueryException If an error occurs querying {@code codecInfo}.
|
||||||
*/
|
*/
|
||||||
private static CodecMaxValues getCodecMaxValues(MediaCodecInfo codecInfo, Format format,
|
protected CodecMaxValues getCodecMaxValues(MediaCodecInfo codecInfo, Format format,
|
||||||
Format[] streamFormats) throws DecoderQueryException {
|
Format[] streamFormats) throws DecoderQueryException {
|
||||||
int maxWidth = format.width;
|
int maxWidth = format.width;
|
||||||
int maxHeight = format.height;
|
int maxHeight = format.height;
|
||||||
|
|
@ -838,7 +838,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||||
return format.rotationDegrees == Format.NO_VALUE ? 0 : format.rotationDegrees;
|
return format.rotationDegrees == Format.NO_VALUE ? 0 : format.rotationDegrees;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class CodecMaxValues {
|
protected static final class CodecMaxValues {
|
||||||
|
|
||||||
public final int width;
|
public final int width;
|
||||||
public final int height;
|
public final int height;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue