Searched refs:vidCaps (Results 1 – 2 of 2) sorted by relevance
470 VideoCapabilities vidCaps = caps.getVideoCapabilities(); in createReasonableVideoFormat() local474 int maxWidth = vidCaps.getSupportedWidths().getUpper(); in createReasonableVideoFormat()475 int maxHeight = vidCaps.getSupportedHeightsFor(width).getUpper(); in createReasonableVideoFormat()476 int maxRate = vidCaps.getSupportedFrameRatesFor(width, height).getUpper().intValue(); in createReasonableVideoFormat()477 int bitrate = vidCaps.getBitrateRange().clamp( in createReasonableVideoFormat()478 (int)(vidCaps.getBitrateRange().getUpper() in createReasonableVideoFormat()512 private Size getVideoSizeForTest(VideoCapabilities vidCaps) { in getVideoSizeForTest() argument514 if (vidCaps != null && !vidCaps.isSizeSupported(size.getWidth(), size.getHeight())) { in getVideoSizeForTest()515 int minWidth = vidCaps.getSupportedWidths().getLower(); in getVideoSizeForTest()516 int minHeight = vidCaps.getSupportedHeightsFor(minWidth).getLower(); in getVideoSizeForTest()[all …]
745 VideoCapabilities vidCaps = caps.getVideoCapabilities(); in getVideoCapabilities() local746 if (vidCaps == null) { in getVideoCapabilities()749 return vidCaps; in getVideoCapabilities()848 VideoCapabilities vidCaps = in setMaxEncoderFrameAndBitrates() local850 setMaxEncoderFrameAndBitrates(vidCaps, format, maxFps); in setMaxEncoderFrameAndBitrates()854 VideoCapabilities vidCaps, MediaFormat format, int maxFps) { in setMaxEncoderFrameAndBitrates() argument858 int maxWidth = vidCaps.getSupportedWidths().getUpper(); in setMaxEncoderFrameAndBitrates()859 int maxHeight = vidCaps.getSupportedHeightsFor(maxWidth).getUpper(); in setMaxEncoderFrameAndBitrates()861 maxFps, vidCaps.getSupportedFrameRatesFor(width, height).getUpper().intValue()); in setMaxEncoderFrameAndBitrates()864 int bitrate = vidCaps.getBitrateRange().clamp( in setMaxEncoderFrameAndBitrates()[all …]