Recognize WavPack at container level
This commit is contained in:
parent
f65b90885a
commit
33735f945a
|
@ -58,6 +58,7 @@ enum Sig32 : uint32
|
||||||
TiffBigEndian = 0x4D4D002Au,
|
TiffBigEndian = 0x4D4D002Au,
|
||||||
TiffLittleEndian = 0x49492A00u,
|
TiffLittleEndian = 0x49492A00u,
|
||||||
Utf32Text = 0xFFFE0000u,
|
Utf32Text = 0xFFFE0000u,
|
||||||
|
WavPack = 0x7776706Bu,
|
||||||
WindowsIcon = 0x00000100u,
|
WindowsIcon = 0x00000100u,
|
||||||
Lzip = 0x4C5A4950u,
|
Lzip = 0x4C5A4950u,
|
||||||
Zip1 = 0x504B0304u,
|
Zip1 = 0x504B0304u,
|
||||||
|
@ -189,6 +190,8 @@ ContainerFormat parseSignature(const char *buffer, int bufferSize)
|
||||||
return ContainerFormat::TiffLittleEndian;
|
return ContainerFormat::TiffLittleEndian;
|
||||||
case Utf32Text:
|
case Utf32Text:
|
||||||
return ContainerFormat::Utf32Text;
|
return ContainerFormat::Utf32Text;
|
||||||
|
case WavPack:
|
||||||
|
return ContainerFormat::WavPack;
|
||||||
case WindowsIcon:
|
case WindowsIcon:
|
||||||
return ContainerFormat::WindowsIcon;
|
return ContainerFormat::WindowsIcon;
|
||||||
case Lzip:
|
case Lzip:
|
||||||
|
@ -319,6 +322,7 @@ const char *containerFormatAbbreviation(ContainerFormat containerFormat, MediaTy
|
||||||
case ContainerFormat::SevenZ: return "7z";
|
case ContainerFormat::SevenZ: return "7z";
|
||||||
case ContainerFormat::Xz: return "xz";
|
case ContainerFormat::Xz: return "xz";
|
||||||
case ContainerFormat::YUV4Mpeg2: return "y4m";
|
case ContainerFormat::YUV4Mpeg2: return "y4m";
|
||||||
|
case ContainerFormat::WavPack: return "wv";
|
||||||
default: return "";
|
default: return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -395,6 +399,8 @@ const char *containerFormatName(ContainerFormat containerFormat)
|
||||||
return "UTF-32 text";
|
return "UTF-32 text";
|
||||||
case ContainerFormat::Utf8Text:
|
case ContainerFormat::Utf8Text:
|
||||||
return "UTF-8 text";
|
return "UTF-8 text";
|
||||||
|
case ContainerFormat::WavPack:
|
||||||
|
return "WavPack";
|
||||||
case ContainerFormat::WindowsBitmap:
|
case ContainerFormat::WindowsBitmap:
|
||||||
return "Microsoft Windows Bitmap";
|
return "Microsoft Windows Bitmap";
|
||||||
case ContainerFormat::WindowsIcon:
|
case ContainerFormat::WindowsIcon:
|
||||||
|
|
|
@ -61,6 +61,7 @@ enum class ContainerFormat
|
||||||
Zip, /**< ZIP archive */
|
Zip, /**< ZIP archive */
|
||||||
Xz, /**< xz compressed file */
|
Xz, /**< xz compressed file */
|
||||||
YUV4Mpeg2, /**< YUV4MPEG2 */
|
YUV4Mpeg2, /**< YUV4MPEG2 */
|
||||||
|
WavPack, /**< WavPack */
|
||||||
};
|
};
|
||||||
|
|
||||||
TAG_PARSER_EXPORT ContainerFormat parseSignature(const char *buffer, int bufferSize);
|
TAG_PARSER_EXPORT ContainerFormat parseSignature(const char *buffer, int bufferSize);
|
||||||
|
|
Loading…
Reference in New Issue