mirror of
https://github.com/game-stop/veejay.git
synced 2026-01-06 15:05:28 +01:00
Libvje / refactor : alpha2img
* w,h * clean headers
This commit is contained in:
@@ -17,11 +17,9 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA.
|
||||
*/
|
||||
#include <config.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <libvjmem/vjmem.h>
|
||||
|
||||
#include "common.h"
|
||||
#include <libvjmem/vjmem.h>
|
||||
#include "alpha2img.h"
|
||||
|
||||
vj_effect *alpha2img_init(int w, int h)
|
||||
@@ -38,11 +36,11 @@ vj_effect *alpha2img_init(int w, int h)
|
||||
}
|
||||
|
||||
|
||||
void alpha2img_apply( VJFrame *frame, int width, int height)
|
||||
void alpha2img_apply( VJFrame *frame)
|
||||
{
|
||||
uint8_t *Y = frame->data[0];
|
||||
uint8_t *Cb = frame->data[1];
|
||||
uint8_t *Cr = frame->data[2];
|
||||
uint8_t *Y = frame->data[0];
|
||||
uint8_t *Cb = frame->data[1];
|
||||
uint8_t *Cr = frame->data[2];
|
||||
uint8_t *a = frame->data[3];
|
||||
|
||||
veejay_memcpy( Y, a, frame->len );
|
||||
|
||||
@@ -20,10 +20,6 @@
|
||||
|
||||
#ifndef ALPHA2IMG_H
|
||||
#define ALPHA2IMG_H
|
||||
#include <libvje/vje.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
vj_effect *alpha2img_init(int w, int h);
|
||||
void alpha2img_apply( VJFrame *frame, int width, int height);
|
||||
void alpha2img_apply( VJFrame *frame);
|
||||
#endif
|
||||
|
||||
@@ -511,7 +511,7 @@ extern int chameleonblend_prepare( uint8_t *bg[4],int w, int h );
|
||||
extern void average_blend_apply( VJFrame *frame, VJFrame *frame2, int average_blend);
|
||||
extern void toalpha_apply( VJFrame *frame, int mode);
|
||||
extern void mixtoalpha_apply( VJFrame *frame, VJFrame *frame2, int mode, int scale);
|
||||
extern void alpha2img_apply( VJFrame *frame, int width, int height);
|
||||
extern void alpha2img_apply( VJFrame *frame);
|
||||
extern void alphafill_apply( VJFrame *frame, int width, int height, int val);
|
||||
extern void alphaflatten_apply( VJFrame *frame, int width, int height, int mode);
|
||||
extern void overlayalphamagic_apply(VJFrame *frame, VJFrame *frame2, int width,int height, int n, int visible);
|
||||
|
||||
@@ -384,7 +384,7 @@ static void vj_effman_apply_image_effect(
|
||||
alphafill_apply( frames[0], frames[0]->width,frames[0]->height, arg[0] );
|
||||
break;
|
||||
case VJ_IMAGE_EFFECT_ALPHA2IMG:
|
||||
alpha2img_apply( frames[0], frames[0]->width,frames[0]->height );
|
||||
alpha2img_apply( frames[0] );
|
||||
break;
|
||||
case VJ_IMAGE_EFFECT_TOALPHA:
|
||||
toalpha_apply( frames[0], arg[0] );
|
||||
|
||||
Reference in New Issue
Block a user