summaryrefslogtreecommitdiffstats
path: root/libavcore/imgutils.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-07 21:23:45 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-07 21:23:45 +0000
commit9686abb8260c31be6c109d97f369aa84c46ff567 (patch)
tree11d9ca0e17d88f572529243242433be8e9e9e824 /libavcore/imgutils.h
parentb163078fe309f15e4c7fecea9147ec8d8437623b (diff)
downloadffmpeg-streaming-9686abb8260c31be6c109d97f369aa84c46ff567.zip
ffmpeg-streaming-9686abb8260c31be6c109d97f369aa84c46ff567.tar.gz
Reimplement ff_img_copy_plane() as av_image_copy_plane() in libavcore,
and deprecate the old function. Originally committed as revision 25064 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcore/imgutils.h')
-rw-r--r--libavcore/imgutils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcore/imgutils.h b/libavcore/imgutils.h
index 291c872..879281d 100644
--- a/libavcore/imgutils.h
+++ b/libavcore/imgutils.h
@@ -78,6 +78,19 @@ int av_image_fill_pointers(uint8_t *data[4], enum PixelFormat pix_fmt, int heigh
uint8_t *ptr, const int linesizes[4]);
/**
+ * Copy image plane from src to dst.
+ * That is, copy "height" number of lines of "bytewidth" bytes each.
+ * The first byte of each successive line is separated by *_linesize
+ * bytes.
+ *
+ * @param dst_linesize linesize for the image plane in dst
+ * @param src_linesize linesize for the image plane in src
+ */
+void av_image_copy_plane(uint8_t *dst, int dst_linesize,
+ const uint8_t *src, int src_linesize,
+ int bytewidth, int height);
+
+/**
* Check if the given dimension of an image is valid, meaning that all
* bytes of the image can be addressed with a signed int.
*
OpenPOWER on IntegriCloud