Searched defs:format (Results 201 - 225 of 246) sorted by path

12345678910

/frameworks/native/include/gui/
H A DCpuConsumer.h49 PixelFormat format; member in struct:android::CpuConsumer::LockedBuffer
H A DSurface.h117 PixelFormat format; member in struct:android::Surface::SurfaceInfo
/frameworks/native/include/media/openmax/
H A DOMX_Component.h100 } format; member in struct:OMX_PARAM_PORTDEFINITIONTYPE
/frameworks/native/include/ui/
H A DANativeObjectBase.h36 uint8_t format; member in struct:egl_native_pixmap_t
H A DGraphicBufferAllocator.h65 status_t alloc(uint32_t w, uint32_t h, PixelFormat format, int usage,
78 PixelFormat format; member in struct:android::GraphicBufferAllocator::alloc_rec_t
H A DPixelFormat.h38 // in graphics/PixelFormat.java & pixelflinger/format.h
45 // Custom pixel-format described by a PixelFormatInfo structure
48 // System chooses a format that supports translucency (many alpha bits)
51 // System chooses a format that supports transparency
55 // System chooses an opaque format (no alpha bits required)
99 PixelFormat format; member in struct:android::PixelFormatInfo
122 ssize_t bytesPerPixel(PixelFormat format);
123 ssize_t bitsPerPixel(PixelFormat format);
124 status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info);
/frameworks/native/libs/gui/
H A DBufferQueue.cpp85 mConsumerName = String8::format("unnamed-%d-%d", getpid(), createProcessUniqueId());
259 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) {
261 ST_LOGV("dequeueBuffer: w=%d h=%d fmt=%#x usage=%#x", w, h, format, usage);
275 if (format == 0) {
276 format = mDefaultBufferFormat;
385 (uint32_t(buffer->format) != format) ||
409 w, h, format, usage, &error));
730 "default-format=%d, transform-hint=%02x, FIFO(%d)={%s}\n",
768 buf->format);
258 dequeueBuffer(int *outBuf, sp<Fence>& outFence, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument
[all...]
H A DIGraphicBufferAlloc.cpp46 PixelFormat format, uint32_t usage, status_t* error) {
51 data.writeInt32(format);
93 PixelFormat format = data.readInt32(); local
97 createGraphicBuffer(w, h, format, usage, &error);
45 createGraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, status_t* error) argument
H A DISurfaceComposer.cpp107 uint32_t* width, uint32_t* height, PixelFormat* format,
122 *format = reply.readInt32();
105 captureScreen( const sp<IBinder>& display, sp<IMemoryHeap>* heap, uint32_t* width, uint32_t* height, PixelFormat* format, uint32_t reqWidth, uint32_t reqHeight, uint32_t minLayerZ, uint32_t maxLayerZ) argument
H A DISurfaceComposerClient.cpp57 PixelFormat format,
65 data.writeInt32(format);
96 PixelFormat format = data.readInt32(); local
99 format, flags);
53 createSurface( surface_data_t* params, const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
H A DISurfaceTexture.cpp85 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) {
90 data.writeInt32(format);
216 uint32_t format = data.readInt32(); local
220 int result = dequeueBuffer(&buf, fence, w, h, format, usage);
84 dequeueBuffer(int *buf, sp<Fence>& fence, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument
H A DSurfaceComposerClient.cpp448 PixelFormat format,
455 w, h, format, flags);
444 createSurface( const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
H A DSurfaceTexture.cpp529 bool SurfaceTexture::isExternalFormat(uint32_t format) argument
531 switch (format) {
541 // Any OEM format needs to be considered
542 if (format>=0x100 && format<=0x1FF)
637 // If we don't recognize the format, we must assume the
H A DSurfaceTextureClient.cpp621 int SurfaceTextureClient::setBuffersFormat(int format) argument
625 if (format<0)
629 mReqFormat = format;
684 // src and dst with, height and format must be identical. no verification
698 const size_t bpp = bytesPerPixel(src->format);
779 backBuffer->format == frontBuffer->format);
828 outBuffer->format = backBuffer->format;
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp44 PixelFormat format; member in struct:android::CpuConsumerTestParams
50 << ::std::hex << p.format << "]";
63 params.maxLockedBuffers, params.format);
162 switch(buf.format) {
183 ADD_FAILURE() << "Unknown format for check:" << buf.format;
275 params.width, params.height, params.format);
296 // Produce one frame of image data; assumes format and resolution configuration
318 switch (params.format) {
326 FAIL() << "Unknown pixel format unde
[all...]
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp54 ANativeWindowBuffer::format = f; member in class:android::NativeBuffer::ANativeWindowBuffer
106 * This does not actually change the framebuffer format. It merely
107 * fakes this format to surfaceflinger so that when it creates
108 * framebuffer surfaces it will use this format. It's really a giant
114 *((uint32_t *)&fbDev->format) = FRAMEBUFFER_FORCE_FORMAT;
120 fbDev->width, fbDev->height, fbDev->format, GRALLOC_USAGE_HW_FB);
126 fbDev->width, fbDev->height, fbDev->format,
307 *value = fb->format;
H A DGraphicBuffer.cpp44 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 DGraphicBufferAllocator.cpp69 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 DPixelFormat.cpp78 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 DString8.cpp198 String8 String8::format(const char* fmt, ...) function in class:android::String8
/frameworks/native/opengl/libagl/
H A DTextureObjectManager.cpp153 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 Ddxt.cpp132 * 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 Dtexture.cpp198 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 DeglApi.cpp293 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 Detc1.cpp650 etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); local
655 return format == ETC1_RGB_NO_MIPMAPS &&

Completed in 634 milliseconds

12345678910