[FFmpeg-devel] [PATCH 1/5] avutil/pixelutils: add av_pixelutils_bdiff()
Michael Niedermayer
michaelni at gmx.at
Fri Aug 15 01:23:59 CEST 2014
On Thu, Aug 14, 2014 at 11:05:11PM +0200, Clément Bœsch wrote:
> ---
> doc/APIchanges | 3 +++
> libavutil/pixelutils.c | 21 +++++++++++++++++++++
> libavutil/pixelutils.h | 23 +++++++++++++++++++++++
> libavutil/version.h | 2 +-
> 4 files changed, 48 insertions(+), 1 deletion(-)
>
> diff --git a/doc/APIchanges b/doc/APIchanges
> index 067f60f..72cfe96 100644
> --- a/doc/APIchanges
> +++ b/doc/APIchanges
> @@ -15,6 +15,9 @@ libavutil: 2014-08-09
>
> API changes, most recent first:
>
> +2014-08-xx - xxxxxxx - lavu 54.04.100 - pixelutils.h
> + Add av_pixelutils_bdiff().
> +
> 2014-08-xx - xxxxxxx - lavu 54.03.0 - mem.h
> Add av_strndup().
>
> diff --git a/libavutil/pixelutils.c b/libavutil/pixelutils.c
> index 10ff7e8..473d394 100644
> --- a/libavutil/pixelutils.c
> +++ b/libavutil/pixelutils.c
> @@ -85,6 +85,27 @@ av_pixelutils_sad_fn av_pixelutils_get_sad_fn(int w_bits, int h_bits, int aligne
> #endif
> }
>
> +int64_t av_pixelutils_bdiff(const uint8_t *s1, ptrdiff_t stride1,
> + const uint8_t *s2, ptrdiff_t stride2,
> + av_pixelutils_sad_fn sadfn,
> + int w, int h, int bsize)
> +{
> +#if !CONFIG_PIXELUTILS
> + return -1;
> +#else
does every application need error checking due to this ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140815/ff276223/attachment.asc>
More information about the ffmpeg-devel
mailing list