Searched refs:vidCaps (Results 1 – 2 of 2) sorted by relevance
558 VideoCapabilities vidCaps = caps.getVideoCapabilities(); in createReasonableVideoFormat() local562 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() argument605 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 …]
770 VideoCapabilities vidCaps = caps.getVideoCapabilities(); in getVideoCapabilities() local771 if (vidCaps == null) { in getVideoCapabilities()774 return vidCaps; in getVideoCapabilities()873 VideoCapabilities vidCaps = in setMaxEncoderFrameAndBitrates() local875 setMaxEncoderFrameAndBitrates(vidCaps, format, maxFps); in setMaxEncoderFrameAndBitrates()879 VideoCapabilities vidCaps, MediaFormat format, int maxFps) { in setMaxEncoderFrameAndBitrates() argument883 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 …]