Add WebP support

This commit is contained in:
mote 2017-11-01 00:57:46 +01:00
parent 34771a80d3
commit b679c7fa77
No known key found for this signature in database
GPG Key ID: 6C7EE01C33356A40
1 changed files with 8 additions and 0 deletions

View File

@ -208,6 +208,13 @@ static const struct riff_chunk_spec riff_dmpt_body[] = BODY(
LIST( 'p','t','t','n', 0, 1)
);
/* WebP */
static const struct riff_chunk_spec riff_webp_body[] = BODY(
CHUNK('V','P','8',' ', 0),
CHUNK('V','P','8','L', 0),
CHUNK('V','P','8','X', 0)
);
static const struct riff_file_spec riff_file_specs[] = {
{ RIFF('W','A','V','E', riff_wav_body ), "wav" },
{ RIFF('A','V','I',' ', riff_avi_body ), "avi" },
@ -230,6 +237,7 @@ static const struct riff_file_spec riff_file_specs[] = {
{ RIFF('D','M','T','K', riff_dmtk_body), "riff" },
{ RIFF('D','M','B','T', riff_dmbt_body), "riff" },
{ RIFF('D','M','P','T', riff_dmpt_body), "riff" },
{ RIFF('W','E','B','P', riff_webp_body), "webp" },
{ END, 0 }
};