summaryrefslogtreecommitdiffstats
path: root/windows
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-10-04 20:27:09 +0400
committerAnton <anton@picapica.im>2026-10-04 20:27:09 +0400
commit8f87c8491ffd9567df97979e9c18d4c148357870 (patch)
tree3e8516066c96834defae2be933ce034d928ca7b3 /windows
parent7d6512f8051af51b89b6c9166c44607bfe1b83c3 (diff)
downloadpica-pica-8f87c8491ffd9567df97979e9c18d4c148357870.tar.gz
pica-pica-8f87c8491ffd9567df97979e9c18d4c148357870.zip
pica-client: more hardware acceleration options on Windows
Diffstat (limited to 'windows')
-rwxr-xr-xwindows/cross_build_mxe.sh2
-rw-r--r--windows/mxe_ffmpeg_strip_excess_deps.patch8
2 files changed, 5 insertions, 5 deletions
diff --git a/windows/cross_build_mxe.sh b/windows/cross_build_mxe.sh
index fd9a802..288068d 100755
--- a/windows/cross_build_mxe.sh
+++ b/windows/cross_build_mxe.sh
@@ -227,7 +227,7 @@ test -x ../../configure || die "../../configure not found, run ./autogen.sh in t
rm -rf build_pica-pica
mkdir -p build_pica-pica
cd build_pica-pica
-../../../configure --host=$arch --prefix=$PREFIX
+../../../configure --host=$arch --prefix=$PREFIX --enable-d3d12va
make -j$(nproc)
make install
make clean
diff --git a/windows/mxe_ffmpeg_strip_excess_deps.patch b/windows/mxe_ffmpeg_strip_excess_deps.patch
index 5bd901a..9ed8508 100644
--- a/windows/mxe_ffmpeg_strip_excess_deps.patch
+++ b/windows/mxe_ffmpeg_strip_excess_deps.patch
@@ -30,9 +30,9 @@ index 8dd80d8..4c7daec 100644
+# package provides their headers yet, so configure prints a warning for each of
+# them and leaves them out. That is deliberate: adding ffnvcodec (NVIDIA),
+# libvpl (Intel QSV) or the AMF headers as a dependency is then the only change
-+# needed to get them. The MediaFoundation encoders (h264_mf, hevc_mf) and the
-+# dxva2/d3d11va/d3d12va hardware decoders need nothing but mingw-w64 and are
-+# available right away.
++# needed to get them. The Media Foundation and Direct3D 12 encoders (h264_mf,
++# hevc_mf, h264_d3d12va, hevc_d3d12va) and the dxva2/d3d11va/d3d12va decoders
++# need nothing but mingw-w64 and are available right away.
define $(PKG)_BUILD
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
--cross-prefix='$(TARGET)'- \
@@ -72,7 +72,7 @@ index 8dd80d8..4c7daec 100644
+ --enable-decoder=h264,hevc,vp9,libvpx_vp9,mjpeg,rawvideo,opus,libopus,adpcm_g722,pcm_alaw,pcm_mulaw,pcm_s16le \
+ --enable-encoder=libx264,libx265,libvpx_vp9,mjpeg,libopus,opus,adpcm_g722,pcm_alaw,pcm_mulaw,pcm_s16le \
+ --enable-hwaccel=h264_dxva2,h264_d3d11va,h264_d3d11va2,h264_d3d12va,hevc_dxva2,hevc_d3d11va,hevc_d3d11va2,hevc_d3d12va,vp9_dxva2,vp9_d3d11va,vp9_d3d11va2,vp9_d3d12va \
-+ --enable-encoder=h264_mf,hevc_mf \
++ --enable-encoder=h264_mf,hevc_mf,h264_d3d12va,hevc_d3d12va \
+ --enable-hwaccel=h264_nvdec,hevc_nvdec,vp9_nvdec,mjpeg_nvdec \
+ --enable-decoder=h264_qsv,hevc_qsv,vp9_qsv,mjpeg_qsv,h264_cuvid,hevc_cuvid,vp9_cuvid,mjpeg_cuvid \
+ --enable-encoder=h264_nvenc,hevc_nvenc,h264_qsv,hevc_qsv,h264_amf,hevc_amf \