/frameworks/av/camera/ |
H A D | CameraParameters.cpp | 40 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 D | Overlay.cpp | 143 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/libs/hwui/ |
H A D | RenderBufferCache.cpp | 110 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);
|
H A D | Snapshot.h | 157 void initializeViewport(int width, int height) { argument 158 mViewportData.initialize(width, height); 282 void initialize(int width, int height) { argument 283 mWidth = width; 285 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1); 291 * The viewport is always defined to be (0, 0, width, height).
|
H A D | LayerRenderer.cpp | 53 const float width = mLayer->layer.getWidth(); local 58 dirty.right >= width && dirty.bottom >= height)) { 60 dirty.set(0.0f, 0.0f, width, height); 62 dirty.intersect(0.0f, 0.0f, width, height); 188 Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { argument 189 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); 190 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height); 200 Layer* layer = caches.layerCache.get(renderState, width, height); 212 width, height, maxTextureSize, maxTextureSize); 222 layer->layer.set(0.0f, 0.0f, width, heigh 257 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument 292 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, bool forceFilter, GLenum renderTarget, float* textureTransform) argument [all...] |
H A D | PathCache.h | 189 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint); 191 PathTexture* getOval(float width, float height, const SkPaint* paint); 192 PathTexture* getRect(float width, float height, const SkPaint* paint); 193 PathTexture* getArc(float width, float height, float startAngle, float sweepAngle, 225 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 227 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 257 void purgeCache(uint32_t width, uint32_t height); 261 bool checkTextureSize(uint32_t width, uint32_t height) { argument 262 if (width > mMaxTextureSize || height > mMaxTextureSize) { 264 width, heigh [all...] |
H A D | TessellationCache.h | 64 float width; member in struct:android::uirenderer::TessellationCache::Description::Shape::RoundRect 125 float width, float height, float rx, float ry) { 126 getRoundRectBuffer(transform, paint, width, height, rx, ry); 129 float width, float height, float rx, float ry); 150 float width, float height); 152 float width, float height, float rx, float ry); 124 precacheRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 75 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 D | gl_frame.cpp | 56 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/av/media/libstagefright/omx/ |
H A D | SoftVideoEncoderOMXComponent.cpp | 60 int32_t width, 67 mWidth(width), 354 struct android_ycbcr *ycbcr, int32_t width, int32_t height) { 362 memcpy(dst, src, width); 369 memcpy(dstU, srcU, width >> 1); 372 memcpy(dstV, srcV, width >> 1); 379 for (size_t x = width >> 1; x > 0; --x) { 385 dstU += (dstStride >> 1) - (width >> 1); 386 dstV += (dstStride >> 1) - (width >> 1); 387 srcU += ycbcr->cstride - (width >> 54 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 352 ConvertFlexYUVToPlanar( uint8_t *dst, size_t dstStride, size_t dstVStride, struct android_ycbcr *ycbcr, int32_t width, int32_t height) argument 394 ConvertYUV420SemiPlanarToYUV420Planar( const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height) argument 424 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 477 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 D | APacketSource.cpp | 108 const char *params, int32_t *width, int32_t *height) { 109 *width = 0; 200 FindAVCDimensions(nal, width, height); 201 ALOGI("dimensions %dx%d", *width, *height); 338 const sp<ABuffer> &config, int32_t *width, int32_t *height) { 339 *width = 0; 361 &ptr[offset], config->size() - offset, width, height); 365 const char *params, int32_t *width, int32_t *height) { 366 *width = 0; 375 if (!ExtractDimensionsMPEG4Config(config, width, heigh 107 MakeAVCCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument 337 ExtractDimensionsMPEG4Config( const sp<ABuffer> &config, int32_t *width, int32_t *height) argument 364 MakeMPEG4VideoCodecSpecificData( const char *params, int32_t *width, int32_t *height) argument 430 int32_t width, height; local 462 int32_t width, height; local 515 int32_t width, height; local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | get_pred_adv_b_add.cpp | 33 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...] |
H A D | idct_vca.cpp | 40 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 49 width -= 4; 50 dst -= width; 71 *((uint32*)(dst += width)) = dst_word; /* save 4 bytes to dst */ 97 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 105 width -= 4; 106 dst -= width; 139 *((uint32*)(dst += width)) = dst_word; /* save 4 bytes to dst */ 185 void idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 193 width 294 idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width) argument 419 idctrow1_intra(int16 *blk, PIXEL *comp, int width) argument 448 idctrow2_intra(int16 *blk, PIXEL *comp, int width) argument 505 idctrow3_intra(int16 *blk, PIXEL *comp, int width) argument 578 idctrow4_intra(int16 *blk, PIXEL *comp, int width) argument [all...] |
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
H A D | CameraPreviewActivity.java | 139 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 D | h264bsd_interpolate_chroma_ver.s | 45 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...] |
H A D | h264bsd_interpolate_chroma_hor.s | 46 width RN 4 label 82 ;// u32 width, : 0xf8 93 LDR width, [sp, #0xf8] ;// width 99 CMP tmp6, width ;// x0+chromaPartWidth+1 > width 115 STMIA sp,{width,height,tmp8,chrPH,tmp2} 122 STMIA sp,{width,height,tmp8,chrPH,tmp2} 124 MLA ref, height, width, ref ;// ref += width * heigh [all...] |
H A D | h264bsd_interpolate_ver_half.s | 60 width RN 12 label 96 LDR width, [sp,#0x218] ;// width 97 CMP tmp5, width 98 BHI do_fill ;// (x0+partW)>width 118 LDR width, [sp,#0x218] ;// width 119 STR width, [sp,#0] ;// sp+0 = width 133 LDR width, [s [all...] |
/frameworks/native/opengl/libagl/ |
H A D | texture.cpp | 141 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...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_image.c | 86 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...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | GLFrame.java | 127 int width = getFormat().getWidth(); 129 if (!nativeAllocateWithTexture(mGLEnvironment, texId, width, height)) { 137 int width = getFormat().getWidth(); 139 if (!nativeAllocateWithFbo(mGLEnvironment, fboId, width, height)) { 276 public void setViewport(int x, int y, int width, int height) { argument 278 setNativeViewport(x, y, width, height); 364 private native boolean nativeAllocate(GLEnvironment env, int width, int height); argument 368 int width, 373 int width, 396 private native boolean setNativeViewport(int x, int y, int width, in argument 366 nativeAllocateWithTexture(GLEnvironment env, int textureId, int width, int height) argument 371 nativeAllocateWithFbo(GLEnvironment env, int fboId, int width, int height) argument [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | IconUtilities.java | 106 int width = mIconWidth; 111 painter.setIntrinsicWidth(width); 126 if (width < sourceWidth || height < sourceHeight) { 130 height = (int) (width / ratio); 132 width = (int) (height * ratio); 134 } else if (sourceWidth < width && sourceHeight < height) { 136 width = sourceWidth; 150 final int left = (textureWidth-width) / 2; 159 canvas.drawRect(left, top, left+width, top+height, debugPaint); 163 icon.setBounds(left, top, left+width, to [all...] |
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 87 final int width = content.getInt(); 90 if (width >= 0 && width <= 4096 93 handleSinkAvailable(width, height, densityDpi); 109 private void handleSinkAvailable(int width, int height, int densityDpi) { argument 110 if (mSinkAvailable && mSinkWidth == width && mSinkHeight == height 116 + "width=" + width + ", height=" + height 119 mSinkWidth = width; 181 public VirtualDisplayThread(int width, in argument [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | Gesture.java | 142 public Path toPath(int width, int height, int edge, int numSample) { argument 143 return toPath(null, width, height, edge, numSample); 146 public Path toPath(Path path, int width, int height, int edge, int numSample) { argument 153 path.addPath(strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample)); 178 * @param width width of the target bitmap 185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { argument 186 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 204 Path path = strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample); 214 * @param width 220 toBitmap(int width, int height, int inset, int color) argument [all...] |
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | CompareActivity.java | 65 int width = getResources().getDimensionPixelSize(R.dimen.layer_width); 67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 80 int width = mSoftwareBitmap.getWidth(); 83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 84 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
H A D | BallsRS.java | 89 private void createPF(int width, int height) { argument 98 public void init(RenderScriptGL rs, Resources res, int width, int height) { argument 102 createPF(width, height); 113 mGrid = ScriptField_BallGrid.create2D(mRS, (width + 99) / 100, (height + 99) / 100); 135 mPhysicsScript.set_gMaxPos(new Float2(width - 5, height - 5)); 138 mScript.invoke_initParts(width, height);
|