Searched defs:format (Results 26 - 50 of 230) sorted by last modified time

12345678910

/frameworks/native/libs/gui/
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.cpp104 uint32_t* width, uint32_t* height, PixelFormat* format,
119 *format = reply.readInt32();
102 captureScreen(DisplayID dpy, 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.cpp58 PixelFormat format,
67 data.writeInt32(format);
99 PixelFormat format = data.readInt32(); local
102 format, flags);
53 createSurface( surface_data_t* params, const String8& name, DisplayID display, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
H A DISurfaceTexture.cpp85 uint32_t format, uint32_t usage) {
90 data.writeInt32(format);
205 uint32_t format = data.readInt32(); local
208 int result = dequeueBuffer(&buf, w, h, format, usage);
84 dequeueBuffer(int *buf, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument
H A DSurfaceComposerClient.cpp358 PixelFormat format,
368 w, h, format, flags);
376 PixelFormat format,
383 display, w, h, format, flags);
501 return getPixelFormatInfo(dcblk->format, &(info->pixelFormatInfo));
354 createSurface( DisplayID display, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
371 createSurface( const String8& name, DisplayID display, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
H A DSurfaceTexture.cpp126 mName = String8::format("unnamed-%d-%d", getpid(), createProcessUniqueId());
499 bool SurfaceTexture::isExternalFormat(uint32_t format) argument
501 switch (format) {
511 // Any OEM format needs to be considered
512 if (format>=0x100 && format<=0x1FF)
592 // If we don't recognize the format, we must assume the
H A DSurfaceTextureClient.cpp566 int SurfaceTextureClient::setBuffersFormat(int format) argument
570 if (format<0)
574 mReqFormat = format;
629 // src and dst with, height and format must be identical. no verification
643 const size_t bpp = bytesPerPixel(src->format);
718 backBuffer->format == frontBuffer->format);
764 outBuffer->format = backBuffer->format;
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp53 ANativeWindowBuffer::format = f; member in class:android::NativeBuffer::ANativeWindowBuffer
100 * This does not actually change the framebuffer format. It merely
101 * fakes this format to surfaceflinger so that when it creates
102 * framebuffer surfaces it will use this format. It's really a giant
108 *((uint32_t *)&fbDev->format) = FRAMEBUFFER_FORCE_FORMAT;
114 fbDev->width, fbDev->height, fbDev->format, GRALLOC_USAGE_HW_FB);
120 fbDev->width, fbDev->height, fbDev->format,
280 *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.cpp240 EGLint format; local
248 // set the native window's buffers format to match this config
250 config, EGL_NATIVE_VISUAL_ID, &format)) {
251 if (format != 0) {
252 int err = native_window_set_buffers_format(window, format);
254 ALOGE("error setting native window pixel format: %s (%d)",
736 ScopedTrace st(ATRACE_TAG, String8::format("kicked off frame %d",
761 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 &&
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_api.cpp865 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 Dgltrace_fixup.cpp31 unsigned getBytesPerTexel(const GLenum format, const GLenum type) { argument
40 format. Color components are treated as groups of one, two, three, or four values,
41 again based on format. Groups of components are referred to as texels.
61 switch (format) {
73 ALOGE("GetBytesPerPixel: unknown format %x", format);
168 GLenum format = arg_format.intvalue(0); local
172 int bytesPerTexel = getBytesPerTexel(format, type);
194 GLenum format,
211 GLenum format,
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java256 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument
261 super.onSurfaceChanged(holder, format, width, height);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindow.java2502 public void setSurfaceFormat(int format) { argument
2503 PhoneWindow.this.setFormat(format);
/frameworks/base/services/java/com/android/server/input/
H A DInputManagerService.java814 String descriptor = KeyboardLayoutDescriptor.format(
1477 public static String format(String packageName, method in class:InputManagerService.KeyboardLayoutDescriptor
/frameworks/base/services/java/com/android/server/wm/
H A DWindowStateAnimator.java466 int pid, int display, int w, int h, int format, int flags) throws
468 super(s, pid, display, w, h, format, flags);
475 int pid, String name, int display, int w, int h, int format, int flags)
477 super(s, pid, name, display, w, h, format, flags);
605 + " h=" + mWin.mCompatFrame.height() + " format="
606 + attrs.format + " flags=" + flags);
633 final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : attrs.format;
634 if (!PixelFormat.formatHasAlpha(attrs.format)) {
641 0, w, h, format, flag
465 SurfaceTrace(SurfaceSession s, int pid, int display, int w, int h, int format, int flags) argument
474 SurfaceTrace(SurfaceSession s, int pid, String name, int display, int w, int h, int format, int flags) argument
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DJapanesePhoneNumberFormatter.java157 public static void format(Editable text) { method in class:JapanesePhoneNumberFormatter
H A DSmsMessage.java81 * Indicates a 3GPP format SMS message.
87 * Indicates a 3GPP2 format SMS message.
129 * intent <b>must</b> now pass the new {@code format} String extra from the intent
131 * extra format parameter. This is required in order to correctly decode the PDU on
137 String format = (PHONE_TYPE_CDMA == activePhone) ? FORMAT_3GPP2 : FORMAT_3GPP;
138 return createFromPdu(pdu, format);
142 * Create an SmsMessage from a raw PDU with the specified message format. The
143 * message format is passed in the {@code SMS_RECEIVED_ACTION} as the {@code format}
144 * String extra, and will be either "3gpp" for GSM/UMTS/LTE messages in 3GPP format
151 createFromPdu(byte[] pdu, String format) argument
[all...]

Completed in 566 milliseconds

12345678910