Searched refs:width (Results 151 - 175 of 1122) sorted by relevance

1234567891011>>

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DTextureSource.java63 public void allocate(int width, int height) { argument
64 //Log.i("TextureSource", "Allocating empty texture " + mTexId + ": " + width + "x" + height + ".");
65 GLToolbox.allocateTexturePixels(mTexId, mTarget, width, height);
69 public void allocateWithPixels(ByteBuffer pixels, int width, int height) { argument
70 //Log.i("TextureSource", "Uploading pixels to texture " + mTexId + ": " + width + "x" + height + ".");
71 GLToolbox.setTexturePixels(mTexId, mTarget, pixels, width, height);
/frameworks/support/percent/src/android/support/percent/
H A DPercentFrameLayout.java109 public LayoutParams(int width, int height) { argument
110 super(width, height);
113 public LayoutParams(int width, int height, int gravity) { argument
114 super(width, height, gravity);
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DNativeMedia.java86 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
87 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height=" +
108 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
109 Log.v(TAG, "surfaceChanged format=" + format + ", width=" + width + ", height=" +
131 int width = mediaPlayer.getVideoWidth();
133 Log.v(TAG, "onPrepared width=" + width + ", height=" + height);
134 if (width !
345 setFixedSize(int width, int height) argument
359 setFixedSize(int width, int height) argument
381 setFixedSize(int width, int height) argument
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStream.h42 uint32_t width, uint32_t height, int format,
50 uint32_t width, uint32_t height, size_t maxSize, int format,
69 uint32_t width, uint32_t height, int format,
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableRect.java44 buffer.putInt(value.width());
52 int width = buffer.getInt();
55 int right = left + width;
/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.h45 * @param width The desired width of the buffer
48 RenderBuffer* get(GLenum format, const uint32_t width, const uint32_t height);
84 RenderBufferEntry(GLenum format, const uint32_t width, const uint32_t height): argument
85 mBuffer(nullptr), mFormat(format), mWidth(width), mHeight(height) {
H A DRenderBufferCache.cpp110 RenderBuffer* RenderBufferCache::get(GLenum format, const uint32_t width, const uint32_t height) { argument
113 RenderBufferEntry entry(format, width, height);
124 RenderBuffer::formatName(format), width, height);
126 buffer = new RenderBuffer(format, width, height);
129 RenderBuffer::formatName(format), width, height);
/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/base/packages/SystemUI/src/com/android/systemui/
H A DBitmapHelper.java29 * Generate a new bitmap (width x height pixels, ARGB_8888) with the input bitmap scaled
32 * @param width Width of output bitmap (and diameter of circle)
36 public static Bitmap createCircularClip(Bitmap input, int width, int height) { argument
41 final Bitmap output = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
47 final RectF dstRect = new RectF(0, 0, width, height);
/frameworks/native/opengl/tests/gl_perfapp/jni/
H A Dgl_code.cpp62 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height);
66 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
68 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/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.cpp62 int32_t width,
69 mWidth(width),
363 struct android_ycbcr *ycbcr, int32_t width, int32_t height) {
371 memcpy(dst, src, width);
378 memcpy(dstU, srcU, width >> 1);
381 memcpy(dstV, srcV, width >> 1);
388 for (size_t x = width >> 1; x > 0; --x) {
394 dstU += (dstStride >> 1) - (width >> 1);
395 dstV += (dstStride >> 1) - (width >> 1);
396 srcU += ycbcr->cstride - (width >>
56 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
361 ConvertFlexYUVToPlanar( uint8_t *dst, size_t dstStride, size_t dstVStride, struct android_ycbcr *ycbcr, int32_t width, int32_t height) argument
403 ConvertYUV420SemiPlanarToYUV420Planar( const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) argument
433 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
486 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
223 mBuffer = GraphicBuffer.create(config.width, config.height,
227 Atlas atlas = new Atlas(config.type, config.width, config.height, config.flags);
400 return r1.width * r1.height - r2.width * r2.height;
411 return new Configuration(result.type, result.width, result.height, result.count);
467 writer.write(String.valueOf(config.width));
502 int width = readInt(reader, MIN_SIZE, MAX_SIZE);
507 config = new Configuration(type, width, height, count, flags);
572 final int width; field in class:AssetAtlasService.Configuration
577 Configuration(Atlas.Type type, int width, int height, int count) argument
581 Configuration(Atlas.Type type, int width, int height, int count, int flags) argument
602 int width; field in class:AssetAtlasService.WorkerResult
606 WorkerResult(Atlas.Type type, int width, int height, int count) argument
691 packBitmaps(Atlas.Type type, int width, int height, Atlas.Entry entry) argument
[all...]
/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/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.cpp35 // constants are larger than any reasonable actual width score.
128 // width buffer.
134 float width = 0.0f; local
143 width = layout.getAdvance();
217 // Skip break for zero-width characters inside replacement span
228 return width;
232 // needed (ie when word exceeds current line width)
236 ParaWidth width = mCandidates.back().preBreak; local
237 if (postBreak - width > currentLineWidth()) {
242 width
296 pushBreak(int offset, float width, uint8_t hyph) argument
305 addReplacement(size_t start, size_t end, float width) argument
349 float width = mLineWidths.getLineWidth(0); local
[all...]
/frameworks/native/opengl/libagl/
H A Dtexture.cpp141 0, 0, native_buffer->width, native_buffer->height,
278 (dst.width == src.width) &&
363 GLenum format, GLenum type, GLsizei width, GLsizei height,
379 const int32_t bpr = ((width * pixelFormat.size) + align) & ~align;
387 width, height, stride, formatIdx, compressedFormat, bpr);
398 width, height, stride, formatIdx, compressedFormat, bpr);
408 static size_t dataSizePalette4(int numLevels, int width, int height, int format) argument
442 int w = (width >> i) ? : 1;
451 static void decodePalette4(const GLvoid *data, int level, int width, in argument
361 createTextureSurface(ogles_context_t* c, GGLSurface** outSurface, int32_t* outSize, GLint level, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) argument
1056 glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) argument
[all...]

Completed in 1846 milliseconds

1234567891011>>