mediaLib Library Functions mlibVideoSumAbsDiff(3MLIB)
NAME
mlibVideoSumAbsDiff - motion estimation
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibs32 mlibVideoSumAbsDiff(mlibu8 *currblock,
const mlibu8 *refblock, mlibs32 width, mlibs32 height,
mlibs32 stride);
DESCRIPTION
The mlibVideoSumAbsDiff() function computes the sum of
absolute differences between the pixels in the current block
and the corresponding pixels in the reference block.
Both the current block and the reference block belong to
frames with the same dimension. (The stride is applicable to
both.) Motion estimation computes the sum of the absolute
differences between the current block and reference blocks
at different locations in the reference frame, choosing the
best fit (least sum of absolute difference) to calculate the
motion vector.
PARAMETERS
The function takes the following arguments:
currblock Pointer to the current block. currblock must
be 8-byte aligned.
refblock Pointer to the reference block.
width Width of the block.
height Height of the block.
stride Stride, in bytes, between adjacent rows in a
block. stride must be a multiple of eight.
RETURN VALUES
The function returns a value of type mlibs32.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVideoSumAbsDiff(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|