Home
last modified time | relevance | path

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

1234567

/development/tools/emulator/system/camera/
DConverters.cpp33 int width, in _YUV420SToRGB565() argument
40 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB565()
63 int width, in _YUV420SToRGB32() argument
70 for (int x = 0; x < width; x += 2, U += dUV, V += dUV) { in _YUV420SToRGB32()
88 void YV12ToRGB565(const void* yv12, void* rgb, int width, int height) in YV12ToRGB565() argument
90 const int pix_total = width * height; in YV12ToRGB565()
94 _YUV420SToRGB565(Y, U, V, 1, reinterpret_cast<uint16_t*>(rgb), width, height); in YV12ToRGB565()
97 void YV12ToRGB32(const void* yv12, void* rgb, int width, int height) in YV12ToRGB32() argument
99 const int pix_total = width * height; in YV12ToRGB32()
103 _YUV420SToRGB32(Y, U, V, 1, reinterpret_cast<uint32_t*>(rgb), width, height); in YV12ToRGB32()
[all …]
DJpegCompressor.cpp43 int width, in compressRawImage() argument
47 ALOGV("%s: %p[%dx%d]", __FUNCTION__, image, width, height); in compressRawImage()
51 offsets[1] = width * height; in compressRawImage()
52 mStrides[0] = width; in compressRawImage()
53 mStrides[1] = width; in compressRawImage()
54 if (encode(&mStream, pY, width, height, offsets, quality)) { in compressRawImage()
56 __FUNCTION__, (width * height * 12) / 8, width, height, mStream.getOffset()); in compressRawImage()
/development/tools/yuv420sp2rgb/
Dyuv420sp2rgb.c34 int width; member
52 int width, int height, in color_convert_common() argument
66 ctx.width = width; in color_convert_common()
72 for (j = 0; j < width; j++) { in color_convert_common()
73 nB = *(pY + i * width + j); in color_convert_common()
82 for (j = 0; j < width; j++) { in color_convert_common()
83 nY = *(pY + i * width + j); in color_convert_common()
84 nV = *(pUV + (i/2) * width + bytes_per_pixel * (j/2)); in color_convert_common()
85 nU = *(pUV + (i/2) * width + bytes_per_pixel * (j/2) + 1); in color_convert_common()
126 *(rgb16 + ctx->i * ctx->width + ctx->j) = b | (g << 5) | (r << 11); in rgb16_cb()
[all …]
/development/samples/BrowserPlugin/jni/animation/
DAnimationThread.cpp63 SkBitmap* AnimationThread::constructBitmap(int width, int height) { in constructBitmap() argument
65 bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height); in constructBitmap()
95 int width, height; in threadLoop() local
96 getDimensions(width, height); in threadLoop()
98 if (m_bitmap->width() != width || m_bitmap->height() != height) { in threadLoop()
101 m_bitmap = constructBitmap(width, height); in threadLoop()
105 m_dx = width * .005f; in threadLoop()
111 const float OW = width * .125f; in threadLoop()
118 bounce(&m_x, &m_dx, width - OW); in threadLoop()
/development/samples/BrowserPlugin/src/com/android/sampleplugin/
DPaintSurface.java45 public PaintSurface(Context context, int NPP, int width, int height) { in PaintSurface() argument
53 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in PaintSurface()
56 nativeSurfaceChanged(npp, format, width, height); in PaintSurface()
79 this.getHolder().setFixedSize(width, height); in PaintSurface()
93 private native void nativeSurfaceChanged(int npp, int format, int width, int height); in nativeSurfaceChanged() argument
/development/tools/etc1tool/
Detc1tool.cpp25 int writePNGFile(const char* pOutput, png_uint_32 width, png_uint_32 height,
143 png_uint_32 width = 0; in read_PNG_File() local
196 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, in read_PNG_File()
200 stride = 3 * width; in read_PNG_File()
212 *pWidth = width; in read_PNG_File()
242 png_uint_32 width = 0; in readPKMFile() local
264 width = etc1_pkm_get_width(header); in readPKMFile()
266 encodedSize = etc1_get_encoded_data_size(width, height); in readPKMFile()
283 stride = width * 3; in readPKMFile()
290 etc1_decode_image(pEncodedData, pImageData, width, height, 3, stride); in readPKMFile()
[all …]
/development/tools/emulator/opengl/system/GLESv2_enc/
DGL2EncoderUtils.cpp21 size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pac… in pixelDataSize() argument
25 return ctx->state()->pixelDataSize(width, height, format, type, pack); in pixelDataSize()
28 size_t pixelDataSize3D(void *self, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe… in pixelDataSize3D() argument
30 size_t layerSize = pixelDataSize(self, width, height, format, type, pack); in pixelDataSize3D()
DGL2EncoderUtils.h20 …size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pa…
21 …size_t pixelDataSize3D(void *self, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GL…
/development/tools/emulator/system/camera/fake-pipeline2/
DBase.h38 uint32_t width, height; member
48 uint32_t width, height; member
55 uint32_t width, height; member
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DCameraFragment.java216 final int width = resolveSize(getSuggestedMinimumWidth(), in onMeasure() local
220 setMeasuredDimension(width, height); in onMeasure()
223 mPreviewSize = getOptimalPreviewSize(mSupportedPreviewSizes, width, in onMeasure()
229 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in onMeasure()
240 final int width = r - l; in onLayout() local
243 int previewWidth = width; in onLayout()
246 previewWidth = mPreviewSize.width; in onLayout()
251 if (width * previewHeight > height * previewWidth) { in onLayout()
254 child.layout((width - scaledChildWidth) / 2, 0, in onLayout()
255 (width + scaledChildWidth) / 2, height); in onLayout()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java199 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); in switchCamera()
210 final int width = resolveSize(getSuggestedMinimumWidth(), widthMeasureSpec); in onMeasure() local
212 setMeasuredDimension(width, height); in onMeasure()
215 mPreviewSize = getOptimalPreviewSize(mSupportedPreviewSizes, width, height); in onMeasure()
224 final int width = r - l; in onLayout() local
227 int previewWidth = width; in onLayout()
230 previewWidth = mPreviewSize.width; in onLayout()
235 if (width * previewHeight > height * previewWidth) { in onLayout()
237 child.layout((width - scaledChildWidth) / 2, 0, in onLayout()
238 (width + scaledChildWidth) / 2, height); in onLayout()
[all …]
DCompressedTextureActivity.java113 int width = 128; in load() local
115 Buffer image = createImage(width, height); in load()
116 … ETC1Util.ETC1Texture etc1Texture = ETC1Util.compressTexture(image, width, height, 3, 3 * width); in load()
134 private Buffer createImage(int width, int height) { in createImage() argument
135 int stride = 3 * width; in createImage()
144 for (int x = 0; x < width; x++) { in createImage()
DFrameBufferObjectActivity.java80 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
82 mSurfaceWidth = width; in onSurfaceChanged()
84 gl.glViewport(0, 0, width, height); in onSurfaceChanged()
98 private void drawOnscreen(GL10 gl, int width, int height) { in drawOnscreen() argument
99 gl.glViewport(0, 0, width, height); in drawOnscreen()
100 float ratio = (float) width / height; in drawOnscreen()
136 private void drawOffscreenImage(GL10 gl, int width, int height) { in drawOffscreenImage() argument
137 gl.glViewport(0, 0, width, height); in drawOffscreenImage()
138 float ratio = (float) width / height; in drawOffscreenImage()
174 private int createTargetTexture(GL10 gl, int width, int height) { in createTargetTexture() argument
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DNumericSprite.java32 int width = roundUpPower2((int) (interDigitGaps + paint.measureText(sStrike))); in initialize() local
33 mLabelMaker = new LabelMaker(true, width, height); in initialize()
80 public float width() { in width() method in NumericSprite
81 float width = 0.0f; in width() local
85 width += mWidth[c - '0']; in width()
87 return width; in width()
DLabelMaker.java202 int width = Math.max(minWidth, textWidth + padWidth); in add() local
204 int effectiveTextWidth = width - padWidth; in add()
217 if (width > mStrikeWidth) { in add()
218 width = mStrikeWidth; in add()
222 if (u + width > mStrikeWidth) { in add()
233 int u2 = u + width; in add()
238 background.setBounds(u, v, u + width, v + height); in add()
250 mU = u + width; in add()
253 mLabels.add(new Label(width, height, ascent, in add()
254 u, v + height, width, -height)); in add()
[all …]
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/
DNativeMedia.java76 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate()
77 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height=" in onCreate()
98 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate()
99 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height=" in onCreate()
121 int width = mediaPlayer.getVideoWidth(); in onCreate()
123 Log.v(TAG, "onPrepared width=" + width + ", height=" + height); in onCreate()
124 if (width != 0 && height != 0 && mJavaMediaPlayerVideoSink != null) { in onCreate()
125 mJavaMediaPlayerVideoSink.setFixedSize(width, height); in onCreate()
135 public void onVideoSizeChanged(MediaPlayer mediaPlayer, int width, int height) { in onCreate()
136 Log.v(TAG, "onVideoSizeChanged width=" + width + ", height=" + height); in onCreate()
[all …]
/development/samples/BrowserPlugin/jni/
DRenderingThread.cpp86 void RenderingThread::setDimensions(int width, int height) { in setDimensions() argument
88 m_width = width; in setDimensions()
92 void RenderingThread::getDimensions(int& width, int& height) { in getDimensions() argument
94 width = m_width; in getDimensions()
146 int result = ANativeWindow_setBuffersGeometry(ANW, bitmap.width(), in setupNativeWindow()
175 if (bitmap.height() == 0 || bitmap.width() == 0) in updateNativeWindow()
192 uint8_t* src = &(bitmapOrigin[bitmap.width() * row * bpp]); in updateNativeWindow()
193 memcpy(dst, src, bpp * bitmap.width()); in updateNativeWindow()
/development/tools/emulator/opengl/system/renderControl_enc/
DrenderControl_entry.cpp19 uint32_t rcCreateWindowSurface(uint32_t config, uint32_t width, uint32_t height);
21 uint32_t rcCreateColorBuffer(uint32_t width, uint32_t height, GLenum internalFormat);
32 …void rcReadColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum f…
33 …int rcUpdateColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum …
103 uint32_t rcCreateWindowSurface(uint32_t config, uint32_t width, uint32_t height) in rcCreateWindowSurface() argument
106 return ctx->rcCreateWindowSurface(ctx, config, width, height); in rcCreateWindowSurface()
115 uint32_t rcCreateColorBuffer(uint32_t width, uint32_t height, GLenum internalFormat) in rcCreateColorBuffer() argument
118 return ctx->rcCreateColorBuffer(ctx, width, height, internalFormat); in rcCreateColorBuffer()
181 void rcReadColorBuffer(uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum fo… in rcReadColorBuffer() argument
184 ctx->rcReadColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); in rcReadColorBuffer()
[all …]
/development/tools/emulator/opengl/system/GLESv1_enc/
DGLEncoderUtils.cpp20 size_t pixelDataSize(void *self, GLsizei width, GLsizei height, GLenum format, GLenum type, int pac… in pixelDataSize() argument
23 return ctx->pixelDataSize(width, height, format, type, pack); in pixelDataSize()
/development/tools/emulator/skins/WXGA720/
Dlayout15 width 720
27 width 773
52 width 1333
/development/tools/emulator/skins/WXGA800/
Dlayout15 width 1280
27 width 1333
52 width 853
/development/tools/emulator/skins/WXGA800-7in/
Dlayout15 width 800
27 width 853
53 width 1333
/development/tools/emulator/skins/WSVGA/
Dlayout15 width 1024
27 width 1076
52 width 654
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
DImageResizer.java68 public void setImageSize(int width, int height) { in setImageSize() argument
69 mImageWidth = width; in setImageSize()
195 final int width = options.outWidth; in calculateInSampleSize() local
198 if (height > reqHeight || width > reqWidth) { in calculateInSampleSize()
202 final int widthRatio = Math.round((float) width / (float) reqWidth); in calculateInSampleSize()
214 final float totalPixels = width * height; in calculateInSampleSize()
/development/ndk/samples/hello-neon/jni/
Dhelloneon-intrinsics.c24 fir_filter_neon_intrinsics(short *output, const short* input, const short* kernel, int width, int k… in fir_filter_neon_intrinsics() argument
29 for (nn = 0; nn < width; nn++) in fir_filter_neon_intrinsics()
55 for (nn = 0; nn < width; nn++) { in fir_filter_neon_intrinsics()

1234567