Not require both max-width and max-height of mediacodec larger than (#8036)

screen width and screen height

* Only use hardware codec, when api < 29, judge with codec name prefix.

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-05-13 20:24:50 +08:00
committed by GitHub
parent 7e09809ad8
commit d70b0cdd4f
3 changed files with 28 additions and 8 deletions

View File

@@ -178,6 +178,8 @@ pub struct MediaCodecInfo {
#[derive(Debug, Deserialize, Clone)]
pub struct MediaCodecInfos {
pub version: usize,
pub w: usize,
pub h: usize,
pub codecs: Vec<MediaCodecInfo>,
}