/external/qemu/distrib/sdl-1.2.15/docs/man3/ |
SDL_LockSurface.3 | 3 SDL_LockSurface \- Lock a surface for directly access\&. 8 \fBint \fBSDL_LockSurface\fP\fR(\fBSDL_Surface *surface\fR); 11 \fBSDL_LockSurface\fP sets up a surface for directly accessing the pixels\&. Between calls to \fBSDL_LockSurface\fP and \fBSDL_UnlockSurface\fP, you can write to and read from \fBsurface->\fBpixels\fR\fR, using the pixel format stored in \fBsurface->\fBformat\fR\fR\&. Once you are done accessing the surface, you should use \fBSDL_UnlockSurface\fP to release it\&. 13 Not all surfaces require locking\&. If \fBSDL_MUSTLOCK\fP(\fBsurface\fR) evaluates to \fB0\fR, then you can read and write to the surface at any time, and the pixel format of the surface will not change\&. 17 It should be noted, that since SDL 1\&.1\&.8 surface locks are recursive\&. This means that you can lock a surface multiple times, but each lock must have a match unlock\&. 22 SDL_LockSurface( surface ); 24 /* Surface is locked * [all...] |
SDL_Surface.3 | 3 SDL_Surface \- Graphical Surface Structure 17 /* Reference count -- used when freeing surface */ 27 Surface flags 33 Width and height of the surface 36 Length of a surface scanline in bytes 42 surface clip \fIrectangle\fR 45 \fBSDL_Surface\fR\&'s represent areas of "graphical" memory, memory that can be drawn to\&. The video framebuffer is returned as a \fBSDL_Surface\fR by \fI\fBSDL_SetVideoMode\fP\fR and \fI\fBSDL_GetVideoSurface\fP\fR\&. Most of the fields should be pretty obvious\&. \fBw\fR and \fBh\fR are the width and height of the surface in pixels\&. \fBpixels\fR is a pointer to the actual pixel data, the surface should be \fIlocked\fR before accessing this field\&. The \fBclip_rect\fR field is the clipping rectangle as set by \fI\fBSDL_SetClipRect\fP\fR\&. 50 Surface is stored in system memory 53 Surface is stored in video memor [all...] |
SDL_SetClipRect.3 | 3 SDL_SetClipRect \- Sets the clipping rectangle for a surface\&. 8 \fBvoid \fBSDL_SetClipRect\fP\fR(\fBSDL_Surface *surface, SDL_Rect *rect\fR); 11 Sets the clipping rectangle for a surface\&. When this surface is the destination of a blit, only the area within the clip rectangle will be drawn into\&. 13 The rectangle pointed to by \fBrect\fR will be clipped to the edges of the surface so that the clip rectangle for a surface can never fall outside the edges of the surface\&. 15 If \fBrect\fR is \fBNULL\fP the clipping rectangle will be set to the full size of the surface\&.
|
SDL_GetClipRect.3 | 3 SDL_GetClipRect \- Gets the clipping rectangle for a surface\&. 8 \fBvoid \fBSDL_GetClipRect\fP\fR(\fBSDL_Surface *surface, SDL_Rect *rect\fR); 11 Gets the clipping rectangle for a surface\&. When this surface is the destination of a blit, only the area within the clip rectangle is drawn into\&. 13 The rectangle pointed to by \fBrect\fR will be filled with the clipping rectangle of the surface\&.
|
SDL_GetVideoSurface.3 | 3 SDL_GetVideoSurface \- returns a pointer to the current display surface 11 This function returns a pointer to the current display surface\&. If SDL is doing format conversion on the display surface, this function returns the publicly visible surface, not the real video surface\&.
|
SDL_BlitSurface.3 | 3 SDL_BlitSurface \- This performs a fast blit from the source surface to the destination surface\&. 11 This performs a fast blit from the source surface to the destination surface\&. 15 If either \fBsrcrect\fR or \fBdstrect\fR are \fBNULL\fP, the entire surface (\fBsrc\fR or \fBdst\fR) is copied\&. 19 The blit function should not be called on a locked surface\&. 21 The results of blitting operations vary greatly depending on whether \fBSDL_SRCAPLHA\fP is set or not\&. See \fISDL_SetAlpha\fR for an explaination of how this affects your results\&. Colorkeying and alpha attributes also interact with surface blitting, as the following pseudo-code should hopefully explain\&. 24 \f(CWif (source surface has SDL_SRCALPHA set) { 25 if (source surface has alpha channel (that is, format->Amask != 0)) 28 if (source surface has SDL_SRCCOLORKEY set [all...] |
SDL_ConvertSurface.3 | 3 SDL_ConvertSurface \- Converts a surface to the same format as another surface\&. 11 Creates a new surface of the specified format, and then copies and maps the given surface to it\&. If this function fails, it returns \fBNULL\fP\&. 20 Returns either a pointer to the new surface, or \fBNULL\fP on error\&.
|
SDL_DisplayFormat.3 | 3 SDL_DisplayFormat \- Convert a surface to the display format 8 \fBSDL_Surface *\fBSDL_DisplayFormat\fP\fR(\fBSDL_Surface *surface\fR); 11 This function takes a surface and copies it to a new surface of the pixel format and colors of the video framebuffer, suitable for fast blitting onto the display surface\&. It calls \fISDL_ConvertSurface\fR
|
SDL_DisplayFormatAlpha.3 | 3 SDL_DisplayFormatAlpha \- Convert a surface to the display format 8 \fBSDL_Surface *\fBSDL_DisplayFormatAlpha\fP\fR(\fBSDL_Surface *surface\fR); 11 This function takes a surface and copies it to a new surface of the pixel format and colors of the video framebuffer plus an alpha channel, suitable for fast blitting onto the display surface\&. It calls \fISDL_ConvertSurface\fR 15 This function can be used to convert a colourkey to an alpha channel, if the \fBSDL_SRCCOLORKEY\fP flag is set on the surface\&. The generated surface will then be transparent (alpha=0) where the pixels match the colourkey, and opaque (alpha=255) elsewhere\&.
|
SDL_SetColorKey.3 | 3 SDL_SetColorKey \- Sets the color key (transparent pixel) in a blittable surface and RLE acceleration\&. 8 \fBint \fBSDL_SetColorKey\fP\fR(\fBSDL_Surface *surface, Uint32 flag, Uint32 key\fR); 11 Sets the color key (transparent pixel) in a blittable surface and enables or disables RLE blit acceleration\&. 17 If \fBflag\fR is OR\&'d with \fBSDL_RLEACCEL\fP then the surface will be draw using RLE acceleration when drawn with \fISDL_BlitSurface\fR\&. The surface will actually be encoded for RLE acceleration the first time \fISDL_BlitSurface\fR or \fISDL_DisplayFormat\fR is called on the surface\&.
|
SDL_UnlockSurface.3 | 3 SDL_UnlockSurface \- Unlocks a previously locked surface\&. 8 \fBvoid \fBSDL_UnlockSurface\fP\fR(\fBSDL_Surface *surface\fR); 13 It should be noted that since 1\&.1\&.8, surface locks are recursive\&. See \fI\fBSDL_LockSurface\fP\fR\&.
|
/frameworks/native/opengl/tools/glgen/stubs/egl/ |
eglCreateWindowSurface.java | 25 Surface sur = null; 32 } else if (win instanceof Surface) { 33 sur = (Surface) win; 36 EGLSurface surface; local 38 surface = _eglCreateWindowSurface(dpy, config, sur, attrib_list, offset); 40 surface = _eglCreateWindowSurfaceTexture(dpy, config, 45 "Surface, SurfaceView, SurfaceTexture or SurfaceHolder at the moment, " + 49 return surface;
|
/external/qemu/distrib/sdl-1.2.15/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...] |
SDL_blit.c | 232 /* Figure out which of many blit routines to set up on a surface */ 233 int SDL_CalculateBlit(SDL_Surface *surface) 238 if ( (surface->flags & SDL_RLEACCEL) == SDL_RLEACCEL ) { 239 SDL_UnRLESurface(surface, 1); 241 surface->map->sw_blit = NULL; 244 surface->flags &= ~SDL_HWACCEL; 245 if ( surface->map->identity ) { 248 if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) { 250 if ( surface->map->dst->flags & SDL_HWSURFACE ) { 255 if (hw_blit_ok && (surface->flags & SDL_SRCCOLORKEY)) [all...] |
/external/skia/include/core/ |
SkSurface.h | 21 * drawing, the surface will be pixels, but (for example) when drawing into 22 * a PDF or Picture canvas, the surface stores the recorded commands. 24 * To draw into a canvas, first create the appropriate type of Surface, and 25 * then request the canvas from the surface. 32 * Create a new surface, using the specified pixels/rowbytes as its 35 * If the requested surface cannot be created, or the request is not a 41 * Return a new surface, with the memory for the pixels automatically 44 * If the requested surface cannot be created, or the request is not a 50 * Return a new surface whose contents will be recorded into a picture. 51 * When this surface is drawn into another canvas, its contents will b [all...] |
/frameworks/base/core/java/android/view/ |
SurfaceHolder.java | 23 * Abstract interface to someone holding a display surface. Allows you to 24 * control the surface size and format, edit the pixels in the surface, and 25 * monitor changes to the surface. This interface is typically available 49 * Exception that is thrown from {@link #lockCanvas} when called on a Surface 63 * changes to the surface. When used with a {@link SurfaceView}, the 64 * Surface being held is only available between calls to 71 * This is called immediately after the surface is first created. 74 * a {@link Surface}, so you should not draw into the Surface her [all...] |
/external/icu4c/samples/layout/ |
Surface.h | 5 class Surface 8 Surface(/*what?*/);
|
gdiglue.h | 27 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc); 28 void rs_gdiRenderingSurfaceClose(rs_surface *surface); 30 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
GLEnvironment.java | 24 import android.view.Surface; 102 public int registerSurface(Surface surface) { 103 int result = nativeAddSurface(surface); 105 throw new RuntimeException("Error registering surface " + surface + "!"); 111 Surface surface = new Surface(surfaceTexture); local 112 int result = nativeAddSurfaceWidthHeight(surface, width, height) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/ataricommon/ |
SDL_atarigl.c | 54 static void CopyShadowNull(_THIS, SDL_Surface *surface); 55 static void CopyShadowDirect(_THIS, SDL_Surface *surface); 56 static void CopyShadowRGBTo555(_THIS, SDL_Surface *surface); 57 static void CopyShadowRGBTo565(_THIS, SDL_Surface *surface); 58 static void CopyShadowRGBSwap(_THIS, SDL_Surface *surface); 59 static void CopyShadowRGBToARGB(_THIS, SDL_Surface *surface); 60 static void CopyShadowRGBToABGR(_THIS, SDL_Surface *surface); 61 static void CopyShadowRGBToBGRA(_THIS, SDL_Surface *surface); 62 static void CopyShadowRGBToRGBA(_THIS, SDL_Surface *surface); 63 static void CopyShadow8888To555(_THIS, SDL_Surface *surface); 257 SDL_Surface *surface; local 312 SDL_Surface *surface; local [all...] |
/external/webkit/Source/WebKit/efl/ewk/ |
ewk_util.cpp | 31 * @param surface cairo representation of an image 34 Evas_Object* ewk_util_image_from_cairo_surface_add(Evas* canvas, cairo_surface_t* surface) 45 EINA_SAFETY_ON_NULL_RETURN_VAL(surface, 0); 47 status = cairo_surface_status(surface); 49 ERR("cairo surface is invalid: %s", cairo_status_to_string(status)); 53 type = cairo_surface_get_type(surface); 55 ERR("unknown surface type %d, required %d (CAIRO_SURFACE_TYPE_IMAGE).", 60 format = cairo_image_surface_get_format(surface); 62 ERR("unknown surface format %d, expected %d or %d.", 67 w = cairo_image_surface_get_width(surface); [all...] |
/frameworks/base/include/android_runtime/ |
android_view_Surface.h | 26 class Surface; 29 /* Gets the underlying ANativeWindow for a Surface. */ 33 /* Returns true if the object is an instance of Surface. */ 36 /* Gets the underlying Surface from a Surface Java object. */ 37 extern sp<Surface> android_view_Surface_getSurface(JNIEnv* env, jobject surfaceObj); 39 /* Creates a Surface from an IGraphicBufferProducer. */
|
/frameworks/native/opengl/tools/glgen/specs/egl/ |
EGL14.spec | 12 EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface ) 13 EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value ) 19 EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value ) 20 EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 21 EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 32 EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface ) 33 EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
|
/external/webkit/Source/WebCore/platform/graphics/openvg/ |
EGLDisplayOpenVG.cpp | 219 // The shared surface doesn't need to be drawn on, it just exists so 222 // We'll just make the shared surface as small as possible: 1x1 pixel. 224 EGLSurface surface = createPbufferSurface(IntSize(1, 1), config); local 228 m_contexts.set(m_surfaceConfigIds.get(surface), context); 232 m_sharedPlatformSurface->m_eglSurface = surface; 234 m_platformSurfaces.set(surface, m_sharedPlatformSurface); // a.k.a. registerPlatformSurface() 246 EGLSurface surface = eglCreatePbufferSurface(m_display, config, attribList); local 253 if (surface == EGL_NO_SURFACE) 261 ASSERT(!m_surfaceConfigIds.contains(surface)); 262 m_surfaceConfigIds.set(surface, surfaceConfigId) 269 EGLSurface surface = eglCreatePbufferFromClientBuffer(m_display, local [all...] |
/external/harfbuzz_ng/util/ |
helper-cairo-ansi.cc | 34 helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface, 38 unsigned int width = cairo_image_surface_get_width (surface); 39 unsigned int height = cairo_image_surface_get_height (surface); 40 if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) { 43 if (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8) { 47 cairo_mask_surface (cr, surface, 0, 0); 51 cairo_set_source_surface (cr, surface, 0, 0); 55 surface = new_surface; 57 cairo_surface_reference (surface); 59 unsigned int stride = cairo_image_surface_get_stride (surface); [all...] |