Searched defs:cropRect (Results 1 - 7 of 7) sorted by path

/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp499 int cropRect[4] = { 0, DIGIT_HEIGHT, DIGIT_WIDTH, -DIGIT_HEIGHT }; local
514 cropRect[0] = left;
515 cropRect[2] = width;
516 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);
/frameworks/base/media/java/android/media/
H A DImage.java236 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 DMediaCodec.java3480 public void setCropRect(@Nullable Rect cropRect) { argument
3484 super.setCropRect(cropRect);
3490 long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) {
3555 if (cropRect == null) {
3556 cropRect = new Rect(0, 0, mWidth, mHeight);
3558 cropRect.offset(-xOffset, -yOffset);
3559 super.setCropRect(cropRect);
3488 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 Dandroid_media_ImageWriter.cpp452 android_native_rect_t cropRect; local
453 cropRect.left = left;
454 cropRect.top = top;
455 cropRect.right = right;
456 cropRect.bottom = bottom;
457 res = native_window_set_crop(anw.get(), &cropRect);
544 android_native_rect_t cropRect; local
545 cropRect.left = left;
546 cropRect.top = top;
547 cropRect
[all...]
H A Dandroid_media_MediaCodec.cpp557 jobject cropRect = NULL; local
567 cropRect = env->NewObject(
582 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect);
591 if (cropRect != NULL) {
592 env->DeleteLocalRef(cropRect);
593 cropRect = NULL;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java1576 * @param cropRect The cropped region
1580 MeteringRectangle[] requestRegions, Rect cropRect){
1586 resultRect.setIntersect(requestRect, cropRect));
1579 getExpectedOutputRegion( MeteringRectangle[] requestRegions, Rect cropRect) argument
/frameworks/native/libs/gui/
H A DGLConsumer.cpp814 const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform,
844 if (!cropRect.isEmpty()) {
876 if (cropRect.width() < bufferWidth) {
877 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth;
878 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) /
881 if (cropRect.height() < bufferHeight) {
882 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) /
884 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) /
1172 const Rect& cropRect,
1177 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect;
813 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument
1171 createIfNeeded(EGLDisplay eglDisplay, const Rect& cropRect, bool forceCreation) argument
[all...]

Completed in 180 milliseconds