/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/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/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/libs/hwui/ |
H A D | GradientCache.cpp | 100 const uint32_t size = texture->width * texture->height * GRADIENT_BYTES_PER_PIXEL; 132 uint32_t width = 256 * (count - 1); local 135 width = 1 << (31 - __builtin_clz(width)); 146 info.width = min(width, uint32_t(mMaxTextureSize)); 157 texture->width = info.width; 163 const uint32_t size = texture->width * texture->height * GRADIENT_BYTES_PER_PIXEL; 179 const uint32_t width local [all...] |
H A D | LayerRenderer.h | 50 virtual void setViewport(int width, int height); 56 ANDROID_API static Layer* createLayer(uint32_t width, uint32_t height, bool isOpaque = false); 57 ANDROID_API static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height); 58 ANDROID_API static void updateTextureLayer(Layer* layer, uint32_t width, uint32_t height,
|
H A D | PatchCache.cpp | 56 const uint32_t width, const uint32_t height, const int8_t numColors) { 71 if (transparentQuads == int8_t((width + 1) * (height + 1))) { 76 pixelWidth, pixelHeight, width, height, transparentQuads, colorKey); 87 width, height, pixelWidth, pixelHeight, bitmapWidth, bitmapHeight); 89 mesh = new Patch(width, height, transparentQuads); 53 get(const float bitmapWidth, const float bitmapHeight, const float pixelWidth, const float pixelHeight, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, const uint32_t width, const uint32_t height, const int8_t numColors) argument
|
H A D | ShapeCache.h | 149 RoundRectShapeCacheEntry(float width, float height, float rx, float ry, SkPaint* paint): argument 151 mWidth = *(uint32_t*) &width; 208 OvalShapeCacheEntry(float width, float height, SkPaint* paint): argument 210 mWidth = *(uint32_t*) &width; 234 RectShapeCacheEntry(float width, float height, SkPaint* paint): argument 236 mWidth = *(uint32_t*) &width; 260 ArcShapeCacheEntry(float width, float height, float startAngle, float sweepAngle, argument 263 mWidth = *(uint32_t*) &width; 346 void purgeCache(uint32_t width, uint32_t height); 348 void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_ 510 createTexture(float left, float top, float offset, uint32_t width, uint32_t height, uint32_t id) argument 523 purgeCache(uint32_t width, uint32_t height) argument 534 initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) argument 554 checkTextureSize(uint32_t width, uint32_t height) argument 568 uint32_t width, height; local [all...] |
H A D | PathCache.cpp | 30 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 32 computeBounds(bounds, paint, left, top, offset, width, height); 36 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 37 const float pathWidth = fmax(bounds.width(), 1.0f); 45 width = uint32_t(pathWidth + offset * 2.0 + 0.5); 100 uint32_t width, height; local 29 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 35 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
H A D | omxVCM4P10_InterpolateChroma.c | 35 * [in] dstStep Destination frame step in byte. Must be multiple of roi.width. 40 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must 43 * if roi.width==2, 2-byte alignment required 44 * if roi.width==4, 4-byte alignment required 45 * if roi.width==8, 8-byte alignment required 53 * roi.width or roi.height is out of range {2,4,8}. 54 * roi.width is equal to 2, but pDst is not 2-byte aligned. 55 * roi.width is equal to 4, but pDst is not 4-byte aligned. 56 * roi.width is equal to 8, but pDst is not 8 byte aligned. 72 ((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 | 35 * [in] dstStep Destination frame step in byte. Must be multiple of roi.width. 40 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must 43 * if roi.width==2, 2-byte alignment required 44 * if roi.width==4, 4-byte alignment required 45 * if roi.width==8, 8-byte alignment required 53 * roi.width or roi.height is out of range {2,4,8}. 54 * roi.width is equal to 2, but pDst is not 2-byte aligned. 55 * roi.width is equal to 4, but pDst is not 4-byte aligned. 56 * roi.width is equal to 8, but pDst is not 8 byte aligned. 72 ((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:__anon816
|
H A D | h264bsd_util.c | 268 u32 width, height; local 273 width = image->width; 275 row = mbNum / width; 276 col = mbNum % width; 278 tmp = row * width; 279 picSize = width * height;
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20TextureLayer.java | 51 boolean resize(int width, int height) { argument 85 void update(int width, int height, boolean isOpaque) { argument 86 super.update(width, height, isOpaque); 87 GLES20Canvas.nUpdateTextureLayer(mLayer, width, height, isOpaque, mSurface);
|
/frameworks/base/include/private/hwui/ |
H A D | DrawGlInfo.h | 34 // Input: current width/height of destination surface 35 int width; 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 66 dimensions[0] = width; 72 public void setDimensions(int width, int height, int depth) { argument 74 dimensions[0] = width;
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
H A D | ImageFormat.java | 36 public static MutableFrameFormat create(int width, argument 42 result.setDimensions(width, height); 51 public static MutableFrameFormat create(int width, argument 55 return create(width,
|
/frameworks/av/include/camera/ |
H A D | CameraParameters.h | 26 int width; member in struct:android::Size 30 width = 0; 35 width = w; 59 void setPreviewSize(int width, int height); 60 void getPreviewSize(int *width, int *height) const; 63 // Set the dimensions in pixels to the given width and height 64 // for video frames. The given width and height must be one 68 void setVideoSize(int width, int height); 69 // Retrieve the current dimensions (width and height) 74 void getVideoSize(int *width, in [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | jpeg.cpp | 40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { argument 43 uint8_t row_data[width * 3]; 63 cinfo.image_width = width; 74 uint16_t *src = (uint16_t *)(frame + row * width * 2); 76 for (int col = 0; col < width; col++) {
|
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 105 * Note that the width of the image must be even. 107 * @param width the width of the image 112 public FaceDetector(int width, int height, int maxFaces) argument 117 fft_initialize(width, height, maxFaces); 118 mWidth = width; 121 mBWBuffer = new byte[width * height]; 189 native private int fft_initialize(int width, int height, int maxFaces); argument
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.h | 46 // Initialize a GL frame to the given width, height, format. Also specify 48 bool Init(int width, int height); 54 bool InitWithTexture(GLint texture_id, int width, int height); 57 bool InitWithFbo(GLint fbo_id, int width, int height); 93 bool SetViewport(int x, int y, int width, int height); 130 void InitDimensions(int width, int height); 185 // The width, height and format of the frame
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | IconMerger.java | 57 int width = getMeasuredWidth(); 58 setMeasuredDimension(width - (width % mIconSize), getMeasuredHeight()); 67 private void checkOverflow(int width) { argument 78 final boolean moreRequired = visibleChildren * mIconSize > width;
|
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | MediaImageItem.java | 137 throw new IllegalArgumentException ("Null width and height"); 232 * @return The generated Kenburns clip width. 263 * @return The scaled width of the image. 507 * This function get the proper width by given aspect ratio 514 int width = 0; 519 width = 720; 521 width = 1080; 526 width = 640; 528 width = 854; 530 width 606 getThumbnail(int width, int height, long timeMs) argument 619 getThumbnailList(int width, int height, long startMs, long endMs, int thumbnailCount, int[] indices, GetThumbnailListCallback callback) argument 933 scaleImage(String filename, int width, int height) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | fastcodemb.cpp | 78 Int width = currVop->width; local 131 if (lx != width) input -= (ind_y << 9); /* non-padded offset */ 151 dctMode = ((width << 3) - 8); 163 if (lx != width) input -= (ind_y << 7); 165 width >>= 1; 168 sad = getBlockSum(input, width); 178 sad = Sad8x8(input, pred, width); 184 if (lx != width) input -= (ind_y << 7); 187 sad = getBlockSum(input, width); 309 Int width = currVop->width; local 530 Sad8x8(UChar *cur, UChar *prev, Int width) argument 594 getBlockSum(UChar *cur, Int width) argument [all...] |