diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-08-23 21:46:50 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-08-31 08:15:47 +0200 |
commit | d7bc52bf456deba0f32d9fe5c288ec441f1ebef5 (patch) | |
tree | 23727303f674466f004d94c55f00b61124a8a670 /libavutil/imgutils_internal.h | |
parent | 24da430324735f95880c4a4a54298dc8023125bb (diff) | |
download | ffmpeg-d7bc52bf456deba0f32d9fe5c288ec441f1ebef5.tar.gz |
imgutils: add a function for copying image data from GPU mapped memory
See https://software.intel.com/en-us/articles/copying-accelerated-video-decode-frame-buffers
Diffstat (limited to 'libavutil/imgutils_internal.h')
-rw-r--r-- | libavutil/imgutils_internal.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libavutil/imgutils_internal.h b/libavutil/imgutils_internal.h new file mode 100644 index 0000000000..7a932a5f52 --- /dev/null +++ b/libavutil/imgutils_internal.h @@ -0,0 +1,30 @@ +/* + * This file is part of Libav. + * + * Libav is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * Libav is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Libav; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVUTIL_IMGUTILS_INTERNAL_H +#define AVUTIL_IMGUTILS_INTERNAL_H + +#include <stddef.h> +#include <stdint.h> + +int ff_image_copy_plane_uc_from_x86(uint8_t *dst, ptrdiff_t dst_linesize, + const uint8_t *src, ptrdiff_t src_linesize, + ptrdiff_t bytewidth, int height); + + +#endif /* AVUTIL_IMGUTILS_INTERNAL_H */ |