/frameworks/base/graphics/java/android/graphics/ |
H A D | GraphicBuffer.java | 70 * @param height The height in pixels of the buffer 76 public static GraphicBuffer create(int width, int height, int format, int usage) { argument 77 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); 79 return new GraphicBuffer(width, height, format, usage, nativeObject); 87 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument 89 mHeight = height; 99 public static GraphicBuffer createFromExisting(int width, int height, argument 103 return new GraphicBuffer(width, height, format, usage, nativeObject); 116 * Returns the height o 296 nCreateGraphicBuffer(int width, int height, int format, int usage) argument [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | SoftVideoEncoderOMXComponent.h | 38 int32_t height, 55 struct android_ycbcr *ycbcr, int32_t width, int32_t height); 58 const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height); 62 const uint8_t *src, size_t width, size_t height, size_t srcStride, 67 size_t width, size_t height) const; 78 int32_t mHeight; // height of the input frames
|
/frameworks/av/media/libstagefright/foundation/include/ |
H A D | SoftVideoEncoderOMXComponent.h | 38 int32_t height, 55 struct android_ycbcr *ycbcr, int32_t width, int32_t height); 58 const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height); 62 const uint8_t *src, size_t width, size_t height, size_t srcStride, 67 size_t width, size_t height) const; 78 int32_t mHeight; // height of the input frames
|
/frameworks/av/media/libstagefright/include/ |
H A D | SoftVideoEncoderOMXComponent.h | 38 int32_t height, 55 struct android_ycbcr *ycbcr, int32_t width, int32_t height); 58 const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height); 62 const uint8_t *src, size_t width, size_t height, size_t srcStride, 67 size_t width, size_t height) const; 78 int32_t mHeight; // height of the input frames
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | OpPropAnimation.cpp | 44 void createContent(int width, int height, Canvas& canvas) override { 45 content = TestUtils::createNode(0, 0, width, height, 46 [this, width, height](RenderProperties& props, Canvas& canvas) { 51 mRoundRectBottom->value = height / 2; 54 mCircleY->value = height * 0.75;
|
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 108 * @param height the height of the image 112 public FaceDetector(int width, int height, int maxFaces) argument 117 fft_initialize(width, height, maxFaces); 119 mHeight = height; 121 mBWBuffer = new byte[width * height]; 189 native private int fft_initialize(int width, int height, int maxFaces); argument
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.h | 46 // Initialize a GL frame to the given width, height, format. Also specify 48 bool Init(int width, int height); 54 bool InitWithTexture(GLint texture_id, int width, int height); 57 bool InitWithFbo(GLint fbo_id, int width, int height); 93 bool SetViewport(int x, int y, int width, int height); 130 void InitDimensions(int width, int height); 185 // The width, height and format of the frame
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ResizingSpace.java | 53 int height = getContext().getResources().getDimensionPixelOffset(mHeight); 54 if (height != params.height) { 55 params.height = height;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FixedSizeFrameLayout.java | 81 protected void measureContents(int width, int height) { argument 83 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST)); 93 int height = getMeasuredHeight(); 94 onSizeChanged(width, height, width, height);
|
/frameworks/av/media/ndk/ |
H A D | NdkImage.cpp | 35 int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes) : 37 mTimestamp(timestamp), mWidth(width), mHeight(height), mNumPlanes(numPlanes) { 118 AImage::getHeight(int32_t* height) const { 119 if (height == nullptr) { 122 *height = -1; 127 *height = mHeight; 349 // Single plane 16bpp bayer data. even width/height, 448 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + 453 (mLockedBuffer->height / 2 - 1) + 461 (mLockedBuffer->stride * mLockedBuffer->height); 34 AImage(AImageReader* reader, int32_t format, uint64_t usage, BufferItem* buffer, int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes) argument 644 AImage_getHeight(const AImage* image, int32_t* height) argument 679 int32_t height = -1; local [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GLToolbox.java | 70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { argument 72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { argument 78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 103 public static void allocateTexturePixels(int texId, int target, int width, int height) { argument 104 setTexturePixels(texId, target, (ByteBuffer)null, width, height); 115 int width, int height) { 120 pixels = ByteBuffer.allocateDirect(width * height * 4); 122 GLES20.glTexImage2D(target, 0, GLES20.GL_RGBA, width, height, 0, 114 setTexturePixels(int texId, int target, ByteBuffer pixels, int width, int height) argument
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
H A D | m4v_h263_enc_test.cpp | 50 "<height> <frame rate> <bitrate in kbps>\n", argv[0]); 53 fprintf(stderr, "Max height %d\n", kMaxHeight); 70 // Read height and width. 72 int32_t height; local 74 height = atoi(argv[5]); 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, height); [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ThumbsBar.java | 66 public void setThumbSize(int width, int height) { argument 67 mThumbHeight = height; 75 if (lp.height != height) { 76 lp.height = height; 93 public void setHeroThumbSize(int width, int height) { argument 94 mHeroThumbHeight = height; 102 if (lp.height != height) { [all...] |
H A D | DetailsOverviewLogoPresenter.java | 13 * Default implementation assumes no scaleType on ImageView and uses intrinsic width and height of 97 && lp.height == ViewGroup.LayoutParams.WRAP_CONTENT); 144 lp.height = row.getImageDrawable().getIntrinsicHeight(); 154 if (lp.height > imageView.getMaxHeight()) { 155 maxScaleHeight = imageView.getMaxHeight() / (float) lp.height; 160 lp.height = (int) (lp.height * scale);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | pp_semaphore_luma.cpp | 37 height = luminance VOP height in pixels (int) 123 int height /* i */ 140 ypred <= ((height << 1) - (2*MB_SIZE))) 277 else if (nmvy > (height >> 3) - 1) 279 nmvy = (height >> 3) - 1; 300 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 3) - 1)) 332 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 3) - 1))
|
/frameworks/av/media/libstagefright/filters/ |
H A D | ColorConvert.cpp | 49 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, 53 for (int32_t i = 0; i < height; i++) { 71 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, 75 for (int32_t i = 0; i < height; i++) { 94 uint8_t *src, int32_t width, int32_t height, uint32_t stride, 96 for (int32_t i = 0; i < height; ++i) { 48 convertYUV420spToARGB( uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, uint8_t *dest) argument 70 convertYUV420spToRGB888( uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, uint8_t *dest) argument 93 convertRGBAToARGB( uint8_t *src, int32_t width, int32_t height, uint32_t stride, uint8_t *dest) argument
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 59 int height = bitmap.getHeight(); 63 if (height > COMPACT_BITMAP_SIZE || width > COMPACT_BITMAP_SIZE) { 75 (float) COMPACT_BITMAP_SIZE / height, 80 width = height = COMPACT_BITMAP_SIZE; 83 final int size = height*width; 85 bitmap.getPixels(mTempBuffer, 0, width, 0, 0, width, height);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Picture.cpp | 28 mHeight = src->height(); 41 Canvas* Picture::beginRecording(int width, int height) { argument 45 mHeight = height; 46 SkCanvas* canvas = mRecorder->beginRecording(SkIntToScalar(width), SkIntToScalar(height)); 63 int Picture::height() const { function in class:android::Picture 77 newPict->mHeight = cullRect.height();
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | GLFunctorDrawable.cpp | 42 GLint height = (viewportHeight - clip.fTop) - y; local 43 glScissor(clip.fLeft, y, clip.width(), height); 72 info.height = canvasInfo.height(); 89 setScissor(info.height, it.rect()); 104 setScissor(info.height, clipRegion.getBounds());
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.h | 39 * texture.width/.height are actual allocated texture size. Texture will tend to be larger than the 40 * viewport bounds, since textures are always allocated with width / height as a multiple of 64, for 93 const uint32_t width, const uint32_t height); 96 const uint32_t width, const uint32_t height); 127 , height(OffscreenBuffer::computeIdealDimension(layerHeight)) {} 132 , height(layer->texture.height()) { 151 uint32_t height = 0; member in struct:android::uirenderer::OffscreenBufferPool::Entry
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SignalDrawable.java | 221 float height = getBounds().height(); 223 mFullPath.moveTo(width - padding, height - padding); 225 mFullPath.lineTo(padding, height - padding); 226 mFullPath.lineTo(width - padding, height - padding); 231 float dotSize = (DOT_SIZE * height); 232 float dotPadding = (DOT_PADDING * height); 234 mFullPath.moveTo(width - padding, height - padding); 241 float y = height - padding - dotSize; 248 mFullPath.moveTo(width - padding, height 411 draw(int height, int width, @NonNull Canvas canvas, Paint paint) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | sobeloperator.cpp | 42 void computeGradient(unsigned char* dataPtr, int width, int height, short* gxPtr, short* gyPtr) { argument 43 for (int i = 0; i < height; i++) { 49 const int below = (i < height - 1) ? curr + 4 * width : curr; 66 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer, 78 int numPixels = width * height; 82 computeGradient(srcPtr, width, height, gxPtr, gyPtr); 65 Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer, jobject magBuffer, jobject dirBuffer) argument
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
H A D | FlowLayout.java | 39 int height = 49 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST); 73 height = y + lineHeight; 75 if (y + lineHeight < height) { 76 height = y + lineHeight; 79 setMeasuredDimension(width, height);
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | ResourceModifiers.java | 109 final float height = mBitmap.getHeight() / 8.0f; 113 0.0f, height, width, height, width * 2, height, width * 4, height, 114 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, 115 0.0f, height * [all...] |
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/com/google/android/leanbackjank/data/ |
H A D | VideoProvider.java | 63 int width, int height, Context context, boolean useSingleBitmap) { 68 height); 93 makeIcon(width, height, "Jank", file); 106 public static void makeIcon(int width, int height, String string, File file) { argument 107 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 117 Shader shader = new LinearGradient(0, 0, width - 1, height - 1, COLORS.get(0), 120 canvas.drawRect(0, 0, width - 1, height - 1, paint); 122 paint.setTextSize(height * 0.5f); 126 int hOffset = (height - rect.height()) / 62 buildMedia(int categoryCount, int entriesPerCat, int width, int height, Context context, boolean useSingleBitmap) argument [all...] |