/frameworks/native/include/gui/ |
H A D | IGraphicBufferProducer.h | 308 // * crop rect is out of bounds of the buffer dimensions 317 // crop - a crop rectangle that's used as a hint to the consumer 331 dataSpace(_dataSpace), crop(_crop), scalingMode(_scalingMode), 344 *outCrop = crop; 373 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput
|
H A D | GLConsumer.h | 141 // Scale the crop down horizontally or vertically such that it has the 143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight); 306 // one yet, or the EGLDisplay or crop-rect has changed). 327 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop); 342 // mCropRect is the crop rectangle passed to EGL when mEglImage 385 // mCurrentCrop is the crop rectangle that applies to the current texture.
|
H A D | SurfaceComposerClient.h | 203 Transaction& setCrop(const sp<SurfaceControl>& sc, const Rect& crop); 204 Transaction& setFinalCrop(const sp<SurfaceControl>& sc, const Rect& crop);
|
/frameworks/native/libs/gui/include/gui/ |
H A D | IGraphicBufferProducer.h | 308 // * crop rect is out of bounds of the buffer dimensions 317 // crop - a crop rectangle that's used as a hint to the consumer 331 dataSpace(_dataSpace), crop(_crop), scalingMode(_scalingMode), 344 *outCrop = crop; 373 Rect crop; member in struct:android::IGraphicBufferProducer::QueueBufferInput
|
H A D | GLConsumer.h | 141 // Scale the crop down horizontally or vertically such that it has the 143 static Rect scaleDownCrop(const Rect& crop, uint32_t bufferWidth, uint32_t bufferHeight); 306 // one yet, or the EGLDisplay or crop-rect has changed). 327 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop); 342 // mCropRect is the crop rectangle passed to EGL when mEglImage 385 // mCurrentCrop is the crop rectangle that applies to the current texture.
|
H A D | SurfaceComposerClient.h | 203 Transaction& setCrop(const sp<SurfaceControl>& sc, const Rect& crop); 204 Transaction& setFinalCrop(const sp<SurfaceControl>& sc, const Rect& crop);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskSnapshotSurface.java | 319 final Rect crop = calculateSnapshotCrop(); 320 final Rect frame = calculateSnapshotFrame(crop); 326 mChildSurfaceControl.setWindowCrop(crop); 345 * Calculates the snapshot crop in snapshot coordinate space. 347 * @return crop rect in snapshot coordinate space. 366 * Calculates the snapshot frame in window coordinate space from crop. 368 * @param crop rect that is in snapshot coordinate space. 371 Rect calculateSnapshotFrame(Rect crop) { argument 372 final Rect frame = new Rect(crop); 379 frame.offsetTo((int) (-crop [all...] |
H A D | DisplayContent.java | 3051 // crop to SurfaceFlinger's portrait orientation. 3077 private static void convertCropForSurfaceFlinger(Rect crop, int rot, int dw, int dh) { argument 3079 final int tmp = crop.top; 3080 crop.top = dw - crop.right; 3081 crop.right = crop.bottom; 3082 crop.bottom = dw - crop.left; 3083 crop [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureGL_test.cpp | 149 const android_native_rect_t& crop(crops[i]); 151 crop.left, crop.top, crop.right, crop.bottom).string()); 153 ASSERT_EQ(NO_ERROR, native_window_set_crop(mANW.get(), &crop)); 164 fillYV12BufferRect(img, texWidth, texHeight, buf->getStride(), crop); 564 // ie NATIVE_WINDOW_SCALING_MODE_CROP should crop 581 // The crop is in the shape of (320, 180) === 16 x 9 589 // crop shoul [all...] |
H A D | IGraphicBufferProducer_test.cpp | 155 crop = QUEUE_BUFFER_INPUT_RECT; 166 crop, 187 QueueBufferInputBuilder& setCrop(Rect crop) { argument 188 this->crop = crop; 211 Rect crop; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder
|
H A D | SurfaceTextureClient_test.cpp | 512 Rect crop = mST->getCurrentCrop(); local 513 EXPECT_EQ(0, crop.left); 514 EXPECT_EQ(0, crop.top); 515 EXPECT_EQ(4, crop.right); 516 EXPECT_EQ(4, crop.bottom); 641 // Query to see if the image crop extension exists 655 android_native_rect_t crop; 656 crop.left = 0; 657 crop.top = 0; 658 crop [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 107 * <p>Input: {@link Intent#getData} is the URI of the image to crop and set as wallpaper. 108 * <p>Output: RESULT_OK if user decided to crop/set the wallpaper, RESULT_CANCEL otherwise 575 * @param horizontalAlignment A float value between 0 and 1 specifying where to crop the image; 577 * @param verticalAlignment A float value between 0 and 1 specifying where to crop the image; 595 * @param horizontalAlignment A float value between 0 and 1 specifying where to crop the image; 597 * @param verticalAlignment A float value between 0 and 1 specifying where to crop the image; 669 Log.w(TAG, "crop has bad values for full size image"); 685 Bitmap crop = null; 687 // Do region decoding to get crop bitmap 692 crop [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 758 Rect crop(Rect::EMPTY_RECT); 765 &crop, &scalingMode, &transform, &acquireFence, &stickyTransform, 829 " validHdrMetadataTypes=0x%x crop=[%d,%d,%d,%d] transform=%#x scale=%s", 831 hdrMetadata.validTypes, crop.left, crop.top, crop.right, crop.bottom, 838 crop.intersect(bufferRect, &croppedRect); 839 if (croppedRect != crop) { 840 BQ_LOGE("queueBuffer: crop rec [all...] |
H A D | SurfaceComposerClient.cpp | 348 const sp<SurfaceControl>& sc, const Rect& crop) { 355 s->crop = crop; 359 SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setFinalCrop(const sp<SurfaceControl>& sc, const Rect& crop) { argument 366 s->finalCrop = crop; 347 setCrop( const sp<SurfaceControl>& sc, const Rect& crop) argument
|
/frameworks/native/services/vr/hardware_composer/impl/ |
H A D | vr_hwc.cpp | 193 .crop = {0.0f, 0.0f, static_cast<float>(buffer_->getWidth()), 740 const hwc_frect_t& crop) { 750 hwc_layer->info.crop = {crop.left, crop.top, crop.right, crop.bottom}; 920 display_frame(LTRB): (%d,%d,%d,%d), crop(LTRB): (%.1f,%.1f,%.1f,%.1f), blend_mode: %d\n", 924 info.display_frame.bottom, info.crop.left, info.crop 739 setLayerSourceCrop(Display display, Layer layer, const hwc_frect_t& crop) argument [all...] |
/frameworks/native/opengl/tests/filter/ |
H A D | filter.cpp | 78 GLint crop[4] = { 0, 4, 4, -4 }; 80 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/native/services/surfaceflinger/layerproto/ |
H A D | LayerProtoParser.cpp | 103 layer->crop = generateRect(layerProto.crop()); 301 StringAppendF(&result, "crop=%s, finalCrop=%s, ", crop.to_string().c_str(),
|
/frameworks/native/include/layerproto/ |
H A D | LayerProtoParser.h | 94 LayerProtoParser::Rect crop; member in class:android::surfaceflinger::LayerProtoParser::Layer
|
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/ |
H A D | LayerProtoParser.h | 94 LayerProtoParser::Rect crop; member in class:android::surfaceflinger::LayerProtoParser::Layer
|
/frameworks/native/libs/nativewindow/include/system/ |
H A D | window.h | 294 /* the window is clipped to the size of the buffer's crop rectangle; pixels 295 * outside the crop rectangle are treated as if they are completely 583 * native_window_set_crop(..., crop) 585 * Depending on the scaling mode, a buffer's crop region is scaled and/or 586 * cropped to match the surface's size. This function sets the crop in 589 * The specified crop region applies to all buffers queued after it is called. 591 * If 'crop' is NULL, subsequently queued buffers won't be cropped. 593 * An error is returned if for instance the crop region is invalid, out of the 598 android_native_rect_t const * crop) 600 return window->perform(window, NATIVE_WINDOW_SET_CROP, crop); 596 native_window_set_crop( struct ANativeWindow* window, android_native_rect_t const * crop) argument [all...] |
/frameworks/native/opengl/tests/gl_yuvtex/ |
H A D | gl_yuvtex.cpp | 151 GLint crop[4] = { 0, 0, yuvTexWidth, yuvTexHeight }; local 152 glTexParameteriv(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_CROP_RECT_OES, crop);
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceView.java | 1146 public void setWindowCrop(Rect crop) { argument 1147 super.setWindowCrop(crop); 1148 mBackgroundControl.setWindowCrop(crop); 1152 public void setFinalCrop(Rect crop) { argument 1153 super.setFinalCrop(crop); 1154 mBackgroundControl.setFinalCrop(crop);
|
/frameworks/native/services/surfaceflinger/ |
H A D | BufferLayerConsumer.cpp | 283 bool BufferLayerConsumer::canUseImageCrop(const Rect& crop) const { 284 // If the crop rect is not at the origin, we can't set the crop on the 288 return mRE.supportsImageCrop() && crop.left == 0 && crop.top == 0;
|
H A D | Layer.h | 194 Rect crop; member in struct:android::Layer::State 273 bool setCrop(const Rect& crop, bool immediate); 275 bool setFinalCrop(const Rect& crop, bool immediate); 625 // Compute the initial crop as specified by parent layers and the 626 // SurfaceControl for this layer. Does not include buffer crop from the
|
/frameworks/native/services/surfaceflinger/tests/ |
H A D | Transaction_test.cpp | 186 Rect crop = Rect::EMPTY_RECT, float frameScale = 1.0) { 191 ASSERT_EQ(NO_ERROR, sf->captureLayers(parentHandle, &outBuffer, crop, frameScale)); 196 Rect crop = Rect::EMPTY_RECT, float frameScale = 1.0) { 201 ASSERT_EQ(NO_ERROR, sf->captureLayers(parentHandle, &outBuffer, crop, frameScale, true)); 1189 const Rect crop(8, 8, 24, 24); 1191 Transaction().setCrop(layer, crop).apply(); 1193 shot->expectColor(crop, Color::RED); 1194 shot->expectBorder(crop, Color::BLACK); 1232 const Rect crop(8, 8, 24, 24); 1233 Transaction().setPosition(layer, position.x, position.y).setCrop(layer, crop) 2587 Rect crop = Rect(0, 0, 30, 30); local [all...] |