mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 06:10:01 +01:00
Libvje / refactor : alphadampen
* clean headers
This commit is contained in:
@@ -17,9 +17,8 @@
|
|||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA.
|
||||||
*/
|
*/
|
||||||
#include <config.h>
|
|
||||||
#include <stdint.h>
|
#include "common.h"
|
||||||
#include <stdio.h>
|
|
||||||
#include <libvjmem/vjmem.h>
|
#include <libvjmem/vjmem.h>
|
||||||
#include "alphadampen.h"
|
#include "alphadampen.h"
|
||||||
|
|
||||||
@@ -46,10 +45,10 @@ vj_effect *alphadampen_init(int w, int h)
|
|||||||
|
|
||||||
void alphadampen_apply( VJFrame *frame, int b1)
|
void alphadampen_apply( VJFrame *frame, int b1)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
const size_t len = frame->len;
|
const unsigned int len = frame->len;
|
||||||
uint8_t tmp;
|
uint8_t tmp;
|
||||||
uint8_t *A = frame->data[3];
|
uint8_t *A = frame->data[3];
|
||||||
|
|
||||||
const int base = (const int) b1;
|
const int base = (const int) b1;
|
||||||
for( i = 0 ; i < len ; i ++ )
|
for( i = 0 ; i < len ; i ++ )
|
||||||
|
|||||||
@@ -20,10 +20,6 @@
|
|||||||
|
|
||||||
#ifndef ALPHA_DAMPEN_H
|
#ifndef ALPHA_DAMPEN_H
|
||||||
#define ALPHA_DAMPEN_H
|
#define ALPHA_DAMPEN_H
|
||||||
#include <libvje/vje.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
vj_effect *alphadampen_init(int w, int h);
|
vj_effect *alphadampen_init(int w, int h);
|
||||||
void alphadampen_apply( VJFrame *frame, int b1);
|
void alphadampen_apply( VJFrame *frame, int b1);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user