MCPcopy Create free account
hub / github.com/Recordscript/recordscript / enable_hwcodec_option

Function enable_hwcodec_option

libs/scrap/src/common/codec.rs:841–849  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

839
840#[cfg(any(feature = "hwcodec", feature = "mediacodec"))]
841pub fn enable_hwcodec_option() -> bool {
842 if cfg!(windows) || cfg!(target_os = "linux") || cfg!(target_os = "android") {
843 if let Some(v) = Config2::get().options.get("enable-hwcodec") {
844 return v != "N";
845 }
846 return true; // default is true
847 }
848 false
849}
850#[cfg(feature = "vram")]
851pub fn enable_vram_option() -> bool {
852 if let Some(v) = Config2::get().options.get("enable-hwcodec") {

Callers 6

updateMethod · 0.85
supported_encodingMethod · 0.85
supported_decodingsMethod · 0.85
newMethod · 0.85
try_getMethod · 0.85
start_check_processFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected