Lines Matching defs:surface
38 * Differences in input surface formats are handled transparently. In future, this template
48 // 1. Cairo ARGB32 surface strides are always divisible by 4
51 // 4. Output surface is ARGB32 if at least one input is ARGB32
185 // 1. Cairo ARGB32 surface strides are always divisible by 4
188 // 4. Output surface is A8 if input is A8
310 * Synthesize surface pixels based on their position.
313 * @param out Output surface
314 * @param out_area The region of the output surface that should be synthesized
321 // 1. Cairo ARGB32 surface strides are always divisible by 4
383 SurfaceSynth(cairo_surface_t *surface)
384 : _px(cairo_image_surface_get_data(surface))
385 , _w(cairo_image_surface_get_width(surface))
386 , _h(cairo_image_surface_get_height(surface))
387 , _stride(cairo_image_surface_get_stride(surface))
388 , _alpha(cairo_surface_get_content(surface) == CAIRO_CONTENT_ALPHA)
390 cairo_surface_flush(surface);
475 // compute surface normal at given coordinates using 3x3 Sobel gradient filter
623 // simple pixel accessor for image surface that handles different edge wrapping modes