/frameworks/native/services/surfaceflinger/tests/resize/ |
resize.cpp | 25 #include <gui/Surface.h> 44 sp<Surface> surface = surfaceControl->getSurface(); local 51 surface->lock(&outBuffer, NULL); 54 surface->unlockAndPost(); 56 surface->lock(&outBuffer); 58 surface->unlockAndPost();
|
/frameworks/native/libs/gui/ |
Surface.cpp | 17 #define LOG_TAG "Surface" 33 #include <gui/Surface.h> 39 Surface::Surface( 76 Surface::~Surface() { 78 Surface::disconnect(NATIVE_WINDOW_API_CPU); 82 sp<IGraphicBufferProducer> Surface::getIGraphicBufferProducer() const { 86 int Surface::hook_setSwapInterval(ANativeWindow* window, int interval) { 87 Surface* c = getSelf(window) [all...] |
/external/qemu/distrib/sdl-1.2.15/docs/man3/ |
SDL_SetAlpha.3 | 3 SDL_SetAlpha \- Adjust the alpha properties of a surface 8 \fBint \fBSDL_SetAlpha\fP\fR(\fBSDL_Surface *surface, Uint32 flag, Uint8 alpha\fR); 17 \fBSDL_SetAlpha\fP is used for setting the per-surface alpha value and/or enabling and disabling alpha blending\&. 19 The\fBsurface\fR parameter specifies which surface whose alpha attributes you wish to adjust\&. \fBflags\fR is used to specify whether alpha blending should be used (\fBSDL_SRCALPHA\fP) and whether the surface should use RLE acceleration for blitting (\fBSDL_RLEACCEL\fP)\&. \fBflags\fR can be an OR\&'d combination of these two options, one of these options or 0\&. If \fBSDL_SRCALPHA\fP is not passed as a flag then all alpha information is ignored when blitting the surface\&. The \fBalpha\fR parameter is the per-surface alpha value; a surface need not have an alpha channel to use per-surface alpha and blitting can still be accelerated with \fBSDL_RLEACCEL\fP\&. 24 The per-surface alpha value of 128 is considered a special case and is optimised, so it\&'s much faster than other (…) [all...] |
SDL_SetVideoMode.3 | 18 Create the video surface in system memory 21 Create the video surface in video memory 24 Enables the use of asynchronous updates of the display surface\&. This will usually slow down blitting on single CPU machines, but may provide a speed increase on SMP systems\&. 27 Normally, if a video surface of the requested bits-per-pixel (\fBbpp\fR) is not available, SDL will emulate one with a shadow surface\&. Passing \fBSDL_ANYFORMAT\fP prevents this and causes SDL to use the video surface, regardless of its pixel depth\&. 33 Enable hardware double buffering; only valid with SDL_HWSURFACE\&. Calling \fI\fBSDL_Flip\fP\fR will flip the buffers and update the screen\&. All drawing will take place on the surface that is not displayed at the moment\&. If double buffering could not be enabled then \fBSDL_Flip\fP will just perform a \fI\fBSDL_UpdateRect\fP\fR on the entire screen\&. 42 Create an OpenGL rendering context, like above, but allow normal blitting operations\&. The screen (2D) surface may have an alpha channel, and \fI\fBSDL_UpdateRects\fP\fR must be used for updating changes to the screen surface\&. 53 Whatever \fBflags\fR \fBSDL_SetVideoMode\fP could satisfy are set in the \fBflags\fR member of the returned surface\& [all...] |
/bootable/recovery/minui/ |
resources.c | 48 GGLSurface* surface = NULL; local 113 surface = malloc(sizeof(GGLSurface) + pixelSize); 114 if (surface == NULL) { 118 unsigned char* pData = (unsigned char*) (surface + 1); 119 surface->version = sizeof(GGLSurface); 120 surface->width = width; 121 surface->height = height; 122 surface->stride = width; /* Yes, pixels, not bytes */ 123 surface->data = pData; 124 surface->format = (channels == 3) ? GGL_PIXEL_FORMAT_RGBX_8888 201 GGLSurface* surface = NULL; local [all...] |
/external/qemu/android/skin/ |
surface.h | 22 /* increment surface's reference count */ 23 extern SkinSurface* skin_surface_ref( SkinSurface* surface ); 25 /* decrement a surface's reference count. takes the surface's address as parameter. 29 /* sets a callback that will be called when the surface is destroyed. 48 /* create a 'fast' surface that contains a copy of an input ARGB32 pixmap */ 51 /* create an empty 'slow' surface containing an ARGB32 pixmap */ 54 /* create a 'slow' surface from a given pixel buffer. if 'do_copy' is TRUE, then 65 /* surface pixels information for slow surfaces */ 73 /* lock a slow surface, and returns its pixel information [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/x11/ |
SDL_x11image_c.h | 30 extern int X11_AllocHWSurface(_THIS, SDL_Surface *surface); 31 extern void X11_FreeHWSurface(_THIS, SDL_Surface *surface); 32 extern int X11_LockHWSurface(_THIS, SDL_Surface *surface); 33 extern void X11_UnlockHWSurface(_THIS, SDL_Surface *surface); 34 extern int X11_FlipHWSurface(_THIS, SDL_Surface *surface);
|
/frameworks/av/include/media/stagefright/ |
NativeWindowWrapper.h | 21 #include <gui/Surface.h> 25 // Surface derives from ANativeWindow which derives from multiple 31 const sp<Surface> &surfaceTextureClient) : 38 sp<Surface> getSurfaceTextureClient() const { 43 const sp<Surface> mSurfaceTextureClient;
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaCodecTest.java | 26 import android.view.Surface; 50 * <br> calling createInputSurface() with a non-Surface color format throws exception 55 Surface surface = null; local 65 surface = encoder.createInputSurface(); 73 surface = encoder.createInputSurface(); 82 surface = encoder.createInputSurface(); 93 assertNull(surface); 149 * <br> dequeueInputBuffer() fails when encoder configured with an input Surface 154 Surface surface = null local 188 Surface surface = null; local [all...] |
InputSurface.java | 26 import android.view.Surface; 30 * Holds state associated with a Surface used for MediaCodec encoder input. 32 * The constructor takes a Surface obtained from MediaCodec.createInputSurface(), and uses that 33 * to create an EGL window surface. Calls to eglSwapBuffers() cause a frame of data to be sent 47 private Surface mSurface; 50 * Creates an InputSurface from a Surface. 52 public InputSurface(Surface surface) { 53 if (surface == null) { 56 mSurface = surface; [all...] |
/external/webkit/Source/WebCore/platform/gtk/ |
GtkVersioning.c | 118 gdk_cairo_surface_coerce_to_image(cairo_surface_t* surface, 126 if (cairo_surface_get_type(surface) == CAIRO_SURFACE_TYPE_IMAGE 127 && cairo_surface_get_content(surface) == content 128 && cairo_image_surface_get_width(surface) >= width 129 && cairo_image_surface_get_height(surface) >= height) 130 return cairo_surface_reference(surface); 138 cairo_set_source_surface(cr, surface, 0, 0); 202 * @surface: surface to copy from 203 * @src_x: Source X coordinate within @surface [all...] |
/external/webkit/Source/WebKit/android/plugins/ |
ANPSurfaceInterface.cpp | 34 #include <gui/Surface.h> 42 // used to cache JNI method and field IDs for Surface Objects 49 static inline sp<android::Surface> getSurface(JNIEnv* env, jobject view) { 62 "()Landroid/view/Surface;"); 71 jobject surface = env->CallObjectMethod(holder, gSurfaceJavaGlue.getSurface); local 73 sp<android::Surface> sur = android_view_Surface_getSurface(env, surface); 76 env->DeleteLocalRef(surface); 94 sp<android::Surface> surface = getSurface(env, surfaceView) local 151 sp<android::Surface> surface = getSurface(env, surfaceView); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
SecureSurfaceViewActivity.java | 33 * a secure surface using {@link SurfaceView#setSecure}. 34 * Because the surface is secure, its contents cannot be captured in screenshots 42 * of the secure surface. 43 * <li>Try mirroring the secure surface onto a non-secure display such as an 46 * secondary display should not show the contents of the secure surface. 47 * <li>Try mirroring the secure surface onto a secure display such as an 48 * HDMI display with HDCP enabled. The contents of the secure surface should appear 71 // Set up the surface view. 73 // SurfaceViews also support the same secure surface functionality. 77 // Make the surface view secure. This must be done at the time the surface vie [all...] |
/external/skia/src/gpu/ |
GrClipData.cpp | 21 void GrClipData::getConservativeBounds(const GrSurface* surface, 28 surface->width(), 29 surface->height(),
|
/external/harfbuzz_ng/util/ |
helper-cairo.cc | 50 cairo_surface_t *surface; local 52 surface = cairo_ps_surface_create_for_stream (write_func, closure, width, height); 53 cairo_ps_surface_set_eps (surface, true); 55 return surface; 109 cairo_surface_t *surface; member in struct:finalize_closure_t 120 status = helper_cairo_surface_write_to_ansi_stream (closure->surface, 135 cairo_surface_t *surface; local 141 surface = cairo_image_surface_create (CAIRO_FORMAT_A8, w, h); 145 surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, w, h); 148 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h) 193 cairo_surface_t *surface; local 338 cairo_surface_t *surface; local [all...] |
/external/qemu/distrib/sdl-1.2.15/include/ |
SDL_video.h | 41 * These define alpha as the opacity of a surface 89 /** Alpha value information (per-surface alpha) */ 94 * which, if not NULL, contains the raw pixel data for the surface. 104 /** Hardware-specific surface info */ 120 /** Reference count -- used when freeing surface */ 131 #define SDL_SWSURFACE 0x00000000 /**< Surface is in system memory */ 132 #define SDL_HWSURFACE 0x00000001 /**< Surface is in video memory */ 139 #define SDL_HWPALETTE 0x20000000 /**< Surface has exclusive palette */ 141 #define SDL_FULLSCREEN 0x80000000 /**< Surface is a full screen display */ 153 #define SDL_RLEACCEL 0x00004000 /**< Surface is RLE encoded * [all...] |
/prebuilts/tools/darwin-x86/sdl/include/SDL/ |
SDL_video.h | 41 * These define alpha as the opacity of a surface 89 /** Alpha value information (per-surface alpha) */ 94 * which, if not NULL, contains the raw pixel data for the surface. 104 /** Hardware-specific surface info */ 120 /** Reference count -- used when freeing surface */ 131 #define SDL_SWSURFACE 0x00000000 /**< Surface is in system memory */ 132 #define SDL_HWSURFACE 0x00000001 /**< Surface is in video memory */ 139 #define SDL_HWPALETTE 0x20000000 /**< Surface has exclusive palette */ 141 #define SDL_FULLSCREEN 0x80000000 /**< Surface is a full screen display */ 153 #define SDL_RLEACCEL 0x00004000 /**< Surface is RLE encoded * [all...] |
/prebuilts/tools/linux-x86/sdl/include/SDL/ |
SDL_video.h | 41 * These define alpha as the opacity of a surface 89 /** Alpha value information (per-surface alpha) */ 94 * which, if not NULL, contains the raw pixel data for the surface. 104 /** Hardware-specific surface info */ 120 /** Reference count -- used when freeing surface */ 131 #define SDL_SWSURFACE 0x00000000 /**< Surface is in system memory */ 132 #define SDL_HWSURFACE 0x00000001 /**< Surface is in video memory */ 139 #define SDL_HWPALETTE 0x20000000 /**< Surface has exclusive palette */ 141 #define SDL_FULLSCREEN 0x80000000 /**< Surface is a full screen display */ 153 #define SDL_RLEACCEL 0x00004000 /**< Surface is RLE encoded * [all...] |
/prebuilts/tools/windows/sdl/include/SDL/ |
SDL_video.h | 41 * These define alpha as the opacity of a surface 89 /** Alpha value information (per-surface alpha) */ 94 * which, if not NULL, contains the raw pixel data for the surface. 104 /** Hardware-specific surface info */ 120 /** Reference count -- used when freeing surface */ 131 #define SDL_SWSURFACE 0x00000000 /**< Surface is in system memory */ 132 #define SDL_HWSURFACE 0x00000001 /**< Surface is in video memory */ 139 #define SDL_HWPALETTE 0x20000000 /**< Surface has exclusive palette */ 141 #define SDL_FULLSCREEN 0x80000000 /**< Surface is a full screen display */ 153 #define SDL_RLEACCEL 0x00004000 /**< Surface is RLE encoded * [all...] |
/external/chromium/chrome/browser/ui/gtk/ |
cairo_cached_surface.h | 33 // The dimensions of the underlying pixbuf/surface. (or -1 if invalid.) 38 // current pixbuf and surface (if they exist). Actually transfering data to 43 // Sets our pixbuf as the active surface starting at (x, y), uploading it in 44 // case we don't have an X backed surface cached. 55 // Our cached surface. This should be a xlib surface so the data lives on the
|
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/ |
SDL_dx5yuv.c | 41 LPDIRECTDRAWSURFACE3 surface; member in struct:private_yuvhwdata 57 /* Set up the surface description */ 72 /* Create the DirectDraw video surface */ 86 /* Make sure the surface format was set properly */ 161 /* Set up the YUV surface function structure */ 172 hwdata->surface = CreateYUVSurface(this, width, height, format); 173 if ( hwdata->surface == NULL ) { 199 LPDIRECTDRAWSURFACE3 surface; local 202 surface = overlay->hwdata->surface; 244 LPDIRECTDRAWSURFACE3 surface; local 253 LPDIRECTDRAWSURFACE3 surface; local [all...] |
/external/skia/gm/ |
fatpathfill.cpp | 40 static void draw_fatpath(SkCanvas* canvas, SkSurface* surface, 44 surface->getCanvas()->clear(SK_ColorTRANSPARENT); 46 surface->getCanvas()->drawPath(paths[i], paint); 48 surface->draw(canvas, 0, 0, NULL); 74 SkAutoTUnref<SkSurface> surface(new_surface(SMALL_W, SMALL_H)); 87 draw_fatpath(canvas, surface, &path, 1);
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
rgb24-hacks.txt | 1 Index: cairo/src/cairo-win32-surface.c 3 --- cairo/src/cairo-win32-surface.c (revision 14498) 4 +++ cairo/src/cairo-win32-surface.c (working copy) 9 - if (surface->format != CAIRO_FORMAT_RGB24) 11 + //if (surface->format != CAIRO_FORMAT_RGB24) 19 /* Optimize for no destination alpha (surface->pixman_image is non-NULL for all
|
/sdk/emulator/opengl/tests/EGL_host_wrapper/ |
egl.cpp | 119 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) 121 return getDispatch()->eglDestroySurface(dpy, surface); 124 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value) 126 return getDispatch()->eglQuerySurface(dpy, surface, attribute, value); 154 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) 156 return getDispatch()->eglSurfaceAttrib(dpy, surface, attribute, value); 159 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) 161 return getDispatch()->eglBindTexImage(dpy, surface, buffer); 164 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer) 166 return getDispatch()->eglReleaseTexImage(dpy, surface, buffer) [all...] |
/external/icu4c/samples/layout/ |
GDIFontMap.cpp | 18 GDIFontMap::GDIFontMap(GDISurface *surface, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status) 19 : FontMap(fileName, pointSize, guiSupport, status), fSurface(surface)
|