mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-20 23:00:02 +01:00
Libvje / refactor : bathroom (fix)
* clean headers * unsigned
This commit is contained in:
@@ -24,13 +24,10 @@
|
||||
to set the distance and mode
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include "common.h"
|
||||
#include <libvjmem/vjmem.h>
|
||||
#include "bathroom.h"
|
||||
#include "common.h"
|
||||
|
||||
static uint8_t *bathroom_frame[4] = { NULL,NULL,NULL,NULL };
|
||||
|
||||
vj_effect *bathroom_init(int width,int height)
|
||||
@@ -97,9 +94,9 @@ void bathroom_free() {
|
||||
|
||||
static void bathroom_verti_apply(VJFrame *frame, int val, int x0, int x1)
|
||||
{
|
||||
const int width = frame->width;
|
||||
const int height = frame->height;
|
||||
const int len = frame->len;
|
||||
const unsigned int width = frame->width;
|
||||
const unsigned int height = frame->height;
|
||||
const unsigned int len = frame->len;
|
||||
unsigned int y_val = val;
|
||||
unsigned int x,y;
|
||||
uint8_t *Y = frame->data[0];
|
||||
@@ -125,9 +122,9 @@ static void bathroom_verti_apply(VJFrame *frame, int val, int x0, int x1)
|
||||
|
||||
static void bathroom_alpha_verti_apply(VJFrame *frame, int val, int x0, int x1)
|
||||
{
|
||||
const int width = frame->width;
|
||||
const int height = frame->height;
|
||||
const int len = frame->len;
|
||||
const unsigned int width = frame->width;
|
||||
const unsigned int height = frame->height;
|
||||
const unsigned int len = frame->len;
|
||||
unsigned int y_val = val;
|
||||
unsigned int x,y;
|
||||
uint8_t *Y = frame->data[0];
|
||||
@@ -156,9 +153,9 @@ static void bathroom_alpha_verti_apply(VJFrame *frame, int val, int x0, int x1)
|
||||
|
||||
static void bathroom_hori_apply(VJFrame *frame, int val, int x0, int x1)
|
||||
{
|
||||
const int width = frame->width;
|
||||
const int height = frame->height;
|
||||
const int len = frame->len;
|
||||
const unsigned int width = frame->width;
|
||||
const unsigned int height = frame->height;
|
||||
const unsigned int len = frame->len;
|
||||
unsigned int y_val = val;
|
||||
uint8_t *Y = frame->data[0];
|
||||
uint8_t *Cb = frame->data[1];
|
||||
@@ -183,9 +180,9 @@ static void bathroom_hori_apply(VJFrame *frame, int val, int x0, int x1)
|
||||
|
||||
static void bathroom_alpha_hori_apply(VJFrame *frame, int val, int x0, int x1)
|
||||
{
|
||||
const int width = frame->width;
|
||||
const int height = frame->height;
|
||||
const int len = frame->len;
|
||||
const unsigned int width = frame->width;
|
||||
const unsigned int height = frame->height;
|
||||
const unsigned int len = frame->len;
|
||||
unsigned int y_val = val;
|
||||
uint8_t *Y = frame->data[0];
|
||||
uint8_t *Cb = frame->data[1];
|
||||
|
||||
@@ -20,10 +20,6 @@
|
||||
|
||||
#ifndef BATHROOM_H
|
||||
#define BATHROOM_H
|
||||
#include <libvje/vje.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
vj_effect *bathroom_init(int w, int h);
|
||||
int bathroom_malloc(int w, int h);
|
||||
void bathroom_free();
|
||||
|
||||
Reference in New Issue
Block a user