Searched defs:cropRect (Results 1 - 7 of 7) sorted by relevance
/frameworks/base/media/java/android/media/ |
H A D | Image.java | 236 public void setCropRect(Rect cropRect) { argument 239 if (cropRect != null) { 240 cropRect = new Rect(cropRect); // make a copy 241 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) { 242 cropRect.setEmpty(); 245 mCropRect = cropRect;
|
H A D | MediaCodec.java | 3549 public void setCropRect(@Nullable Rect cropRect) { argument 3553 super.setCropRect(cropRect); 3559 long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) { 3624 if (cropRect == null) { 3625 cropRect = new Rect(0, 0, mWidth, mHeight); 3627 cropRect.offset(-xOffset, -yOffset); 3628 super.setCropRect(cropRect); 3557 MediaImage( @onNull ByteBuffer buffer, @NonNull ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) argument
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 458 android_native_rect_t cropRect; local 459 cropRect.left = left; 460 cropRect.top = top; 461 cropRect.right = right; 462 cropRect.bottom = bottom; 463 res = native_window_set_crop(anw.get(), &cropRect); 543 android_native_rect_t cropRect; local 544 cropRect.left = left; 545 cropRect.top = top; 546 cropRect [all...] |
H A D | android_media_MediaCodec.cpp | 565 jobject cropRect = NULL; local 575 cropRect = env->NewObject( 590 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect); 599 if (cropRect != NULL) { 600 env->DeleteLocalRef(cropRect); 601 cropRect = NULL;
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 819 const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, 849 if (!cropRect.isEmpty()) { 883 if (cropRect.width() < bufferWidth) { 884 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth; 885 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / 888 if (cropRect.height() < bufferHeight) { 889 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) / 891 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / 1195 const Rect& cropRect, 1200 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect; 818 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument 1194 createIfNeeded(EGLDisplay eglDisplay, const Rect& cropRect, bool forceCreation) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 583 int cropRect[4] = { 0, 0, font.char_width, -font.char_height }; local 596 cropRect[0] = col * font.char_width; // Left of column 597 cropRect[1] = row * font.char_height * 2; // Top of row 599 cropRect[1] += bold ? 2 * font.char_height : font.char_height; 600 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraTestUtils.java | 1576 * @param cropRect The cropped region 1580 MeteringRectangle[] requestRegions, Rect cropRect){ 1586 resultRect.setIntersect(requestRect, cropRect)); 1579 getExpectedOutputRegion( MeteringRectangle[] requestRegions, Rect cropRect) argument
|
Completed in 677 milliseconds