Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 1031) sorted by relevance

12345678910>>...42

/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_conceal.c130 u32 width, height; in h264bsdConceal() local
142 width = currImage->width; in h264bsdConceal()
164 if (col == width) in h264bsdConceal()
176 H264SwDecMemset(currImage->data, 128, width*height*384); in h264bsdConceal()
178 H264SwDecMemcpy(currImage->data, refData, width*height*384); in h264bsdConceal()
191 mb = pStorage->mb + row * width; in h264bsdConceal()
198 for (j = col + 1; j < width; j++) in h264bsdConceal()
210 for (j = 0; j < width; j++) in h264bsdConceal()
213 mb = pStorage->mb + i*width + j; in h264bsdConceal()
219 mb -= width; in h264bsdConceal()
[all …]
Dh264bsd_reconstruct.c113 u32 width, in h264bsdInterpolateChromaHor() argument
135 if ((x0 < 0) || ((u32)x0+chromaPartWidth+1 > width) || in h264bsdInterpolateChromaHor()
138 h264bsdFillBlock(pRef, block, x0, y0, width, height, in h264bsdInterpolateChromaHor()
140 pRef += width * height; in h264bsdInterpolateChromaHor()
142 x0, y0, width, height, chromaPartWidth + 1, in h264bsdInterpolateChromaHor()
148 width = chromaPartWidth+1; in h264bsdInterpolateChromaHor()
157 ptrA = pRef + (comp * height + (u32)y0) * width + x0; in h264bsdInterpolateChromaHor()
166 tmp1 = ptrA[width]; in h264bsdInterpolateChromaHor()
168 tmp3 = ptrA[width]; in h264bsdInterpolateChromaHor()
176 tmp1 = ptrA[width]; in h264bsdInterpolateChromaHor()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dchv_filter.cpp178 int width, in CombinedHorzVertFilter() argument
198 pp_w = (width >> 3); in CombinedHorzVertFilter()
232 jVal0 = *(ptr - width); /* C */ in CombinedHorzVertFilter()
241 *(ptr - width) = (uint8)(jVal0); /* C */ in CombinedHorzVertFilter()
244 jVal0 = *(ptr - (width << 1)); /* B */ in CombinedHorzVertFilter()
245 jVal1 = *(ptr + width); /* E */ in CombinedHorzVertFilter()
252 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter()
253 *(ptr + width) = (uint8)jVal1; /* store E */ in CombinedHorzVertFilter()
259 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter()
260 *(ptr + width) = (uint8)jVal1; /* store E */ in CombinedHorzVertFilter()
[all …]
Dmb_utils.cpp25 void PutSKIPPED_MB(uint8 *comp, uint8 *prev, int width) in PutSKIPPED_MB() argument
42 comp += width; in PutSKIPPED_MB()
43 prev += width; in PutSKIPPED_MB()
53 comp += width; in PutSKIPPED_MB()
54 prev += width; in PutSKIPPED_MB()
64 comp += width; in PutSKIPPED_MB()
65 prev += width; in PutSKIPPED_MB()
74 comp += width; in PutSKIPPED_MB()
75 prev += width; in PutSKIPPED_MB()
86 void PutSKIPPED_B(uint8 *comp, uint8 *prev, int width) in PutSKIPPED_B() argument
[all …]
Dmb_motion_comp.cpp140 int height, width, pred_width; in MBMotionComp() local
169 width = video->width; in MBMotionComp()
185 offset = (int32)ypos * width + xpos; in MBMotionComp()
267 pred_width = width; in MBMotionComp()
271 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp()
277 GetPredAdvBTable[ypred&1][xpred&1](c_prev + (xpred >> 1) + ((ypred >> 1)*width), in MBMotionComp()
278 pred, width, (pred_width << 1) | round1); in MBMotionComp()
285 pred, width, height, round1, pred_width); in MBMotionComp()
303 pred_width = width; in MBMotionComp()
307 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp()
[all …]
Dderinging_chroma.cpp25 int width, in Deringing_Chroma() argument
47 incr = width - BLKSIZE; in Deringing_Chroma()
54 for (h_blk = 0; h_blk < width; h_blk += BLKSIZE) in Deringing_Chroma()
59 FindMaxMin(ptr, &min_blk, &max_blk, width); in Deringing_Chroma()
69 addr_v = (int32)v_pel * width; in Deringing_Chroma()
74 pelu = *(ptr - width); in Deringing_Chroma()
76 pell = *(ptr + width); in Deringing_Chroma()
81 pelu = *(ptr - width); in Deringing_Chroma()
83 pell = *(ptr + width); in Deringing_Chroma()
90 pelu = *(ptr - width); in Deringing_Chroma()
[all …]
Dpost_filter.cpp43 int width, height; in PostFilter() local
50 width = video->width; in PostFilter()
52 size = (int32)width * height; in PostFilter()
75 CombinedHorzVertRingFilter(output, width, height, QP_store, 0, pp_mod); in PostFilter()
83 CombinedHorzVertFilter(output, width, height, in PostFilter()
88 CombinedHorzVertFilter_NoSoftDeblocking(output, width, height, in PostFilter()
94 Deringing_Luma(output, width, height, QP_store, in PostFilter()
107 …CombinedHorzVertRingFilter(output, (int)(width >> 1), (int)(height >> 1), QP_store, (int) 1, pp_mo… in PostFilter()
115 CombinedHorzVertFilter(output, (int)(width >> 1), in PostFilter()
120 CombinedHorzVertFilter_NoSoftDeblocking(output, (int)(width >> 1), in PostFilter()
[all …]
Dblock_idct.cpp123 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; in MBlockIDCT() local
233 width = video->width; in MBlockIDCT()
234 width_uv = width >> 1; in MBlockIDCT()
235 offset = (int32)(y_pos << 4) * width + (x_pos << 4); in MBlockIDCT()
241 BlockIDCT_intra(mblock, c_comp, 0, width); in MBlockIDCT()
242 BlockIDCT_intra(mblock, c_comp + 8, 1, width); in MBlockIDCT()
243 BlockIDCT_intra(mblock, c_comp + (width << 3), 2, width); in MBlockIDCT()
244 BlockIDCT_intra(mblock, c_comp + (width << 3) + 8, 3, width); in MBlockIDCT()
[all …]
Didct.h48 void idctrow0(int16 *blk, uint8 *pred, uint8 *dst, int width);
49 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width);
50 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width);
51 void idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width);
52 void idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width);
59 void idctrow0_intra(int16 *blk, PIXEL *comp, int width);
60 void idctrow1_intra(int16 *blk, PIXEL *comp, int width);
61 void idctrow2_intra(int16 *blk, PIXEL *comp, int width);
62 void idctrow3_intra(int16 *blk, PIXEL *comp, int width);
63 void idctrow4_intra(int16 *blk, PIXEL *comp, int width);
Dderinging_luma.cpp25 int width, in Deringing_Luma() argument
47 incr = width - BLKSIZE; in Deringing_Luma()
50 for (MB_H = 0; MB_H < width; MB_H += MBSIZE) in Deringing_Luma()
62 ptr = &Rec_Y[(int32)(BLK_V) * width + MB_H + BLK_H]; in Deringing_Luma()
97 thr, width, max_diff); in Deringing_Luma()
109 max_diff = (QP_store[((((int32)MB_V*width)>>4))>>4] >> 2) + 4; in Deringing_Luma()
117 ptr = &Rec_Y[(int32)(MB_V + BLK_V) * width + BLK_H]; in Deringing_Luma()
151 thr, width, max_diff); in Deringing_Luma()
158 for (MB_H = MBSIZE; MB_H < width; MB_H += MBSIZE) in Deringing_Luma()
160 max_diff = (QP_store[((((int32)MB_V*width)>>4)+MB_H)>>4] >> 2) + 4; in Deringing_Luma()
[all …]
Dget_pred_outside.cpp198 *((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)); \
219 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \
222 *((uint32*)(ptr+=16)) = *((uint32*)(prev+=width)); \
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DPackedIntVectorTest.java27 for (int width = 0; width < 10; width++) { in testBasic()
28 PackedIntVector p = new PackedIntVector(width); in testBasic()
29 int[] ins = new int[width]; in testBasic()
31 for (int height = width * 2; height < width * 4; height++) { in testBasic()
32 assertEquals(p.width(), width); in testBasic() local
45 for (int j = 0; j < width; j++) { in testBasic()
57 for (int j = 0; j < width; j++) { in testBasic()
69 for (int j = 0; j < width; j++) { in testBasic()
78 for (int j = 0; j < width; j++) { in testBasic()
83 for (int j = 0; j < width; j++) { in testBasic()
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmap.java269 private static void checkWidthHeight(int width, int height) { in checkWidthHeight() argument
270 if (width <= 0) { in checkWidthHeight()
482 final int width = src.getWidth(); in createScaledBitmap() local
484 final float sx = dstWidth / (float)width; in createScaledBitmap()
487 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter); in createScaledBitmap()
521 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) { in createBitmap() argument
522 return createBitmap(source, x, y, width, height, null, false); in createBitmap()
548 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height, in createBitmap() argument
552 checkWidthHeight(width, height); in createBitmap()
553 if (x + width > source.getWidth()) { in createBitmap()
[all …]
DYuvImage.java79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { in YuvImage() argument
87 if (width <= 0 || height <= 0) { in YuvImage()
97 mStrides = calculateStrides(width, format); in YuvImage()
104 mWidth = width; in YuvImage()
141 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg()
199 private int[] calculateStrides(int width, int format) { in calculateStrides() argument
202 strides = new int[] {width, width}; in calculateStrides()
207 strides = new int[] {width * 2}; in calculateStrides()
215 int width = rect.width(); in adjustRectangle() local
219 width &= ~1; in adjustRectangle()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapMeshLayerActivity.java49 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView() local
53 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapMeshView()
54 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapMeshView()
55 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapMeshView()
56 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapMeshView()
DBitmapMeshActivity.java48 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView() local
52 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapMeshView()
53 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapMeshView()
54 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapMeshView()
55 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapMeshView()
DAlpha8BitmapActivity.java59 final float width = texture.getWidth() / 3.0f; in BitmapsView() local
63 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapsView()
64 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapsView()
65 … 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapsView()
66 … 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapsView()
/frameworks/base/core/java/android/webkit/
DViewManager.java42 int width; field in ViewManager.ChildView
49 void setBounds(int x, int y, int width, int height) { in setBounds() argument
52 this.width = width; in setBounds()
56 void attachView(int x, int y, int width, int height) { in attachView() argument
60 setBounds(x, y, width, height); in attachView()
122 int width = mWebView.contentToViewDimension(v.width); in requestLayout() local
132 lp.width = width; in requestLayout()
137 lp = new AbsoluteLayout.LayoutParams(width, height, x, y); in requestLayout()
162 int fixedW = width; in requestLayout()
165 if (v.width > v.height) { in requestLayout()
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio()
77 const float current_ratio = width / height; in ExpandToAspectRatio()
79 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio()
81 width += dx; in ExpandToAspectRatio()
91 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { in ExpandToMinLength()
95 const float current_length = width > height ? width : height; in ExpandToMinLength()
97 const float dx = width * (length / current_length - 1.0f); in ExpandToMinLength()
99 width += dx; in ExpandToMinLength()
108 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit()
112 const float current_length = width > height ? width : height; in ScaleWithLengthLimit()
[all …]
/frameworks/base/libs/hwui/
DPixelBuffer.cpp35 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
43 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
49 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height): in CpuPixelBuffer() argument
50 PixelBuffer(format, width, height) { in CpuPixelBuffer()
51 mBuffer = new uint8_t[width * height * formatSize(format)]; in CpuPixelBuffer()
73 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { in upload() argument
74 glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, in upload()
84 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
92 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
100 GpuPixelBuffer::GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height): in GpuPixelBuffer() argument
[all …]
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.cpp24 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, in encode() argument
39 setJpegCompressStruct(&cinfo, width, height, jpegQuality); in encode()
51 int width, int height, int quality) { in setJpegCompressStruct() argument
52 cinfo->image_width = width; in setJpegCompressStruct()
82 int width = cinfo->image_width; in compress() local
86 uint8_t* uRows = new uint8_t [8 * (width >> 1)]; in compress()
87 uint8_t* vRows = new uint8_t [8 * (width >> 1)]; in compress()
93 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); in compress()
103 int offset = (i >> 1) * (width >> 1); in compress()
116 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() argument
[all …]
/frameworks/base/core/jni/
Dandroid_text_AndroidCharacter.cpp97 int width = u_getIntPropertyValue(input, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidth() local
98 if (width < 0 || width >= U_EA_COUNT) in getEastAsianWidth()
99 width = PROPERTY_UNDEFINED; in getEastAsianWidth()
101 return width; in getEastAsianWidth()
130 int width = u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidths() local
131 if (width < 0 || width >= U_EA_COUNT) in getEastAsianWidths()
132 width = PROPERTY_UNDEFINED; in getEastAsianWidths()
134 dest[i++] = width; in getEastAsianWidths()
135 dest[i] = width; in getEastAsianWidths()
138 int width = u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidths() local
[all …]
/frameworks/base/opengl/java/android/opengl/
DETC1Util.java74 int width = texture.getWidth(); in loadTexture() local
79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height, in loadTexture()
84 int stride = pixelSize * width; in loadTexture()
87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride); in loadTexture()
88 GLES10.glTexImage2D(target, level, fallbackFormat, width, height, border, in loadTexture()
117 public ETC1Texture(int width, int height, ByteBuffer data) { in ETC1Texture() argument
118 mWidth = width; in ETC1Texture()
153 int width = 0; in createTexture() local
166 width = ETC1.getWidth(headerBuffer); in createTexture()
169 int encodedSize = ETC1.getEncodedDataSize(width, height); in createTexture()
[all …]
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio()
76 const float current_ratio = width / height; in ExpandToAspectRatio()
78 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio()
80 width += dx; in ExpandToAspectRatio()
90 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { in ExpandToMinLength()
94 const float current_length = width > height ? width : height; in ExpandToMinLength()
96 const float dx = width * (length / current_length - 1.0f); in ExpandToMinLength()
98 width += dx; in ExpandToMinLength()
107 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit()
111 const float current_length = width > height ? width : height; in ScaleWithLengthLimit()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
Dh264bsdWriteMacroblock.S29 #define width r2 macro
95 LDR width, [image, #4]
103 LSL width, width, #4
105 LSR cwidth, width, #1
106 VST1 {qRow0}, [luma,:128], width
108 VST1 {qRow1}, [luma,:128], width
110 VST1 {qRow2}, [luma,:128], width
112 VST1 {qRow3}, [luma,:128], width
114 VST1 {qRow4}, [luma,:128], width
116 VST1 {qRow5}, [luma,:128], width
[all …]

12345678910>>...42