Searched refs:height (Results 51 - 75 of 1236) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp44 uint32_t height = computeIdealDimension(viewportHeight); local
45 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height);
47 texture.resize(width, height, GL_RGBA);
55 const float texY = 1.0f / static_cast<float>(texture.height());
77 const float texY = 1.0f / float(texture.height());
106 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height());
129 return int(lhs.height) - int(rhs.height);
141 const uint32_t width, const uint32_t height) {
144 Entry entry(width, height);
140 get(RenderState& renderState, const uint32_t width, const uint32_t height) argument
162 resize(OffscreenBuffer* layer, const uint32_t width, const uint32_t height) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DBlur.h39 uint8_t* dest, int32_t width, int32_t height);
41 uint8_t* dest, int32_t width, int32_t height);
/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java75 int height = texture.getHeight();
79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height,
85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height)
87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride);
88 GLES10.glTexImage2D(target, level, fallbackFormat, width, height, border,
117 public ETC1Texture(int width, int height, ByteBuffer data) { argument
119 mHeight = height;
130 * Get the height of the texture in pixels.
154 int height = 0;
167 height
192 compressTexture(Buffer input, int width, int height, int pixelSize, int stride) argument
[all...]
/frameworks/av/cmds/screenrecord/
H A DFrameOutput.cpp43 status_t FrameOutput::createInputSurface(int width, int height, argument
47 err = mEglWindow.createPbuffer(width, height);
53 glViewport(0, 0, width, height);
76 mGlConsumer->setDefaultBufferSize(width, height);
82 mPixelBuf = new uint8_t[width * height * kGlBytesPerPixel];
124 int height = mEglWindow.getHeight(); local
126 width, height, true);
139 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf);
147 reduceRgbaToRgb(mPixelBuf, width * height);
155 size_t rgbDataLen = width * height * kOutBytesPerPixe
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DPackedIntVectorTest.java31 for (int height = width * 2; height < width * 4; height++) {
36 for (int i = 0; i < height; i++) {
49 if (i == height / 2) {
58 if (i == height / 2) {
68 for (int i = 0; i < height; i++) {
82 for (int i = 0; i < height; i++) {
98 for (int i = 0; i < height; i++) {
120 for (int i = 0; i < height;
[all...]
/frameworks/base/libs/hwui/
H A DTexture.cpp86 bool Texture::updateSize(uint32_t width, uint32_t height, GLint format) { argument
87 if (mWidth == width && mHeight == height && mFormat == format) {
91 mHeight = height;
104 void Texture::upload(GLint internalformat, uint32_t width, uint32_t height, argument
107 bool needsAlloc = updateSize(width, height, internalformat);
125 GLsizei width, GLsizei height, const GLvoid * data) {
135 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data);
137 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data);
147 GLvoid * temp = (GLvoid *) malloc(width * height * bpp);
152 for (GLsizei i = 0; i < height;
124 uploadToTexture(bool resize, GLenum format, GLenum type, GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) argument
265 wrap(GLuint id, uint32_t width, uint32_t height, GLint format) argument
[all...]
/frameworks/av/camera/
H A DCameraParameters2.cpp219 int width, height;
220 int success = parse_pair(sizeStartPtr, &width, &height, 'x',
226 sizes.push(Size(width, height));
235 void CameraParameters2::setPreviewSize(int width, int height)
238 sprintf(str, "%dx%d", width, height);
242 void CameraParameters2::getPreviewSize(int *width, int *height) const
244 *width = *height = -1;
248 parse_pair(p, width, height, 'x');
251 void CameraParameters2::getPreferredPreviewSizeForVideo(int *width, int *height) const
253 *width = *height
[all...]
/frameworks/av/include/media/stagefright/
H A DSurfaceUtils.h28 * Configures |nativeWindow| for given |width|x|height|, pixel |format|, |rotation| and |usage|.
34 int width, int height, int format, int rotation, int usage, bool reconnect);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpp_semaphore_chroma_inter.cpp32 height = luminance VOP height in pixels (int)
119 int height, /* i */
160 else if (nmvy > (height >> 4) - 1)
162 nmvy = (height >> 4) - 1;
176 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 4) - 1))
111 pp_semaphore_chroma_inter( int xpred, int ypred, uint8 *pp_dec_u, uint8 *pstprcTypPrv, int dx, int dy, int mvwidth, int height, int32 size, int mv_loc, uint8 msk_deblock ) argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/
H A DomxVCM4P10_InterpolateChroma.c55 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must
68 * roi.width or roi.height is out of range {2,4,8}.
87 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src/
H A DomxVCM4P10_InterpolateChroma.c55 * [in] roi Dimension of the interpolation region;the parameters roi.width and roi.height must
68 * roi.width or roi.height is out of range {2,4,8}.
87 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
H A DomxVCM4P10_InterpolateChroma.c56 * roi.height must be equal to either 2, 4, or 8.
71 * roi.width or roi.height is out of range {2,4,8}.
99 armRetArgErrIf((roi.height != 2) && (roi.height != 4) && (roi.height != 8), OMX_Sts_BadArgErr)
107 ((OMX_U8*)pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
H A DomxVCM4P10_InterpolateLuma.c56 * roi.height must be equal to either 4, 8, or 16.
71 * roi.width or roi.height is out of range {4, 8, 16}.
98 armRetArgErrIf((roi.height != 4) && (roi.height != 8) && (roi.height != 16), OMX_Sts_BadArgErr)
106 (pSrc, srcStep, pDst, dstStep, roi.width, roi.height, dx, dy);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_image.h49 u32 height; member in struct:__anon646
/frameworks/base/include/private/hwui/
H A DDrawGlInfo.h34 // Input: current width/height of destination surface
36 int height; member in struct:android::uirenderer::DrawGlInfo
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DMutableFrameFormat.java64 public void setDimensions(int width, int height) { argument
67 dimensions[1] = height;
72 public void setDimensions(int width, int height, int depth) { argument
75 dimensions[1] = height;
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A DImageFormat.java37 int height,
42 result.setDimensions(width, height);
52 int height,
56 height,
36 create(int width, int height, int colorspace, int bytesPerSample, int target) argument
51 create(int width, int height, int colorspace, int target) argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dexposure.cpp30 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) {
34 const int numPixels = width * height;
52 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) {
56 const int numPixels = width * height;
29 Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) argument
51 Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) argument
H A Dpixelutils.h31 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height, jint offset,
H A Dsobeloperator.h30 JNIEnv* env, jclass clazz, jint width, jint height,
/frameworks/native/opengl/tests/lib/
H A DWindowSurface.cpp46 uint32_t width, height; local
51 height = mainDpyInfo.w;
54 height = mainDpyInfo.h;
58 String8("Benchmark"), width, height,
/frameworks/support/v7/cardview/base/android/support/v7/widget/
H A DCardViewDelegate.java32 void setMinWidthHeightInternal(int width, int height); argument
/frameworks/av/include/camera/
H A DCameraParameters2.h66 void setPreviewSize(int width, int height);
67 void getPreviewSize(int *width, int *height) const;
70 // Set the dimensions in pixels to the given width and height
71 // for video frames. The given width and height must be one
75 void setVideoSize(int width, int height);
76 // Retrieve the current dimensions (width and height)
81 void getVideoSize(int *width, int *height) const;
82 // Retrieve a Vector of supported dimensions (width and height)
89 // Retrieve the preferred preview size (width and height) in pixels
90 // for video recording. The given width and height mus
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java170 int height = pixels.getHeight();
172 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) {
173 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width +
174 "," + height + ") too large, dimensions must be smaller than " +
179 nativeSetThumbnail(rgbBuffer, width, height);
211 int height = pixels.getHeight();
213 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) {
214 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width +
215 "," + height + ") too large, dimensions must be smaller than " +
220 nativeSetThumbnail(rgbBuffer, width, height);
472 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument
644 nativeSetThumbnail(ByteBuffer buffer, int width, int height) argument
646 nativeWriteImage(OutputStream out, int width, int height, ByteBuffer rawBuffer, int rowStride, int pixStride, long offset, boolean isDirect) argument
651 nativeWriteInputStream(OutputStream out, InputStream rawStream, int width, int height, long offset) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DThinPatchesActivity.java76 final int height = 60;
79 final int top = (getHeight() - height) / 2;
82 canvas.translate(0.0f, -height * 2 - 20.0f);
84 mPatch3.setBounds(left, top, left + height, top + width);
89 mPatch1.setBounds(left, top, left + width, top + height);
93 canvas.translate(0.0f, height + 20.0f);
95 mPatch2.setBounds(left, top, left + width, top + height);

Completed in 3258 milliseconds

1234567891011>>