Searched refs:surface (Results 1 - 25 of 182) sorted by relevance

12345678

/external/webkit/Source/WebCore/platform/graphics/gtk/
H A DGdkCairoUtilities.cpp33 GdkPixbuf* cairoImageSurfaceToGdkPixbuf(cairo_surface_t* surface) argument
35 return gdk_pixbuf_get_from_surface(surface, 0, 0,
36 cairo_image_surface_get_width(surface),
37 cairo_image_surface_get_height(surface));
H A DGdkCairoUtilities.h29 GdkPixbuf* cairoImageSurfaceToGdkPixbuf(cairo_surface_t* surface);
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
H A DSDL_x11image_c.h30 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);
/external/webkit/Source/WebKit/android/plugins/
H A DANPSurface_npapi.h33 /** Locks the surface from manipulation by other threads and provides a bitmap
36 surface will be considered dirty. If the lock was successful the function
40 bool (*lock)(JNIEnv* env, jobject surface, ANPBitmap* bitmap, ANPRectI* dirtyRect);
41 /** Given a locked surface handle (i.e. result of a successful call to lock)
42 the surface is unlocked and the contents of the bitmap, specifically
45 void (*unlock)(JNIEnv* env, jobject surface);
/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DPatternCairo.cpp38 cairo_surface_t* surface = tileImage()->nativeImageForCurrentFrame(); local
39 if (!surface)
42 cairo_pattern_t* pattern = cairo_pattern_create_for_surface(surface);
/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_surface.c35 * 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
158 SDL_Surface *surface; local
175 SDL_SetColorKey(SDL_Surface *surface, Uint32 flag, Uint32 key) argument
225 SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 value) argument
283 SDL_SetAlphaChannel(SDL_Surface *surface, Uint8 value) argument
368 SDL_SetClipRect(SDL_Surface *surface, const SDL_Rect *rect) argument
390 SDL_GetClipRect(SDL_Surface *surface, SDL_Rect *rect) argument
736 SDL_LockSurface(SDL_Surface *surface) argument
764 SDL_UnlockSurface(SDL_Surface *surface) argument
791 SDL_ConvertSurface(SDL_Surface *surface, SDL_PixelFormat *format, Uint32 flags) argument
903 SDL_FreeSurface(SDL_Surface *surface) argument
[all...]
H A DSDL_blit.c232 /* Figure out which of many blit routines to set up on a surface */
233 int SDL_CalculateBlit(SDL_Surface *surface) argument
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
[all...]
H A DSDL_RLEaccel_c.h26 extern int SDL_RLESurface(SDL_Surface *surface);
31 extern void SDL_UnRLESurface(SDL_Surface *surface, int recode);
H A DSDL_bmp.c54 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
364 SDL_Surface *surface; local
[all...]
/external/webkit/Source/WebKit/efl/ewk/
H A Dewk_util.h32 Evas_Object* ewk_util_image_from_cairo_surface_add(Evas* canvas, cairo_surface_t* surface);
H A Dewk_util.cpp31 * @param surface cairo representation of an image
34 Evas_Object* ewk_util_image_from_cairo_surface_add(Evas* canvas, cairo_surface_t* surface) argument
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...]
/external/qemu/distrib/sdl-1.2.15/src/video/photon/
H A DSDL_ph_image_c.h42 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);
/external/qemu/distrib/sdl-1.2.15/src/video/ataricommon/
H A DSDL_atarigl.c54 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
676 CopyShadowNull(_THIS, SDL_Surface *surface) argument
680 CopyShadowDirect(_THIS, SDL_Surface *surface) argument
702 CopyShadowRGBTo555(_THIS, SDL_Surface *surface) argument
734 CopyShadowRGBTo565(_THIS, SDL_Surface *surface) argument
767 CopyShadowRGBSwap(_THIS, SDL_Surface *surface) argument
798 CopyShadowRGBToARGB(_THIS, SDL_Surface *surface) argument
832 CopyShadowRGBToABGR(_THIS, SDL_Surface *surface) argument
866 CopyShadowRGBToBGRA(_THIS, SDL_Surface *surface) argument
900 CopyShadowRGBToRGBA(_THIS, SDL_Surface *surface) argument
934 CopyShadow8888To555(_THIS, SDL_Surface *surface) argument
968 CopyShadow8888To565(_THIS, SDL_Surface *surface) argument
1005 ConvertNull(_THIS, SDL_Surface *surface) argument
1009 Convert565To555be(_THIS, SDL_Surface *surface) argument
1028 Convert565To555le(_THIS, SDL_Surface *surface) argument
1048 Convert565le(_THIS, SDL_Surface *surface) argument
1067 ConvertBGRAToABGR(_THIS, SDL_Surface *surface) argument
[all...]
/external/icu4c/samples/layout/
H A Dgdiglue.h27 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);
H A Drsurface.cpp16 void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count, argument
19 RenderingSurface *rs = (RenderingSurface *) surface;
H A Dgdiglue.cpp42 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) argument
44 GDISurface *rs = (GDISurface *) surface;
49 void rs_gdiRenderingSurfaceClose(rs_surface *surface) argument
51 GDISurface *rs = (GDISurface *) surface;
56 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_guiSupport *guiSupport, LEErrorCode *status) argument
58 return (fm_fontMap *) new GDIFontMap((GDISurface *) surface, fileName, pointSize, (GDIGUISupport *) guiSupport, *status);
/external/webkit/Tools/DumpRenderTree/cairo/
H A DPixelDumpSupportCairo.cpp67 cairo_surface_t* surface = cairo_get_target(bitmapContext); local
69 ASSERT(cairo_image_surface_get_format(surface) == CAIRO_FORMAT_ARGB32); // ImageDiff assumes 32 bit RGBA, we must as well.
71 size_t pixelsHigh = cairo_image_surface_get_height(surface);
72 size_t pixelsWide = cairo_image_surface_get_width(surface);
73 size_t bytesPerRow = cairo_image_surface_get_stride(surface);
76 unsigned char* bitmapData = static_cast<unsigned char*>(cairo_image_surface_get_data(surface));
91 cairo_surface_t* surface = cairo_get_target(context->cairoContext()); local
92 printPNG(surface, checksum);
/external/webkit/Source/WebCore/platform/graphics/openvg/
H A DEGLDisplayOpenVG.cpp219 // 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, surfaceConfigI
269 EGLSurface surface = eglCreatePbufferFromClientBuffer(m_display, local
308 surfacesCompatible(const EGLSurface& surface, const EGLSurface& otherSurface) argument
320 destroySurface(const EGLSurface& surface) argument
367 contextForSurface(const EGLSurface& surface) argument
[all...]
/external/qemu/android/skin/
H A Dsurface.c12 #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;
136 _skin_surface_create( SDL_Surface* surface, void* pixels ) argument
159 SDL_Surface* surface; local
177 SDL_Surface* surface; local
197 SDL_Surface* surface; local
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/
H A DSDL_DirectFB_video.c61 /* 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 her
595 IDirectFBSurface *surface; local
802 DirectFB_AllocHWSurface(_THIS, SDL_Surface *surface) argument
847 DirectFB_FreeHWSurface(_THIS, SDL_Surface *surface) argument
879 IDirectFBSurface *surface = dst->hwdata->surface; local
906 IDirectFBSurface *surface = dst->hwdata->surface; local
921 IDirectFBSurface *surface = src->hwdata->surface; local
935 DirectFB_SetHWAlpha(_THIS, SDL_Surface *surface, Uint8 alpha) argument
940 DirectFB_FlipHWSurface(_THIS, SDL_Surface *surface) argument
957 DirectFB_LockHWSurface(_THIS, SDL_Surface *surface) argument
977 DirectFB_UnlockHWSurface(_THIS, SDL_Surface *surface) argument
1001 IDirectFBSurface *surface = this->screen->hwdata->surface; local
1092 IDirectFBSurface *surface = this->screen->hwdata->surface; local
[all...]
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestblitspeed.c2 * Benchmarks surface-to-surface blits in various formats.
56 print_tf_state(" hardware surface available", info->hw_available);
71 static void output_surface_details(const char *name, SDL_Surface *surface) argument
75 if (surface == NULL)
77 printf("-WARNING- You've got a NULL surface!");
82 printf(" width : %d\n", surface->w);
83 printf(" height : %d\n", surface->h);
84 printf(" depth : %d bits per pixel\n", surface->format->BitsPerPixel);
85 printf(" pitch : %d\n", (int) surface
[all...]
/external/webkit/Source/WebCore/platform/graphics/win/
H A DGraphicsContextCairoWin.cpp44 cairo_surface_t* surface = 0; local
50 surface = cairo_win32_surface_create(hdc);
54 surface = cairo_image_surface_create_for_data((unsigned char*)info.bmBits,
61 cairo_t* context = cairo_create(surface);
62 cairo_surface_destroy(surface);
100 cairo_surface_t* surface = cairo_image_surface_create_for_data(pixelData.buffer(), local
106 // Flip the target surface so that when we set the srcImage as
107 // the surface it will draw right-side-up.
111 cairo_set_source_surface(cr, surface, 0, 0);
119 cairo_surface_destroy(surface);
169 cairo_surface_t* surface = cairo_win32_surface_create(m_hdc); local
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
H A DSDL_dx5yuv.c41 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/webkit/Source/WebCore/platform/gtk/
H A DGtkVersioning.c118 gdk_cairo_surface_coerce_to_image(cairo_surface_t* surface, argument
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
220 gdk_pixbuf_get_from_surface(cairo_surface_t * surface, int srcX, int srcY, int width, int height) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/gstreamer/
H A DImageGStreamerCairo.cpp54 cairo_surface_t* surface = cairo_image_surface_create_for_data(GST_BUFFER_DATA(buffer), cairoFormat, local
57 ASSERT(cairo_surface_status(surface) == CAIRO_STATUS_SUCCESS);
58 m_image = BitmapImage::create(surface);

Completed in 820 milliseconds

12345678