diff libpostproc/postprocess_internal.h @ 2527:ace6e273f318 libavcodec

support for negative strides
author henry
date Sun, 27 Feb 2005 08:56:26 +0000
parents 98d8283534bb
children ef2149182f1c
line wrap: on
line diff
--- a/libpostproc/postprocess_internal.h	Sat Feb 26 03:40:29 2005 +0000
+++ b/libpostproc/postprocess_internal.h	Sun Feb 27 08:56:26 2005 +0000
@@ -160,3 +160,11 @@
 } PPContext;
 
 
+static inline void linecpy(void *dest, void *src, int lines, int stride)
+{
+	if (stride > 0) {
+		memcpy(dest, src, lines*stride);
+	} else {
+		memcpy(dest+(lines-1)*stride, src+(lines-1)*stride, -lines*stride);
+	}
+}