ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

surface.c File Reference
#include "config.h"
#include "wine/port.h"
#include "wined3d_private.h"

Go to the source code of this file.

Data Structures

struct  blt_info
struct  float_rect
struct  d3dfmt_convertor_desc

Defines

#define COLORFILL_ROW(type)
#define STRETCH_ROW(type)
#define COPY_COLORKEY_FX(type)

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (d3d_surface)
 WINE_DECLARE_DEBUG_CHANNEL (d3d)
static HRESULT surface_cpu_blt (struct wined3d_surface *dst_surface, const RECT *dst_rect, struct wined3d_surface *src_surface, const RECT *src_rect, DWORD flags, const WINEDDBLTFX *fx, enum wined3d_texture_filter_type filter)
static HRESULT IWineD3DSurfaceImpl_BltOverride (struct wined3d_surface *dst_surface, const RECT *dst_rect, struct wined3d_surface *src_surface, const RECT *src_rect, DWORD flags, const WINEDDBLTFX *fx, enum wined3d_texture_filter_type filter)
static void surface_cleanup (struct wined3d_surface *surface)
void surface_update_draw_binding (struct wined3d_surface *surface)
void surface_set_container (struct wined3d_surface *surface, enum wined3d_container_type type, void *container)
static void cube_coords_float (const RECT *r, UINT w, UINT h, struct float_rect *f)
static void surface_get_blt_info (GLenum target, const RECT *rect, GLsizei w, GLsizei h, struct blt_info *info)
static void surface_get_rect (const struct wined3d_surface *surface, const RECT *rect_in, RECT *rect_out)
void draw_textured_quad (const struct wined3d_surface *src_surface, struct wined3d_context *context, const RECT *src_rect, const RECT *dst_rect, enum wined3d_texture_filter_type filter)
static HRESULT surface_create_dib_section (struct wined3d_surface *surface)
static BOOL surface_need_pbo (const struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info)
static void surface_load_pbo (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info)
static void surface_prepare_system_memory (struct wined3d_surface *surface)
static void surface_evict_sysmem (struct wined3d_surface *surface)
static void surface_bind_and_dirtify (struct wined3d_surface *surface, struct wined3d_context *context, BOOL srgb)
static void surface_force_reload (struct wined3d_surface *surface)
static void surface_release_client_storage (struct wined3d_surface *surface)
static HRESULT surface_private_setup (struct wined3d_surface *surface)
static void surface_realize_palette (struct wined3d_surface *surface)
static HRESULT surface_draw_overlay (struct wined3d_surface *surface)
static void surface_map (struct wined3d_surface *surface, const RECT *rect, DWORD flags)
static void surface_unmap (struct wined3d_surface *surface)
static BOOL surface_is_full_rect (const struct wined3d_surface *surface, const RECT *r)
static void wined3d_surface_depth_blt_fbo (const struct wined3d_device *device, struct wined3d_surface *src_surface, const RECT *src_rect, struct wined3d_surface *dst_surface, const RECT *dst_rect)
static void surface_blt_fbo (const struct wined3d_device *device, enum wined3d_texture_filter_type filter, struct wined3d_surface *src_surface, DWORD src_location, const RECT *src_rect_in, struct wined3d_surface *dst_surface, DWORD dst_location, const RECT *dst_rect_in)
static BOOL fbo_blit_supported (const struct wined3d_gl_info *gl_info, enum wined3d_blit_op blit_op, const RECT *src_rect, DWORD src_usage, enum wined3d_pool src_pool, const struct wined3d_format *src_format, const RECT *dst_rect, DWORD dst_usage, enum wined3d_pool dst_pool, const struct wined3d_format *dst_format)
static BOOL primary_render_target_is_p8 (const struct wined3d_device *device)
static BOOL surface_convert_color_to_float (const struct wined3d_surface *surface, DWORD color, struct wined3d_color *float_color)
static BOOL surface_convert_depth_to_float (const struct wined3d_surface *surface, DWORD depth, float *float_depth)
static HRESULT wined3d_surface_depth_fill (struct wined3d_surface *surface, const RECT *rect, float depth)
static HRESULT wined3d_surface_depth_blt (struct wined3d_surface *src_surface, const RECT *src_rect, struct wined3d_surface *dst_surface, const RECT *dst_rect)
HRESULT CDECL wined3d_surface_blt (struct wined3d_surface *dst_surface, const RECT *dst_rect_in, struct wined3d_surface *src_surface, const RECT *src_rect_in, DWORD flags, const WINEDDBLTFX *fx, enum wined3d_texture_filter_type filter)
HRESULT CDECL wined3d_surface_get_render_target_data (struct wined3d_surface *surface, struct wined3d_surface *render_target)
static void surface_remove_pbo (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info)
static void surface_unload (struct wined3d_resource *resource)
static HRESULT gdi_surface_private_setup (struct wined3d_surface *surface)
static void gdi_surface_realize_palette (struct wined3d_surface *surface)
static void gdi_surface_map (struct wined3d_surface *surface, const RECT *rect, DWORD flags)
static void gdi_surface_unmap (struct wined3d_surface *surface)
void surface_set_texture_name (struct wined3d_surface *surface, GLuint new_name, BOOL srgb)
void surface_set_texture_target (struct wined3d_surface *surface, GLenum target)
void surface_bind (struct wined3d_surface *surface, struct wined3d_context *context, BOOL srgb)
static void surface_download_data (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info)
static void surface_upload_data (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, const struct wined3d_format *format, const RECT *src_rect, UINT src_pitch, const POINT *dst_point, BOOL srgb, const struct wined3d_bo_address *data)
HRESULT surface_upload_from_surface (struct wined3d_surface *dst_surface, const POINT *dst_point, struct wined3d_surface *src_surface, const RECT *src_rect)
static void surface_allocate_surface (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, const struct wined3d_format *format, BOOL srgb)
void surface_set_compatible_renderbuffer (struct wined3d_surface *surface, const struct wined3d_surface *rt)
GLenum surface_get_gl_buffer (const struct wined3d_surface *surface)
void surface_add_dirty_rect (struct wined3d_surface *surface, const struct wined3d_box *dirty_rect)
HRESULT surface_load (struct wined3d_surface *surface, BOOL srgb)
static unsigned short float_32_to_16 (const float *in)
ULONG CDECL wined3d_surface_incref (struct wined3d_surface *surface)
ULONG CDECL wined3d_surface_decref (struct wined3d_surface *surface)
DWORD CDECL wined3d_surface_set_priority (struct wined3d_surface *surface, DWORD priority)
DWORD CDECL wined3d_surface_get_priority (const struct wined3d_surface *surface)
void CDECL wined3d_surface_preload (struct wined3d_surface *surface)
void *CDECL wined3d_surface_get_parent (const struct wined3d_surface *surface)
struct wined3d_resource *CDECL wined3d_surface_get_resource (struct wined3d_surface *surface)
HRESULT CDECL wined3d_surface_get_blt_status (const struct wined3d_surface *surface, DWORD flags)
HRESULT CDECL wined3d_surface_get_flip_status (const struct wined3d_surface *surface, DWORD flags)
HRESULT CDECL wined3d_surface_is_lost (const struct wined3d_surface *surface)
HRESULT CDECL wined3d_surface_restore (struct wined3d_surface *surface)
HRESULT CDECL wined3d_surface_set_palette (struct wined3d_surface *surface, struct wined3d_palette *palette)
HRESULT CDECL wined3d_surface_set_color_key (struct wined3d_surface *surface, DWORD flags, const struct wined3d_color_key *color_key)
struct wined3d_palette *CDECL wined3d_surface_get_palette (const struct wined3d_surface *surface)
DWORD CDECL wined3d_surface_get_pitch (const struct wined3d_surface *surface)
HRESULT CDECL wined3d_surface_set_mem (struct wined3d_surface *surface, void *mem)
HRESULT CDECL wined3d_surface_set_overlay_position (struct wined3d_surface *surface, LONG x, LONG y)
HRESULT CDECL wined3d_surface_get_overlay_position (const struct wined3d_surface *surface, LONG *x, LONG *y)
HRESULT CDECL wined3d_surface_update_overlay_z_order (struct wined3d_surface *surface, DWORD flags, struct wined3d_surface *ref)
HRESULT CDECL wined3d_surface_update_overlay (struct wined3d_surface *surface, const RECT *src_rect, struct wined3d_surface *dst_surface, const RECT *dst_rect, DWORD flags, const WINEDDOVERLAYFX *fx)
HRESULT CDECL wined3d_surface_update_desc (struct wined3d_surface *surface, UINT width, UINT height, enum wined3d_format_id format_id, enum wined3d_multisample_type multisample_type, UINT multisample_quality)
static void convert_r32_float_r16_float (const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out, unsigned int w, unsigned int h)
static void convert_r5g6b5_x8r8g8b8 (const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out, unsigned int w, unsigned int h)
static void convert_a8r8g8b8_x8r8g8b8 (const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out, unsigned int w, unsigned int h)
static BYTE cliptobyte (int x)
static void convert_yuy2_x8r8g8b8 (const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out, unsigned int w, unsigned int h)
static void convert_yuy2_r5g6b5 (const BYTE *src, BYTE *dst, DWORD pitch_in, DWORD pitch_out, unsigned int w, unsigned int h)
static struct
d3dfmt_convertor_desc
find_convertor (enum wined3d_format_id from, enum wined3d_format_id to)
static struct wined3d_surfacesurface_convert_format (struct wined3d_surface *source, enum wined3d_format_id to_fmt)
static HRESULT _Blt_ColorFill (BYTE *buf, unsigned int width, unsigned int height, unsigned int bpp, UINT pitch, DWORD color)
HRESULT CDECL wined3d_surface_unmap (struct wined3d_surface *surface)
HRESULT CDECL wined3d_surface_map (struct wined3d_surface *surface, struct wined3d_mapped_rect *mapped_rect, const RECT *rect, DWORD flags)
HRESULT CDECL wined3d_surface_getdc (struct wined3d_surface *surface, HDC *dc)
HRESULT CDECL wined3d_surface_releasedc (struct wined3d_surface *surface, HDC dc)
HRESULT CDECL wined3d_surface_flip (struct wined3d_surface *surface, struct wined3d_surface *override, DWORD flags)
void surface_internal_preload (struct wined3d_surface *surface, enum WINED3DSRGB srgb)
BOOL surface_init_sysmem (struct wined3d_surface *surface)
static void read_from_framebuffer (struct wined3d_surface *surface, const RECT *rect, void *dest, UINT pitch)
void surface_load_fb_texture (struct wined3d_surface *surface, BOOL srgb)
static void surface_prepare_texture_internal (struct wined3d_surface *surface, struct wined3d_context *context, BOOL srgb)
void surface_prepare_texture (struct wined3d_surface *surface, struct wined3d_context *context, BOOL srgb)
void surface_prepare_rb (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, BOOL multisample)
static void flush_to_framebuffer_drawpixels (struct wined3d_surface *surface, const RECT *rect, GLenum fmt, GLenum type, UINT bpp, const BYTE *mem)
HRESULT d3dfmt_get_conv (const struct wined3d_surface *surface, BOOL need_alpha_ck, BOOL use_texturing, struct wined3d_format *format, CONVERT_TYPES *convert)
static BOOL color_in_range (const struct wined3d_color_key *color_key, DWORD color)
void d3dfmt_p8_init_palette (const struct wined3d_surface *surface, BYTE table[256][4], BOOL colorkey)
static HRESULT d3dfmt_convert_surface (const BYTE *src, BYTE *dst, UINT pitch, UINT width, UINT height, UINT outpitch, CONVERT_TYPES convert, struct wined3d_surface *surface)
void flip_surface (struct wined3d_surface *front, struct wined3d_surface *back)
static void fb_copy_to_texture_direct (struct wined3d_surface *dst_surface, struct wined3d_surface *src_surface, const RECT *src_rect, const RECT *dst_rect_in, enum wined3d_texture_filter_type filter)
static void fb_copy_to_texture_hwstretch (struct wined3d_surface *dst_surface, struct wined3d_surface *src_surface, const RECT *src_rect, const RECT *dst_rect_in, enum wined3d_texture_filter_type filter)
void surface_translate_drawable_coords (const struct wined3d_surface *surface, HWND window, RECT *rect)
static void surface_blt_to_drawable (const struct wined3d_device *device, enum wined3d_texture_filter_type filter, BOOL color_key, struct wined3d_surface *src_surface, const RECT *src_rect_in, struct wined3d_surface *dst_surface, const RECT *dst_rect_in)
HRESULT surface_color_fill (struct wined3d_surface *s, const RECT *rect, const struct wined3d_color *color)
static void surface_depth_blt (const struct wined3d_surface *surface, struct wined3d_context *context, GLuint texture, GLint x, GLint y, GLsizei w, GLsizei h, GLenum target)
void surface_modify_ds_location (struct wined3d_surface *surface, DWORD location, UINT w, UINT h)
void surface_load_ds_location (struct wined3d_surface *surface, struct wined3d_context *context, DWORD location)
void surface_modify_location (struct wined3d_surface *surface, DWORD location, BOOL persistent)
static DWORD resource_access_from_location (DWORD location)
static void surface_load_sysmem (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, const RECT *rect)
static HRESULT surface_load_drawable (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, const RECT *rect)
static HRESULT surface_load_texture (struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info, const RECT *rect, BOOL srgb)
static void surface_multisample_resolve (struct wined3d_surface *surface)
HRESULT surface_load_location (struct wined3d_surface *surface, DWORD location, const RECT *rect)
BOOL surface_is_offscreen (const struct wined3d_surface *surface)
static HRESULT ffp_blit_alloc (struct wined3d_device *device)
static void ffp_blit_free (struct wined3d_device *device)
static void ffp_blit_p8_upload_palette (const struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info)
static HRESULT ffp_blit_set (void *blit_priv, struct wined3d_context *context, const struct wined3d_surface *surface)
static void ffp_blit_unset (const struct wined3d_gl_info *gl_info)
static BOOL ffp_blit_supported (const struct wined3d_gl_info *gl_info, enum wined3d_blit_op blit_op, const RECT *src_rect, DWORD src_usage, enum wined3d_pool src_pool, const struct wined3d_format *src_format, const RECT *dst_rect, DWORD dst_usage, enum wined3d_pool dst_pool, const struct wined3d_format *dst_format)
static HRESULT ffp_blit_color_fill (struct wined3d_device *device, struct wined3d_surface *dst_surface, const RECT *dst_rect, const struct wined3d_color *color)
static HRESULT ffp_blit_depth_fill (struct wined3d_device *device, struct wined3d_surface *surface, const RECT *rect, float depth)
static HRESULT cpu_blit_alloc (struct wined3d_device *device)
static void cpu_blit_free (struct wined3d_device *device)
static HRESULT cpu_blit_set (void *blit_priv, struct wined3d_context *context, const struct wined3d_surface *surface)
static void cpu_blit_unset (const struct wined3d_gl_info *gl_info)
static BOOL cpu_blit_supported (const struct wined3d_gl_info *gl_info, enum wined3d_blit_op blit_op, const RECT *src_rect, DWORD src_usage, enum wined3d_pool src_pool, const struct wined3d_format *src_format, const RECT *dst_rect, DWORD dst_usage, enum wined3d_pool dst_pool, const struct wined3d_format *dst_format)
static HRESULT surface_cpu_blt_compressed (const BYTE *src_data, BYTE *dst_data, UINT src_pitch, UINT dst_pitch, UINT update_w, UINT update_h, const struct wined3d_format *format, DWORD flags, const WINEDDBLTFX *fx)
static HRESULT cpu_blit_color_fill (struct wined3d_device *device, struct wined3d_surface *dst_surface, const RECT *dst_rect, const struct wined3d_color *color)
static HRESULT cpu_blit_depth_fill (struct wined3d_device *device, struct wined3d_surface *surface, const RECT *rect, float depth)
static HRESULT surface_init (struct wined3d_surface *surface, WINED3DSURFTYPE surface_type, UINT alignment, UINT width, UINT height, UINT level, enum wined3d_multisample_type multisample_type, UINT multisample_quality, struct wined3d_device *device, DWORD usage, enum wined3d_format_id format_id, enum wined3d_pool pool, DWORD flags, void *parent, const struct wined3d_parent_ops *parent_ops)
HRESULT CDECL wined3d_surface_create (struct wined3d_device *device, UINT width, UINT height, enum wined3d_format_id format_id, UINT level, DWORD usage, enum wined3d_pool pool, enum wined3d_multisample_type multisample_type, DWORD multisample_quality, WINED3DSURFTYPE surface_type, DWORD flags, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_surface **surface)

Variables

static struct wined3d_resource_ops surface_resource_ops
static struct wined3d_surface_ops surface_ops
static struct wined3d_surface_ops gdi_surface_ops
static struct d3dfmt_convertor_desc convertors []
struct blit_shader ffp_blit
struct blit_shader cpu_blit

Generated on Sat May 26 2012 05:02:44 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.