/external/qemu/android/skin/ |
surface.c | 12 #include "android/skin/surface.h" 20 #define D(...) VERBOSE_PRINT(surface,__VA_ARGS__) 28 SDL_Surface* surface; member in struct:SkinSurface 40 if (s->surface) { 41 SDL_FreeSurface(s->surface); 42 s->surface = NULL; 48 skin_surface_ref( SkinSurface* surface ) 50 if (surface) 51 surface->refcount += 1; 52 return surface; 159 SDL_Surface* surface; local 177 SDL_Surface* surface; local 197 SDL_Surface* surface; local [all...] |
image.c | 216 SDL_Surface* surface; member in struct:SkinImage 237 if (image->surface) { 238 SDL_FreeSurface(image->surface); 239 image->surface = NULL; 333 image->surface = sdl_surface_from_argb32( image->pixels, w, h ); 334 if (image->surface == NULL) { 335 fprintf(stderr, "failed to create SDL surface for '%s' image\n", path); 495 SDL_LockSurface(parent->surface); 510 SDL_UnlockSurface(parent->surface); 521 node->surface = sdl_surface_from_argb32( node->pixels, node->w, node->h ) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_surface.c | 35 * Create an empty RGB surface of the appropriate depth 44 SDL_Surface *surface; local 53 /* Check to see if we desire the surface in video memory */ 77 /* Allocate the surface */ 78 surface = (SDL_Surface *)SDL_malloc(sizeof(*surface)); 79 if ( surface == NULL ) { 83 surface->flags = SDL_SWSURFACE; 102 surface->format = SDL_AllocFormat(depth, Rmask, Gmask, Bmask, Amask); 103 if ( surface->format == NULL ) 158 SDL_Surface *surface; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/directfb/ |
SDL_DirectFB_video.c | 61 /* Hardware surface functions */ 62 static int DirectFB_AllocHWSurface(_THIS, SDL_Surface *surface); 64 static int DirectFB_LockHWSurface(_THIS, SDL_Surface *surface); 65 static void DirectFB_UnlockHWSurface(_THIS, SDL_Surface *surface); 66 static void DirectFB_FreeHWSurface(_THIS, SDL_Surface *surface); 70 static int DirectFB_SetHWColorKey(_THIS, SDL_Surface *surface, Uint32 key); 71 static int DirectFB_SetHWAlpha(_THIS, SDL_Surface *surface, Uint8 alpha); 72 static int DirectFB_FlipHWSurface(_THIS, SDL_Surface *surface); 214 IDirectFBSurface *surface; member in struct:private_hwdata 502 /* Init the surface here as it got a fixed size * 595 IDirectFBSurface *surface; local 879 IDirectFBSurface *surface = dst->hwdata->surface; local 906 IDirectFBSurface *surface = dst->hwdata->surface; local 921 IDirectFBSurface *surface = src->hwdata->surface; local 1001 IDirectFBSurface *surface = this->screen->hwdata->surface; local 1092 IDirectFBSurface *surface = this->screen->hwdata->surface; local [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/ |
GLUtils.cpp | 253 EGLSurface surface = eglCreatePbufferSurface(display, config, attribList); local 260 if (surface == EGL_NO_SURFACE) 263 return surface; 286 EGLSurface surface = createPbufferSurface(display, config, 0); local 299 returnValue = eglMakeCurrent(display, surface, surface, context);
|
/external/webkit/Source/WebKit/efl/ewk/ |
ewk_view_single.c | 367 cairo_surface_t *surface; local 400 surface = cairo_image_surface_create_for_data 402 status = cairo_surface_status(surface); 404 ERR("could not create surface from data %dx%d: %s", 409 cairo = cairo_create(surface); 412 ERR("could not create cairo from surface %dx%d: %s", 474 cairo_surface_destroy(surface);
|
/frameworks/base/cmds/bootanimation/ |
BootAnimation.cpp | 88 // calling requestExit() is not enough here because the Surface code 219 // create the native surface 227 sp<Surface> s = control->getSurface(); 240 EGLSurface surface; local 247 surface = eglCreateWindowSurface(display, config, s.get(), NULL); 249 eglQuerySurface(display, surface, EGL_WIDTH, &w); 250 eglQuerySurface(display, surface, EGL_HEIGHT, &h); 252 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) 257 mSurface = surface; [all...] |
/frameworks/base/cmds/stagefright/ |
sf2.cpp | 44 const sp<Surface> &surface, bool renderToSurface) 47 mSurface(surface), 233 sp<Surface> mSurface; 544 " -S(urface) Allocate output buffers on a surface.\n" 545 " -R(ender) Render surface-allocated buffers.\n"); 595 sp<Surface> surface; local 602 String8("A Surface"), 617 surface = control->getSurface() [all...] |
/frameworks/base/libs/gui/ |
SurfaceComposerClient.cpp | 83 if (lhs.state.surface < rhs.state.surface) return -1; 84 if (lhs.state.surface > rhs.state.surface) return 1; 167 s.state.surface = id; 201 // Resizing a surface makes the transaction synchronous. 369 sp<ISurface> surface = mClient->createSurface(&data, name, local 371 if (surface != 0) { 372 result = new SurfaceControl(this, surface, data);
|
/frameworks/base/media/libmedia/ |
IMediaRecorder.cpp | 22 #include <surfaceflinger/Surface.h> 89 status_t setPreviewSurface(const sp<Surface>& surface) 91 LOGV("setPreviewSurface(%p)", surface.get()); 94 Surface::writeToParcel(surface, &data); 429 sp<Surface> surface = Surface::readFromParcel(data); local 430 reply->writeInt32(setPreviewSurface(surface)); [all...] |
/frameworks/base/opengl/tests/gl2_yuvtex/ |
gl2_yuvtex.cpp | 346 EGLSurface surface; local 379 surface = eglCreateWindowSurface(dpy, myConfig, window, NULL); 381 if (surface == EGL_NO_SURFACE) { 392 returnValue = eglMakeCurrent(dpy, surface, surface, context); 397 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 399 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 411 fprintf(stderr, "Could not set up texture surface.\n"); 422 eglSwapBuffers(dpy, surface);
|
/frameworks/base/opengl/tests/hwc/ |
hwcStress.cpp | 198 static EGLSurface surface; variable 495 hwcDevice->set(hwcDevice, dpy, surface, list); 535 hwcTestInitDisplay(verbose, &dpy, &surface, &width, &height);
|
/development/tools/emulator/opengl/tests/gles_android_wrapper/ |
egl.cpp | 361 EGLSurface surface = getDispatch()->eglCreateWindowSurface(dpy, config, win, attrib_list); local 362 if (surface != EGL_NO_SURFACE) { 365 server->utEnc()->createSurface(server->utEnc(), getpid(), (uint32_t)surface); 368 return surface; 373 EGLSurface surface = getDispatch()->eglCreatePbufferSurface(dpy, config, attrib_list); local 374 if (surface != EGL_NO_SURFACE) { 377 server->utEnc()->createSurface(server->utEnc(), getpid(), (uint32_t)surface); 380 return surface; 385 EGLSurface surface = getDispatch()->eglCreatePixmapSurface(dpy, config, pixmap, attrib_list); local 386 if (surface != EGL_NO_SURFACE) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/gem/ |
SDL_gemvideo.c | 85 /* Hardware surface functions */ 86 static int GEM_AllocHWSurface(_THIS, SDL_Surface *surface); 87 static int GEM_LockHWSurface(_THIS, SDL_Surface *surface); 88 static int GEM_FlipHWSurface(_THIS, SDL_Surface *surface); 89 static void GEM_UnlockHWSurface(_THIS, SDL_Surface *surface); 90 static void GEM_FreeHWSurface(_THIS, SDL_Surface *surface); 822 printf("sdl:video:gem: surface: %dx%d\n", current->w, current->h); 832 static int GEM_AllocHWSurface(_THIS, SDL_Surface *surface) 837 static void GEM_FreeHWSurface(_THIS, SDL_Surface *surface) 842 static int GEM_LockHWSurface(_THIS, SDL_Surface *surface) 854 SDL_Surface *surface; local 952 SDL_Surface *surface; local 1054 SDL_Surface *surface; local 1184 SDL_Surface *surface; local [all...] |
/external/webkit/Source/WebCore/platform/graphics/opengl/ |
TextureMapperGL.cpp | 572 BitmapTextureGL* surface = static_cast<BitmapTextureGL*>(surfacePointer); local 574 if (!surface) 577 TransformationMatrix matrix = createProjectionMatrix(surface->size(), false); 578 matrix.translate(-surface->offset().x(), -surface->offset().y()); 580 if (surface->m_surfaceNeedsReset || !surface->m_fbo) { 581 if (!surface->m_fbo) 582 GL_CMD(glGenFramebuffers(1, &surface->m_fbo)) 583 GL_CMD(glBindFramebuffer(GL_FRAMEBUFFER, surface->m_fbo) 606 const BitmapTextureGL& surface = static_cast<const BitmapTextureGL&>(aSurface); local [all...] |
/external/webkit/Source/WebCore/platform/graphics/texmap/ |
TextureMapperNode.h | 44 BitmapTexture* surface; member in struct:WebCore::TexmapPaintOptions
|
/external/webkit/Source/WebCore/plugins/qt/ |
PluginViewQt.cpp | 219 QPaintDevice* surface = QPainter::redirected(painter->device(), &offset); local 221 // If the surface is a QImage, we can render directly into it 222 if (surfaceHasUntransformedContents && surface && surface->devType() == QInternal::Image) { 223 QImage* image = static_cast<QImage*>(surface); 224 offset = -offset; // negating the offset gives us the offset of the view within the surface 271 if (!surfaceHasUntransformedContents || !surface || surface->devType() != QInternal::Image) [all...] |
/frameworks/base/core/jni/ |
android_hardware_Camera.cpp | 29 #include <surfaceflinger/Surface.h> 37 jfieldID surface; member in struct:fields_t 532 sp<Surface> surface = NULL; 534 surface = reinterpret_cast<Surface*>(env->GetIntField(jSurface, fields.surface)); 536 if (camera->setPreviewDisplay(surface) != NO_ERROR) { 814 "(Landroid/view/Surface;)V", 909 { "android/view/Surface", ANDROID_VIEW_SURFACE_JNI_ID, "I", &fields.surface } [all...] |
/frameworks/base/media/java/android/media/videoeditor/ |
MediaVideoItem.java | 27 import android.view.Surface; 498 throw new IllegalArgumentException("Surface Holder is null"); 505 final Surface surface = surfaceHolder.getSurface(); local 506 if (surface == null) { 507 throw new RuntimeException("Surface could not be retrieved from Surface holder"); 511 return mMANativeHelper.renderMediaItemPreviewFrame(surface,
|
/frameworks/base/opengl/libagl/ |
texture.cpp | 81 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); 146 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); 169 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); 391 GGLSurface& surface = tex->editMip(level); 392 *outSurface = &surface; 404 *outSurface = &tex->surface; 453 void *surface, int stride, int format) 499 uint8_t* p = (uint8_t*)surface + y*stride*2; 523 uint8_t* p = (uint8_t*)surface + y*stride*3; 550 uint8_t* p = (uint8_t*)surface + y*stride*4 1119 GGLSurface* surface; local [all...] |
/frameworks/base/opengl/libs/EGL/ |
eglApi.cpp | 380 EGLSurface surface = cnx->egl.eglCreateWindowSurface( local 382 if (surface != EGL_NO_SURFACE) { 383 egl_surface_t* s = new egl_surface_t(dpy, config, window, surface, 404 EGLSurface surface = cnx->egl.eglCreatePixmapSurface( local 407 if (surface != EGL_NO_SURFACE) { 408 egl_surface_t* s = new egl_surface_t(dpy, config, NULL, surface, 424 EGLSurface surface = cnx->egl.eglCreatePbufferSurface( local 427 if (surface != EGL_NO_SURFACE) { 428 egl_surface_t* s = new egl_surface_t(dpy, config, NULL, surface, 436 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) [all...] |
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
VideoDumpView.java | 52 import android.view.Surface; 61 * It uses a renderer to display each video frame over a surface texture, read pixels, 262 * A renderer to read each video frame from a media player, draw it over a surface 457 * Called when the surface changed size. 458 * Called after the surface is created and whenever the OpenGL surface size changes. 461 Log.d(TAG, "Surface size: " + width + "x" + height); 468 // TODO: adjust video_width and video_height with the surface size. 507 * Called when the surface is created or recreated. 546 // Create our texture. This has to be done each time the surface is created 573 Surface surface = new Surface(mSurface); local [all...] |
/bootable/recovery/ |
ui.c | 58 static const struct { gr_surface* surface; const char *name; } BITMAPS[] = { member in struct:__anon680 113 gr_surface surface = gInstallationOverlay[frame]; 114 int iconWidth = gr_get_width(surface); 115 int iconHeight = gr_get_height(surface); 116 gr_blit(surface, 0, 0, iconWidth, iconHeight, 130 gr_surface surface = gBackgroundIcon[icon]; local 131 int iconWidth = gr_get_width(surface); 132 int iconHeight = gr_get_height(surface); 135 gr_blit(surface, 0, 0, iconWidth, iconHeight, iconX, iconY); 394 int result = res_create_surface(BITMAPS[i].name, BITMAPS[i].surface); [all...] |
/development/tools/emulator/opengl/host/libs/Translator/EGL/ |
EglImp.cpp | 581 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay display, EGLSurface surface) { 583 SurfacePtr srfc = dpy->getSurface(surface); 588 dpy->removeSurface(surface); 592 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay display, EGLSurface surface, 595 VALIDATE_SURFACE(surface,srfc); 603 EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay display, EGLSurface surface, 606 VALIDATE_SURFACE(surface,srfc); 764 // release previous context surface binding 783 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay display, EGLSurface surface) { 785 VALIDATE_SURFACE(surface,Srfc) 843 SurfacePtr surface = readdraw == EGL_READ ? ctx->read() : ctx->draw(); local [all...] |
/development/tools/emulator/opengl/system/egl/ |
egl.cpp | 124 #define VALIDATE_SURFACE_RETURN(surface, ret) \ 125 if (surface != EGL_NO_SURFACE) { \ 126 egl_surface_t* s( static_cast<egl_surface_t*>(surface) ); \ 203 //Surface attributes 213 uint32_t rcSurface; //handle to surface created via remote control 656 egl_surface_t* surface; local 657 surface = new egl_window_surface_t(&s_display, config, surfaceType, static_cast<ANativeWindow*>(win)); 658 if (!surface) 660 if (!surface->rcCreate()) { 661 delete surface; 713 egl_surface_t* surface = new egl_pbuffer_surface_t(dpy, config, surfaceType, w, h, pixelFormat); local [all...] |