/external/qemu/distrib/sdl-1.2.15/docs/man3/ |
SDL_CreateRGBSurface.3 | 11 Allocate an empty surface (must be called after \fISDL_SetVideoMode\fR) 13 If \fBdepth\fR is 8 bits an empty palette is allocated for the surface, otherwise a \&'packed-pixel\&' \fI\fBSDL_PixelFormat\fR\fR is created using the \fB[RGBA]mask\fR\&'s provided (see \fI\fBSDL_PixelFormat\fR\fR)\&. The \fBflags\fR specifies the type of surface that should be created, it is an OR\&'d combination of the following possible values\&. 16 SDL will create the surface in system memory\&. This improves the performance of pixel level access, however you may not be able to take advantage of some types of hardware blitting\&. 19 SDL will attempt to create the surface in video memory\&. This will allow SDL to take advantage of Video->Video blits (which are often accelerated)\&. 22 This flag turns on colourkeying for blits from this surface\&. If \fBSDL_HWSURFACE\fP is also specified and colourkeyed blits are hardware-accelerated, then SDL will attempt to place the surface in video memory\&. Use \fI\fBSDL_SetColorKey\fP\fR to set or clear this flag after surface creation\&. 25 This flag turns on alpha-blending for blits from this surface\&. If \fBSDL_HWSURFACE\fP is also specified and alpha-blending blits are hardware-accelerated, then the surface will be placed in video memory if possible\&. Use \fI\fBSDL_SetAlpha\fP\fR to set or clear this fl (…) [all...] |
SDL_SetPalette.3 | 3 SDL_SetPalette \- Sets the colors in the palette of an 8-bit surface\&. 8 \fBint \fBSDL_SetPalette\fP\fR(\fBSDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors\fR); 11 Sets a portion of the palette for the given 8-bit surface\&. 13 Palettized (8-bit) screen surfaces with the \fBSDL_HWPALETTE\fP flag have two palettes, a logical palette that is used for mapping blits to/from the surface and a physical palette (that determines how the hardware will map the colors to the display)\&. \fISDL_BlitSurface\fR always uses the logical palette when blitting surfaces (if it has to convert between surface pixel formats)\&. Because of this, it is often useful to modify only one or the other palette to achieve various special color effects (e\&.g\&., screen fading, color flashes, screen dimming)\&. 17 When \fBsurface\fR is the surface associated with the current display, the display colormap will be updated with the requested colors\&. If \fBSDL_HWPALETTE\fP was set in \fISDL_SetVideoMode\fR flags, \fBSDL_SetPalette\fP will always return \fB1\fR, and the palette is guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation\&. 22 If \fBsurface\fR is not a palettized surface, this function does nothing, returning \fB0\fR\&. If all of the colors were set as passed to \fBSDL_SetPalette\fP, it will return \fB1\fR\&. If not all the color entries were set exactly as given, it will return \fB0\fR, and you should look at the surface palette to determine the actual color palette\&. 26 \f(CW /* Create a display surface with a grayscale palette */
|
SDL_FreeSurface.3 | 8 \fBvoid \fBSDL_FreeSurface\fP\fR(\fBSDL_Surface *surface\fR); 11 Frees the resources used by a previously created \fBSDL_Surface\fR\&. If the surface was created using \fISDL_CreateRGBSurfaceFrom\fR then the pixel data is not freed\&.
|
SDL_LoadBMP.3 | 11 Loads a surface from a named Windows BMP file\&. 14 Returns the new surface, or \fBNULL\fP if there was an error\&.
|
SDL_PixelFormat.3 | 3 SDL_PixelFormat \- Stores surface format information 25 The number of bits used to represent each pixel in a surface\&. Usually 8, 16, 24 or 32\&. 28 The number of bytes used to represent each pixel in a surface\&. Usually one to four\&. 43 Overall surface alpha value 46 A \fBSDL_PixelFormat\fR describes the format of the pixel data stored at the \fBpixels\fR field of a \fI\fBSDL_Surface\fR\fR\&. Every surface stores a \fBSDL_PixelFormat\fR in the \fBformat\fR field\&. 48 If you wish to do pixel level modifications on a surface, then understanding how SDL stores its color information is essential\&. 50 8-bit pixel formats are the easiest to understand\&. Since its an 8-bit format, we have 8 \fBBitsPerPixel\fR and 1 \fBBytesPerPixel\fR\&. Since \fBBytesPerPixel\fR is 1, all pixels are represented by a Uint8 which contains an index into \fBpalette\fR->\fBcolors\fR\&. So, to determine the color of a pixel in a 8-bit surface: we read the color index from \fBsurface\fR->\fBpixels\fR and we use that index to read the \fI\fBSDL_Color\fR\fR structure from \fBsurface\fR->\fBformat\fR->\fBpalette\fR->\fBcolors\fR\&. Like so: 53 \f(CWSDL_Surface *surface; 61 /* Create surface */ 64 fmt=surface->format [all...] |
SDL_SetColors.3 | 3 SDL_SetColors \- Sets a portion of the colormap for the given 8-bit surface\&. 8 \fBint \fBSDL_SetColors\fP\fR(\fBSDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors\fR); 11 Sets a portion of the colormap for the given 8-bit surface\&. 13 When \fBsurface\fR is the surface associated with the current display, the display colormap will be updated with the requested colors\&. If \fBSDL_HWPALETTE\fP was set in \fISDL_SetVideoMode\fR flags, \fBSDL_SetColors\fP will always return \fB1\fR, and the palette is guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation\&. 17 Palettized (8-bit) screen surfaces with the \fBSDL_HWPALETTE\fP flag have two palettes, a logical palette that is used for mapping blits to/from the surface and a physical palette (that determines how the hardware will map the colors to the display)\&. \fBSDL_SetColors\fP modifies both palettes (if present), and is equivalent to calling \fISDL_SetPalette\fR with the \fBflags\fR set to \fB(SDL_LOGPAL | SDL_PHYSPAL)\fP\&. 20 If \fBsurface\fR is not a palettized surface, this function does nothing, returning \fB0\fR\&. If all of the colors were set as passed to \fBSDL_SetColors\fP, it will return \fB1\fR\&. If not all the color entries were set exactly as given, it will return \fB0\fR, and you should look at the surface palette to determine the actual color palette\&. 24 \f(CW/* Create a display surface with a grayscale palette */
|
/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...] |
/frameworks/base/core/java/android/view/ |
Surface.java | 32 public class Surface implements Parcelable { 33 private static final String TAG = "Surface"; 49 public static final Parcelable.Creator<Surface> CREATOR = 50 new Parcelable.Creator<Surface>() { 52 public Surface createFromParcel(Parcel source) { 54 Surface s = new Surface(); 58 Log.e(TAG, "Exception creating surface from parcel", e); 64 public Surface[] newArray(int size) { 65 return new Surface[size] [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
Surface_OutOfResourcesExceptionTest.java | 20 import android.view.Surface; 21 import android.view.Surface.OutOfResourcesException; 27 new Surface.OutOfResourcesException(); 28 new Surface.OutOfResourcesException(NAME);
|
/external/skia/legacy/src/animator/ |
SkAnimate3DSchema.xsx | 2 <!--This file is auto-generated by the XML Schema Designer. It holds layout information for components on the designer surface.-->
|
SkAnimateSchema.xsx | 2 <!--This file is auto-generated by the XML Schema Designer. It holds layout information for components on the designer surface.-->
|
/external/skia/src/animator/ |
SkAnimate3DSchema.xsx | 2 <!--This file is auto-generated by the XML Schema Designer. It holds layout information for components on the designer surface.-->
|
SkAnimateSchema.xsx | 2 <!--This file is auto-generated by the XML Schema Designer. It holds layout information for components on the designer surface.-->
|
/external/webkit/Source/ThirdParty/ANGLE/src/libEGL/ |
Surface.h | 7 // Surface.h: Defines the egl::Surface class, representing a drawing surface 25 class Surface 28 Surface(Display *display, const egl::Config *config, HWND window); 30 ~Surface(); 48 DISALLOW_COPY_AND_ASSIGN(Surface); 70 const HWND mWindow; // Window that the surface is created for. 72 const egl::Config *mConfig; // EGL config surface was created with 73 EGLint mHeight; // Height of surface [all...] |
Display.h | 25 #include "libEGL/Surface.h" 45 egl::Surface *createWindowSurface(HWND window, EGLConfig config); 48 void destroySurface(egl::Surface *surface); 54 bool isValidSurface(egl::Surface *surface); 92 typedef std::set<Surface*> SurfaceSet;
|
/external/icu4c/samples/layout/ |
rsurface.cpp | 16 void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count, 19 RenderingSurface *rs = (RenderingSurface *) surface;
|
gdiglue.cpp | 42 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) 44 GDISurface *rs = (GDISurface *) surface; 49 void rs_gdiRenderingSurfaceClose(rs_surface *surface) 51 GDISurface *rs = (GDISurface *) surface; 56 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status) 58 return (fm_fontMap *) new GDIFontMap((GDISurface *) surface, fileName, pointSize, (GDIGUISupport *) guiSupport, *status);
|
/external/qemu/distrib/sdl-1.2.15/src/video/photon/ |
SDL_ph_image_c.h | 42 extern int ph_AllocHWSurface(_THIS, SDL_Surface* surface); 43 extern void ph_FreeHWSurface(_THIS, SDL_Surface* surface); 45 extern int ph_FillHWRect(_THIS, SDL_Surface* surface, SDL_Rect* rect, Uint32 color); 46 extern int ph_LockHWSurface(_THIS, SDL_Surface* surface); 47 extern void ph_UnlockHWSurface(_THIS, SDL_Surface* surface); 48 extern int ph_FlipHWSurface(_THIS, SDL_Surface* surface); 49 extern int ph_SetHWColorKey(_THIS, SDL_Surface* surface, Uint32 key); 50 extern int ph_SetHWAlpha(_THIS, SDL_Surface* surface, Uint8 alpha);
|
/frameworks/wilhelm/tests/sandbox/ |
nativewindow.cpp | 23 #include <gui/Surface.h> 39 sp<Surface> gSurface; 54 String8("A Surface"), 68 sp<Surface> surface = control->getSurface(); local 69 CHECK(surface != NULL); 71 gSurface = surface; 75 return surface.get();
|
/frameworks/av/libvideoeditor/lvpp/ |
PreviewRenderer.h | 29 class Surface; 35 const sp<Surface> &surface, 50 const sp<Surface> &surface, 55 sp<Surface> mSurface;
|
/external/qemu/distrib/sdl-1.2.15/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...] |
/frameworks/base/core/jni/ |
android_view_Surface.cpp | 17 #define LOG_TAG "Surface" 32 #include <gui/Surface.h> 53 "android/view/Surface$OutOfResourcesException"; 92 sp<Surface> android_view_Surface_getSurface(JNIEnv* env, jobject surfaceObj) { 93 sp<Surface> sur; 97 sur = reinterpret_cast<Surface *>( 110 sp<Surface> surface(new Surface(bufferProducer)); 111 if (surface == NULL) [all...] |
/external/qemu/distrib/sdl-1.2.15/docs/html/ |
sdllocksurface.html | 83 >SDL_LockSurface -- Lock a surface for directly access.</DIV 109 >(SDL_Surface *surface);</CODE 126 > sets up a surface for directly 138 >surface-><TT 149 >surface-><TT 157 surface, you should use <TT 169 >surface</I 176 surface at any time, and the pixel format of the surface will not change. </P 181 >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 hav (…) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/ |
SDL_bmp.c | 54 SDL_Surface *surface; local 85 surface = NULL; 223 /* Create a compatible surface, note that the colors are RGB ordered */ 224 surface = SDL_CreateRGBSurface(SDL_SWSURFACE, 226 if ( surface == NULL ) { 232 palette = (surface->format)->palette; 255 /* Read the surface pixels. Note that the bmp image is upside down */ 261 top = (Uint8 *)surface->pixels; 262 end = (Uint8 *)surface->pixels+(surface->h*surface->pitch) 364 SDL_Surface *surface; local [all...] |
/frameworks/native/cmds/flatland/ |
GLHelper.h | 19 #include <gui/Surface.h> 52 bool makeCurrent(EGLSurface surface); 55 sp<GLConsumer>* surfaceTexture, EGLSurface* surface, 59 sp<SurfaceControl>* surfaceControl, EGLSurface* surface); 61 void destroySurface(EGLSurface* surface); 63 bool swapBuffers(EGLSurface surface); 72 sp<GLConsumer>* surfaceTexture, EGLSurface* surface);
|