mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08:00
1f034456c1
- Improve comments and naming - Convert macros to static inline functions - Remove superfluous `break' after `return' - Make sure we get a build-time error (undefined reference to 'c2p_unsupported') in case of future misuse - Replace `unsigned long' by `u32' in comp(), as that's what all callers use - Use {get,put}_unaligned_be32() in store_planar{,_masked}() - Use void * for arbitrary pointers - Use a union to represent pixels/words, to avoid casts Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
17 lines
451 B
C
17 lines
451 B
C
/*
|
|
* Fast C2P (Chunky-to-Planar) Conversion
|
|
*
|
|
* Copyright (C) 2003 Geert Uytterhoeven
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file COPYING in the main directory of this archive
|
|
* for more details.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
|
|
extern void c2p(void *dst, const void *src, u32 dx, u32 dy, u32 width,
|
|
u32 height, u32 dst_nextline, u32 dst_nextplane,
|
|
u32 src_nextline, u32 bpp);
|
|
|