/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 44 format = 57 format = 73 format = inFormat; 86 format = buffer->format; 132 if (handle && w==width && h==height && f==format && reqUsage==usage) 143 status_t GraphicBuffer::initSize(uint32_t w, uint32_t h, PixelFormat format, argument 147 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride); 151 this->format = format; [all...] |
H A D | GraphicBufferAllocator.cpp | 69 rec.w, rec.s, rec.h, rec.format, rec.usage); 73 rec.w, rec.s, rec.h, rec.format, rec.usage); 93 status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format, argument 105 err = mAllocDev->alloc(mAllocDev, w, h, format, usage, handle, stride); 108 w, h, format, usage, err, strerror(-err)); 113 int bpp = bytesPerPixel(format); 115 // probably a HAL custom format. in any case, we don't know 123 rec.format = format;
|
H A D | PixelFormat.cpp | 78 ssize_t bytesPerPixel(PixelFormat format) argument 81 status_t err = getPixelFormatInfo(format, &info); 85 ssize_t bitsPerPixel(PixelFormat format) argument 88 status_t err = getPixelFormatInfo(format, &info); 92 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info) argument 94 if (format <= 0) 100 // YUV format from the HAL are handled here 101 switch (format) { 110 info->format = format; [all...] |
/frameworks/native/libs/utils/ |
H A D | String8.cpp | 198 String8 String8::format(const char* fmt, ...) function in class:android::String8
|
/frameworks/native/opengl/libagl/ |
H A D | TextureObjectManager.cpp | 153 sur.format= native_buffer->format; 162 int format, int compressedFormat, int bpr) 183 surface.format = format; 215 mipmap.format = format; 223 if (curr->format != surface.format) { 160 reallocate( GLint level, int w, int h, int s, int format, int compressedFormat, int bpr) argument
|
H A D | dxt.cpp | 132 * the true format is GL_COMPRESSED_RGB_S3TC_DXT1_EXT or 583 * 'format' indicates the type of compression and must be one of the following: 600 void *surface, int stride, int format) 609 switch (format) { 599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument
|
H A D | texture.cpp | 198 static int32_t convertGLPixelFormat(GLint format, GLenum type) argument 202 switch (format) { 222 static GLenum validFormatType(ogles_context_t* c, GLenum format, GLenum type) argument 225 if (format<GL_ALPHA || format>GL_LUMINANCE_ALPHA) { 232 if (type == GL_UNSIGNED_SHORT_5_6_5 && format != GL_RGB) { 236 type == GL_UNSIGNED_SHORT_5_5_5_1) && format != GL_RGBA) { 276 if ((dst.format == src.format) && 285 const GGLFormat& pixelFormat(c->rasterizer.formats[src.format]); 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 408 dataSizePalette4(int numLevels, int width, int height, int format) argument 451 decodePalette4(const GLvoid *data, int level, int width, int height, void *surface, int stride, int format) argument 1073 GLenum format; local [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | eglApi.cpp | 293 EGLint format; local 301 // set the native window's buffers format to match this config 303 config, EGL_NATIVE_VISUAL_ID, &format)) { 304 if (format != 0) { 305 int err = native_window_set_buffers_format(window, format); 307 ALOGE("error setting native window pixel format: %s (%d)", 797 ScopedTrace st(ATRACE_TAG, String8::format("kicked off frame %d", 822 ScopedTrace st(ATRACE_TAG, String8::format("waiting for frame %d",
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 650 etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); local 655 return format == ETC1_RGB_NO_MIPMAPS &&
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_api.cpp | 865 void GLTrace_glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) { argument 907 // copy argument format 911 arg_format->add_intvalue((int)format); 928 glContext->hooks->gl.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); 3575 void GLTrace_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) { argument 3605 // copy argument format 3609 arg_format->add_intvalue((int)format); 3626 glContext->hooks->gl.glReadPixels(x, y, width, height, format, type, pixels); 4124 void GLTrace_glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) { argument 4166 // copy argument format 4363 GLTrace_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) argument 6021 GLTrace_glTexImage3DOES(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels) argument 6104 GLTrace_glTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels) argument 6346 GLTrace_glCompressedTexSubImage3DOES(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data) argument 8040 GLTrace_glReadnPixelsEXT(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data) argument 10791 GLTrace_glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid *texels) argument [all...] |
H A D | gltrace_fixup.cpp | 32 unsigned getBytesPerTexel(const GLenum format, const GLenum type) { argument 41 format. Color components are treated as groups of one, two, three, or four values, 42 again based on format. Groups of components are referred to as texels. 62 switch (format) { 74 ALOGE("GetBytesPerPixel: unknown format %x", format); 169 GLenum format = arg_format.intvalue(0); local 173 int bytesPerTexel = getBytesPerTexel(format, type); 195 GLenum format, 212 GLenum format, [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 70 * made and reported for each of the known graphic format. 171 uint32_t format; member in class:Rectangle 242 uint32_t format; member in struct:meas 278 uint32_t maxOverlays(uint32_t format, bool allowOverlap); 279 list<uint32_t> supportedTransforms(uint32_t format); 280 list<uint32_t> supportedBlends(uint32_t format); 281 uint32_t dfMinWidth(uint32_t format); 282 uint32_t dfMinHeight(uint32_t format); 283 uint32_t dfMaxWidth(uint32_t format); 284 uint32_t dfMaxHeight(uint32_t format); 435 const struct hwcTestGraphicFormat *format; local 638 maxOverlays(uint32_t format, bool allowOverlap) argument 674 supportedTransforms(uint32_t format) argument 699 supportedBlends(uint32_t format) argument 724 dfMinWidth(uint32_t format) argument 748 dfMinHeight(uint32_t format) argument 772 dfMaxWidth(uint32_t format) argument 796 dfMaxHeight(uint32_t format) argument 821 dfMinDim(uint32_t format) argument 862 dfMaxDim(uint32_t format) argument 911 scMinWidth(uint32_t format, const HwcTestDim& dfDim) argument 931 scMinHeight(uint32_t format, const HwcTestDim& dfDim) argument 950 scMaxWidth(uint32_t format, const HwcTestDim& dfDim) argument 969 scMaxHeight(uint32_t format, const HwcTestDim& dfDim) argument 993 scMinDim(uint32_t format, const HwcTestDim& dfDim) argument 1034 scMaxDim(uint32_t format, const HwcTestDim& dfDim) argument 1099 scHScale(uint32_t format, const HwcTestDim& dfMin, const HwcTestDim& dfMax, const HwcTestDim& scMin, const HwcTestDim& scMax, HwcTestDim& outBestDf, HwcTestDim& outBestSc) argument 1198 scVScale(uint32_t format, const HwcTestDim& dfMin, const HwcTestDim& dfMax, const HwcTestDim& scMin, const HwcTestDim& scMax, HwcTestDim& outBestDf, HwcTestDim& outBestSc) argument [all...] |
H A D | hwcRects.cpp | 68 * of the graphic format and then the display frame rectangle where 80 * a list of attributes and the format of their expected value. 146 Rectangle() : format(defaultFormat), transform(defaultTransform), 152 uint32_t format; member in class:Rectangle 369 const struct hwcTestGraphicFormat *format; local 376 testPrintE("Error parsing format from: %s", rectStr.c_str()); 379 format = hwcTestGraphicFormatLookup(str.c_str()); 380 if (format == NULL) { 381 testPrintE("Unknown graphic format in: %s", rectStr.c_str()); 384 rect.format [all...] |
H A D | hwcStress.cpp | 42 * row point to graphic buffers which use the same pixel format and 48 * in a particular row have the same pixel format and dimension, 547 * format and dimension. Each graphic buffer is uniformly filled with a 566 // All frames within a row have to have the same format and 571 int format = formatPtr->format; local 586 testPrintI(" frame %u width: %u height: %u format: %u %s", 587 row, w, h, format, hwcTestGraphicFormat2str(format)); 596 frames[row][col] = new GraphicBuffer(w, h, format, texUsag [all...] |
H A D | hwcTestLib.cpp | 354 // of the graphic format named by the desc parameter. Search failure 368 // of the graphic format specified by the id parameter. Search failure 373 if (id == hwcTestGraphicFormat[n1].format) { 382 // Given the integer ID of a graphic format, return a pointer to 383 // a string that describes the format. 384 const char *hwcTestGraphicFormat2str(uint32_t format) argument 389 if (format == hwcTestGraphicFormat[n1].format) { 541 // Returns a uint32_t that contains a format specific representation of a 543 uint32_t hwcTestColor2Pixel(uint32_t format, ColorFrac argument 546 uint32_t format; member in struct:attrib 609 int format; member in struct:attrib 799 uint32_t format; member in struct:attrib [all...] |
H A D | hwcTestLib.h | 40 uint32_t format; member in struct:hwcTestGraphicFormat 113 const char *hwcTestGraphicFormat2str(uint32_t format); 122 uint32_t hwcTestColor2Pixel(uint32_t format, ColorFract color, float alpha);
|
/frameworks/native/opengl/tests/include/ |
H A D | EGLUtils.h | 42 int32_t format, 79 int32_t format, 105 if (nativeVisualId>0 && format == nativeVisualId) { 128 int format; local 133 if ((err = window->query(window, NATIVE_WINDOW_FORMAT, &format)) < 0) { 137 return selectConfigForPixelFormat(dpy, attrs, format, outConfig); 76 selectConfigForPixelFormat( EGLDisplay dpy, EGLint const* attrs, int32_t format, EGLConfig* outConfig) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | Client.cpp | 114 uint32_t w, uint32_t h, PixelFormat format, 129 PixelFormat format; member in class:android::MessageCreateLayer 135 uint32_t w, uint32_t h, PixelFormat format, 138 w(w), h(h), format(format), flags(flags) 144 w, h, format, flags); 150 params, name, this, w, h, format, flags); 111 createSurface( ISurfaceComposerClient::surface_data_t* params, const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument 132 MessageCreateLayer(SurfaceFlinger* flinger, ISurfaceComposerClient::surface_data_t* params, const String8& name, Client* client, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
|
H A D | DisplayDevice.cpp | 128 int format; local 129 window->query(window, NATIVE_WINDOW_FORMAT, &format); 144 mFormat = format;
|
H A D | Layer.cpp | 165 PixelFormat format, uint32_t flags) 167 // this surfaces pixel format 169 status_t err = getPixelFormatInfo(format, &info); 171 ALOGE("unsupported pixelformat %d", format); 185 mFormat = format; 190 mCurrentOpacity = getOpacityForFormat(format); 193 mSurfaceTexture->setDefaultBufferFormat(format); 395 bool Layer::getOpacityForFormat(uint32_t format) argument 397 if (HARDWARE_IS_DEVICE_FORMAT(format)) { 401 status_t err = getPixelFormatInfo(PixelFormat(format), 164 setBuffers( uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument [all...] |
H A D | SurfaceFlinger.cpp | 475 EGLint format = mHwc->getVisualID(); local 476 mEGLConfig = selectEGLConfig(mEGLDisplay, format); 1860 uint32_t w, uint32_t h, PixelFormat format, 1875 layer = createNormalLayer(client, w, h, flags, format); 1904 PixelFormat& format) 1907 switch (format) { 1910 format = PIXEL_FORMAT_RGBA_8888; 1914 format = PIXEL_FORMAT_RGB_565; 1916 format = PIXEL_FORMAT_RGBX_8888; 1922 if (format 1856 createLayer( ISurfaceComposerClient::surface_data_t* params, const String8& name, const sp<Client>& client, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument 1901 createNormalLayer( const sp<Client>& client, uint32_t w, uint32_t h, uint32_t flags, PixelFormat& format) argument 2732 captureScreen(const sp<IBinder>& display, sp<IMemoryHeap>* heap, uint32_t* width, uint32_t* height, PixelFormat* format, uint32_t sw, uint32_t sh, uint32_t minLayerZ, uint32_t maxLayerZ) argument [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | GraphicBufferAlloc.cpp | 35 PixelFormat format, uint32_t usage, status_t* error) { 36 sp<GraphicBuffer> graphicBuffer(new GraphicBuffer(w, h, format, usage)); 34 createGraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, status_t* error) argument
|
H A D | HWComposer.cpp | 178 disp.format = mFbDev->format; 372 // FIXME: what should we set the format to? 373 mDisplayData[disp].format = HAL_PIXEL_FORMAT_RGBA_8888; 431 return mDisplayData[disp].format; 718 return mFbDev->format; 934 " type | handle | hints | flags | tr | blend | format | source crop | frame name \n" 939 int32_t format = -1; local 948 format = buffer->getPixelFormat(); 957 format [all...] |
H A D | HWComposer.h | 297 uint32_t format; // pixel format from FB hal, for pre-hwc-1.1 member in struct:android::HWComposer::DisplayData
|
/frameworks/compile/libbcc/runtime/lib/ |
H A D | eprintf.c | 26 void __eprintf(const char* format, const char* assertion_expression, argument 29 fprintf(stderr, format, assertion_expression, line, file);
|