2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief Interface of 2D-copy library
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2007-10-10
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2007-2013 Genode Labs GmbH
|
2011-12-22 15:19:25 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__BLIT__BLIT_H_
|
|
|
|
#define _INCLUDE__BLIT__BLIT_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Blit memory from source buffer to destination buffer
|
|
|
|
*
|
|
|
|
* \param src address of source buffer
|
|
|
|
* \param src_w line length of source buffer in bytes
|
|
|
|
* \param dst address of destination buffer
|
|
|
|
* \param dst_w line length of destination buffer in bytes
|
|
|
|
* \param w number of bytes per line to copy
|
|
|
|
* \param h number of lines to copy
|
|
|
|
*
|
|
|
|
* This function works at a granularity of 16bit.
|
|
|
|
* If the source and destination overlap, the result
|
|
|
|
* of the copy operation is not defined.
|
|
|
|
*/
|
2013-09-07 00:01:03 +00:00
|
|
|
extern "C" void blit(void const *src, unsigned src_w,
|
|
|
|
void *dst, unsigned dst_w, int w, int h);
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
#endif /* _INCLUDE__BLIT__BLIT_H_ */
|