/frameworks/base/libs/hwui/ |
H A D | OpenGLReadback.cpp | 86 uint32_t height = graphicBuffer->getHeight(); local 87 // If this is a 90 or 270 degree rotation we need to swap width/height 90 std::swap(width, height); 92 CopyResult copyResult = copyImageInto(sourceImage, texTransform, width, height, 127 int destHeight = bitmap->height(); 208 srcRect.top / sourceTexture.height(), 0); 210 srcRect.getHeight() / sourceTexture.height(), 1); 216 || sourceTexture.height() != (uint32_t) destHeight; 230 glReadPixels(0, 0, bitmap->width(), bitmap->height(), format,
|
H A D | Patch.cpp | 39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) 94 const float yStretch = std::max(height - fixed, 0.0f); 96 rescaleY = fixed == 0.0f ? 0.0f : std::min(std::max(height, 0.0f) / fixed, 1.0f); 135 y2 = height; 38 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument
|
H A D | Rect.h | 69 inline Rect(float width, float height): argument 73 bottom(height) {
|
H A D | SkiaShader.cpp | 184 const GLsizei width, const GLsizei height) { 195 glUniform2f(caches.program().getUniform("screenSize"), 1.0f / width, 1.0f / height); 217 const float height = outData->bitmapTexture->height(); local 229 && (!isPowerOfTwo(width) || !isPowerOfTwo(height)) 247 outData->textureDimension[1] = 1.0f / height; 351 const GLsizei width, const GLsizei height) { 355 applyGradient(caches, data.gradientData, width, height); 183 applyGradient(Caches& caches, const SkiaShaderData::GradientShaderData& data, const GLsizei width, const GLsizei height) argument 350 apply(Caches& caches, const SkiaShaderData& data, const GLsizei width, const GLsizei height) argument
|
H A D | Snapshot.h | 159 void initializeViewport(int width, int height) { argument 160 mViewportData.initialize(width, height); 161 mClipAreaRoot.setViewportDimensions(width, height); 250 void initialize(int width, int height) { argument 252 mHeight = height; 253 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1); 257 * Width and height of current viewport. 259 * The viewport is always defined to be (0, 0, width, height).
|
H A D | TessellationCache.h | 70 float height; member in struct:android::uirenderer::TessellationCache::Description::Shape::RoundRect 157 float width, float height, float rx, float ry) { 158 getRoundRectBuffer(transform, paint, width, height, rx, ry); 161 float width, float height, float rx, float ry); 181 float width, float height); 183 float width, float height, float rx, float ry); 156 precacheRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
|
H A D | Texture.cpp | 95 bool Texture::updateLayout(uint32_t width, uint32_t height, GLint internalFormat, argument 98 && mHeight == height 105 mHeight = height; 120 void Texture::upload(GLint internalFormat, uint32_t width, uint32_t height, argument 123 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D); 152 GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) { 162 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, data); 164 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data); 174 GLvoid * temp = (GLvoid *) malloc(width * height * bpp); 179 for (GLsizei i = 0; i < height; 151 uploadToTexture(bool resize, GLint internalFormat, GLenum format, GLenum type, GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) argument 383 wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat, GLint format, GLenum target) argument [all...] |
H A D | Texture.h | 84 * Sets the width, height, and format of the texture along with allocating 85 * the texture ID. Does nothing if the width, height, and format are already 90 void resize(uint32_t width, uint32_t height, GLint internalFormat, GLint format) { argument 91 upload(internalFormat, width, height, format, GL_UNSIGNED_BYTE, nullptr); 96 * also setting the appropriate width, height, and format. It is not necessary 106 void upload(GLint internalFormat, uint32_t width, uint32_t height, 112 void wrap(GLuint id, uint32_t width, uint32_t height, GLint internalFormat, 123 uint32_t height() const { function in class:android::uirenderer::Texture 199 bool updateLayout(uint32_t width, uint32_t height, GLint internalFormat,
|
/frameworks/base/libs/hwui/font/ |
H A D | CacheTexture.cpp | 112 CacheTexture::CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount) argument 115 , mHeight(height) 202 uint32_t height = (b > getHeight() ? getHeight() : b); local 213 mPixelBuffer->upload(x, y, width, height); 269 // it's the remainder space (mY == 0) or there's only enough height for this one glyph 291 // There's enough height left over to create a new CacheBlock
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 31 Canvas* Canvas::create_recording_canvas(int width, int height, uirenderer::RenderNode* renderNode) { argument 33 return new uirenderer::skiapipeline::SkiaRecordingCanvas(renderNode, width, height); 35 return new uirenderer::RecordingCanvas(width, height);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaRecordingCanvas.cpp | 35 int height) { 46 mDisplayList->attachRecorder(&mRecorder, SkIRect::MakeWH(width, height)); 217 NinePatchUtils::SetLatticeDivs(&lattice, chunk, bitmap.width(), bitmap.height()); 34 initDisplayList(uirenderer::RenderNode* renderNode, int width, int height) argument
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.cpp | 45 uint32_t height = computeIdealDimension(viewportHeight); local 46 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); 48 texture.resize(width, height, caches.rgbaInternalFormat(), GL_RGBA); 56 const float texY = 1.0f / static_cast<float>(texture.height()); 78 const float texY = 1.0f / float(texture.height()); 107 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height()); 130 return int(lhs.height) - int(rhs.height); 142 const uint32_t width, const uint32_t height) { 145 Entry entry(width, height); 141 get(RenderState& renderState, const uint32_t width, const uint32_t height) argument 163 resize(OffscreenBuffer* layer, const uint32_t width, const uint32_t height) argument [all...] |
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 69 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height, 73 layerUpdater->setSize(width, height); 68 createTextureLayerUpdater( renderthread::RenderThread& renderThread, uint32_t width, uint32_t height, const SkMatrix& transform) argument
|
/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 140 update.state.surfaceHeight = update.state.icon.bitmap.height(); 158 int32_t desiredHeight = update.state.icon.bitmap.height(); 212 surfaceBitmap.installPixels(SkImageInfo::MakeN32Premul(outBuffer.width, outBuffer.height), 224 outBuffer.width, update.state.icon.bitmap.height(), paint); 226 if (outBuffer.height > update.state.icon.bitmap.height()) { 228 surfaceCanvas.drawRectCoords(0, update.state.icon.bitmap.height(), 229 outBuffer.width, outBuffer.height, paint); 371 sp<SurfaceControl> SpriteController::obtainSurface(int32_t width, int32_t height) { argument 375 String8("Sprite"), width, height, PIXEL_FORMAT_RGBA_888 [all...] |
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 108 * @param height the height of the image 112 public FaceDetector(int width, int height, int maxFaces) argument 117 fft_initialize(width, height, maxFaces); 119 mHeight = height; 121 mBWBuffer = new byte[width * height]; 189 native private int fft_initialize(int width, int height, int maxFaces); argument
|
H A D | ThumbnailUtils.java | 176 int height = bitmap.getHeight(); 177 int max = Math.max(width, height); 181 int h = Math.round(scale * height); 198 * @param height targeted height 201 Bitmap source, int width, int height) { 202 return extractThumbnail(source, width, height, OPTIONS_NONE); 210 * @param height targeted height 214 Bitmap source, int width, int height, in 200 extractThumbnail( Bitmap source, int width, int height) argument 213 extractThumbnail( Bitmap source, int width, int height, int options) argument [all...] |
/frameworks/base/media/lib/tvremote/java/com/android/media/tv/remoteprovider/ |
H A D | TvRemoteProvider.java | 122 * @param height Height of the device's virtual touchpad 126 public void openRemoteInputBridge(IBinder token, String name, int width, int height, argument 129 mRemoteServiceInput.openInputBridge(token, name, width, height, maxPointers);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLEnvironment.java | 110 public int registerSurfaceTexture(SurfaceTexture surfaceTexture, int width, int height) { argument 112 int result = nativeAddSurfaceWidthHeight(surface, width, height); 173 private native int nativeAddSurfaceWidthHeight(Surface surface, int width, int height); argument
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_environment.cpp | 198 jint height) { 212 // anyway), but do care about width and height 216 ANativeWindow_setBuffersGeometry(window, width, height, 0); 194 Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
|
H A D | jni_gl_frame.cpp | 48 jint height) { 52 if (frame->Init(width, height)) { 63 jint height) { 67 if (frame->InitWithTexture(tex_id, width, height)) { 78 jint height) { 82 if (frame->InitWithFbo(fbo_id, width, height)) { 245 jint height) { 247 return frame ? ToJBool(frame->SetViewport(x, y, width, height)) : JNI_FALSE; 44 Java_android_filterfw_core_GLFrame_nativeAllocate(JNIEnv* env, jobject thiz, jobject gl_env, jint width, jint height) argument 58 Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture(JNIEnv* env, jobject thiz, jobject gl_env, jint tex_id, jint width, jint height) argument 73 Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo(JNIEnv* env, jobject thiz, jobject gl_env, jint fbo_id, jint width, jint height) argument 240 Java_android_filterfw_core_GLFrame_setNativeViewport(JNIEnv* env, jobject thiz, jint x, jint y, jint width, jint height) argument
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.cpp | 56 bool GLFrame::Init(int width, int height) { argument 59 InitDimensions(width, height); 65 bool GLFrame::InitWithTexture(GLint texture_id, int width, int height) { argument 68 InitDimensions(width, height); 72 bool GLFrame::InitWithFbo(GLint fbo_id, int width, int height) { argument 76 InitDimensions(width, height); 87 void GLFrame::InitDimensions(int width, int height) { argument 89 height_ = height; 91 vp_height_ = height; 187 bool GLFrame::SetViewport(int x, int y, int width, int height) { argument [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
H A D | CameraSource.java | 54 /** Frame height to request from camera. Actual size may not match requested. */ 55 @GenerateFieldPort(name = "height", hasDefault = true) 276 private int[] findClosestSize(int width, int height, Camera.Parameters parameters) { argument 281 int smallestHeight = previewSizes.get(0).height; 288 size.height <= height && 290 size.height >= closestHeight) { 292 closestHeight = size.height; 295 size.height < smallestHeight) { 297 smallestHeight = size.height; [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
H A D | MediaRecorderTest.java | 81 private void recordVideo(int frameRate, int width, int height, argument 94 mRecorder.setVideoSize(width, height); 228 int frameRate, int captureRate, int width, int height, 247 recorder.setVideoSize(width, height); 374 private boolean invalidRecordSetting(int frameRate, int width, int height, argument 386 mRecorder.setVideoSize(width, height); 433 private boolean validateVideo(String filePath, int width, int height) { argument 436 if (mOutputVideoWidth == width && mOutputVideoHeight == height && 440 Log.v(TAG, "width = " + mOutputVideoWidth + " height = " + mOutputVideoHeight + " Duration = " + mOutputDuration); 227 recordVideoFromSurface( int frameRate, int captureRate, int width, int height, int videoFormat, int outFormat, String outFile, boolean videoOnly, Surface persistentSurface) argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
H A D | PdfManipulationService.java | 188 private Bitmap getBitmapForSize(int width, int height) { argument 190 if (mBitmap.getWidth() == width && mBitmap.getHeight() == height) { 196 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 297 final int srcHeightPts = mediaBox.height();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/ |
H A D | SensorLoggerSession.java | 152 public void setTouchArea(int width, int height) { argument 154 mTouchAreaHeight = height;
|