Searched defs:cropRect (Results 1 - 4 of 4) sorted by relevance
/frameworks/base/media/java/android/media/ |
H A D | Image.java | 148 public void setCropRect(Rect cropRect) { argument 149 if (cropRect != null) { 150 cropRect = new Rect(cropRect); // make a copy 151 cropRect.intersect(0, 0, getWidth(), getHeight()); 153 mCropRect = cropRect;
|
H A D | MediaCodec.java | 1752 public void setCropRect(Rect cropRect) { argument 1756 super.setCropRect(cropRect); 1775 long timestamp, int xOffset, int yOffset, Rect cropRect) { 1833 if (cropRect == null) { 1834 cropRect = new Rect(0, 0, mWidth, mHeight); 1836 cropRect.offset(-xOffset, -yOffset); 1837 super.setCropRect(cropRect); 1773 MediaImage( ByteBuffer buffer, ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, Rect cropRect) argument
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 786 Rect cropRect = mCurrentCrop; local 790 if (!cropRect.isEmpty()) { 819 if (cropRect.width() < bufferWidth) { 820 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; 821 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / 824 if (cropRect.height() < bufferHeight) { 825 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / 827 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / 1073 const Rect& cropRect, 1078 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect; 1072 createIfNeeded(EGLDisplay eglDisplay, const Rect& cropRect, bool forceCreation) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 493 jobject cropRect = NULL; local 503 cropRect = env->NewObject( 518 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect); 527 if (cropRect != NULL) { 528 env->DeleteLocalRef(cropRect); 529 cropRect = NULL;
|
Completed in 85 milliseconds