Searched refs:width (Results 176 - 200 of 1312) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.h41 ANDROID_API bool setSize(int width, int height) { argument
42 if (mWidth != width || mHeight != height) {
43 mWidth = width;
H A DLayerRenderer.h59 static Layer* createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height);
60 static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height);
61 static void updateTextureLayer(Layer* layer, uint32_t width, uint32_t height,
H A DRenderBufferCache.h46 * @param width The desired width of the buffer
49 RenderBuffer* get(GLenum format, const uint32_t width, const uint32_t height);
81 RenderBufferEntry(GLenum format, const uint32_t width, const uint32_t height): argument
82 mBuffer(nullptr), mFormat(format), mWidth(width), mHeight(height) {
H A DRenderBufferCache.cpp97 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument
100 RenderBufferEntry entry(format, width, height);
111 RenderBuffer::formatName(format), width, height);
113 buffer = new RenderBuffer(format, width, height);
116 RenderBuffer::formatName(format), width, height);
H A DPathCache.h195 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint);
197 PathTexture* getOval(float width, float height, const SkPaint* paint);
198 PathTexture* getRect(float width, float height, const SkPaint* paint);
199 PathTexture* getArc(float width, float height, float startAngle, float sweepAngle,
232 float& left, float& top, float& offset, uint32_t& width, uint32_t& height);
234 float& left, float& top, float& offset, uint32_t& width, uint32_t& height);
256 void purgeCache(uint32_t width, uint32_t height);
260 bool checkTextureSize(uint32_t width, uint32_t height) { argument
261 if (width > mMaxTextureSize || height > mMaxTextureSize) {
263 width, heigh
[all...]
/frameworks/base/media/mca/effect/java/android/media/effect/
H A DSingleFilterEffect.java67 public void apply(int inputTexId, int width, int height, int outputTexId) { argument
70 Frame inputFrame = frameFromTexture(inputTexId, width, height);
71 Frame outputFrame = frameFromTexture(outputTexId, width, height);
/frameworks/native/opengl/tests/gl_perfapp/jni/
H A Dgl_code.cpp60 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height);
64 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
66 gWidth = width;
/frameworks/av/camera/
H A DCameraParameters.cpp40 const char CameraParameters::KEY_JPEG_THUMBNAIL_WIDTH[] = "jpeg-thumbnail-width";
331 int width, height; local
332 int success = parse_pair(sizeStartPtr, &width, &height, 'x',
338 sizes.push(Size(width, height));
347 void CameraParameters::setPreviewSize(int width, int height) argument
350 sprintf(str, "%dx%d", width, height);
354 void CameraParameters::getPreviewSize(int *width, int *height) const argument
356 *width = *height = -1;
360 parse_pair(p, width, height, 'x');
363 void CameraParameters::getPreferredPreviewSizeForVideo(int *width, in argument
377 setVideoSize(int width, int height) argument
384 getVideoSize(int *width, int *height) const argument
426 setPictureSize(int width, int height) argument
433 getPictureSize(int *width, int *height) const argument
[all...]
/frameworks/av/cmds/screenrecord/
H A DOverlay.cpp143 int width = mEglWindow.getWidth(); local
146 glViewport(0, 0, width, height);
164 mTextRenderer.setScreenSize(width, height);
178 mGlConsumer->setDefaultBufferSize(width, height);
220 int width = mEglWindow.getWidth(); local
224 100, 100, width-200, height-200);
227 0, 0, width, height);
234 100, 100, width-200, height-200);
296 int width = window.getWidth(); local
298 glViewport(0, 0, width, heigh
331 int width = window.getWidth(); local
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DThinPatchesActivity.java75 final int width = 100;
78 final int left = (getWidth() - width) / 2;
84 mPatch3.setBounds(left, top, left + height, top + width);
89 mPatch1.setBounds(left, top, left + width, top + height);
95 mPatch2.setBounds(left, top, left + width, top + height);
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
H A Dm4v_h263_enc_test.cpp49 fprintf(stderr, "Usage %s <input yuv> <output file> <mode> <width> "
52 fprintf(stderr, "Max width %d\n", kMaxWidth);
70 // Read height and width.
71 int32_t width; local
73 width = atoi(argv[4]);
75 if (width > kMaxWidth || height > kMaxHeight || width <= 0 || height <= 0) {
76 fprintf(stderr, "Unsupported dimensions %dx%d\n", width, height);
80 if (width % 16 != 0 || height % 16 != 0) {
82 width, heigh
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_frame.cpp56 bool GLFrame::Init(int width, int height) { argument
59 InitDimensions(width, height);
65 bool GLFrame::InitWithTexture(GLint texture_id, int width, int height) { argument
68 InitDimensions(width, height);
72 bool GLFrame::InitWithFbo(GLint fbo_id, int width, int height) { argument
76 InitDimensions(width, height);
87 void GLFrame::InitDimensions(int width, int height) { argument
88 width_ = width;
90 vp_width_ = width;
187 bool GLFrame::SetViewport(int x, int y, int width, in argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/text/
H A DOptimizingLineBreaker.java52 breakInfo.widths = new float[]{p.width};
161 w += p.width;
166 w = mTabStops.width(w);
173 private static float computeDemerits(float maxWidth, float width, boolean finalBreak, argument
175 float deviation = finalBreak ? 0 : maxWidth - width;
192 w += p.width;
197 w = mTabStops.width(w);
224 /** Actual width of the line. */
233 public LineMetrics(float width, float printedWidth, boolean hasTabs) { argument
234 mWidth = width;
253 Node(int prev, int prevCount, float demerits, float width, boolean hasTabs) argument
[all...]
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp61 int32_t width,
68 mWidth(width),
387 struct android_ycbcr *ycbcr, int32_t width, int32_t height) {
395 memcpy(dst, src, width);
402 memcpy(dstU, srcU, width >> 1);
405 memcpy(dstV, srcV, width >> 1);
412 for (size_t x = width >> 1; x > 0; --x) {
418 dstU += (dstStride >> 1) - (width >> 1);
419 dstV += (dstStride >> 1) - (width >> 1);
420 srcU += ycbcr->cstride - (width >>
55 SoftVideoEncoderOMXComponent( const char *name, const char *componentRole, OMX_VIDEO_CODINGTYPE codingType, const CodecProfileLevel *profileLevels, size_t numProfileLevels, int32_t width, int32_t height, const OMX_CALLBACKTYPE *callbacks, OMX_PTR appData, OMX_COMPONENTTYPE **component) argument
385 ConvertFlexYUVToPlanar( uint8_t *dst, size_t dstStride, size_t dstVStride, struct android_ycbcr *ycbcr, int32_t width, int32_t height) argument
428 ConvertYUV420SemiPlanarToYUV420Planar( const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) argument
459 ConvertRGB32ToPlanar( uint8_t *dstY, size_t dstStride, size_t dstVStride, const uint8_t *src, size_t width, size_t height, size_t srcStride, bool bgr) argument
512 extractGraphicBuffer( uint8_t *dst, size_t dstSize, const uint8_t *src, size_t srcSize, size_t width, size_t height) const argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAPacketSource.cpp108 const char *params, int32_t *width, int32_t *height) {
109 *width = 0;
200 FindAVCDimensions(nal, width, height);
201 ALOGI("dimensions %dx%d", *width, *height);
336 const sp<ABuffer> &config, int32_t *width, int32_t *height) {
337 *width = 0;
359 &ptr[offset], config->size() - offset, width, height);
363 const char *params, int32_t *width, int32_t *height) {
364 *width = 0;
373 if (!ExtractDimensionsMPEG4Config(config, width, heigh
107 MakeAVCCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument
335 ExtractDimensionsMPEG4Config( const sp<ABuffer> &config, int32_t *width, int32_t *height) argument
362 MakeMPEG4VideoCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument
428 int32_t width, height; local
460 int32_t width, height; local
513 int32_t width, height; local
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAssetAtlasService.java154 // The comparator will sort the bitmap by width first, then by height
224 mBuffer = GraphicBuffer.create(config.width, config.height,
228 Atlas atlas = new Atlas(config.type, config.width, config.height, config.flags);
401 return r1.width * r1.height - r2.width * r2.height;
412 return new Configuration(result.type, result.width, result.height, result.count);
468 writer.write(String.valueOf(config.width));
503 int width = readInt(reader, MIN_SIZE, MAX_SIZE);
508 config = new Configuration(type, width, height, count, flags);
573 final int width; field in class:AssetAtlasService.Configuration
578 Configuration(Atlas.Type type, int width, int height, int count) argument
582 Configuration(Atlas.Type type, int width, int height, int count, int flags) argument
603 int width; field in class:AssetAtlasService.WorkerResult
607 WorkerResult(Atlas.Type type, int width, int height, int count) argument
702 packBitmaps(Atlas.Type type, int width, int height, Atlas.Entry entry) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewLogoPresenter.java16 * Default implementation assumes no scaleType on ImageView and uses intrinsic width and height of
83 * both width and size, the ViewHolder would be using intrinsic size of Drawable in
99 vh.setSizeFromDrawableIntrinsic(lp.width == ViewGroup.LayoutParams.WRAP_CONTENT &&
100 lp.width == ViewGroup.LayoutParams.WRAP_CONTENT);
146 lp.width = row.getImageDrawable().getIntrinsicWidth();
151 if (lp.width > imageView.getMaxWidth()) {
152 maxScaleWidth = imageView.getMaxWidth() / (float) lp.width;
162 lp.width = (int) (lp.width * scale);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dget_pred_adv_b_add.cpp33 width = width of the VOP in pixels (x axis); full-pel resolution
85 int width, /* i */
96 offset = width - B_SIZE; /* offset for prev */
108 prev += width;
185 int width, /* i */
198 offset = width - B_SIZE; /* offset for prev */
514 int width, /* i */
527 offset = width - B_SIZE; /* offset for prev */
548 word2 = *((uint32*)(prev + width));
82 GetPredAdvancedBy0x0( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument
182 GetPredAdvancedBy0x1( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument
511 GetPredAdvancedBy1x0( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument
858 GetPredAdvancedBy1x1( uint8 *prev, uint8 *pred_block, int width, int pred_width_rnd ) argument
[all...]
/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java266 * @param xSize The width size of the content. This should not be 0.
335 final int width = newBounds.width();
338 mFrameAndBackdropNode.setLeftTopRightBottom(left, top, left + width, top + height);
341 DisplayListCanvas canvas = mFrameAndBackdropNode.start(width, height);
346 drawable.setBounds(0, 0, left + width, top + mLastCaptionHeight);
352 mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height);
357 drawColorViews(left, top, width, height, fullscreen, systemInsets, stableInsets);
365 private void drawColorViews(int left, int top, int width, int height, argument
370 DisplayListCanvas canvas = mSystemBarBackgroundNode.start(width, heigh
[all...]
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
H A DCameraPreviewActivity.java139 int width, int height) {
141 mPreviewTexWidth = width;
148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument
205 if (lhs.width < rhs.width) return -1;
206 if (lhs.width > rhs.width) return 1;
222 Integer.toString(mPreviewSizes.get(i).width) + " x " +
271 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth;
285 p.setPreviewSize(mPreviewSize.width, mPreviewSiz
138 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_chroma_ver.s45 width RN 4 label
81 ;// u32 width, : 0xf8
92 LDR width, [sp, #0xf8] ;// width
97 CMP tmp1, width ;// x0+chromaPartWidth > width
114 STMIA sp,{width,height,chrPW,tmp1,tmp2}
121 STMIA sp,{width,height,chrPW,tmp1,tmp2}
123 MLA ref, height, width, ref ;// ref += width * heigh
[all...]
/frameworks/minikin/libs/minikin/
H A DLineBreaker.cpp34 // constants are larger than any reasonable actual width score.
120 // width buffer.
125 float width = 0.0f; local
130 width = Layout::measureText(mTextBuf.data(), start, end - start, mTextBuf.size(), bidiFlags,
209 // Skip break for zero-width characters inside replacement span
220 return width;
224 // needed (ie when word exceeds current line width)
228 ParaWidth width = mCandidates.back().preBreak; local
229 if (postBreak - width > currentLineWidth()) {
234 width
288 pushBreak(int offset, float width, uint8_t hyph) argument
297 addReplacement(size_t start, size_t end, float width) argument
341 float width = mLineWidths.getLineWidth(0); local
[all...]
/frameworks/native/opengl/libagl/
H A Dtexture.cpp138 Rect(native_buffer->width, native_buffer->height),
271 (dst.width == src.width) &&
356 GLenum format, GLenum type, GLsizei width, GLsizei height,
372 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align;
380 width, height, stride, formatIdx, compressedFormat, bpr);
391 width, height, stride, formatIdx, compressedFormat, bpr);
401 static GLsizei dataSizePalette4(int numLevels, int width, int height, int format) argument
435 int w = (width >> i) ? : 1;
444 static void decodePalette4(const GLvoid *data, int level, int width, in argument
354 createTextureSurface(ogles_context_t* c, GGLSurface** outSurface, int32_t* outSize, GLint level, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) argument
1049 glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DPopupWindow.java226 p.width, p.height, mAnchoredGravity));
342 * @param width the popup's width
345 public PopupWindow(int width, int height) { argument
346 this(null, width, height);
358 * @param width the popup's width
361 public PopupWindow(View contentView, int width, int height) { argument
362 this(contentView, width, height, false);
373 * @param width th
377 PopupWindow(View contentView, int width, int height, boolean focusable) argument
1065 setWidth(int width) argument
1524 findDropDownPosition(View anchor, WindowManager.LayoutParams outParams, int xOffset, int yOffset, int width, int height, int gravity) argument
1664 tryFitHorizontal(@onNull LayoutParams outParams, int xOffset, int width, int anchorWidth, int drawingLocationX, int screenLocationX, int displayFrameLeft, int displayFrameRight, boolean allowResize) argument
1682 positionInDisplayHorizontal(@onNull LayoutParams outParams, int width, int drawingLocationX, int screenLocationX, int displayFrameLeft, int displayFrameRight, boolean canResize) argument
1999 update(int width, int height) argument
2017 update(int x, int y, int width, int height) argument
2036 update(int x, int y, int width, int height, boolean force) argument
2119 update(View anchor, int width, int height) argument
2139 update(View anchor, int xoff, int yoff, int width, int height) argument
2143 update(View anchor, boolean updateLocation, int xoff, int yoff, int width, int height) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_image.c86 u32 width; local
97 width = image->width;
110 width *= 4;
121 lum += width-4;
124 width >>= 1;
131 cb += width-2;
140 cr += width-2;
193 ASSERT(mbNum < image->width * image->height);
197 picWidth = image->width;
[all...]

Completed in 1556 milliseconds

1234567891011>>