Add VVC enums.
This commit is contained in:
4 files changed
+19
-2
No files matched your search
@@ -78,6 +78,8 @@ enum : MP42VideoCodecType
|
||||
kMP42VideoCodecType_HEVC_PSinBitstream = 'hev1',
|
||||
kMP42VideoCodecType_DolbyVisionHEVC = 'dvh1',
|
||||
kMP42VideoCodecType_DolbyVisionHEVC_PSinBitstream = 'dvhe',
|
||||
kMP42VideoCodecType_VVC = 'vvc1',
|
||||
kMP42VideoCodecType_VVC_PSinBitstream = 'vvi1',
|
||||
kMP42VideoCodecType_MPEG4Video = 'mp4v',
|
||||
kMP42VideoCodecType_MPEG2Video = 'mp2v',
|
||||
kMP42VideoCodecType_MPEG1Video = 'mp1v',
|
||||
@@ -154,10 +156,10 @@ enum : MP42AudioCodecType
|
||||
kMP42AudioCodecType_MicrosoftGSM = 0x6D730031,
|
||||
kMP42AudioCodecType_AES3 = 'aes3',
|
||||
kMP42AudioCodecType_EnhancedAC3 = 'ec-3',
|
||||
kMP42AudioCodecType_FLAC = 'flac',
|
||||
kMP42AudioCodecType_FLAC = 'fLaC',
|
||||
kMP42AudioCodecType_Vorbis = 'XiVs',
|
||||
kMP42AudioCodecType_DTS = 'DTS ',
|
||||
kMP42AudioCodecType_TrueHD = 'trhd',
|
||||
kMP42AudioCodecType_TrueHD = 'mlpa',
|
||||
kMP42AudioCodecType_MLP = 'mlp ',
|
||||
kMP42AudioCodecType_Opus = 'opus',
|
||||
kMP42AudioCodecType_TTA = 'TTA1',
|
||||
|
||||
@@ -146,6 +146,14 @@ NSString *localizedVideoDisplayName(FourCharCode mediaSubtype)
|
||||
result = NSLocalizedString(@"Dolby Vision HEVC (Parameter Sets in Bitstream)", nil);
|
||||
break;
|
||||
|
||||
case kMP42VideoCodecType_VVC:
|
||||
result = NSLocalizedString(@"VVC", nil);
|
||||
break;
|
||||
|
||||
case kMP42VideoCodecType_VVC_PSinBitstream:
|
||||
result = NSLocalizedString(@"VVC (Parameter Sets in Bitstream)", nil);
|
||||
break;
|
||||
|
||||
case kMP42VideoCodecType_MPEG4Video:
|
||||
result = NSLocalizedString(@"MPEG-4 Visual", nil);
|
||||
break;
|
||||
|
||||
@@ -503,6 +503,7 @@ static const struct {
|
||||
{ "V_MPEG4/ISO/AP", kMP42VideoCodecType_MPEG4Video },
|
||||
{ "V_MPEG4/ISO/AVC", kMP42VideoCodecType_H264 },
|
||||
{ "V_MPEGH/ISO/HEVC", kMP42VideoCodecType_HEVC_PSinBitstream },
|
||||
{ "V_MPEGI/ISO/VVC", kMP42VideoCodecType_VVC },
|
||||
{ "V_THEORA", kMP42VideoCodecType_Theora },
|
||||
{ "V_VP8", kMP42VideoCodecType_VP8 },
|
||||
{ "V_VP9", kMP42VideoCodecType_VP9 },
|
||||
|
||||
@@ -228,6 +228,12 @@ FourCharCode getTrackMediaSubType(MP4FileHandle fileHandle, MP4TrackId Id, uint3
|
||||
else if (!strcmp(dataName, "hev1")) {
|
||||
return kMP42VideoCodecType_HEVC_PSinBitstream;
|
||||
}
|
||||
else if (!strcmp(dataName, "vvc1")) {
|
||||
return kMP42VideoCodecType_VVC;
|
||||
}
|
||||
else if (!strcmp(dataName, "vvic")) {
|
||||
return kMP42VideoCodecType_VVC_PSinBitstream;
|
||||
}
|
||||
else if (!strcmp(dataName, "av01")) {
|
||||
return kMP42VideoCodecType_AV1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user