videotoolbox ram codec (#8683)

* h265 encoding: the second frame always fails, use repeat encoding to achieve real-time encoding
* h264 encoding: Not supported because encoding fails too frequently, about 50%, with one failure followed by another success.
* h264/h265 decoding: No issues found.
* Does not support dynamically changing the bitrate and changing the quality by resetting the encoder.

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-07-12 11:08:51 +08:00
committed by GitHub
parent 0ea88ce6ff
commit 821f7245b0
6 changed files with 22 additions and 21 deletions

View File

@@ -838,7 +838,7 @@ impl Decoder {
pub fn enable_hwcodec_option() -> bool {
use hbb_common::config::keys::OPTION_ENABLE_HWCODEC;
if cfg!(windows) || cfg!(target_os = "linux") || cfg!(target_os = "android") {
if !cfg!(target_os = "ios") {
return option2bool(
OPTION_ENABLE_HWCODEC,
&Config::get_option(OPTION_ENABLE_HWCODEC),