Home
last modified time | relevance | path

Searched refs:mWidth (Results 1 – 25 of 150) sorted by relevance

123456

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DStraightenFilter.java52 private int mWidth = 0; field in StraightenFilter
102 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
103 mWidth = inputFormat.getWidth(); in process()
128 Point p0 = new Point(-cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
129 -sinTheta * mWidth - cosTheta * mHeight); in updateParameters()
131 Point p1 = new Point(cosTheta * mWidth + sinTheta * mHeight, in updateParameters()
132 sinTheta * mWidth - cosTheta * mHeight); in updateParameters()
134 Point p2 = new Point(-cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
135 -sinTheta * mWidth + cosTheta * mHeight); in updateParameters()
137 Point p3 = new Point(cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
[all …]
DLomoishFilter.java42 private int mWidth = 0; field in LomoishFilter
157 if (mWidth > mHeight) { in initParameters()
159 scale[1] = ((float) mHeight) / mWidth; in initParameters()
161 scale[0] = ((float) mWidth) / mHeight; in initParameters()
170 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); in initParameters()
190 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
191 mWidth = inputFormat.getWidth(); in process()
DCropRectFilter.java55 private int mWidth = 0; field in CropRectFilter
88 updateSourceRect(mWidth, mHeight); in fieldPortValueUpdated()
110 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
125 mWidth = width; in updateSourceRect()
136 ((ShaderProgram) mProgram).setSourceRect((float) mXorigin / mWidth, in updateSourceRect()
138 (float) mOutputWidth / mWidth, in updateSourceRect()
DDocumentaryFilter.java42 private int mWidth = 0; field in DocumentaryFilter
126 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
127 mWidth = inputFormat.getWidth(); in process()
148 if (mWidth > mHeight) { in initParameters()
150 scale[1] = ((float) mHeight) / mWidth; in initParameters()
152 scale[0] = ((float) mWidth) / mHeight; in initParameters()
DVignetteFilter.java41 private int mWidth = 0; field in VignetteFilter
98 if (mWidth > mHeight) { in initParameters()
100 scale[1] = ((float) mHeight) / mWidth; in initParameters()
102 scale[0] = ((float) mWidth) / mHeight; in initParameters()
140 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
141 mWidth = inputFormat.getWidth(); in process()
DFisheyeFilter.java54 private int mWidth = 0; field in FisheyeFilter
121 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process()
143 mWidth = width; in updateFrameSize()
152 if (mWidth > mHeight) { in updateProgramParams()
154 scale[1] = ((float) mHeight) / mWidth; in updateProgramParams()
156 scale[0] = ((float) mWidth) / mHeight; in updateProgramParams()
/frameworks/av/media/libstagefright/colorconversion/
DColorConverter.cpp63 mWidth(width), in BitmapParams()
148 + dst.mCropTop * dst.mWidth + dst.mCropLeft; in convertCbYCrY()
151 + (src.mCropTop * dst.mWidth + src.mCropLeft) * 2; in convertCbYCrY()
192 src_ptr += src.mWidth * 2; in convertCbYCrY()
193 dst_ptr += dst.mWidth; in convertCbYCrY()
210 + dst.mCropTop * dst.mWidth + dst.mCropLeft; in convertYUV420Planar()
213 (const uint8_t *)src.mBits + src.mCropTop * src.mWidth + src.mCropLeft; in convertYUV420Planar()
216 (const uint8_t *)src_y + src.mWidth * src.mHeight in convertYUV420Planar()
217 + src.mCropTop * (src.mWidth / 2) + src.mCropLeft / 2; in convertYUV420Planar()
220 src_u + (src.mWidth / 2) * (src.mHeight / 2); in convertYUV420Planar()
[all …]
DSoftwareRenderer.cpp45 CHECK(meta->findInt32(kKeyWidth, &mWidth)); in SoftwareRenderer()
52 mCropRight = mWidth - 1; in SoftwareRenderer()
161 mWidth, mHeight, in render()
168 const uint8_t *src_u = (const uint8_t *)data + mWidth * mHeight; in render()
169 const uint8_t *src_v = src_u + (mWidth / 2 * mHeight / 2); in render()
181 src_y += mWidth; in render()
189 src_u += mWidth / 2; in render()
190 src_v += mWidth / 2; in render()
201 (const uint8_t *)data + mWidth * (mHeight - mCropTop / 2); in render()
214 src_y += mWidth; in render()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DSize.java31 mWidth = width; in Size()
36 return mWidth; in getWidth()
53 return mWidth == other.mWidth && mHeight == other.mHeight; in equals()
60 return mWidth + "x" + mHeight; in toString()
67 long asLong = INT_MASK & mWidth; in hashCode()
75 private final int mWidth; field in Size
/frameworks/base/libs/hwui/
DRenderBuffer.h36 mFormat(format), mWidth(width), mHeight(height), mAllocated(false) { in RenderBuffer()
82 glRenderbufferStorage(GL_RENDERBUFFER, mFormat, mWidth, mHeight); in allocate()
93 if (isAllocated() && (width != mWidth || height != mHeight)) { in resize()
97 mWidth = width; in resize()
105 return mWidth; in getWidth()
120 return (uint32_t) ((mWidth * mHeight * formatSize(mFormat)) / 8.0f + 0.5f); in getSize()
183 uint32_t mWidth; member
DPixelBuffer.h137 return mWidth; in getWidth()
151 return mWidth * mHeight * formatSize(mFormat); in getSize()
158 return (y * mWidth + x) * formatSize(mFormat); in getOffset()
184 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) { in PixelBuffer()
189 uint32_t mWidth; variable
DLayerCache.h96 mLayer(NULL), mWidth(0), mHeight(0) { in LayerEntry()
100 mWidth = Layer::computeIdealWidth(layerWidth); in LayerEntry()
105 mLayer(layer), mWidth(layer->getWidth()), mHeight(layer->getHeight()) { in LayerEntry()
127 uint32_t mWidth; member
DRenderBufferCache.h81 mBuffer(NULL), mWidth(0), mHeight(0) { in RenderBufferEntry()
85 mBuffer(NULL), mFormat(format), mWidth(width), mHeight(height) { in RenderBufferEntry()
90 mWidth(buffer->getWidth()), mHeight(buffer->getHeight()) { in RenderBufferEntry()
115 uint32_t mWidth; member
/frameworks/base/libs/hwui/font/
DCacheTexture.cpp41 newBlock->mWidth, newBlock->mHeight); in insertBlock()
48 if (newBlock->mWidth < currBlock->mWidth) { in insertBlock()
85 blockToRemove->mWidth, blockToRemove->mHeight); in removeBlock()
112 mTexture(NULL), mTextureId(0), mWidth(width), mHeight(height), mFormat(format), in CacheTexture()
117 mWidth - TEXTURE_BORDER_SIZE, mHeight - TEXTURE_BORDER_SIZE, true); in CacheTexture()
146 mWidth - TEXTURE_BORDER_SIZE, mHeight - TEXTURE_BORDER_SIZE, true); in init()
185 mTexture = PixelBuffer::create(mFormat, mWidth, mHeight); in allocateTexture()
194 glTexImage2D(GL_TEXTURE_2D, 0, mFormat, mWidth, mHeight, 0, in allocateTexture()
211 uint32_t width = mHasUnpackRowLength ? dirtyRect.getWidth() : mWidth; in upload()
217 glPixelStorei(GL_UNPACK_ROW_LENGTH, mWidth); in upload()
[all …]
DCacheTexture.h52 uint16_t mWidth; member
58 mX(x), mY(y), mWidth(width), mHeight(height), mNext(NULL), mPrev(NULL) { in mX()
69 currBlock->mWidth, currBlock->mHeight); in output()
96 return mWidth; in getWidth()
108 return (y * mWidth + x) * PixelBuffer::formatSize(mFormat); in getOffset()
182 uint16_t mWidth; variable
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DCpuVideoTrackDecoder.java49 private final int mWidth; field in CpuVideoTrackDecoder
60 mWidth = format.getInteger(MediaFormat.KEY_WIDTH); in CpuVideoTrackDecoder()
103 int outputWidth = mWidth; in copyFrameDataTo()
107 outputHeight = mWidth; in copyFrameDataTo()
117 convertImage(mDecodedBuffer, outBytes, mColorFormat, mWidth, mHeight); in copyFrameDataTo()
120 mUnrotatedBytes = ByteBuffer.allocateDirect(mWidth * mHeight * 4); in copyFrameDataTo()
123 convertImage(mDecodedBuffer, mUnrotatedBytes, mColorFormat, mWidth, mHeight); in copyFrameDataTo()
144 rowStride = mWidth; in copyRotate()
147 offset = (mWidth - 1) * mHeight; in copyRotate()
157 offset = mWidth * mHeight - 1; in copyRotate()
[all …]
/frameworks/base/media/java/android/media/videoeditor/
DTransitionAlpha.java57 private int mWidth; field in TransitionAlpha
104 mWidth = dbo.outWidth; in TransitionAlpha()
125 final int [] framingBuffer = new int[mWidth]; in TransitionAlpha()
132 imageBitmap.getPixels(framingBuffer, 0, mWidth, 0, tmp,mWidth, 1); in TransitionAlpha()
134 intBuffer.put(framingBuffer,0,mWidth); in TransitionAlpha()
160 return mWidth; in getRGBFileWidth()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DShape.java29 private float mWidth; field in Shape
36 return mWidth; in getWidth()
71 if (mWidth != width || mHeight != height) { in resize()
72 mWidth = width; in resize()
/frameworks/native/services/surfaceflinger/RenderEngine/
DTexture.cpp25 mWidth(0), mHeight(0), mFiltering(false) { in Texture()
30 mWidth(0), mHeight(0), mFiltering(false) { in Texture()
51 mWidth = width; in setDimensions()
72 return mWidth; in getWidth()
/frameworks/base/core/java/android/widget/
DEdgeEffect.java78 private int mWidth; field in EdgeEffect
161 mWidth = width; in setSize()
338 if (mWidth < mMinWidth) { in draw()
340 int glowLeft = (mWidth - mMinWidth)/2; in draw()
341 mGlow.setBounds(glowLeft, 0, mWidth - glowLeft, glowBottom); in draw()
344 mGlow.setBounds(0, 0, mWidth, glowBottom); in draw()
352 if (mWidth < mMinWidth) { in draw()
354 int edgeLeft = (mWidth - mMinWidth)/2; in draw()
355 mEdge.setBounds(edgeLeft, 0, mWidth - edgeLeft, edgeBottom); in draw()
358 mEdge.setBounds(0, 0, mWidth, edgeBottom); in draw()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDirectoryView.java29 private int mWidth; field in DirectoryView
50 mWidth = w; in onSizeChanged()
60 setX((mWidth > 0) ? (mPosition * mWidth) : 0); in setPosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DColorDrawableWithDimensions.java22 private int mWidth; field in ColorDrawableWithDimensions
27 mWidth = width; in ColorDrawableWithDimensions()
33 return mWidth; in getIntrinsicWidth()
/frameworks/base/core/java/android/view/
DHardwareLayer.java38 int mWidth; field in HardwareLayer
60 mWidth = width; in HardwareLayer()
79 return mWidth; in getWidth()
200 mWidth = width; in update()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DUsbHid.java35 private final int mWidth; field in UsbHid.Multitouch
41 mWidth = width; in Multitouch()
62 byte maxXLsb = (byte)(mWidth - 1); in generateDescriptor()
63 byte maxXMsb = (byte)((mWidth - 1) >> 8); in generateDescriptor()
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DRsYuv.java40 private int mWidth; field in RsYuv
74 mWidth = width; in reset()
75 mScript.invoke_setSize(mWidth, mHeight); in reset()
78 tb.setX(mWidth); in reset()
86 tb.setX(mWidth); in reset()
102 return mWidth; in getWidth()

123456