1
0
mirror of https://github.com/BELABOX/belacoder.git synced 2026-07-04 12:06:41 +00:00

Add a workaround for the Camlink colorspace bug

The issue is described in detail here
https://assortedhackery.com/patching-cam-link-to-play-nicer-on-linux/

However note that this is a pure software workaround, no firmware
modification is needed and it works with off-the-shelf camlinks
This commit is contained in:
rationalsa
2021-03-16 19:59:15 +00:00
parent 6475b795f0
commit 93b5285c59
3 changed files with 14 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "camlink_workaround"]
path = camlink_workaround
url = https://github.com/BELABOX/camlink.git
+10 -4
View File
@@ -1,8 +1,14 @@
CFLAGS=`pkg-config gstreamer-1.0 gstreamer-app-1.0 srt --cflags` -O2 -Wall
LDFLAGS=`pkg-config gstreamer-1.0 gstreamer-app-1.0 srt --libs`
LDFLAGS=`pkg-config gstreamer-1.0 gstreamer-app-1.0 srt --libs` -ldl
belacoder: belacoder.c
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
all: submodule belacoder
submodule:
git submodule init
git submodule update
belacoder: belacoder.o camlink_workaround/camlink.o
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
clean:
rm -f belacoder
rm -f belacoder *.o camlink_workaround/*.o
Submodule camlink_workaround added at a46a886744