Fix and use constants

This commit is contained in:
Wim Taymans 2019-10-28 19:02:04 +01:00
parent 068b7e775e
commit 577f06cfeb
2 changed files with 14 additions and 5 deletions

View file

@ -30,9 +30,9 @@
#include <jack/jack.h>
#define WIDTH 640
#define HEIGHT 480
#define BPP 3
#define WIDTH 320
#define HEIGHT 240
#define BPP 16
#define MAX_BUFFERS 64
@ -153,8 +153,8 @@ int main(int argc, char *argv[])
jack_set_process_callback (data.client, process, &data);
data.width = 320;
data.height = 240;
data.width = WIDTH;
data.height = HEIGHT;
data.stride = data.width * 4 * sizeof(float);
if (SDL_Init(SDL_INIT_VIDEO) < 0) {

View file

@ -22,3 +22,12 @@ pipewire_jack = shared_library('jack',
dependencies : [pipewire_dep, jack_dep, mathlib],
install : false,
)
if sdl_dep.found()
executable('video-dsp-play',
'../examples/video-dsp-play.c',
c_args : [ '-D_GNU_SOURCE' ],
install: false,
dependencies : [jack_dep, sdl_dep, mathlib],
)
endif