HomeSort by relevance Sort by last modified time
    Searched refs:aspectRatio (Results 1 - 25 of 63) sorted by null

1 2 3

  /cts/tests/tests/dpi/src/android/dpi/cts/
AspectRatioTest.java 48 double aspectRatio = getRealAspectRatio(getActivity());
49 if (aspectRatio >= 1.333 && aspectRatio <= 1.86) {
52 fail("Aspect ratio was not between 1.333 and 1.86: " + aspectRatio);
  /external/chromium_org/third_party/WebKit/Source/platform/geometry/
LayoutSize.h 64 float aspectRatio() const { return static_cast<float>(m_width) / static_cast<float>(m_height); }
120 LayoutSize fitToAspectRatio(const LayoutSize& aspectRatio, AspectRatioFit fit) const
122 float heightScale = height().toFloat() / aspectRatio.height().toFloat();
123 float widthScale = width().toFloat() / aspectRatio.width().toFloat();
125 return LayoutSize(height() * aspectRatio.width() / aspectRatio.height(), height());
126 return LayoutSize(width(), width() * aspectRatio.height() / aspectRatio.width());
  /hardware/qcom/media/mm-video-legacy/vidc/vdec/src/
mp4_utils.cpp 309 frame_info->aspectRatio.aspectRatioX = 1;
310 frame_info->aspectRatio.aspectRatioY = 1;
314 frame_info->aspectRatio.aspectRatioX = 12;
315 frame_info->aspectRatio.aspectRatioY = 11;
319 frame_info->aspectRatio.aspectRatioX = 10;
320 frame_info->aspectRatio.aspectRatioY = 11;
324 frame_info->aspectRatio.aspectRatioX = 16;
325 frame_info->aspectRatio.aspectRatioY = 11;
329 frame_info->aspectRatio.aspectRatioX = 40;
330 frame_info->aspectRatio.aspectRatioY = 33
    [all...]
  /packages/apps/VideoEditor/src/com/android/videoeditor/
ExportOptionsDialog.java 52 * @param aspectRatio The aspect ratio
58 DialogInterface.OnCancelListener cancelListener, final int aspectRatio) {
72 prepareContent(myView, aspectRatio);
82 sizeSpinner.getSelectedItemPosition(), aspectRatio);
106 * @param aspectRatio The project aspect ratio
108 private static void prepareContent(View view, int aspectRatio) {
115 MediaProperties.getSupportedResolutions(aspectRatio);
141 * @param aspectRatio The aspect ratio
145 private static int indexToMovieHeight(int sizeIndex, int aspectRatio) {
147 MediaProperties.getSupportedResolutions(aspectRatio);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/
Gradient.h 55 static PassRefPtr<Gradient> create(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio = 1)
57 return adoptRef(new Gradient(p0, r0, p1, r1, aspectRatio));
117 float aspectRatio() const { return m_aspectRatio; }
132 Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);
Gradient.cpp 54 Gradient::Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio)
60 , m_aspectRatio(aspectRatio)
260 if (aspectRatio() != 1) {
264 m_gradientSpaceTransformation.scale(1, 1 / aspectRatio());
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
MediaPropertiesTest.java 72 protected void validateVideoProperties(int aspectRatio, int fileType,
77 assertEquals("Aspect Ratio Mismatch", aspectRatio, mvi.getAspectRatio());
120 protected void validateImageProperties(int aspectRatio, int fileType,
123 assertEquals("Aspect Ratio Mismatch", aspectRatio, mii.getAspectRatio());
137 final int aspectRatio = MediaProperties.ASPECT_RATIO_16_9;
156 validateVideoProperties(aspectRatio, fileType, videoCodecType, duration,
169 final int aspectRatio = MediaProperties.ASPECT_RATIO_5_3;
188 validateVideoProperties(aspectRatio, fileType, videoCodecType, duration,
200 final int aspectRatio = MediaProperties.ASPECT_RATIO_3_2;
219 validateVideoProperties(aspectRatio, fileType, videoCodecType, duration
    [all...]
  /external/chromium_org/native_client_sdk/src/examples/api/graphics_3d/
matrix.h 34 GLfloat aspectRatio,
matrix.cc 47 GLfloat aspectRatio,
52 xmax = ymax * aspectRatio;
  /external/chromium_org/native_client_sdk/src/gonacl_appengine/src/cube/
matrix.h 34 GLfloat aspectRatio,
matrix.cc 47 GLfloat aspectRatio,
52 xmax = ymax * aspectRatio;
  /packages/apps/Camera/src/com/android/camera/
CameraScreenNail.java 193 float aspectRatio;
195 aspectRatio = (float) getTextureWidth() / (float) getTextureHeight();
197 aspectRatio = (float) getTextureHeight() / (float) getTextureWidth();
202 (int) (mRenderHeight * aspectRatio));
204 (int)(mRenderWidth / aspectRatio));
207 (int) (mRenderHeight / aspectRatio));
209 (int) (mRenderWidth * aspectRatio));
  /external/chromium_org/third_party/skia/src/core/
SkRTree.h 58 static SkRTree* Create(int minChildren, int maxChildren, SkScalar aspectRatio = 1,
148 SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio, bool orderWhenBulkLoading);
SkPicture.cpp 231 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth),
236 aspectRatio, sortDraws);
  /external/skia/src/core/
SkRTree.h 58 static SkRTree* Create(int minChildren, int maxChildren, SkScalar aspectRatio = 1,
148 SkRTree(int minChildren, int maxChildren, SkScalar aspectRatio, bool orderWhenBulkLoading);
SkPicture.cpp 231 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth),
236 aspectRatio, sortDraws);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
PlayVideoActivity.java 195 float aspectRatio = ((float) mVideoWidth) / mVideoHeight;
196 if (rect.width() / aspectRatio <= rect.height()) {
198 lp.height = (int) (rect.width() / aspectRatio);
200 lp.width = (int) (rect.height() * aspectRatio);
  /external/chromium_org/third_party/WebKit/Source/core/css/
MediaFeatureNames.h 39 macro(aspectRatio, "aspect-ratio") \
CSSGradientValue.cpp     [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
ResizeGesture.java 160 double aspectRatio = w / (double) h;
164 if (newH == 0 || newAspectRatio > aspectRatio) {
165 deltaY = (int) (deltaX / aspectRatio);
167 deltaX = (int) (deltaY * aspectRatio);
  /frameworks/base/media/java/android/media/videoeditor/
MediaProperties.java 340 * @param aspectRatio The aspect ratio for which the resolutions are
344 public static Pair<Integer, Integer>[] getSupportedResolutions(int aspectRatio) {
346 switch (aspectRatio) {
373 throw new IllegalArgumentException("Unknown aspect ratio: " + aspectRatio);
  /packages/apps/VideoEditor/src/com/android/videoeditor/service/
VideoEditorProject.java 263 * @param aspectRatio The aspect ratio
265 void setAspectRatio(int aspectRatio) {
266 mAspectRatio = aspectRatio;
699 int aspectRatio = MediaProperties.ASPECT_RATIO_UNDEFINED;
701 if (aspectRatio == MediaProperties.ASPECT_RATIO_UNDEFINED) {
702 aspectRatio = mediaItem.getAspectRatio();
703 } else if (mediaItem.getAspectRatio() != aspectRatio) {
717 int aspectRatio = mediaItem.getAspectRatio();
718 if (!aspectRatiosList.contains(aspectRatio)) {
719 aspectRatiosList.add(aspectRatio);
    [all...]
ApiServiceListener.java 78 * @param aspectRatio The aspect ratio
81 public void onVideoEditorAspectRatioSet(String projectPath, int aspectRatio, Exception exception) {}
164 * @param aspectRatio The aspectRatio
169 Integer aspectRatio, Exception exception) {}
  /packages/apps/Camera2/src/com/android/camera/
PhotoUI.java 227 public void updatePreviewAspectRatio(float aspectRatio) {
228 if (aspectRatio <= 0) {
229 Log.e(TAG, "Invalid aspect ratio: " + aspectRatio);
232 if (aspectRatio < 1f) {
233 aspectRatio = 1f / aspectRatio;
236 if (mAspectRatio != aspectRatio) {
237 mAspectRatio = aspectRatio;
  /frameworks/base/core/java/android/gesture/
GestureUtils.java 108 float aspectRatio = gestureWidth / gestureHeight;
109 if (aspectRatio > 1) {
110 aspectRatio = 1 / aspectRatio;
112 if (aspectRatio < SCALING_THRESHOLD) {

Completed in 284 milliseconds

1 2 3