發表文章

目前顯示的是 3月, 2018的文章

VC++ install, vcpkg

圖片
English installer "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" --locale=english https://github.com/Microsoft/vcpkg 更新 vcpkg remove --outdated vcpkg install <list of libraries you want available by default> See .\vcpkg help triplet for all supported targets. 只build release,可在triplet內加入 set(VCPKG_BUILD_TYPE release) 加compiler flag build lib時 VCPKG_C_FLAGS VCPKG_CXX_FLAGS https://github.com/Microsoft/vcpkg/issues/3106 安裝可加參數 cmake -E env CFLAGS="-MP -Oi -arch:AVX2"  CXXFLAGS="-MP -Oi -arch:AVX2" cmake 使用lib方法 https://github.com/Microsoft/vcpkg/blob/master/docs/users/integration.md cmake .. -DCMAKE_TOOLCHAIN_FILE=.../vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x86-windows-static https://github.com/kvirc/KVIrc/issues/2400#issuecomment-421496054 https://blogs.msdn.microsoft.com/vcblog/2016/11/01/vcpkg-updates-static-linking-is-now-available/ triplet的customization https://github.com/Microsoft/vcpk

Windows 系統/程式相關

圖片
 MAX_PATH 260字的限制可以解除 https://docs.python.org/3.6/using/windows.html#max-path

Android 的影片硬體解碼支援, hardware decoder

來源 http://www.droidviews.com/enjoy-hevc-h-265-video-playback-on-android/ https://play.google.com/store/apps/details?id=net.tyniw.mediacodecinfo.application 使用這套app可以看到系統內的encoder/decoder OMX. 後面就是提供者的id,要看你手機的晶片是哪家的 On the Codec List Tab of Media Codec Info App, check for the following:     OMX.qualcomm.hevc.decoder on Qualcomm chipsets     OMX.MEDIATEK.HEVC.DECODER on Mediatek chip-sets     OMX.Exynos.hevc.dec on Exynos chip-sets