Searched refs:videoAspectRatio (Results 1 – 4 of 4) sorted by relevance
181 public void onAspectRatioChanged(float videoAspectRatio) { in onActivityCreated()182 updateAspectRatio(videoAspectRatio); in onActivityCreated()378 private void updateAspectRatio(float videoAspectRatio) { in updateAspectRatio() argument379 if (videoAspectRatio <= 0) { in updateAspectRatio()381 videoAspectRatio = mWindowAspectRatio; in updateAspectRatio()383 if (Math.abs(mAppliedAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()387 if (Math.abs(mWindowAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()389 } else if (videoAspectRatio < mWindowAspectRatio) { in updateAspectRatio()390 int newPadding = (mWindowWidth - Math.round(mWindowHeight * videoAspectRatio)) / 2; in updateAspectRatio()393 int newPadding = (mWindowHeight - Math.round(mWindowWidth / videoAspectRatio)) / 2; in updateAspectRatio()[all …]
96 void onAspectRatioChanged(float videoAspectRatio); in onAspectRatioChanged() argument535 float videoAspectRatio; in setTvViewCallbacks()539 videoAspectRatio = trackInfo.getVideoPixelAspectRatio() in setTvViewCallbacks()543 videoAspectRatio = 0; in setTvViewCallbacks()545 if (DEBUG) Log.d(TAG, "Aspect Ratio: " + videoAspectRatio); in setTvViewCallbacks()546 if (mAspectRatio != videoAspectRatio || videoAspectRatio == 0) { in setTvViewCallbacks()548 .onAspectRatioChanged(videoAspectRatio); in setTvViewCallbacks()549 mAspectRatio = videoAspectRatio; in setTvViewCallbacks()
34 float videoAspectRatio = videoWidth / videoHeight; in scaleVideoAndFillView() local38 if (viewAspectRatio > videoAspectRatio) { in scaleVideoAndFillView()
1007 float videoAspectRatio = ((float) videoSize.x) / videoSize.y; in updateRemoteVideoScaling() local1010 float delta = Math.abs(videoAspectRatio - displayAspectRatio); in updateRemoteVideoScaling()1011 float sum = videoAspectRatio + displayAspectRatio; in updateRemoteVideoScaling()