Searched refs:videoAspectRatio (Results 1 – 4 of 4) sorted by relevance
96 void onAspectRatioChanged(float videoAspectRatio); in onAspectRatioChanged() argument523 float videoAspectRatio; in setTvViewCallbacks()529 videoAspectRatio = in setTvViewCallbacks()532 videoAspectRatio *= in setTvViewCallbacks()538 videoAspectRatio = 0; in setTvViewCallbacks()540 if (DEBUG) Log.d(TAG, "Aspect Ratio: " + videoAspectRatio); in setTvViewCallbacks()541 if (mAspectRatio != videoAspectRatio in setTvViewCallbacks()542 || videoAspectRatio == 0) { in setTvViewCallbacks()544 videoAspectRatio); in setTvViewCallbacks()545 mAspectRatio = videoAspectRatio; in setTvViewCallbacks()
206 public void onAspectRatioChanged(float videoAspectRatio) { in onActivityCreated()207 updateAspectRatio(videoAspectRatio); in onActivityCreated()423 private void updateAspectRatio(float videoAspectRatio) { in updateAspectRatio() argument424 if (videoAspectRatio <= 0) { in updateAspectRatio()426 videoAspectRatio = mWindowAspectRatio; in updateAspectRatio()428 if (Math.abs(mAppliedAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()432 if (Math.abs(mWindowAspectRatio - videoAspectRatio) < DISPLAY_ASPECT_RATIO_EPSILON) { in updateAspectRatio()434 } else if (videoAspectRatio < mWindowAspectRatio) { in updateAspectRatio()435 int newPadding = (mWindowWidth - Math.round(mWindowHeight * videoAspectRatio)) / 2; in updateAspectRatio()438 int newPadding = (mWindowHeight - Math.round(mWindowWidth / videoAspectRatio)) / 2; in updateAspectRatio()[all …]
34 float videoAspectRatio = videoWidth / videoHeight; in scaleVideoAndFillView() local38 if (viewAspectRatio > videoAspectRatio) { in scaleVideoAndFillView()
1078 float videoAspectRatio = ((float) videoSize.x) / videoSize.y; in updateRemoteVideoScaling() local1081 float delta = Math.abs(videoAspectRatio - displayAspectRatio); in updateRemoteVideoScaling()1082 float sum = videoAspectRatio + displayAspectRatio; in updateRemoteVideoScaling()