/frameworks/native/libs/ui/ |
H A D | GraphicBufferAllocator.cpp | 69 rec.width, rec.stride, rec.height, rec.format, rec.usage); 73 rec.width, rec.stride, rec.height, rec.format, rec.usage); 93 status_t GraphicBufferAllocator::alloc(uint32_t width, uint32_t height, argument 101 if (!width || !height) 102 width = height = 1; 112 static_cast<int>(height), format, static_cast<int>(usage), handle, 117 width, height, format, usage, err, strerror(-err)); 125 rec.height = height; 129 rec.size = static_cast<size_t>(height * (*strid [all...] |
/frameworks/native/opengl/libagl/ |
H A D | dxt.cpp | 136 DXT1HasAlpha(const GLvoid *data, int width, int height) { argument 147 int yblocks = (height + 3)/4; 187 printf("Scanned w=%d h=%d in %ld usec\n", width, height, usec); 194 decodeDXT1(const GLvoid *data, int width, int height, argument 212 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) { 289 if (base_y + y >= height) { 307 decodeDXT3(const GLvoid *data, int width, int height, argument 324 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) { 395 if (base_y + y >= height) { 416 decodeDXT5(const GLvoid *data, int width, int height, argument 599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument [all...] |
H A D | egl.cpp | 55 EGLint left, EGLint top, EGLint width, EGLint height); 232 virtual EGLint getHeight() const { return height; } 247 int height; member in struct:android::egl_window_surface_v2_t 357 nativeWindow->query(nativeWindow, NATIVE_WINDOW_HEIGHT, &height); 392 height = buffer->height; 395 depth.height = height; 398 static_cast<uint64_t>(depth.height) * 2; 399 if (depth.stride < 0 || depth.height > INT_MA 2182 eglSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface draw, EGLint left, EGLint top, EGLint width, EGLint height) argument [all...] |
H A D | primitives.cpp | 497 int height = c->textures.tmu[i].texture->surface.height; local 498 itt[3] = v->texture[i].T * height; 705 const int h = c->textures.tmu[i].texture->surface.height; 748 const int height = tmu.surface.height; local 749 t0 *= height; 750 t1 *= height; 751 t2 *= height; 805 const int height local [all...] |
H A D | texture.cpp | 141 0, 0, native_buffer->width, native_buffer->height, 279 (dst.height == src.height) && 286 const size_t size = src.height * src.stride * pixelFormat.size; 363 GLenum format, GLenum type, GLsizei width, GLsizei height, 380 const size_t size = bpr * height; 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 443 int h = (height >> 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 451 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument 1056 glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) argument [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | eglApi.cpp | 1103 int height = rects[offset + 3]; local 1106 androidRect.top = y + height; 1790 uint32_t height = 0; local 1812 GET_NONNEGATIVE_VALUE(EGL_HEIGHT, height); 1857 GraphicBuffer* gBuffer = new GraphicBuffer(width, height, format, usage); 1861 width, height, format, usage, err); 1867 gBuffer, width, height, format, usage);
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 503 etc1_uint32 etc1_get_encoded_data_size(etc1_uint32 width, etc1_uint32 height) { argument 504 return (((width + 3) & ~3) * ((height + 3) & ~3)) >> 1; 512 int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height, argument 524 etc1_uint32 encodedHeight = (height + 3) & ~3; 527 etc1_uint32 yEnd = height - y; 569 etc1_uint32 width, etc1_uint32 height, 577 etc1_uint32 encodedHeight = (height + 3) & ~3; 580 etc1_uint32 yEnd = height - y; 633 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height) { argument 636 etc1_uint32 encodedHeight = (height 568 etc1_decode_image(const etc1_byte* pIn, etc1_byte* pOut, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride) argument 654 etc1_uint32 height = readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET); local [all...] |
/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 518 static void prepareFrame(int width, int height) argument 520 glViewport(0, 0, width, height); 529 gluPerspective(45, (float)width / height, 0.5f, 150); 750 /* The tick is current time in milliseconds, width and height 753 void appRender(long tick, int width, int height) argument 771 prepareFrame(width, height);
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
H A D | GL2CameraEye.java | 176 mCameraRatio = (float)previewSize.width/previewSize.height; 232 public void onSurfaceChanged(GL10 glUnused, int width, int height) { argument 235 GLES20.glViewport(0, 0, width, height); 236 mRatio = (float) width / height;
|
/frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/ |
H A D | GL2JavaView.java | 79 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 80 GLES20.glViewport(0, 0, width, height);
|
/frameworks/native/opengl/tests/gl2_jni/jni/ |
H A D | gl_code.cpp | 152 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height); 156 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument 158 setupGraphics(width, 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
|
H A D | GL2JNIView.java | 287 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 288 GL2JNILib.init(width, height);
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 83 void init_scene(int width, int height) argument 93 float ratio = width / height; 94 glViewport(0, 0, width, height); 138 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height); 143 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument 145 init_scene(width, 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
|
H A D | GLJNIView.java | 75 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 76 GLJNILib.init(width, height);
|
/frameworks/native/opengl/tests/gl_perfapp/jni/ |
H A D | gl_code.cpp | 21 // Width and height of the screen 60 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height); 64 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height) argument 67 gHeight = height;
|
/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
|
H A D | GLPerfView.java | 287 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 288 GLPerfLib.init(width, height);
|
/frameworks/native/opengl/tests/gldual/jni/ |
H A D | gl_code.cpp | 152 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height); 156 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height)
argument 158 setupGraphics(width, height);
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
H A D | GLDualGL2View.java | 290 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 291 GLDualLib.init(width, height);
|
H A D | GLDualLib.java | 29 * @param height the current view height 31 public static native void init(int width, int height); argument
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcColorEquiv.cpp | 130 static EGLint width, height; variable 295 unsigned int refHeight = height / 3; 301 unsigned int equivHeight = height / 3; 315 testPrintE(" width %u height: %u format: %u %s", refWidth, refHeight, 320 testPrintI("refFrame width: %u height: %u format: %u %s", 329 testPrintE(" width %u height: %u format: %u %s", refWidth, refHeight, 334 testPrintI("equivFrame width: %u height: %u format: %u %s", 417 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
|
H A D | hwcCommit.cpp | 24 * -s [width, height] - Starting dimension 234 static EGLint width, height; variable 513 == searchLimits.sourceCrop.height()) ? ">= " : "", 523 searchLimits.sourceCrop.height())) ? ">= " : "", 548 >= Rational(searchLimits.sourceCrop.height(), 549 measPtr->df.minDim.height())) ? ">= " : "", 647 (y + startDim.height()) < (unsigned int) height; 648 y += (allowOverlap) ? 1 : startDim.height()) { 653 rect.displayFrame.bottom = y + startDim.height(); [all...] |
H A D | hwcRects.cpp | 44 * sourceDim: [width, height] 170 static EGLint width, height; variable 400 rect.sourceCrop.bottom = rect.sourceDim.height(); 489 || ((uint32_t) rect.sourceCrop.top >= rect.sourceDim.height()) 490 || ((uint32_t) rect.sourceCrop.bottom > rect.sourceDim.height())) { 496 || (rect.displayFrame.top >= height) 497 || (rect.displayFrame.bottom > height)) { 508 rect.sourceDim.height(), 519 testPrintI(" buf: %p handle: %p format: %s width: %u height: %u " 522 rect.sourceDim.width(), rect.sourceDim.height(), [all...] |