gfx_util.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org)
  3. (c) Copyright 2000-2004 Convergence (integrated media) GmbH
  4. All rights reserved.
  5. Written by Denis Oliver Kropp <dok@directfb.org>,
  6. Andreas Hundt <andi@fischlustig.de>,
  7. Sven Neumann <neo@directfb.org>,
  8. Ville Syrjälä <syrjala@sci.fi> and
  9. Claudio Ciccani <klan@users.sf.net>.
  10. Scaling routines ported from gdk_pixbuf by Sven Neumann
  11. <sven@convergence.de>.
  12. This library is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU Lesser General Public
  14. License as published by the Free Software Foundation; either
  15. version 2 of the License, or (at your option) any later version.
  16. This library is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. Lesser General Public License for more details.
  20. You should have received a copy of the GNU Lesser General Public
  21. License along with this library; if not, write to the
  22. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23. Boston, MA 02111-1307, USA.
  24. */
  25. #ifndef __GFX_UTIL_H__
  26. #define __GFX_UTIL_H__
  27. #include <directfb.h>
  28. #include <core/coretypes.h>
  29. void dfb_copy_buffer_32( u32 *src,
  30. void *dst, int dpitch, DFBRectangle *drect,
  31. CoreSurface *dst_surface, const DFBRegion *dst_clip );
  32. void dfb_scale_linear_32( u32 *src, int sw, int sh,
  33. void *dst, int dpitch, DFBRectangle *drect,
  34. CoreSurface *dst_surface, const DFBRegion *dst_clip );
  35. #endif