Home
last modified time | relevance | path

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

1234

/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 …]
Dcmdline.c60 int *width, in get_options() argument
69 ASSERT(width); *width = -1; in get_options()
127 SET_INT_OPTION(width); in get_options()
/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/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 …]
DCubeRenderer.java66 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
67 gl.glViewport(0, 0, width, height); in onSurfaceChanged()
75 float ratio = (float) width / height; in onSurfaceChanged()
DWindowSurface.java74 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
102 void init(int width, int height, float minStep) { in init() argument
103 x = (float)((width-1)*Math.random()); in init()
118 void step(int width, int height, float minStep, float maxStep) { in step() argument
120 if (x <= 0 || x >= (width-1)) { in step()
122 else if (x >= (width-1)) x = width-1; in step()
/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/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 …]
DMatrixTrackingGL.java147 int internalformat, int width, int height, int border, in glCompressedTexImage2D() argument
149 mgl.glCompressedTexImage2D(target, level, internalformat, width, in glCompressedTexImage2D()
154 int yoffset, int width, int height, int format, int imageSize, in glCompressedTexSubImage2D() argument
156 mgl.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, in glCompressedTexSubImage2D()
161 int x, int y, int width, int height, int border) { in glCopyTexImage2D() argument
162 mgl.glCopyTexImage2D(target, level, internalformat, x, y, width, in glCopyTexImage2D()
167 int yoffset, int x, int y, int width, int height) { in glCopyTexSubImage2D() argument
168 mgl.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, in glCopyTexSubImage2D()
352 public void glLineWidth(float width) { in glLineWidth() argument
353 mgl.glLineWidth(width); in glLineWidth()
[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/tools/emulator/skins/WXGA720/
Dlayout15 width 720
27 width 773
52 width 1333
/development/tools/emulator/skins/WSVGA/
Dlayout15 width 1024
27 width 1076
52 width 654
/development/tools/emulator/skins/WXGA800-7in/
Dlayout15 width 800
27 width 853
53 width 1333
/development/tools/emulator/skins/WXGA800/
Dlayout15 width 1280
27 width 1333
52 width 853
/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()
Dhelloneon-intrinsics.h20 void fir_filter_neon_intrinsics(short *output, const short* input, const short* kernel, int width, …
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DBitmapUtils.java89 int width = original.getWidth(); in getThumbnail() local
92 if (width >= height) { in getThumbnail()
93 float scaleFactor = (float) maxDimension / width; in getThumbnail()
98 scaledWidth = (int) (scaleFactor * width); in getThumbnail()
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/
DImageResizer.java70 public void setImageSize(int width, int height) { in setImageSize() argument
71 mImageWidth = width; in setImageSize()
236 final int width = options.outWidth; in calculateInSampleSize() local
239 if (height > reqHeight || width > reqWidth) { in calculateInSampleSize()
243 final int widthRatio = Math.round((float) width / (float) reqWidth); in calculateInSampleSize()
255 final float totalPixels = width * height; in calculateInSampleSize()
/development/ndk/platforms/android-9/include/android/
Dnative_window.h40 int32_t width; member
99 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int3…
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DKubeRenderer.java76 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
77 gl.glViewport(0, 0, width, height); in onSurfaceChanged()
85 float ratio = (float)width / height; in onSurfaceChanged()
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/
DInteractiveLineGraphView.java329 mContentRect.width() / mMaxLabelWidth / 2, in drawAxes()
518 + mContentRect.width() in getDrawX()
519 * (x - mCurrentViewport.left) / mCurrentViewport.width(); in getDrawX()
546 x = (mCurrentViewport.left + (mCurrentViewport.width() / DRAW_STEPS * i)); in drawDataSeriesUnclipped()
568 mEdgeEffectTop.setSize(mContentRect.width(), mContentRect.height()); in drawEdgeEffectsUnclipped()
578 canvas.rotate(180, mContentRect.width(), 0); in drawEdgeEffectsUnclipped()
579 mEdgeEffectBottom.setSize(mContentRect.width(), mContentRect.height()); in drawEdgeEffectsUnclipped()
590 mEdgeEffectLeft.setSize(mContentRect.height(), mContentRect.width()); in drawEdgeEffectsUnclipped()
601 mEdgeEffectRight.setSize(mContentRect.height(), mContentRect.width()); in drawEdgeEffectsUnclipped()
632 + mCurrentViewport.width() in hitTest()
[all …]
/development/ndk/platforms/android-5/samples/hello-gl2/src/com/android/gl2jni/
DGL2JNILib.java31 public static native void init(int width, int height); in init() argument

1234