Searched defs:ratio (Results 1 - 15 of 15) sorted by relevance

/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dpsy_configuration.h45 Word16 ratio; member in struct:__anon319
75 Word16 ratio; member in struct:__anon320
/frameworks/base/media/java/android/media/
H A DUtils.java151 private static Rational scaleRatio(Rational ratio, int num, int den) { argument
156 (int)(ratio.getNumerator() * (double)num), // saturate to int
157 (int)(ratio.getDenominator() * (double)den)); // saturate to int
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.cpp72 bool Rect::ExpandToAspectRatio(float ratio) { argument
73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
78 if (current_ratio < ratio) {
79 const float dx = width * (ratio / current_ratio - 1.0f);
83 const float dy = height * (current_ratio / ratio - 1.0f);
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp71 bool Rect::ExpandToAspectRatio(float ratio) { argument
72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
77 if (current_ratio < ratio) {
78 const float dx = width * (ratio / current_ratio - 1.0f);
82 const float dy = height * (current_ratio / ratio - 1.0f);
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DConfigGenerator.java260 public ConfigGenerator setRatio(ScreenRatio ratio) { argument
261 mRatio = ratio;
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java186 public void setZoomRatio(float ratio) { argument
187 super.setZoomRatio(ratio);
H A DCameraSettings.java322 * @return The current zoom ratio. The min is 1.0f.
329 * Sets the zoom ratio.
330 * @param ratio The new zoom ratio. Should be in the range between 1.0 to
333 * @throws java.lang.UnsupportedOperationException if the ratio is not
336 public void setZoomRatio(float ratio) { argument
337 mCurrentZoomRatio = ratio;
H A DAndroidCameraAgentImpl.java730 * @param ratio Desired zoom ratio, in [1.0f,+Inf).
732 * @return Index of the closest corresponding ratio, rounded up toward
733 * that of the maximum available ratio.
735 private int zoomRatioToIndex(float ratio, List<Integer> percentages) { argument
736 int percent = (int) (ratio * AndroidCameraCapabilities.ZOOM_MULTIPLIER);
739 // Found the desired ratio in the supported list
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp93 float ratio = width / height; local
98 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp187 float ratio = 320.0f / 480.0f; local
192 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/wilhelm/src/itf/
H A DIEqualizer.c298 // search for band whose center frequency has the closest ratio to 1.0
311 float ratio = frequency <= band->mCenter ? local
313 if (ratio > bestRatio) {
314 bestRatio = ratio;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java107 // from * (1 - ratio) + to * ratio
110 float ratio, int x, int y, int w, int h);
113 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
117 float ratio, RectF src, RectF target);
109 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument
116 drawMixed(BasicTexture from, int toColor, float ratio, RectF src, RectF target) argument
H A DGLES20Canvas.java758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { argument
761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect);
765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { argument
772 float cappedRatio = Math.min(1f, Math.max(0f, ratio));
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp1275 // Apply the HF decay ratio to the Reverb.
1279 // ratio ratio to be applied
1283 void ReverbSetDecayHfRatio(ReverbContext *pContext, int16_t ratio){ argument
1284 //ALOGV("\tReverbSetDecayHfRatioe start (%d)", ratio);
1295 ActiveParams.Damping = (LVM_INT16)(ratio/20);
1302 pContext->SavedDecayHfRatio = ratio;
1311 // Get the HF decay ratio applied to the Revervb.
1758 int16_t ratio; local
1813 ratio
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp299 // Pick the largest thumbnail size that matches still image aspect ratio.
2747 float ratio, const int32_t* sizeArray, size_t count) {
2755 if (fabs(curRatio - ratio) < ASPECT_RATIO_TOLERANCE && maxSize.width < sizeArray[i]) {
2765 ALOGW("Unable to find the size to match the given aspect ratio %f."
2766 "Fall back to %d x %d", ratio, maxSize.width, maxSize.height);
2857 // The desired activeAreaWidth/cropAreaWidth ratio (or height if h>w)
2858 // via interpolating zoom step into a zoom ratio
2861 "Zoom ratio calculated out of bounds. Expected 1 - %f, actual: %f",
2864 ALOGV("Zoom maxDigital=%f, increment=%f, ratio=%f, previewWidth=%d, "
2882 // aspect ratio
2746 getMaxSizeForRatio( float ratio, const int32_t* sizeArray, size_t count) argument
[all...]

Completed in 6373 milliseconds