Lines Matching refs:height
364 int height = mMediaPlayer.getVideoHeight();
365 if (width > 0 && height > 0) {
367 mVideoHeight = height;
464 int width, int height) {
466 Log.d(TAG, "surfaceChanged: " + width + "x" + height);
491 int height = getVideoHeight();
492 if (width > 0 && height > 0) {
500 if (surfaceWidth * height < surfaceHeight * width) {
502 // while height is derived from video's aspect ratio
504 lp.height = surfaceWidth * height / width;
506 // Black bars on left&right, mSurfaceView has full layout height,
508 lp.width = surfaceHeight * width / height;
509 lp.height = surfaceHeight;
511 Log.i(TAG, "video rect is " + lp.width + "x" + lp.height);
514 mPresentation.updateSize(width, height);
567 public void updateSize(int width, int height) {
571 if (surfaceWidth * height < surfaceHeight * width) {
573 lp.height = surfaceWidth * height / width;
575 lp.width = surfaceHeight * width / height;
576 lp.height = surfaceHeight;
578 Log.i(TAG, "Presentation video rect is " + lp.width + "x" + lp.height);
619 int height = getVideoHeight();
620 if (width > 0 && height > 0) {
621 mOverlay.updateAspectRatio(width, height);