Module memedb_core::riff

source ·
Expand description

Resource Interchange File Format

RIFF data is organized in chunks. Each chunk is structured as follows:

  • 4 byte ASCII name.
  • 4 byte little endian length.
  • The chunk data itself.
  • An extra padding byte if the length is not even.

A RIFF file is composed of a single RIFF meta-chunk, that contains a 4-byte ASCII name describing the format of the payload (WEBP, AVI , WAV , etc), and then a series of sub-chunks.

MemeDB stores its tags in a meme chunk.

Functions

  • Given a src, return the tags contained inside.
  • Read data from src, set the provided tags, and write to dest.