/frameworks/base/libs/hwui/ |
H A D | LayerRenderer.cpp | 53 const float height = mLayer->layer.getHeight(); local 57 dirty.right >= width && dirty.bottom >= height)) { 59 dirty.set(0.0f, 0.0f, width, height); 61 dirty.doIntersect(0.0f, 0.0f, width, height); 164 const float height = mLayer->layer.getHeight(); local 172 const float v1 = (height - r->top) * texY; 174 const float v2 = (height - r->bottom) * texY; 187 Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { argument 188 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); 189 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height); 257 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument 289 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, bool forceFilter, GLenum renderTarget, const float* textureTransform) argument [all...] |
H A D | Texture.cpp | 86 bool Texture::updateSize(uint32_t width, uint32_t height, GLint format) { argument 87 if (mWidth == width && mHeight == height && mFormat == format) { 91 mHeight = height; 104 void Texture::upload(GLint internalformat, uint32_t width, uint32_t height, argument 107 bool needsAlloc = updateSize(width, height, internalformat); 125 GLsizei width, GLsizei height, const GLvoid * data) { 135 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data); 137 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data); 147 GLvoid * temp = (GLvoid *) malloc(width * height * bpp); 152 for (GLsizei i = 0; i < height; 124 uploadToTexture(bool resize, GLenum format, GLenum type, GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) argument 265 wrap(GLuint id, uint32_t width, uint32_t height, GLint format) argument [all...] |
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.cpp | 44 uint32_t height = computeIdealDimension(viewportHeight); local 45 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); 47 texture.resize(width, height, GL_RGBA); 55 const float texY = 1.0f / static_cast<float>(texture.height()); 77 const float texY = 1.0f / float(texture.height()); 106 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height()); 129 return int(lhs.height) - int(rhs.height); 141 const uint32_t width, const uint32_t height) { 144 Entry entry(width, height); 140 get(RenderState& renderState, const uint32_t width, const uint32_t height) argument 162 resize(OffscreenBuffer* layer, const uint32_t width, const uint32_t height) argument [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | Blur.h | 39 uint8_t* dest, int32_t width, int32_t height); 41 uint8_t* dest, int32_t width, int32_t height);
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | ETC1Util.java | 75 int height = texture.getHeight(); 79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height, 85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height) 87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride); 88 GLES10.glTexImage2D(target, level, fallbackFormat, width, height, border, 117 public ETC1Texture(int width, int height, ByteBuffer data) { argument 119 mHeight = height; 130 * Get the height of the texture in pixels. 154 int height = 0; 167 height 192 compressTexture(Buffer input, int width, int height, int pixelSize, int stride) argument [all...] |
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | OverlayDisplayWindow.java | 62 int width, int height, int gravity) { 66 mHeight = height; 71 int width, int height, int gravity) { 73 return new JellybeanMr1Impl(context, name, width, height, gravity); 75 return new LegacyImpl(context, name, width, height, gravity); 91 public abstract void updateAspectRatio(int width, int height); argument 113 int width, int height, int gravity) { 114 super(context, name, width, height, gravity); 139 int height = (int)(display.getHeight() * INITIAL_SCALE); 141 height 61 OverlayDisplayWindow(Context context, String name, int width, int height, int gravity) argument 70 create(Context context, String name, int width, int height, int gravity) argument 112 LegacyImpl(Context context, String name, int width, int height, int gravity) argument 168 updateAspectRatio(int width, int height) argument 209 JellybeanMr1Impl(Context context, String name, int width, int height, int gravity) argument 250 updateAspectRatio(int width, int height) argument [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | OverlayDisplayWindow.java | 62 int width, int height, int gravity) { 66 mHeight = height; 71 int width, int height, int gravity) { 73 return new JellybeanMr1Impl(context, name, width, height, gravity); 75 return new LegacyImpl(context, name, width, height, gravity); 91 public abstract void updateAspectRatio(int width, int height); argument 113 int width, int height, int gravity) { 114 super(context, name, width, height, gravity); 139 int height = (int)(display.getHeight() * INITIAL_SCALE); 141 height 61 OverlayDisplayWindow(Context context, String name, int width, int height, int gravity) argument 70 create(Context context, String name, int width, int height, int gravity) argument 112 LegacyImpl(Context context, String name, int width, int height, int gravity) argument 168 updateAspectRatio(int width, int height) argument 209 JellybeanMr1Impl(Context context, String name, int width, int height, int gravity) argument 250 updateAspectRatio(int width, int height) argument [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 43 status_t FrameOutput::createInputSurface(int width, int height, argument 47 err = mEglWindow.createPbuffer(width, height); 53 glViewport(0, 0, width, height); 76 mGlConsumer->setDefaultBufferSize(width, height); 82 mPixelBuf = new uint8_t[width * height * kGlBytesPerPixel]; 124 int height = mEglWindow.getHeight(); local 126 width, height, true); 139 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf); 147 reduceRgbaToRgb(mPixelBuf, width * height); 155 size_t rgbDataLen = width * height * kOutBytesPerPixe [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | PackedIntVectorTest.java | 31 for (int height = width * 2; height < width * 4; height++) { 36 for (int i = 0; i < height; i++) { 49 if (i == height / 2) { 58 if (i == height / 2) { 68 for (int i = 0; i < height; i++) { 82 for (int i = 0; i < height; i++) { 98 for (int i = 0; i < height; i++) { 120 for (int i = 0; i < height; [all...] |
/frameworks/av/camera/ |
H A D | CameraParameters2.cpp | 219 int width, height; 220 int success = parse_pair(sizeStartPtr, &width, &height, 'x', 226 sizes.push(Size(width, height)); 235 void CameraParameters2::setPreviewSize(int width, int height) 238 sprintf(str, "%dx%d", width, height); 242 void CameraParameters2::getPreviewSize(int *width, int *height) const 244 *width = *height = -1; 248 parse_pair(p, width, height, 'x'); 251 void CameraParameters2::getPreferredPreviewSizeForVideo(int *width, int *height) const 253 *width = *height [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | SurfaceUtils.h | 28 * Configures |nativeWindow| for given |width|x|height|, pixel |format|, |rotation| and |usage|. 34 int width, int height, int format, int rotation, int usage, bool reconnect);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | pp_semaphore_chroma_inter.cpp | 32 height = luminance VOP height in pixels (int) 119 int height, /* i */ 160 else if (nmvy > (height >> 4) - 1) 162 nmvy = (height >> 4) - 1; 176 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 4) - 1)) 111 pp_semaphore_chroma_inter( int xpred, int ypred, uint8 *pp_dec_u, uint8 *pstprcTypPrv, int dx, int dy, int mvwidth, int height, int32 size, int mv_loc, uint8 msk_deblock ) argument
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
H A D | omxVCM4P10_InterpolateChroma.c | 55 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must 68 * roi.width or roi.height is out of range {2,4,8}. 87 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src/ |
H A D | omxVCM4P10_InterpolateChroma.c | 55 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must 68 * roi.width or roi.height is out of range {2,4,8}. 87 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
H A D | omxVCM4P10_InterpolateChroma.c | 56 * roi.height must be equal to either 2, 4, or 8. 71 * roi.width or roi.height is out of range {2,4,8}. 99 armRetArgErrIf((roi.height != 2) && (roi.height != 4) && (roi.height != 8), OMX_Sts_BadArgErr) 107 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
|
H A D | omxVCM4P10_InterpolateLuma.c | 56 * roi.height must be equal to either 4, 8, or 16. 71 * roi.width or roi.height is out of range {4, 8, 16}. 98 armRetArgErrIf((roi.height != 4) && (roi.height != 8) && (roi.height != 16), OMX_Sts_BadArgErr) 106 (pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_image.h | 49 u32 height; member in struct:__anon649
|
/frameworks/base/include/private/hwui/ |
H A D | DrawGlInfo.h | 34 // Input: current width/height of destination surface 36 int height; member in struct:android::uirenderer::DrawGlInfo
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | MutableFrameFormat.java | 64 public void setDimensions(int width, int height) { argument 67 dimensions[1] = height; 72 public void setDimensions(int width, int height, int depth) { argument 75 dimensions[1] = height;
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
H A D | ImageFormat.java | 37 int height, 42 result.setDimensions(width, height); 52 int height, 56 height, 36 create(int width, int height, int colorspace, int bytesPerSample, int target) argument 51 create(int width, int height, int colorspace, int target) argument
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | exposure.cpp | 30 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { 34 const int numPixels = width * height; 52 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { 56 const int numPixels = width * height; 29 Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) argument 51 Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) argument
|
H A D | pixelutils.h | 31 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height, jint offset,
|
H A D | sobeloperator.h | 30 JNIEnv* env, jclass clazz, jint width, jint height,
|
/frameworks/native/opengl/tests/lib/ |
H A D | WindowSurface.cpp | 46 uint32_t width, height; local 51 height = mainDpyInfo.w; 54 height = mainDpyInfo.h; 58 String8("Benchmark"), width, height,
|
/frameworks/support/v7/cardview/base/android/support/v7/widget/ |
H A D | CardViewDelegate.java | 32 void setMinWidthHeightInternal(int width, int height); argument
|