/frameworks/base/libs/hwui/ |
H A D | PixelBuffer.h | 68 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height, 107 virtual void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) = 0; 117 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { argument 118 upload(x, y, width, height, getOffset(x, y)); 122 * Returns the width of the render buffer in pixels. 190 PixelBuffer(GLenum format, uint32_t width, uint32_t height): argument 191 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) {
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | geometry.h | 80 float width() const { return width_; } function in class:android::filterfw::SlantedRect 89 float x, y, width, height; member in struct:android::filterfw::Rect 93 width = height = 1.0f; 96 Rect(float x, float y, float width, float height) { argument 99 this->width = width;
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
H A D | UT_invert.java | 31 private boolean Test(int width, int height, int depth) { argument 36 typeBuilder.setX(width); 55 float a[] = new float[width * height * depth * 4]; 56 float b[] = new float[width * height * depth * 4]; 60 for (int i = 0; i < width * height * depth * 4; i++) { 77 for (int i = 0; i < width * height * depth * 4; i++) {
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | AccessibilityNodeInfoHelper.java | 31 * @param width pixel width of the display 35 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node, int width, int height) { argument 46 displayRect.right = width;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Picture.h | 41 Canvas* beginRecording(int width, int height); 45 int width() const;
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.cpp | 44 uint32_t width = computeIdealDimension(viewportWidth); local 46 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); 48 texture.resize(width, height, caches.rgbaInternalFormat(), GL_RGBA); 55 const float texX = 1.0f / static_cast<float>(texture.width()); 77 const float texX = 1.0f / float(texture.width()); 107 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height()); 127 int deltaInt = int(lhs.width) - int(rhs.width); 142 const uint32_t width, const uint32_t height) { 145 Entry entry(width, heigh 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/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 | 74 int width = texture.getWidth(); 79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height, 84 int stride = pixelSize * width; 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 118 mWidth = width; 124 * Get the width of the texture in pixels. 125 * @return the width of the texture in pixels. 131 * @return the width o 192 compressTexture(Buffer input, int width, int height, int pixelSize, int stride) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | BitmapMutateActivity.java | 87 int width = mBitmap1.getWidth(); 90 canvas.translate((getWidth() - width) / 2, 0); 92 for (int x = 0; x < width; x++) { 98 mPixels[y * width + x] = color; 102 mBitmap1.setPixels(mPixels, 0, width, 0, 0, width, height); 107 canvas.drawBitmap(mPixels, 0, width, 0.0f, 0.0f, width, height, false, mBitmapPaint);
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | OverlayDisplayWindow.java | 64 int width, int height, int gravity) { 67 mWidth = width; 73 int width, int height, int gravity) { 75 return new JellybeanMr1Impl(context, name, width, height, gravity); 77 return new LegacyImpl(context, name, width, height, gravity); 93 public abstract void updateAspectRatio(int width, int height); argument 115 int width, int height, int gravity) { 116 super(context, name, width, height, gravity); 140 int width = (int)(display.getWidth() * INITIAL_SCALE); 143 height = mHeight * width / mWidt 63 OverlayDisplayWindow(Context context, String name, int width, int height, int gravity) argument 72 create(Context context, String name, int width, int height, int gravity) argument 114 LegacyImpl(Context context, String name, int width, int height, int gravity) argument 170 updateAspectRatio(int width, int height) argument 212 JellybeanMr1Impl(Context context, String name, int width, int height, int gravity) argument 253 updateAspectRatio(int width, int height) argument [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
H A D | OverlayDisplayWindow.java | 64 int width, int height, int gravity) { 67 mWidth = width; 73 int width, int height, int gravity) { 75 return new JellybeanMr1Impl(context, name, width, height, gravity); 77 return new LegacyImpl(context, name, width, height, gravity); 93 public abstract void updateAspectRatio(int width, int height); argument 115 int width, int height, int gravity) { 116 super(context, name, width, height, gravity); 140 int width = (int)(display.getWidth() * INITIAL_SCALE); 143 height = mHeight * width / mWidt 63 OverlayDisplayWindow(Context context, String name, int width, int height, int gravity) argument 72 create(Context context, String name, int width, int height, int gravity) argument 114 LegacyImpl(Context context, String name, int width, int height, int gravity) argument 170 updateAspectRatio(int width, int height) argument 212 JellybeanMr1Impl(Context context, String name, int width, int height, int gravity) argument 253 updateAspectRatio(int width, int height) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | VideoFragment.java | 55 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { 57 mMediaPlaybackCallback.surfaceChanged(holder, format, width, height); 87 protected void onVideoSizeChanged(int width, int height) { argument 92 if (screenWidth * height > width * screenHeight) { 95 p.width = screenHeight * width / height; 97 // fit in screen width 98 p.width = screenWidth; 99 p.height = screenWidth * height / width;
|
H A D | VideoSupportFragment.java | 58 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { 60 mMediaPlaybackCallback.surfaceChanged(holder, format, width, height); 90 protected void onVideoSizeChanged(int width, int height) { argument 95 if (screenWidth * height > width * screenHeight) { 98 p.width = screenHeight * width / height; 100 // fit in screen width 101 p.width = screenWidth; 102 p.height = screenWidth * height / width;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | get_pred_outside.cpp | 34 width = width of the VOP in pixels (x axis); full-pel resolution; 198 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 200 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 202 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 204 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 206 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 208 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 210 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 216 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \ 241 GetPredOutside( int xpos, int ypos, uint8 *c_prev, uint8 *pred_block, int width, int height, int rnd1, int pred_width ) argument [all...] |
H A D | block_idct.cpp | 123 static void idctrow(int16 *blk, uint8 *pred, uint8 *dst, int width); 124 static void idctrow_intra(int16 *blk, PIXEL *, int width); 231 int width, width_uv; local 233 width = video->width; 234 width_uv = width >> 1; 235 offset = (int32)(y_pos << 4) * width + (x_pos << 4); 241 BlockIDCT_intra(mblock, c_comp, 0, width); 242 BlockIDCT_intra(mblock, c_comp + 8, 1, width); 243 BlockIDCT_intra(mblock, c_comp + (width << 250 BlockIDCT_intra( MacroBlock *mblock, PIXEL *c_comp, int comp, int width) argument 323 Copy_Blk_to_Vop(uint8 *dst, uint8 *pred, int width) argument 348 BlockIDCT( uint8 *dst, uint8 *pred, int16 *coeff_in, int width, int nz_coefs, uint8 *bitmapcol, uint8 bitmaprow ) argument [all...] |
H A D | deringing_luma.cpp | 25 int width, 47 incr = width - BLKSIZE; 50 for (MB_H = 0; MB_H < width; MB_H += MBSIZE) 62 ptr = &Rec_Y[(int32)(BLK_V) * width + MB_H + BLK_H]; 97 thr, width, max_diff); 109 max_diff = (QP_store[((((int32)MB_V*width)>>4))>>4] >> 2) + 4; 117 ptr = &Rec_Y[(int32)(MB_V + BLK_V) * width + BLK_H]; 151 thr, width, max_diff); 158 for (MB_H = MBSIZE; MB_H < width; MB_H += MBSIZE) 160 max_diff = (QP_store[((((int32)MB_V*width)>> 23 Deringing_Luma( uint8 *Rec_Y, int width, int height, int16 *QP_store, int, uint8 *pp_mod) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FreeformWorkspaceLayoutAlgorithm.java | 64 int workspaceWidth = stackLayout.mFreeformRect.width(); 73 rowTaskWidth = (float) task.bounds.width() / task.bounds.height(); 77 // width for the time being 80 // Bound the task width to the workspace width so that at the worst case, it will 91 float width = normalizedTaskWidths[i] * rowScale; 92 if (rowWidth + width > normalizedWorkspaceWidth) { 98 rowScale = Math.min(normalizedWorkspaceWidth / (rowWidth + width), 105 rowWidth = width; 111 rowWidth += width; [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 [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/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
H A D | omxVCM4P10_InterpolateChroma.c | 50 * [in] dstStep Destination frame step in byte. Must be multiple of roi.width. 55 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must 58 * if roi.width==2, 2-byte alignment required 59 * if roi.width==4, 4-byte alignment required 60 * if roi.width==8, 8-byte alignment required 68 * roi.width or roi.height is out of range {2,4,8}. 69 * roi.width is equal to 2, but pDst is not 2-byte aligned. 70 * roi.width is equal to 4, but pDst is not 4-byte aligned. 71 * roi.width is equal to 8, but pDst is not 8 byte aligned. 87 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, ro [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src/ |
H A D | omxVCM4P10_InterpolateChroma.c | 50 * [in] dstStep Destination frame step in byte. Must be multiple of roi.width. 55 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must 58 * if roi.width==2, 2-byte alignment required 59 * if roi.width==4, 4-byte alignment required 60 * if roi.width==8, 8-byte alignment required 68 * roi.width or roi.height is out of range {2,4,8}. 69 * roi.width is equal to 2, but pDst is not 2-byte aligned. 70 * roi.width is equal to 4, but pDst is not 4-byte aligned. 71 * roi.width is equal to 8, but pDst is not 8 byte aligned. 87 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, ro [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_image.h | 48 u32 width; member in struct:__anon744
|
/frameworks/av/media/libstagefright/foundation/include/ |
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/include/ |
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/webm/ |
H A D | EbmlUtil.h | 38 // Like above but pads the input value with leading zeros up to the specified width. The length 39 // descriptor is calculated based on width. 40 uint64_t encodeUnsigned(uint64_t u, int width);
|