diff options
author | Steam Deck User <deck@archlinux.steamdeck> | 2023-04-01 15:14:36 +0200 |
---|---|---|
committer | Steam Deck User <deck@archlinux.steamdeck> | 2023-04-01 16:29:24 +0200 |
commit | 2f67083915ccb16727d00d49917a520d0962fb8c (patch) | |
tree | 6bc13adc7819305f03aa3e68f904d9e19e4b1248 /build.sh | |
parent | 162eac8c2f460ac8231696b511785d69bb7c97ff (diff) |
Use vaapi to do rgb->yuv420p color conversion
Enable window capture for amd/intel.
Properly check if h264/hevc is supported on amd/intel before using
codec.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,7 +1,7 @@ #!/bin/sh -e #libdrm -dependencies="libavcodec libavformat libavutil x11 xcomposite xrandr libpulse libswresample libavfilter" +dependencies="libavcodec libavformat libavutil x11 xcomposite xrandr libpulse libswresample libavfilter libva" includes="$(pkg-config --cflags $dependencies)" libs="$(pkg-config --libs $dependencies) -ldl -pthread -lm" opts="-O2 -g0 -DNDEBUG" @@ -13,10 +13,9 @@ gcc -c src/egl.c $opts $includes gcc -c src/cuda.c $opts $includes gcc -c src/xnvctrl.c $opts $includes gcc -c src/overclock.c $opts $includes -gcc -c src/vaapi.c $opts $includes gcc -c src/window_texture.c $opts $includes gcc -c src/time.c $opts $includes g++ -c src/sound.cpp $opts $includes g++ -c src/main.cpp $opts $includes -g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o egl.o cuda.o xnvctrl.o overclock.o vaapi.o window_texture.o time.o xcomposite_cuda.o xcomposite_drm.o sound.o main.o -s $libs +g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o egl.o cuda.o xnvctrl.o overclock.o window_texture.o time.o xcomposite_cuda.o xcomposite_drm.o sound.o main.o -s $libs echo "Successfully built gpu-screen-recorder" |