Home
last modified time | relevance | path

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

/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt40 private var screenshotHeight = screenshots.maxOf { it.bitmap.height } in <lambda>() variable
52 val aspectRatio = screenshotWidth / screenshotHeight.toFloat() in limitLongestSide()
54 screenshotHeight = (screenshotHeight * (sizePx.toFloat() / screenshotWidth)).toInt() in limitLongestSide()
56 } else if (aspectRatio < 1 && sizePx < screenshotHeight) { in limitLongestSide()
57 screenshotWidth = (screenshotWidth * (sizePx.toFloat() / screenshotHeight)).toInt() in limitLongestSide()
58 screenshotHeight = sizePx in limitLongestSide()
74 FilmstripOrientation.AUTOMATIC -> screenshotWidth <= screenshotHeight
78 val scaleY = screenshotHeight.toFloat() / screenshots.maxOf { it.bitmap.height } in <lambda>()
82 HorizontalFilmstripRenderer(screenshots, screenshotWidth, screenshotHeight, scale)
84 VerticalFilmstripRenderer(screenshots, screenshotWidth, screenshotHeight, scale)
[all …]
DVideoRenderer.kt33 private var screenshotHeight = screenshots.maxOf { it.bitmap.height } in <lambda>() variable in platform.test.motion.filmstrip.VideoRenderer
44 val bitrate = (screenshotWidth * screenshotHeight * bitsPerPixel * FRAME_RATE).toInt() in <lambda>()
46 val format = MediaFormat.createVideoFormat(mime, screenshotWidth, screenshotHeight) in <lambda>()