/frameworks/av/cmds/stagefright/ |
H A D | jpeg.h | 4 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ColorSpace.java | 31 * The input data is expected to be laid out in 3 planes. The width x height Y plane, followed 39 * @param height the height of the image (must be a multiple of 2) 42 ByteBuffer input, ByteBuffer output, int width, int height) { 43 expectInputSize(input, (3 * width * height) / 2); 44 expectOutputSize(output, width * height * 4); 45 nativeYuv420pToRgba8888(input, output, width, height); 58 * @param height the height of the image 61 ByteBuffer input, ByteBuffer output, int width, int height) { 41 convertYuv420pToRgba8888( ByteBuffer input, ByteBuffer output, int width, int height) argument 60 convertArgb8888ToRgba8888( ByteBuffer input, ByteBuffer output, int width, int height) argument 79 convertRgba8888ToHsva8888( ByteBuffer input, ByteBuffer output, int width, int height) argument 98 convertRgba8888ToYcbcra8888( ByteBuffer input, ByteBuffer output, int width, int height) argument 121 nativeYuv420pToRgba8888( ByteBuffer input, ByteBuffer output, int width, int height) argument 124 nativeArgb8888ToRgba8888( ByteBuffer input, ByteBuffer output, int width, int height) argument 127 nativeRgba8888ToHsva8888( ByteBuffer input, ByteBuffer output, int width, int height) argument 130 nativeRgba8888ToYcbcra8888( ByteBuffer input, ByteBuffer output, int width, int height) argument [all...] |
H A D | PixelUtils.java | 39 * @param height The height of the input image. 47 int height, 57 } else if ((width * height * 4) != input.remaining()) { 60 } else if ((width * height * 4) != output.remaining()) { 64 nativeCopyPixels(input, output, width, height, offset, pixStride, rowStride); 70 int height, 44 copyPixels(ByteBuffer input, ByteBuffer output, int width, int height, int offset, int pixStride, int rowStride) argument 67 nativeCopyPixels(ByteBuffer input, ByteBuffer output, int width, int height, int offset, int pixStride, int rowStride) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | RenderArea.cpp | 17 * Checks that the requested width and height are valid and updates them to the render area 24 uint32_t height = getHeight(); local 27 std::swap(width, height); 31 std::swap(width, height); 34 if ((mReqWidth > width) || (mReqHeight > height)) { 35 ALOGE("size mismatch (%d, %d) > (%d, %d)", mReqWidth, mReqHeight, width, height); 43 mReqHeight = height;
|
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
H A D | GL2JNILib.java | 29 * @param height the current view height 31 public static native void init(int width, int height); argument
|
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/ |
H A D | GLPerfLib.java | 29 * @param height the current view height 31 public static native void init(int width, int height); argument
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
H A D | GLDualLib.java | 29 * @param height the current view height 31 public static native void init(int width, int height); argument
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | Shape.java | 46 * Returns the height of the Shape. 68 * @param height the height of the shape (in pixels) 70 public final void resize(float width, float height) { argument 74 if (height < 0) { 75 height =0; 77 if (mWidth != width || mHeight != height) { 79 mHeight = height; 80 onResize(width, height); 100 * @param height th 102 onResize(float width, float height) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | BitmapMeshActivity.java | 49 final float height = mBitmap1.getHeight() / 3.0f; 53 0.0f, height, width, height, width * 2, height, width * 4, height, 54 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, 55 0.0f, height * [all...] |
H A D | BitmapMeshLayerActivity.java | 50 final float height = mBitmap1.getHeight() / 3.0f; 54 0.0f, height, width, height, width * 2, height, width * 4, height, 55 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, 56 0.0f, height * [all...] |
H A D | Alpha8BitmapActivity.java | 60 final float height = texture.getHeight() / 3.0f; 64 0.0f, height, width, height, width * 2, height, width * 4, height, 65 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, 66 0.0f, height * [all...] |
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | BitmapFillrate.cpp | 37 void createContent(int width, int height, Canvas& canvas) override { 39 createNode(canvas, 0x909C27B0, 0, 0, width, height); 40 createNode(canvas, 0xA0CDDC39, width / 3, height / 3, width, height); 41 createNode(canvas, 0x90009688, width / 3, 0, width, height); 42 createNode(canvas, 0xA0FF5722, 0, height / 3, width, height); 43 createNode(canvas, 0x9000796B, width / 6, height / 6, width, height); 44 createNode(canvas, 0xA0FFC107, width / 6, 0, width, height); 56 createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | AutoScrollView.java | 35 int height = getHeight(); 36 int scrollPadding = (int) (height * SCROLL_PERCENT); 39 } else if (y > height - scrollPadding) { 40 scrollBy(0, y - height + scrollPadding);
|
/frameworks/native/opengl/tests/angeles/ |
H A D | app.h | 43 extern void appRender(long tick, int width, int height);
|
/frameworks/native/opengl/tests/gl_jni/src/com/android/gljni/ |
H A D | GLJNILib.java | 29 * @param height the current view height 31 public static native void init(int width, int height); argument
|
/frameworks/base/core/java/com/android/internal/view/ |
H A D | ActionBarPolicy.java | 50 final int height = config.screenHeightDp; 52 if (smallest > 600 || (width > 960 && height > 720) || (width > 720 && height > 960)) { 55 } else if (width >= 500 || (width > 640 && height > 480) || (width > 480 && height > 640)) { 83 final int height = configuration.screenHeightDp; 85 width >= 480 || (width >= 640 && height >= 480); 91 int height = a.getLayoutDimension(R.styleable.ActionBar_height, 0); 94 // Stacked tabs; limit the height 95 height [all...] |
/frameworks/base/libs/hwui/renderstate/ |
H A D | Scissor.cpp | 41 bool Scissor::set(GLint x, GLint y, GLint width, GLint height) { argument 43 (x != mScissorX || y != mScissorY || width != mScissorWidth || height != mScissorHeight)) { 49 height += y; 55 if (height < 0) { 56 height = 0; 58 glScissor(x, y, width, height); 63 mScissorHeight = height; 75 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y); local 77 if (x != mScissorX || y != mScissorY || width != mScissorWidth || height != mScissorHeight) { 78 glScissor(x, y, width, height); [all...] |
/frameworks/native/opengl/libagl/ |
H A D | dxt.h | 27 bool DXT1HasAlpha(const GLvoid *data, int width, int height); 28 void decodeDXT(const GLvoid *data, int width, int height,
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.cpp | 73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { 77 const float current_ratio = width / height; 83 const float dy = height * (current_ratio / ratio - 1.0f); 85 height += dy; 91 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { 95 const float current_length = width > height ? width : height; 100 const float dy = height * (length / current_length - 1.0f); 102 height += dy; 108 if (width <= 0.0f || height < [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | TriangleShape.java | 36 public static TriangleShape create(float width, float height, boolean isPointingUp) { argument 39 triangularPath.moveTo(0, height); 40 triangularPath.lineTo(width, height); 45 triangularPath.lineTo(width / 2, height); 49 return new TriangleShape(triangularPath, width, height);
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
H A D | UT_invert.java | 31 private boolean Test(int width, int height, int depth) { argument 37 if (height > 0) { 38 typeBuilder.setY(height); 48 if (height < 1) { 49 height = 1; 55 float a[] = new float[width * height * depth * 4]; 56 float b[] = new float[width * height * depth * 4]; 60 for (int i = 0; i < width * height * depth * 4; i++) { 77 for (int i = 0; i < width * height * depth * 4; i++) {
|
/frameworks/native/libs/vr/libbufferhub/ |
H A D | ion_buffer.cpp | 20 IonBuffer::IonBuffer(uint32_t width, uint32_t height, uint32_t format, argument 23 Alloc(width, height, kDefaultGraphicBufferLayerCount, format, usage); 26 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, argument 28 : IonBuffer(handle, width, height, kDefaultGraphicBufferLayerCount, stride, 31 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, argument 36 "IonBuffer::IonBuffer: handle=%p width=%u height=%u layer_count=%u " 38 handle, width, height, layer_count, stride, format, usage); 40 Import(handle, width, height, layer_count, stride, format, usage); 46 "IonBuffer::~IonBuffer: handle=%p width=%u height=%u stride=%u " 48 handle(), width(), height(), strid 74 Alloc(uint32_t width, uint32_t height, uint32_t layer_count, uint32_t format, uint64_t usage) argument 91 Reset(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument 101 Import(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument 122 Import(const int* fd_array, int fd_count, const int* int_array, int int_count, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument 198 Lock(uint32_t usage, int x, int y, int width, int height, void** address) argument 214 LockYUV(uint32_t usage, int x, int y, int width, int height, struct android_ycbcr* yuv) argument [all...] |
/frameworks/av/media/libstagefright/filters/ |
H A D | ColorConvert.h | 29 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, 33 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, 38 uint8_t *src, int32_t width, int32_t height, uint32_t stride,
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | Frame.h | 30 Frame(int32_t width, int32_t height, int32_t bufferAge) argument 31 : mWidth(width), mHeight(height), mBufferAge(bufferAge) {} 34 int32_t height() const { return mHeight; } function in class:android::uirenderer::renderthread::Frame
|
/frameworks/base/libs/hwui/ |
H A D | PixelBuffer.cpp | 36 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 40 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 49 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height) argument 50 : PixelBuffer(format, width, height) 51 , mBuffer(new uint8_t[width * height * formatSize(format)]) {} 64 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument 65 glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, mFormat, GL_UNSIGNED_BYTE, 75 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 80 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 91 GpuPixelBuffer::GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height) argument 135 upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) argument 148 create(GLenum format, uint32_t width, uint32_t height, BufferType type) argument [all...] |