* enable ffmpeg native h26x software decoders for all platforms * h26x software decoders depend on hwcodec feature, so all platforms enable it, software h26x decoders are always available like vpx, no available check and no option * ffmpeg: - build: mac arm64 build ffmpeg with my m1, others build with ci - version: win/linux use ffmpeg release/5.1, becaues higher version require higher nvidia driver, other platforms use release/7.0 * test: - ios not test. - android: sometimes the screen will appear blurry, but it will recover after a while. - arm64 linux: test a example of hwcodec repo Signed-off-by: 21pages <pages21@163.com> * check hwcodec only when enabled and immediately when clicked enabled Signed-off-by: 21pages <pages21@163.com> --------- Signed-off-by: 21pages <pages21@163.com>
		
			
				
	
	
		
			66 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
| [package]
 | |
| name = "scrap"
 | |
| description = "Screen capture made easy."
 | |
| version = "0.5.0"
 | |
| repository = "https://github.com/quadrupleslap/scrap"
 | |
| documentation = "https://docs.rs/scrap"
 | |
| keywords = ["screen", "capture", "record"]
 | |
| license = "MIT"
 | |
| authors = ["Ram <quadrupleslap@gmail.com>"]
 | |
| edition = "2018"
 | |
| 
 | |
| [features]
 | |
| wayland = ["gstreamer", "gstreamer-app", "gstreamer-video", "dbus", "tracing"]
 | |
| mediacodec = ["ndk"]
 | |
| linux-pkg-config = ["dep:pkg-config"]
 | |
| hwcodec = ["dep:hwcodec"]
 | |
| vram = ["hwcodec/vram"]
 | |
| 
 | |
| [dependencies]
 | |
| cfg-if = "1.0"
 | |
| num_cpus = "1.15"
 | |
| lazy_static = "1.4"
 | |
| hbb_common = { path = "../hbb_common" }
 | |
| webm = { git = "https://github.com/21pages/rust-webm" }
 | |
| serde = {version="1.0", features=["derive"]}
 | |
| 
 | |
| [dependencies.winapi]
 | |
| version = "0.3"
 | |
| default-features = true
 | |
| features = ["dxgi", "dxgi1_2", "dxgi1_5", "d3d11", "winuser", "winerror", "errhandlingapi", "libloaderapi"]
 | |
| 
 | |
| [target.'cfg(target_os = "macos")'.dependencies]
 | |
| block = "0.1"
 | |
| 
 | |
| [target.'cfg(target_os = "android")'.dependencies]
 | |
| android_logger = "0.13"
 | |
| jni = "0.21"
 | |
| lazy_static = "1.4"
 | |
| log = "0.4"
 | |
| serde_json = "1.0"
 | |
| ndk = { version = "0.7", features = ["media"], optional = true}
 | |
| ndk-context = "0.1"
 | |
| 
 | |
| [target.'cfg(not(target_os = "android"))'.dev-dependencies]
 | |
| repng = "0.2"
 | |
| docopt = "1.1"
 | |
| quest = "0.3"
 | |
| 
 | |
| [build-dependencies]
 | |
| target_build_utils = "0.3"
 | |
| bindgen = "0.65"
 | |
| pkg-config = { version = "0.3.27", optional = true }
 | |
| 
 | |
| [target.'cfg(target_os = "linux")'.dependencies]
 | |
| dbus = { version = "0.9", optional = true }
 | |
| tracing = { version = "0.1", optional = true }
 | |
| gstreamer = { version = "0.16", optional = true }
 | |
| gstreamer-app = { version = "0.16", features = ["v1_10"], optional = true }
 | |
| gstreamer-video = { version = "0.16", optional = true }
 | |
| 
 | |
| [dependencies.hwcodec]
 | |
| git = "https://github.com/21pages/hwcodec"
 | |
| optional = true
 | |
| 
 | |
| 
 |