10-19-2012
add mathematics.h
Add the following include in the file below
#include <libavutil/mathematics.h>
<zoneminder dir>/src/zm_ffmpeg.h
5 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
helo when i compling my project from the commandline using
Make file
make all i got the following error
make all
/usr/bin/gcc -DNDEBUG -O0 -finline-functions -fmerge-constants -fmove-all-movables -fno-omit-frame-pointer -I../../lsapi -c -o lsapitest.o lsapitest.c
g++ lsapitest.o... (2 Replies)
Discussion started by: amitpansuria
2 Replies
2. UNIX and Linux Applications
Ever since the new release of the Realtime kernel, JACK and Ardour and anything else that could use it doesn't work. It works if i turn off realtime in Jack, but thats precisely why I installed intrepid in the first place. for the realtime kernel. it worked so well!
what i've learned with linux:... (1 Reply)
Discussion started by: TheMusician
1 Replies
3. Ubuntu
I have install Ubuntu Intrepid and Zoneminder 1.23X. I have setup all of the all of the cameras and every time I try and run the cameras is cycle or montage mode I get no picture and I see a little emblem that resembles a broken connection. I checked /var/log/apache2/error.log and I can see that... (1 Reply)
Discussion started by: metallica1973
1 Replies
4. UNIX for Dummies Questions & Answers
Hi everyone,
I've been writing a script as an assignment which essentially does the exact same thing as the tree -d function (bash shell btw), except next to every directory name it gives a number which you can input into the same command in order to change the current working directory to the... (1 Reply)
Discussion started by: petey22uk
1 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I'm running SVN on Ubuntu 12.04, and I have to connect it to an online repository accessed by HTTPS. I can check out files from the repository just fine with the command:
svn checkout <https://pathToRepository>But, I can't update the working copy properly after I make changes. I change... (1 Reply)
Discussion started by: Zel2008
1 Replies
LEARN ABOUT OPENSOLARIS
mlib_imagemulalpha
mlib_ImageMulAlpha(3MLIB) mediaLib Library Functions mlib_ImageMulAlpha(3MLIB)
NAME
mlib_ImageMulAlpha - alpha channel multiplication
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageMulAlpha(mlib_image *dst, const mlib_image *src,
mlib_s32 cmask);
DESCRIPTION
The mlib_ImageMulAlpha() function multiplies color channels by the alpha channel on a pixel by pixel basis.
For the MLIB_BYTE image, it uses the following equation:
dst[x][y][c] = src[x][y][c] * src[x][y][a] * 2**(-8)
For the MLIB_SHORT image, it uses the following equation:
dst[x][y][c] = src[x][y][c] * src[x][y][a] * 2**(-15)
For the MLIB_USHORT image, it uses the following equation:
dst[x][y][c] = src[x][y][c] * src[x][y][a] * 2**(-16)
For the MLIB_INT image, it uses the following equation:
dst[x][y][c] = src[x][y][c] * src[x][y][a] * 2**(-31)
where c and a are the indices for the color channels and the alpha channel, respectively, so c != a.
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image.
src Pointer to source image.
cmask Channel mask to indicate the alpha channel. Each bit of the mask represents a channel in the image. The channel corresponding to
the 1 bit of cmask is the alpha channel.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_ImageMulAlpha_Inp(3MLIB), mlib_ImageMulAlpha_Fp(3MLIB), mlib_ImageMulAlpha_Fp_Inp(3MLIB), attributes(5)
SunOS 5.11 2 Mar 2007 mlib_ImageMulAlpha(3MLIB)