Home
last modified time | relevance | path

Searched refs:vidCaps (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecCapabilitiesTest.java558 VideoCapabilities vidCaps = caps.getVideoCapabilities(); in createReasonableVideoFormat() local
562 int maxWidth = vidCaps.getSupportedWidths().getUpper(); in createReasonableVideoFormat()
563 int maxHeight = vidCaps.getSupportedHeightsFor(width).getUpper(); in createReasonableVideoFormat()
564 int maxRate = vidCaps.getSupportedFrameRatesFor(width, height).getUpper().intValue(); in createReasonableVideoFormat()
565 int bitrate = vidCaps.getBitrateRange().clamp( in createReasonableVideoFormat()
566 (int)(vidCaps.getBitrateRange().getUpper() in createReasonableVideoFormat()
603 private Size getVideoSizeForTest(VideoCapabilities vidCaps) { in getVideoSizeForTest() argument
605 if (vidCaps != null && !vidCaps.isSizeSupported(size.getWidth(), size.getHeight())) { in getVideoSizeForTest()
606 int minWidth = vidCaps.getSupportedWidths().getLower(); in getVideoSizeForTest()
607 int minHeight = vidCaps.getSupportedHeightsFor(minWidth).getLower(); in getVideoSizeForTest()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java770 VideoCapabilities vidCaps = caps.getVideoCapabilities(); in getVideoCapabilities() local
771 if (vidCaps == null) { in getVideoCapabilities()
774 return vidCaps; in getVideoCapabilities()
873 VideoCapabilities vidCaps = in setMaxEncoderFrameAndBitrates() local
875 setMaxEncoderFrameAndBitrates(vidCaps, format, maxFps); in setMaxEncoderFrameAndBitrates()
879 VideoCapabilities vidCaps, MediaFormat format, int maxFps) { in setMaxEncoderFrameAndBitrates() argument
883 int maxWidth = vidCaps.getSupportedWidths().getUpper(); in setMaxEncoderFrameAndBitrates()
884 int maxHeight = vidCaps.getSupportedHeightsFor(maxWidth).getUpper(); in setMaxEncoderFrameAndBitrates()
886 maxFps, vidCaps.getSupportedFrameRatesFor(width, height).getUpper().intValue()); in setMaxEncoderFrameAndBitrates()
889 int bitrate = vidCaps.getBitrateRange().clamp( in setMaxEncoderFrameAndBitrates()
[all …]