mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
默认解码由AVC调整为AV1
This commit is contained in:
@@ -94,18 +94,18 @@ extension AudioQualityDesc on AudioQuality {
|
|||||||
|
|
||||||
enum VideoDecodeFormats {
|
enum VideoDecodeFormats {
|
||||||
DVH1,
|
DVH1,
|
||||||
AV1,
|
|
||||||
HEVC,
|
|
||||||
AVC,
|
AVC,
|
||||||
|
HEVC,
|
||||||
|
AV1,
|
||||||
}
|
}
|
||||||
|
|
||||||
extension VideoDecodeFormatsDesc on VideoDecodeFormats {
|
extension VideoDecodeFormatsDesc on VideoDecodeFormats {
|
||||||
static final List<String> _descList = ['DVH1', 'AV1', 'HEVC', 'AVC'];
|
static final List<String> _descList = ['DVH1', 'AVC', 'HEVC', 'AV1'];
|
||||||
get description => _descList[index];
|
get description => _descList[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
extension VideoDecodeFormatsCode on VideoDecodeFormats {
|
extension VideoDecodeFormatsCode on VideoDecodeFormats {
|
||||||
static final List<String> _codeList = ['dvh1', 'av01', 'hev1', 'avc1'];
|
static final List<String> _codeList = ['dvh1', 'avc1', 'hev1', 'av01'];
|
||||||
get code => _codeList[index];
|
get code => _codeList[index];
|
||||||
|
|
||||||
static VideoDecodeFormats? fromCode(String code) {
|
static VideoDecodeFormats? fromCode(String code) {
|
||||||
|
|||||||
Reference in New Issue
Block a user