Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 224) sorted by relevance

123456789

/external/qemu/distrib/sdl-1.2.15/src/video/
DSDL_surface.c44 SDL_Surface *surface; in SDL_CreateRGBSurface() local
78 surface = (SDL_Surface *)SDL_malloc(sizeof(*surface)); in SDL_CreateRGBSurface()
79 if ( surface == NULL ) { in SDL_CreateRGBSurface()
83 surface->flags = SDL_SWSURFACE; in SDL_CreateRGBSurface()
102 surface->format = SDL_AllocFormat(depth, Rmask, Gmask, Bmask, Amask); in SDL_CreateRGBSurface()
103 if ( surface->format == NULL ) { in SDL_CreateRGBSurface()
104 SDL_free(surface); in SDL_CreateRGBSurface()
108 surface->flags |= SDL_SRCALPHA; in SDL_CreateRGBSurface()
110 surface->w = width; in SDL_CreateRGBSurface()
111 surface->h = height; in SDL_CreateRGBSurface()
[all …]
DSDL_blit.c233 int SDL_CalculateBlit(SDL_Surface *surface) in SDL_CalculateBlit() argument
238 if ( (surface->flags & SDL_RLEACCEL) == SDL_RLEACCEL ) { in SDL_CalculateBlit()
239 SDL_UnRLESurface(surface, 1); in SDL_CalculateBlit()
241 surface->map->sw_blit = NULL; in SDL_CalculateBlit()
244 surface->flags &= ~SDL_HWACCEL; in SDL_CalculateBlit()
245 if ( surface->map->identity ) { in SDL_CalculateBlit()
248 if ( (surface->flags & SDL_HWSURFACE) == SDL_HWSURFACE ) { in SDL_CalculateBlit()
250 if ( surface->map->dst->flags & SDL_HWSURFACE ) { in SDL_CalculateBlit()
255 if (hw_blit_ok && (surface->flags & SDL_SRCCOLORKEY)) { in SDL_CalculateBlit()
258 if ( hw_blit_ok && (surface->flags & SDL_SRCALPHA) ) { in SDL_CalculateBlit()
[all …]
DSDL_bmp.c54 SDL_Surface *surface; in SDL_LoadBMP_RW() local
85 surface = NULL; in SDL_LoadBMP_RW()
224 surface = SDL_CreateRGBSurface(SDL_SWSURFACE, in SDL_LoadBMP_RW()
226 if ( surface == NULL ) { in SDL_LoadBMP_RW()
232 palette = (surface->format)->palette; in SDL_LoadBMP_RW()
261 top = (Uint8 *)surface->pixels; in SDL_LoadBMP_RW()
262 end = (Uint8 *)surface->pixels+(surface->h*surface->pitch); in SDL_LoadBMP_RW()
273 pad = ((surface->pitch%4) ? in SDL_LoadBMP_RW()
274 (4-(surface->pitch%4)) : 0); in SDL_LoadBMP_RW()
280 bits = end - surface->pitch; in SDL_LoadBMP_RW()
[all …]
DSDL_RLEaccel.c1400 static int RLEAlphaSurface(SDL_Surface *surface) in RLEAlphaSurface() argument
1414 dest = surface->map->dst; in RLEAlphaSurface()
1418 if(surface->format->BitsPerPixel != 32) in RLEAlphaSurface()
1451 maxsize = surface->h * (2 + (4 + 2) * (surface->w + 1)) + 2; in RLEAlphaSurface()
1461 maxsize = surface->h * 2 * 4 * (surface->w + 1) + 4; in RLEAlphaSurface()
1494 int h = surface->h, w = surface->w; in RLEAlphaSurface()
1495 SDL_PixelFormat *sf = surface->format; in RLEAlphaSurface()
1496 Uint32 *src = (Uint32 *)surface->pixels; in RLEAlphaSurface()
1586 src += surface->pitch >> 2; in RLEAlphaSurface()
1596 if((surface->flags & SDL_PREALLOC) != SDL_PREALLOC in RLEAlphaSurface()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/ataricommon/
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);
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/directfb/
DSDL_DirectFB_video.c62 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
595 IDirectFBSurface *surface; in DirectFB_SetVideoMode() local
603 if (current->hwdata && current->hwdata->surface) in DirectFB_SetVideoMode()
[all …]
DSDL_DirectFB_yuv.c43 IDirectFBSurface *surface; member
138 ret = layer->GetSurface (layer, &hwdata->surface); in CreateYUVSurface()
213 IDirectFBSurface *surface = overlay->hwdata->surface; in DirectFB_LockYUVOverlay() local
215 ret = surface->Lock (surface, DSLF_READ | DSLF_WRITE, &data, &pitch); in DirectFB_LockYUVOverlay()
246 IDirectFBSurface *surface = overlay->hwdata->surface; in DirectFB_UnlockYUVOverlay() local
250 surface->Unlock (surface); in DirectFB_UnlockYUVOverlay()
281 if (hwdata->surface) in DirectFB_FreeYUVOverlay()
282 hwdata->surface->Release (hwdata->surface); in DirectFB_FreeYUVOverlay()
/external/qemu/android/skin/
Dsurface.c20 #define D(...) VERBOSE_PRINT(surface,__VA_ARGS__)
28 SDL_Surface* surface; member
40 if (s->surface) { in skin_surface_free()
41 SDL_FreeSurface(s->surface); in skin_surface_free()
42 s->surface = NULL; in skin_surface_free()
48 skin_surface_ref( SkinSurface* surface ) in skin_surface_ref() argument
50 if (surface) in skin_surface_ref()
51 surface->refcount += 1; in skin_surface_ref()
52 return surface; in skin_surface_ref()
136 _skin_surface_create( SDL_Surface* surface, in _skin_surface_create() argument
[all …]
/external/webkit/Source/WebCore/platform/graphics/openvg/
DEGLDisplayOpenVG.cpp224 EGLSurface surface = createPbufferSurface(IntSize(1, 1), config); in sharedPlatformSurface() local
228 m_contexts.set(m_surfaceConfigIds.get(surface), context); in sharedPlatformSurface()
232 m_sharedPlatformSurface->m_eglSurface = surface; in sharedPlatformSurface()
234 … m_platformSurfaces.set(surface, m_sharedPlatformSurface); // a.k.a. registerPlatformSurface() in sharedPlatformSurface()
246 EGLSurface surface = eglCreatePbufferSurface(m_display, config, attribList); in createPbufferSurface() local
253 if (surface == EGL_NO_SURFACE) in createPbufferSurface()
261 ASSERT(!m_surfaceConfigIds.contains(surface)); in createPbufferSurface()
262 m_surfaceConfigIds.set(surface, surfaceConfigId); in createPbufferSurface()
263 return surface; in createPbufferSurface()
269 EGLSurface surface = eglCreatePbufferFromClientBuffer(m_display, in createPbufferFromClientBuffer() local
[all …]
/external/qemu/distrib/sdl-1.2.15/test/
Dtestblitspeed.c71 static void output_surface_details(const char *name, SDL_Surface *surface) in output_surface_details() argument
75 if (surface == NULL) in output_surface_details()
82 printf(" width : %d\n", surface->w); in output_surface_details()
83 printf(" height : %d\n", surface->h); in output_surface_details()
84 printf(" depth : %d bits per pixel\n", surface->format->BitsPerPixel); in output_surface_details()
85 printf(" pitch : %d\n", (int) surface->pitch); in output_surface_details()
86 printf(" alpha : %d\n", (int) surface->format->alpha); in output_surface_details()
87 printf(" colorkey : 0x%X\n", (unsigned int) surface->format->colorkey); in output_surface_details()
90 (int) surface->format->Rmask, in output_surface_details()
91 (int) surface->format->Rshift, in output_surface_details()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/photon/
DSDL_ph_image.c522 int ph_AllocHWSurface(_THIS, SDL_Surface* surface) in ph_AllocHWSurface() argument
526 if (surface->hwdata!=NULL) in ph_AllocHWSurface()
531 surface->hwdata=SDL_malloc(sizeof(struct private_hwdata)); in ph_AllocHWSurface()
532 SDL_memset(surface->hwdata, 0x00, sizeof(struct private_hwdata)); in ph_AllocHWSurface()
533surface->hwdata->offscreenctx=PdCreateOffscreenContext(0, surface->w, surface->h, Pg_OSC_MEM_PAGE_… in ph_AllocHWSurface()
534 if (surface->hwdata->offscreenctx == NULL) in ph_AllocHWSurface()
539 surface->pixels=PdGetOffscreenContextPtr(surface->hwdata->offscreenctx); in ph_AllocHWSurface()
540 if (surface->pixels==NULL) in ph_AllocHWSurface()
542 PhDCRelease(surface->hwdata->offscreenctx); in ph_AllocHWSurface()
546 surface->pitch=surface->hwdata->offscreenctx->pitch; in ph_AllocHWSurface()
[all …]
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/webkit/Source/WebCore/platform/gtk/
DGtkVersioning.c118 gdk_cairo_surface_coerce_to_image(cairo_surface_t* surface, in gdk_cairo_surface_coerce_to_image() argument
126 if (cairo_surface_get_type(surface) == CAIRO_SURFACE_TYPE_IMAGE in gdk_cairo_surface_coerce_to_image()
127 && cairo_surface_get_content(surface) == content in gdk_cairo_surface_coerce_to_image()
128 && cairo_image_surface_get_width(surface) >= width in gdk_cairo_surface_coerce_to_image()
129 && cairo_image_surface_get_height(surface) >= height) in gdk_cairo_surface_coerce_to_image()
130 return cairo_surface_reference(surface); in gdk_cairo_surface_coerce_to_image()
138 cairo_set_source_surface(cr, surface, 0, 0); in gdk_cairo_surface_coerce_to_image()
220 gdk_pixbuf_get_from_surface(cairo_surface_t * surface, in gdk_pixbuf_get_from_surface() argument
228 g_return_val_if_fail(surface, NULL); in gdk_pixbuf_get_from_surface()
232 content = cairo_surface_get_content(surface) | CAIRO_CONTENT_COLOR; in gdk_pixbuf_get_from_surface()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/gem/
DSDL_gemvideo.c86 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);
829 static int GEM_AllocHWSurface(_THIS, SDL_Surface *surface) in GEM_AllocHWSurface() argument
834 static void GEM_FreeHWSurface(_THIS, SDL_Surface *surface) in GEM_FreeHWSurface() argument
839 static int GEM_LockHWSurface(_THIS, SDL_Surface *surface) in GEM_LockHWSurface() argument
844 static void GEM_UnlockHWSurface(_THIS, SDL_Surface *surface) in GEM_UnlockHWSurface() argument
851 SDL_Surface *surface; in GEM_UpdateRectsFullscreen() local
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
DSDL_dx5yuv.c41 LPDIRECTDRAWSURFACE3 surface; member
172 hwdata->surface = CreateYUVSurface(this, width, height, format); in DX5_CreateYUVOverlay()
173 if ( hwdata->surface == NULL ) { in DX5_CreateYUVOverlay()
199 LPDIRECTDRAWSURFACE3 surface; in DX5_LockYUVOverlay() local
202 surface = overlay->hwdata->surface; in DX5_LockYUVOverlay()
205 result = IDirectDrawSurface3_Lock(surface, NULL, in DX5_LockYUVOverlay()
208 result = IDirectDrawSurface3_Restore(surface); in DX5_LockYUVOverlay()
209 result = IDirectDrawSurface3_Lock(surface, NULL, &ddsd, in DX5_LockYUVOverlay()
244 LPDIRECTDRAWSURFACE3 surface; in DX5_UnlockYUVOverlay() local
246 surface = overlay->hwdata->surface; in DX5_UnlockYUVOverlay()
[all …]
DSDL_dx5video.c432 static int DX5_AllocHWSurface(_THIS, SDL_Surface *surface);
435 static int DX5_SetHWColorKey(_THIS, SDL_Surface *surface, Uint32 key);
436 static int DX5_SetHWAlpha(_THIS, SDL_Surface *surface, Uint8 alpha);
437 static int DX5_LockHWSurface(_THIS, SDL_Surface *surface);
438 static void DX5_UnlockHWSurface(_THIS, SDL_Surface *surface);
439 static int DX5_FlipHWSurface(_THIS, SDL_Surface *surface);
440 static void DX5_FreeHWSurface(_THIS, SDL_Surface *surface);
442 static int DX5_AllocDDSurface(_THIS, SDL_Surface *surface,
1663 static int DX5_AllocDDSurface(_THIS, SDL_Surface *surface, argument
1672 surface->flags &= ~flag;
[all …]
/external/webkit/Source/WebCore/platform/graphics/win/
DGraphicsContextCairoWin.cpp44 cairo_surface_t* surface = 0; in createCairoContextWithHDC() local
50 surface = cairo_win32_surface_create(hdc); in createCairoContextWithHDC()
54 surface = cairo_image_surface_create_for_data((unsigned char*)info.bmBits, in createCairoContextWithHDC()
61 cairo_t* context = cairo_create(surface); in createCairoContextWithHDC()
62 cairo_surface_destroy(surface); in createCairoContextWithHDC()
100 cairo_surface_t* surface = cairo_image_surface_create_for_data(pixelData.buffer(), in drawBitmapToContext() local
111 cairo_set_source_surface(cr, surface, 0, 0); in drawBitmapToContext()
119 cairo_surface_destroy(surface); in drawBitmapToContext()
161 cairo_surface_t* surface = cairo_get_target(cr); in syncContext() local
162 m_hdc = cairo_win32_surface_get_dc(surface); in syncContext()
[all …]
/external/webkit/Source/WebKit/efl/ewk/
Dewk_util.cpp34 Evas_Object* ewk_util_image_from_cairo_surface_add(Evas* canvas, cairo_surface_t* surface) in ewk_util_image_from_cairo_surface_add() argument
45 EINA_SAFETY_ON_NULL_RETURN_VAL(surface, 0); in ewk_util_image_from_cairo_surface_add()
47 status = cairo_surface_status(surface); in ewk_util_image_from_cairo_surface_add()
53 type = cairo_surface_get_type(surface); in ewk_util_image_from_cairo_surface_add()
60 format = cairo_image_surface_get_format(surface); in ewk_util_image_from_cairo_surface_add()
67 w = cairo_image_surface_get_width(surface); in ewk_util_image_from_cairo_surface_add()
68 h = cairo_image_surface_get_height(surface); in ewk_util_image_from_cairo_surface_add()
69 stride = cairo_image_surface_get_stride(surface); in ewk_util_image_from_cairo_surface_add()
75 src = cairo_image_surface_get_data(surface); in ewk_util_image_from_cairo_surface_add()
/external/qemu/distrib/sdl-1.2.15/src/video/macdsp/
DSDL_dspvideo.c168 static int DSp_SetHWAlpha(_THIS, SDL_Surface *surface, UInt8 alpha);
169 static int DSp_SetHWColorKey(_THIS, SDL_Surface *surface, Uint32 key);
171 static int DSp_AllocHWSurface(_THIS, SDL_Surface *surface);
172 static int DSp_LockHWSurface(_THIS, SDL_Surface *surface);
173 static void DSp_UnlockHWSurface(_THIS, SDL_Surface *surface);
174 static void DSp_FreeHWSurface(_THIS, SDL_Surface *surface);
175 static int DSp_FlipHWSurface(_THIS, SDL_Surface *surface);
975 static int DSp_MakeHWMask (_THIS, SDL_Surface *surface) in DSp_MakeHWMask() argument
986 SetRect (&rect, 0, 0, surface->w, surface->h); in DSp_MakeHWMask()
988 if ( noErr != NewGWorld (&(surface->hwdata->mask), depth, &rect, 0, SDL_Display, 0 ) < 0 ) { in DSp_MakeHWMask()
[all …]
/external/quake/quake/src/WinQuake/
Dd_surf.cpp264 surfcache_t *D_CacheSurface (msurface_t *surface, int miplevel) in D_CacheSurface() argument
271 r_drawsurf.texture = R_TextureAnimation (surface->texinfo->texture); in D_CacheSurface()
272 r_drawsurf.lightadj[0] = d_lightstylevalue[surface->styles[0]]; in D_CacheSurface()
273 r_drawsurf.lightadj[1] = d_lightstylevalue[surface->styles[1]]; in D_CacheSurface()
274 r_drawsurf.lightadj[2] = d_lightstylevalue[surface->styles[2]]; in D_CacheSurface()
275 r_drawsurf.lightadj[3] = d_lightstylevalue[surface->styles[3]]; in D_CacheSurface()
280 cache = surface->cachespots[miplevel]; in D_CacheSurface()
282 if (cache && !cache->dlight && surface->dlightframe != r_framecount in D_CacheSurface()
295 r_drawsurf.surfwidth = surface->extents[0] >> miplevel; in D_CacheSurface()
297 r_drawsurf.surfheight = surface->extents[1] >> miplevel; in D_CacheSurface()
[all …]
/external/webkit/Tools/DumpRenderTree/cairo/
DPixelDumpSupportCairo.cpp67 cairo_surface_t* surface = cairo_get_target(bitmapContext); in computeMD5HashStringForBitmapContext() local
69 …ASSERT(cairo_image_surface_get_format(surface) == CAIRO_FORMAT_ARGB32); // ImageDiff assumes 32 bi… in computeMD5HashStringForBitmapContext()
71 size_t pixelsHigh = cairo_image_surface_get_height(surface); in computeMD5HashStringForBitmapContext()
72 size_t pixelsWide = cairo_image_surface_get_width(surface); in computeMD5HashStringForBitmapContext()
73 size_t bytesPerRow = cairo_image_surface_get_stride(surface); in computeMD5HashStringForBitmapContext()
76 unsigned char* bitmapData = static_cast<unsigned char*>(cairo_image_surface_get_data(surface)); in computeMD5HashStringForBitmapContext()
91 cairo_surface_t* surface = cairo_get_target(context->cairoContext()); in dumpBitmap() local
92 printPNG(surface, checksum); in dumpBitmap()
/external/quake/quake/src/QW/client/
Dd_surf.c267 surfcache_t *D_CacheSurface (msurface_t *surface, int miplevel) in D_CacheSurface() argument
274 r_drawsurf.texture = R_TextureAnimation (surface->texinfo->texture); in D_CacheSurface()
275 r_drawsurf.lightadj[0] = d_lightstylevalue[surface->styles[0]]; in D_CacheSurface()
276 r_drawsurf.lightadj[1] = d_lightstylevalue[surface->styles[1]]; in D_CacheSurface()
277 r_drawsurf.lightadj[2] = d_lightstylevalue[surface->styles[2]]; in D_CacheSurface()
278 r_drawsurf.lightadj[3] = d_lightstylevalue[surface->styles[3]]; in D_CacheSurface()
283 cache = surface->cachespots[miplevel]; in D_CacheSurface()
285 if (cache && !cache->dlight && surface->dlightframe != r_framecount in D_CacheSurface()
298 r_drawsurf.surfwidth = surface->extents[0] >> miplevel; in D_CacheSurface()
300 r_drawsurf.surfheight = surface->extents[1] >> miplevel; in D_CacheSurface()
[all …]
/external/webrtc/src/modules/audio_processing/test/android/apmtest/jni/
Dmain.c53 EGLSurface surface; member
81 EGLSurface surface; in engine_init_display() local
101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL); in engine_init_display()
104 if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) { in engine_init_display()
109 eglQuerySurface(display, surface, EGL_WIDTH, &w); in engine_init_display()
110 eglQuerySurface(display, surface, EGL_HEIGHT, &h); in engine_init_display()
114 engine->surface = surface; in engine_init_display()
142 eglSwapBuffers(engine->display, engine->surface); in engine_draw_frame()
154 if (engine->surface != EGL_NO_SURFACE) { in engine_term_display()
155 eglDestroySurface(engine->display, engine->surface); in engine_term_display()
[all …]
/external/qemu/distrib/sdl-1.2.15/include/
DSDL_video.h161 #define SDL_MUSTLOCK(surface) \ argument
162 (surface->offset || \
163 ((surface->flags & (SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_RLEACCEL)) != 0))
466 extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface *surface,
485 extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface *surface, int flags,
560 extern DECLSPEC void SDLCALL SDL_FreeSurface(SDL_Surface *surface);
580 extern DECLSPEC int SDLCALL SDL_LockSurface(SDL_Surface *surface);
581 extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface);
600 (SDL_Surface *surface, SDL_RWops *dst, int freedst);
603 #define SDL_SaveBMP(surface, file) \ argument
[all …]
/external/icu4c/samples/layout/
Dgdiglue.cpp42 void rs_gdiRenderingSurfaceSetHDC(rs_surface *surface, HDC hdc) in rs_gdiRenderingSurfaceSetHDC() argument
44 GDISurface *rs = (GDISurface *) surface; in rs_gdiRenderingSurfaceSetHDC()
49 void rs_gdiRenderingSurfaceClose(rs_surface *surface) in rs_gdiRenderingSurfaceClose() argument
51 GDISurface *rs = (GDISurface *) surface; in rs_gdiRenderingSurfaceClose()
56 fm_fontMap *fm_gdiFontMapOpen(rs_surface *surface, const char *fileName, le_int16 pointSize, gs_gui… in fm_gdiFontMapOpen() argument
58 …return (fm_fontMap *) new GDIFontMap((GDISurface *) surface, fileName, pointSize, (GDIGUISupport *… in fm_gdiFontMapOpen()

123456789