Searched refs:mWidth (Results 1 - 25 of 113) sorted by relevance

12345

/frameworks/base/libs/hwui/
H A DLayerCache.h110 mLayer(NULL), mWidth(0), mHeight(0) {
114 mWidth = uint32_t(ceilf(layerWidth / float(LAYER_SIZE)) * LAYER_SIZE);
119 mLayer(layer), mWidth(layer->getWidth()), mHeight(layer->getHeight()) {
123 if (mWidth == rhs.mWidth) {
126 return mWidth < rhs.mWidth;
130 return mWidth == rhs.mWidth && mHeight == rhs.mHeight;
134 uint32_t mWidth; member in struct:android::uirenderer::LayerCache::LayerEntry
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DShape.java29 private float mWidth; field in class:Shape
36 return mWidth;
71 if (mWidth != width || mHeight != height) {
72 mWidth = width;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DStraightenFilter.java52 private int mWidth = 0; field in class:StraightenFilter
102 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
103 mWidth = inputFormat.getWidth();
128 Point p0 = new Point(-cosTheta * mWidth + sinTheta * mHeight,
129 -sinTheta * mWidth - cosTheta * mHeight);
131 Point p1 = new Point(cosTheta * mWidth + sinTheta * mHeight,
132 sinTheta * mWidth - cosTheta * mHeight);
134 Point p2 = new Point(-cosTheta * mWidth - sinTheta * mHeight,
135 -sinTheta * mWidth + cosTheta * mHeight);
137 Point p3 = new Point(cosTheta * mWidth
[all...]
H A DLomoishFilter.java42 private int mWidth = 0; field in class:LomoishFilter
157 if (mWidth > mHeight) {
159 scale[1] = ((float) mHeight) / mWidth;
161 scale[0] = ((float) mWidth) / mHeight;
170 mProgram.setHostValue("stepsizeX", 1.0f / mWidth);
190 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
191 mWidth = inputFormat.getWidth();
H A DCropRectFilter.java55 private int mWidth = 0; field in class:CropRectFilter
88 updateSourceRect(mWidth, mHeight);
110 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
125 mWidth = width;
129 Log.e("CropFilter", mWidth + ", " + mHeight + ", " +
130 (float) mXorigin / mWidth + ", " +
132 (float) mOutputWidth / mWidth + ", " +
136 ((ShaderProgram) mProgram).setSourceRect((float) mXorigin / mWidth,
138 (float) mOutputWidth / mWidth,
H A DDocumentaryFilter.java42 private int mWidth = 0; field in class:DocumentaryFilter
126 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
127 mWidth = inputFormat.getWidth();
148 if (mWidth > mHeight) {
150 scale[1] = ((float) mHeight) / mWidth;
152 scale[0] = ((float) mWidth) / mHeight;
H A DVignetteFilter.java41 private int mWidth = 0; field in class:VignetteFilter
98 if (mWidth > mHeight) {
100 scale[1] = ((float) mHeight) / mWidth;
102 scale[0] = ((float) mWidth) / mHeight;
140 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
141 mWidth = inputFormat.getWidth();
H A DFisheyeFilter.java54 private int mWidth = 0; field in class:FisheyeFilter
121 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
143 mWidth = width;
152 if (mWidth > mHeight) {
154 scale[1] = ((float) mHeight) / mWidth;
156 scale[0] = ((float) mWidth) / mHeight;
H A DSharpenFilter.java43 private int mWidth = 0; field in class:SharpenFilter
118 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
133 mWidth = width;
137 mProgram.setHostValue("stepsizeX", 1.0f / mWidth);
/frameworks/base/core/java/android/view/
H A DHardwareLayer.java37 int mWidth; field in class:HardwareLayer
59 mWidth = width;
70 return mWidth;
175 mWidth = width;
/frameworks/base/media/java/android/media/videoeditor/
H A DTransitionAlpha.java57 private int mWidth; field in class:TransitionAlpha
104 mWidth = dbo.outWidth;
125 final int [] framingBuffer = new int[mWidth];
132 imageBitmap.getPixels(framingBuffer, 0, mWidth, 0, tmp,mWidth, 1);
134 intBuffer.put(framingBuffer,0,mWidth);
160 return mWidth;
/frameworks/av/media/libstagefright/colorconversion/
H A DColorConverter.cpp63 mWidth(width),
148 + dst.mCropTop * dst.mWidth + dst.mCropLeft;
151 + (src.mCropTop * dst.mWidth + src.mCropLeft) * 2;
192 src_ptr += src.mWidth * 2;
193 dst_ptr += dst.mWidth;
210 + dst.mCropTop * dst.mWidth + dst.mCropLeft;
213 (const uint8_t *)src.mBits + src.mCropTop * src.mWidth + src.mCropLeft;
216 (const uint8_t *)src_y + src.mWidth * src.mHeight
217 + src.mCropTop * (src.mWidth / 2) + src.mCropLeft / 2;
220 src_u + (src.mWidth /
[all...]
H A DSoftwareRenderer.cpp45 CHECK(meta->findInt32(kKeyWidth, &mWidth));
52 mCropRight = mWidth - 1;
162 mWidth, mHeight,
169 const uint8_t *src_u = (const uint8_t *)data + mWidth * mHeight;
170 const uint8_t *src_v = src_u + (mWidth / 2 * mHeight / 2);
182 src_y += mWidth;
190 src_u += mWidth / 2;
191 src_v += mWidth / 2;
202 (const uint8_t *)data + mWidth * (mHeight - mCropTop / 2);
215 src_y += mWidth;
[all...]
/frameworks/rs/driver/
H A DrsdFrameBufferObj.h39 mWidth = width;
48 uint32_t mWidth; member in class:RsdFrameBufferObj
/frameworks/av/include/private/media/
H A DVideoFrame.h91 VideoFrame(): mWidth(0), mHeight(0), mDisplayWidth(0), mDisplayHeight(0), mSize(0), mData(0) {}
94 mWidth = copy.mWidth;
117 uint32_t mWidth; member in class:android::VideoFrame
/frameworks/av/services/camera/libcameraservice/
H A DFakeCamera.cpp325 mWidth = width;
339 int size = mWidth / 10;
356 mTmpRgb16Buffer = new uint16_t[mWidth * mHeight];
359 convert_rgb16_to_yuv420((uint8_t*)mTmpRgb16Buffer, buffer, mWidth, mHeight);
366 square_xstop = min(mWidth, x+size);
368 shadow_xstop = min(mWidth, x+size+(size/4));
372 uint16_t *sh = &dst[(y+(size/4))*mWidth];
377 sh += mWidth;
381 uint16_t *sq = &dst[y*mWidth];
386 sq += mWidth;
[all...]
H A DFakeCamera.h59 int mWidth, mHeight; member in class:android::FakeCamera
/frameworks/av/media/libstagefright/rtsp/
H A DVideoSource.h33 : mWidth(width),
41 meta->setInt32(kKeyWidth, mWidth);
88 int mWidth, mHeight; member in class:android::VideoSource
/frameworks/base/media/java/android/media/
H A DFaceDetector.java118 mWidth = width;
144 if (bitmap.getWidth() != mWidth || bitmap.getHeight() != mHeight) {
197 private int mWidth; field in class:FaceDetector
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilterSurfaceView.java38 private int mWidth; field in class:FilterSurfaceView
82 mListener.surfaceChanged(getHolder(), mFormat, mWidth, mHeight);
121 mWidth = width;
/frameworks/base/graphics/java/android/graphics/
H A DYuvImage.java58 private int mWidth; field in class:YuvImage
104 mWidth = width;
124 Rect wholeImage = new Rect(0, 0, mWidth, mHeight);
172 return mWidth;
/frameworks/base/core/java/android/widget/
H A DEdgeEffect.java76 private int mWidth; field in class:EdgeEffect
159 mWidth = width;
336 if (mWidth < mMinWidth) {
338 int glowLeft = (mWidth - mMinWidth)/2;
339 mGlow.setBounds(glowLeft, 0, mWidth - glowLeft, glowBottom);
342 mGlow.setBounds(0, 0, mWidth, glowBottom);
350 if (mWidth < mMinWidth) {
352 int edgeLeft = (mWidth - mMinWidth)/2;
353 mEdge.setBounds(edgeLeft, 0, mWidth - edgeLeft, edgeBottom);
356 mEdge.setBounds(0, 0, mWidth, edgeBotto
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DGLTextureSource.java40 private int mWidth; field in class:GLTextureSource
81 FrameFormat outputFormat = ImageFormat.create(mWidth, mHeight,
/frameworks/av/media/libstagefright/
H A DJPEGSource.cpp59 mWidth(0),
103 meta->setInt32(kKeyWidth, mWidth);
142 mWidth = 0;
186 return (mWidth > 0 && mHeight > 0) ? OK : UNKNOWN_ERROR;
213 mWidth = width;
/frameworks/base/graphics/java/android/renderscript/
H A DRenderScriptGL.java46 int mWidth; field in class:RenderScriptGL
184 mWidth = 0;
217 mWidth = w;
234 mWidth = w;
256 return mWidth;

Completed in 416 milliseconds

12345